$$\Im(-z+i) = (z+i)^2$$
So I tried solving this by replacing $z=a+bi$, thus getting $$\Im(-a+(1-b)i) = (a+(b+1)i)^2$$
From here I split it into the imaginery and real part:
\begin{equation*} \begin{aligned} -a &= a^2 -(b+1)^2 \\ 1-b &= 2ab + 2a - 1 \end{aligned} \end{equation*}
Now, I can't seem to solve this set without getting a 4th degree $b$. So I'm thinking my logic elsewhere is flawed. Can anyone tell me what I'm doing wrong?
EDITED!
The imaginary part of a complex number is always a real number. Hence, in order to solve your equation you have to impose that
$\Im\left((z+1)^2\right)=0$
$\Re\left((z+1)^2\right)=\Im(-z+i)$
I.e. solve the following system:
$2ab+2b=2b(a+1)=0$ from which you have $b=0$ or $a=-1$.
$(a+1)^2-b^2=1-b$ that becomes: $\;\;a=0,-2$ if we choose $b=0$ in the previous line... or becomes $b^2-b+1=0$ if you choose $a=-1$ in the previous line which has no solution.
Hence you have two solutions: $z_1=0$, $z_2=-2$.