I have shown the following identity: $$ \frac{1+e^{i \theta}}{1-e^{i \theta}} = \frac{1}{2}\cot\left(\frac{\theta}{2}\right) $$ And I now need to use this to show that the the equation: $$ \left(\frac{z+i}{z-i}\right)^n = -1$$ has $\Im(z) = 0$.
I'm not sure where to get started on this, I have found a way to do it by conjugating the 2nd equation on both sides and showing that z is equal to its own conjugate, however this does not use the original identity, and I'd really like to see how it follows from that.
Any help would be much appreciated.