Prove that if $H$ is a subgroup of index $2$ in a finite group $G$, then $gH=Hg$ for all $g\in G$
I do know that index, or $\frac{|G|}{|H|}=2$ implies that $H$ is practically half of $G$, loosely speaking.
Moreover, I do know that every cyclic group of prime order is abelian, or $gH=Hg.$
Lastly, I do know that to show $gH=Hg,$ it is suffice to show that $gH \subseteq Hg $ and $Hg \subseteq gH $.
But I could not tie those clues together and come up with an argument.
Could you please point me in the right direction?
Thanks.
Let $xH$ be a coset of $H$ in $G$. Since cosets partition $G$, either $xH=H$ or it is the other coset $G-H$ (the other coset is made of the leftovers, so it's the set complement of $H$). If $xH=H$, then $x\in H$ so $xH=H=Hx$. Otherwise $x\not\in H$, so $Hx \not= H$. Thus $xH=G-H=Hx$. So all the left and right cosets match.