I want to classify all groups $G$ containing an infinite cyclic subgroup $H$ of index 2. My question is the same as this one, but I was given a hint that the answers in this post didn't completely address.
The hint said to first consider the abelian case. Since $H$ is finitely generated by one element and the subgroup has finite index, it follows that $G$ is finitely generated. So we can use the structure theorem on f.g. abelian groups. I believe it is straightforward from here to deduce the group is isomorphic to either $\mathbb{Z}$ or $\mathbb{Z} \times \mathbb{Z}/2\mathbb{Z}$.
For the non-abelian case, the hint says to consider a natural group action of $G$ on $H$ and use it to show that $G$ contains an element of order $2$. I'm not sure how to proceed here. Since $H$ has index $2$, then $H$ is normal in $G$, so I suppose the natural action of $G$ on $H$ is conjugation by elements of $G$. I don't know how to use this to show the existence of an order $2$ element. Though after this, I believe it's straightforward to conclude that $G$ is isomorphic to $\mathbb{Z} \rtimes \mathbb{Z}/2\mathbb{Z}$ because this order $2$ element gives us a right splitting of the sequence $0 \rightarrow H \rightarrow G \rightarrow \mathbb{Z}/2\mathbb{Z}\rightarrow 0$.
I would appreciate any feedback on how I handled the hints and advice on obtaining this order $2$ element.