Let $\displaystyle I_{n}\!=\!\int^{\pi}_0\frac{4-\cos(n\!-\!1)x-2\cos(nx)-\cos(n\!+\!1)x}{1-\cos x}\,\mathrm dx\\[4pt]$ Then prove that $\displaystyle I_{n+2}+I_n=2I_{n+1}$
My Try :
Using $\displaystyle\;\cos C+\cos D =2\cos\left(\frac{C+D}{2}\right)\cos\left(\frac{C-D}{2}\right)$
$\displaystyle I_{n}=\int^\pi_0\frac{4-[\cos(n+1)x+\cos(n-1)x]-2\cos(nx)}{1-\cos x}\,\mathrm dx=\\[10pt]$ $\displaystyle=\int^\pi_0\frac{4-2\cos(nx)\cos(x)-2\cos(nx)}{1-\cos x}\,\mathrm dx\,.$
$\displaystyle I_n=\int^\pi_0\frac{4-2\cos(nx)(1+\cos x)}{1-\cos x}\,\mathrm dx=\\[10pt]$ $\displaystyle=\int^\pi_0\frac{4-4\cos^2(\frac{x}{2})\cos(nx)}{2\sin^2\left(\frac{x}{2}\right)}\,\mathrm dx=\\[10pt]$ $\displaystyle=\int^\pi_0\frac{2-2\cos^2\left(\frac{x}{2}\right)\cos(nx)}{\sin^2\left(\frac{x}{2}\right)}\,\mathrm dx$
I did not understand how I can reduce that fraction
Please look for that problem. Thanks.