I have this problem to solve
Let $G$ be a group and $H$ a subgroup. Show that $H<G$ such that $[G:H]:=\dfrac{|G|}{|H|}=2$ -- where $|\cdot|$ denotes the order of a group --- is necessarily normal. But if $[G:H]=3$ the subgroup $H$ is not necessarily normal, then show an example.
I tried to solve like so:
Firstly, let $x\in G$ be an element of group $G$. Then $x\in H$ OR $x\in\mathbb{L}$, the coset of $H$. Being $[G:H]=2\implies G$ is abelian, then $xH=Hx\implies H\triangleleft G$.
Secondly, I considered as $G=S_3$ and $H=\langle(1,2)\rangle$.
If my solution is wrong, please correct me.
Thank you so much