I would like to know my error in this problem.
Find the complex number such that: $$ z+|z|=2+8i$$ So far, I have: $$ \begin{split} a+bi+\sqrt{a^2+b^2} &= 2 + 8i\\ a^2-b^2+a^2+b^2&=4-64\\ 2a^2 -b^2 + b^2&=-60\\ a^2&=-30 \end{split} $$
But I should end up with $$a^2=-15$$
No matter how hard I try, I can't seem to find what I did wrong. Any suggestions?
I would go about this differently. Since $|z| \in \mathbb{R}$, you know that $b=8$ immediately since $bi$ is the only imaginary term on the left and $8i$ - on the right.
Now the only thing is to find $a$...
UPDATE
We have the equation $$a + \sqrt{a^2+64} = 2$$ (hence $a<0$), which implies $$\sqrt{a^2+64} = 2-a$$ and now squaring will yield the desired result.