It is known that the dihedral group $D_{2n}$ is isomorphic to the semidirect product $Z_n\rtimes Z_2$, where both $Z_n,Z_2$ are cyclic.
My question is, for a semidirect prouct, the two subgroups should have trivial intersection. But, if $n$ be even, then how can we get trivial intersection? Namely, an order $2$ element would be common to both $Z_n,Z_2$ right? And the order two elements in a dihedral group would be either a $180$ degree rotation about an axis or a reflection about an axis, which are both identical right? Any hints? Thanks beforehand.
I had the same confusion. I used to mistake inner for external semidirect product. When we write $C_{n}\rtimes C_{2}$, we just construct a new binary operation on the cartesian product $C_{n}\times C_{2}$. So $C_{2}\le C_{n}$ (if exists), has nothing to do with $C_{2}$ that acts on $C_{n}$. On the other hand, when we say $G$ is inner semidirect of its two subgroups, we mean that there exists a normal subgroup $N\le G$, and a subgroup $K$ (not necessarily normal), where $G=NK$ and $N\cap K=1$. In this case you can prove that $G=NK\cong N\rtimes K$.
For more detailed explanations, please check: https://en.wikipedia.org/wiki/Semidirect_product