I'm stuck on a question in relation with complex numbers: If $z\neq0$, and that $$\left\vert{\frac{z+1}{z-1}}\right\vert=1,$$ prove that $z$ is purely imaginary.
I tried breaking the modulus up into two separate parts, and then multiplying both sides. Then I squared both sides and used the formula $\vert{z}\vert^2=z\bar{z}$, and replaced $z$ with $a+bi$. But it seems that no matter what manipulation I do, it either turns real or doesn't make sense.
Any help is much appreciated!! Thanks!