solving difficult complex number proving if $z= x+iy$ where $y \neq 0$ and $1+z^2 \neq 0$, show that the number $w= z/(1+z^2)$ is real only if $|z|=1$
solution :
$$1+z^2 = 1+ x^2 - y^2 +2xyi$$ 
$$(1+ x^2 - y^2 +2xyi)(1+ x^2 - y^2 -2xyi)=(1+ x^2 - y^2)^2 - (2xyi)^2$$
real component
$$(1+ x^2 - y^2)x - yi(2xyi) = x + x^3 + xy^2$$
imaginary component 
$$-2yx^2 i +yi + x^2 yi - y^3 i=0i$$
$$-2yx^2 +y + x^2 y - y^3 =0$$
... 
can't solve this question 

If I started with your solution $$-2yx^2 +y + x^2 y - y^3 =0\implies y(x^2+y^2-1)=0$$
