Finding value of $$I=\int^{\pi\over2}_0 \frac{\sin(nx)}{\sin{x}} \ \mathrm{d}x.$$
I got this question in my book. I got if $n$ is even then $I$ is $0$, by using king's rule it turns out to be $I=-I$.
But I couldn't solve it when $n$ is an odd number. I tried by taking $n=1,3$ and $5$ and simply expanding $\sin (3x)$ and $\sin (5x)$ in terms of $\sin x$ and integrating I get $I=\pi$. But can it be proved by in general taking $n$, not assuming any particular odd value of $n$.