I have a group G that is not cyclic and contains a subgroup H of order p where p is an odd prime and H has index 2.
Then $\\|G:H| = |G|/|H|=2 => |G|=2p $
Also H is a normal subgroup of G and G has an element $x$ of order 2 which is not an element of H since H has order $p$.
Now $y$ is a generator of H $i.e. <y>=H$ where y has order $p$
I also know that the order of $yx $ is not equal to $1$ or $2p$.
By considering $(Hyx)^p$ how do I prove that the order of $yx$ cannot be $p$?
This is what I have so far:
Suppose $|yx| = p => (yx)^p=1$
Then $(Hyx)^p=H$
$Now (Hyx)^p = HyxHyx...Hyx=HyHy...Hy=Hy^p = H\ since\ |y|=p$
But I am supposed to get a contradiction in the end. I do not know what I did wrong
For the first question, if $yx$ were the identity, then $x$ would belong to $H$, a contradiction. And if $yx$ were of order $2p = \lvert G \rvert$ then $G$ would be cyclic. Therefore the order of $yx$ is either $2$ or $p$.
For the second question, note that $G/H$ has order two, so it is cyclic and consists only of two distinct cosets $H$, $Hyx$ (since $yx$ cannot belong to $H$). Since $p$ is odd, $(Hyx)^p = Hyx$ must be the nontrivial element in $G/H$, but if $yx$ were of order $p$ then we would also have $(Hyx)^p = H(yx)^p = H$, a contradiction. Therefore $yx$ has order $2$. (And in fact, it is not hard to see that $G$ has to be a dihedral group, generated by the reflections $x$ and $yx$.)