I am trying to calculate the definite integral $$\int_0^\pi \frac{\sin(\frac{21}{2}x)}{\sin(\frac{1}{2}x)} dx.$$ Wolfram Alpha says here that the answer is $\pi$. I replaced 21 by other constants and think that in general, $\int_0^\pi \frac{\sin(\frac{n}{2}x)}{\sin(\frac{1}{2}x)} dx = \pi$ for all odd $n \in \mathbb Z$.
However I have no idea how to approach this problem. I tried substituting $u = x/2$ to simplify the integral a bit to $$2\int_0^{\pi/2} \frac{\sin(nu)}{\sin(u)}.$$ Then I thought that I could maybe use the identity $\sin(nx) = \sin(x)\cos( (n-1)x) + \sin((n-1)x)\cos(x)$. For instance, since \begin{align*} \sin(3x) &= \sin(2x)\cos(x) + \cos(2x)\sin(x) \\ &= 2\sin(x) \cos^2(x) + \cos^2(x)\sin(x) - \sin^3(x) \\ &= \sin(x)(3\cos^2(x) - \sin^2(x)) \end{align*} the integral would become $$ 2\int_0^{\pi/2} 3\cos^2(x) -\sin^2(x) dx $$ which I am able to solve: \begin{align*} 2\int_0^{\pi/2} 3\cos^2(x) -\sin^2(x) dx &= 2[\frac{3}{2}(x+\sin(x)\cos(x)) - \frac{1}{2}(x - \sin(x)\cos(x))]^{\pi/2}_0 \\ &= [2x + 4\sin(x)\cos(x)]^{\pi/2}_0 \\ &= \pi. \end{align*} However I don't know how to generalize this approach because the expansion for $\sin(21x)$ would have lots of unwieldy terms. Is there another way to do this problem that I am missing?