$\noindent We'll assume $x \in \left[0,2\pi\right)$ (if it's not, convert it to the equivalent angle in this range). We have$
$$\begin{align*} |z|^2 &= (1-\cos x)^2 +\sin^2 x \\ &= 1-2\cos x + \cos^2x +\sin^2 x \\ &= 2-2\cos x \quad (\text{using the Pythagorean trig. identity}) \\ &= 4...