Evaluate, with a practical approach, $$\int\frac{\cos(9x)+\cos(6x)}{2\cos(5x)-1}dx$$
The solution that I have first multiplies both numerator and denominator by $\cos\left(\frac{5x}{2}\right)$ then uses the famous formula for $\cos C+\cos D$. Then the integral is reduced to a very basic one.
My question is how did we just randomly multiplied both numerator and denominator by that $\cos\left(\frac{5x}{2}\right)$. Is there some reason behind it? Or is it cause the question is framed in such a way?
Also, is there any other alternative (elementary) method to this?
Any help is greatly appreciated.
Using $$ \cos(A)+\cos(B)=2\cos\bigg(\frac{A+B}2\bigg)\cos\bigg(\frac{A-B}2\bigg), \cos(2\theta)=2\cos^2(\theta)-1 $$ and $$ \cos(3\theta)=4\cos^3(\theta)-3\cos(\theta), $$ one has \begin{eqnarray} &&\int\frac{\cos(9x)+\cos(6x)}{2\cos(5x)-1}dx\\ &=&\int\frac{2\cos(\frac{15}2x)\cos(\frac32x)}{4\cos^2(\frac52x)-3}dx\\ &=&\int\frac{2(4\cos^3(\frac52x)-3\cos(\frac52x))\cos(\frac32x)}{4\cos^2(\frac52x)-3}dx\\ &=&\int2\cos(\frac52x)\cos(\frac32x)dx\\ &=&\int(\cos(4x)+\cos(x))dx\\ &=&\frac14\sin(4x)+\sin(x)+C. \end{eqnarray}