I am studying for an exam and I was doing practice questions, but I am stuck on this one. I'm not sure how to evaluate it using a complex integral, which is what we're supposed to do.
I was thinking that I can replace $2\sin(\theta)$ by $\frac{1}{i}(z-\frac{1}{z})$, and then evaluate it as $$\int e^{-i(z-\frac{1}{z})}dz$$ on $|z|=1$, but I am stuck on how to actually proceed, since there is a singularity $z=0$ for the $1/z$ part. Can anyone help explain how to do this?