Let $0<\theta<\frac{\pi}{2}$ and $0\le x \le1$, show that : $$\text{Im}\left(\frac{e^{i \theta}}{1-xe^{i \theta}}\right)=\frac{\sin(\theta)}{x^2-2x \cos(\theta)+1}$$
I tried to look for the exponential form of $1-xe^{i \theta}$, so i've found $1-xe^{i\theta}=re^{i(-\alpha)}$ where $r = \sqrt{1+x^2-2x\cos(\theta)}$ and $\alpha= \arctan(\frac{x\sin(\theta)}{1-x\cos{\theta}})$. Thus $\frac{e^{i \theta}}{1-xe^{i \theta}}=\frac{1}{r}e^{i(\theta-\alpha)}$, and i'm stuck here. Is there a way to easily compute $\alpha$, or another way to solve this ?
Note that\begin{align*}\frac{e^{i\theta}}{1-xe^{i\theta}}&=\frac{\cos(\theta)+i\sin(\theta)}{1-x\cos(\theta)-xi\sin(\theta)}\\&=\frac{(\cos(\theta)+i\sin(\theta))(1-x\cos(\theta)+xi\sin(\theta))}{(1-x\cos(\theta))^2+x^2\sin^2(\theta)}\\&=\frac{\cos(\theta)-x+i\sin(\theta)}{x^2-2x\cos(\theta)+1}.\end{align*}