How to write:
$$e^{i\theta}\cdot\frac{e^{in\theta}-1} {e^{i\theta}-1}$$ in
$$(a+i b) $$ $$ ?$$
I tried to multiplicate by $$e^{i}$$ (the numerator and denominator). And to use $$i^2 = -1$$
But I got nothing.
How to write:
$$e^{i\theta}\cdot\frac{e^{in\theta}-1} {e^{i\theta}-1}$$ in
$$(a+i b) $$ $$ ?$$
I tried to multiplicate by $$e^{i}$$ (the numerator and denominator). And to use $$i^2 = -1$$
But I got nothing.
Hint. We have $$e^{ni\theta}-1=e^{ni\theta/2}(e^{ni\theta/2}-e^{-ni\theta/2}) =e^{ni\theta/2}(2i\sin(n\theta/2))\ .$$ Do the same for the denominator, collect exponentials, and you get something of the form $e^{i\alpha}$ times a real number, which should then be easy.