I am studying Fourier analysis and had a question involving the following equality:
$$\operatorname{Im}{\frac{1-e^{iny}}{-2i\sin{\frac{y}{2}}}}=\frac{1}{2\sin{\frac{y}{2}}}\operatorname{Re}(1-e^{iny})$$
I can see that $\operatorname{Im}{\frac{1}{-2i\sin{\frac{y}{2}}}}=\frac{1}{-2\sin{\frac{y}{2}}}$, but I cannot get to the RHS of the above equation. What am I missing?