Well, we know Euler's formula:
$$e^{\varphi i}=\cos\varphi+i\sin\varphi\tag1$$
So, when we have for your LHS:
$$e^{2\theta i}=e^{2\left(\sigma+\zeta i\right)i}=e^{2\sigma i-2\zeta}=e^{2\sigma i}\cdot e^{-2\zeta}=\frac{\cos\left(2\sigma\right)+\sin\left(2\sigma\right)i}{e^{2\zeta}}\tag2$$
Where $\sigma$ is the real part of $\theta$ and $\zeta$ is the imaginary part of $\theta$.
So, we can setup a system of equations:
$$
\begin{cases}
\frac{\cos\left(2\sigma\right)}{e^{2\zeta}}=\Re\left(x\right)\\
\\
\frac{\sin\left(2\sigma\right)}{e^{2\zeta}}=\Im\left(x\right)
\end{cases}\space\space\space\space\space\space\therefore\space\space\space\space\space\space\frac{\cos\left(2\sigma\right)}{\Re\left(x\right)}=\frac{\sin\left(2\sigma\right)}{\Im\left(x\right)}\space\Longleftrightarrow\space\tan\left(2\sigma\right)=\frac{\Im\left(x\right)}{\Re\left(x\right)}\tag3
$$