Problem
Compute when $x \in \mathbb{C}$: $$ x^2-4ix-5-i=0 $$ and express output in polar coordinates
Attempt to solve
Solving this equation with quadratic formula:
$$ x=\frac{4i \pm \sqrt{(-4i)^2-4\cdot (-5-i)}}{2} $$ $$x= \frac{4i \pm \sqrt{4(i+1)}}{2} $$ $$ x = \frac{4i \pm 2\sqrt{i+1}}{2} $$ $$ x = 2i \pm \sqrt{i+1} $$
I can transform cartesian complex numbers to polar with eulers formula: when $z \in \mathbb{C}$
$$ z=re^{i\theta} $$
then: $$ r=|z|=\sqrt{(\text{Re(z)})^2+(\text{Im(z)})^2} $$ $$ \text{arg}(x)=\theta = \arctan{\frac{\text{Im}(z)}{\text{Re}(z)}} $$
Plugging in values after this computation would give us our complex in number in $(r,\theta)$ polar coordinates from $(\text{Re},\text{Im})$ cartesian coordinates.
Only problem is how do i convert complex number of form $$ z=2i+\sqrt{i+1} $$ to polar since i don't know how to separate this into imaginary and real parts. How do you compute $\text{Re}(z)$ and $\text{Im}(z)$