I am given an equation, $$|z|+z=2+i$$ I need to solve for all complex numbers z that satisfy the above equation. Should I just put $z=x+iy$, $|z|=\sqrt{x^2+y^2}$, and then solve it? But doing this I would get,
$$\sqrt{x^2+y^2}+(x+iy)=(2+i)$$ $$\implies\sqrt{x^2+y^2}=(2+i)-(x+iy)$$ Then I would have to square it, and wouldn't it then introduce extraneous roots? Also I think this seems to be pretty inefficient method for this question, is there any other way? Squaring this equation would turn pretty bad pretty fast I think.
From your last equation, the two members are real so that $y=1$. Then you are left with
$$\sqrt{x^2+1}=2-x.$$
If you remind that $x\le2$ you can square and get
$$x^2+1=4-4x+x^2$$ or $$4x=3.$$