Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 1996 / Problems / Day 1, P2

IMC 1996 · Day 1 · P2

Evaluate the definite integral ππsinnx(1+2x)sinxdx,\int_{-\pi}^{\pi} \frac{\sin nx}{(1 + 2^x) \sin x}\,dx, where nn is a natural number.

Solution (official)

We have In=ππsinnx(1+2x)sinxdx=0πsinnx(1+2x)sinxdx+π0sinnx(1+2x)sinxdx.\begin{align*} I_n &= \int_{-\pi}^{\pi} \frac{\sin nx}{(1 + 2^x) \sin x}\,dx \\ &= \int_0^{\pi} \frac{\sin nx}{(1 + 2^x) \sin x}\,dx + \int_{-\pi}^{0} \frac{\sin nx}{(1 + 2^x) \sin x}\,dx. \end{align*} In the second integral we make the change of variable x=xx = -x and obtain In=0πsinnx(1+2x)sinxdx+0πsinnx(1+2x)sinxdx=0π(1+2x)sinnx(1+2x)sinxdx=0πsinnxsinxdx.\begin{align*} I_n &= \int_0^{\pi} \frac{\sin nx}{(1 + 2^x) \sin x}\,dx + \int_0^{\pi} \frac{\sin nx}{(1 + 2^{-x}) \sin x}\,dx \\ &= \int_0^{\pi} \frac{(1 + 2^x) \sin nx}{(1 + 2^x) \sin x}\,dx \\ &= \int_0^{\pi} \frac{\sin nx}{\sin x}\,dx. \end{align*} For n2n \ge 2 we have InIn2=0πsinnxsin(n2)xsinxdx=20πcos(n1)xdx=0.\begin{align*} I_n - I_{n-2} &= \int_0^{\pi} \frac{\sin nx - \sin{(n-2)x}}{\sin x}\,dx \\ &= 2 \int_0^{\pi} \cos{(n-1)x}\,dx = 0. \end{align*} The answer In={0if n is even,πif n is oddI_n = \begin{cases} 0 & \text{if $n$ is even,} \\ \pi & \text{if $n$ is odd} \end{cases} follows from the above formula and I0=0I_0 = 0, I1=πI_1 = \pi.

Similar problems