I want to solve the following equation for $\theta$
$$ e^{i2\theta} = x $$
where both $x$ and $\theta$ can be complex numbers. Judging from WolframAlpha's solution it is not simply taking the logarithm and rearranging for $\theta$. What is the correct way to solve this?
Write $x = e^{\text{Log} x}$ ($\text{Log}$ is the principal branch of logarithm - defined for $x \neq 0$; note that for $x=0$ there isn't a solution), and note that:
$$e^z = e^w \iff z = w + 2ik\pi, \text{ for some $k \in \Bbb Z$}$$