3 questions, not sure how to do them.
Let $z$ and $w$ be complex numbers such that $w=\frac{1}{1-z}$ and $|z|^2=1$. Find the real part of w.
If $z=e^{i\theta}$ prove that $\frac{z^2-1}{z^2+1}=i\tan\theta$.
$w=\frac{kz}{z^2+1}$ where $z^2$ is not equal to $-1$.
If $\Im w=\Im k=0$ and $\Im z$ is not equal to 0, prove that $|z|=1$.
Also, how do I get the not equals sign?
2) if $z=e^{i\theta}$, then \begin{align*} \frac{z^2-1}{z^2+1}=&\frac{e^{i2\theta}-1}{1}\frac1{e^{i2\theta}+1}\\ =& \frac{2i}{e^{-i\theta}}\frac{e^{i\theta}-e^{-i\theta}}{2i}\frac{2}{e^{i\theta}+e^{-i\theta}}\frac{e^{-i\theta}}{2}\\ =& \frac{2i}{e^{-i\theta}}\sin\theta\frac1{\cos\theta}\frac{e^{-i\theta}}{2}\\ =&i\tan\theta. \end{align*}