Let $x\in (0,\frac{\pi}{2})$ and let $z\in \mathbb{C}$
We consider the equation $z^2-2iz-(1+e^{i4x})=0$
Write the two solutions of the equation in exponential form.
What I tried
$\delta=(-2i)^2+4+4e^{i4x}=(2e^{i2x})^2$
$x_1=\frac{2i-e^{i2x}}{2}=i-e^{i2x}=e^{i \frac{\pi}{2}}-e^{i2x}$
$x_2=\frac{2i+e^{i2x}}{2}=i+e^{i2x}=e^{i \frac{\pi}{2}}+e^{i2x}$
How can I write $x_1$ and $x_2$ in the form $re^{iy}$ with $y\in (-\pi , \pi)$?