Let $G$ be a group which has a normal subgroup isomorphic to $D_8$. Prove that $G$ has a non trivial center.
So, given $g\in G$, $h\in D_8$ $ghg^{-1}\in D_8$. So I tried to prove that there is an element (not equal the identity) $h\in D_8$ such that $ghg^{-1}=h$, but no success so far. I used trial and error method. But did not try all because there are lot. My question is, is it possible to find such element? Or else what other method works here?
Hint: if $N$ is a normal subgroup of $G$, and $|N|=2$, then $N \subseteq Z(G)$.