I got this question on seeing the solution for evaluating the integral $$\int \frac{\cos 5x+\cos 4x}{1-2\cos 3x}dx$$ in my textbook. I searched this site, and found the following questions:
Another way to evaluate $\int\frac{\cos5x+\cos4x}{1-2\cos3x}{dx}$? (Exactly the same integral)
How to integrate $\frac {\cos (7x)-\cos (8x)}{1+2\cos (5x)} $ ?
In both of these questions and in my book, the first step involves multiplying the numerator and the denominator by $\sin px$ where $p=3$ in the first integral and $p=5$ in the second integral.
I wondered, why we must multiply both numerator and denominator by sine of "something" and how to determine that "something"? I was unable to answer the first question. But I was able to make some progress in solving the second question which I've discussed below:
Let us consider the following integral where $a,b,$ and $c$ are constants,
$$\int \frac{\cos ax+\cos bx}{1-2\cos cx}dx$$
In order to evaluate this integral we need to multiply both numerator and denominator by $\sin px$ where $p$ is some constant which we need to figure out. I guessed two possibilities:
$p=c$
$p=\frac{(a+b)}{3}$
Unfortunately, I was unable to tell which of the above two possibilities is the reason for the choice of $p$, because in both integrals (linked questions) the above two conditions are satisfied simultaneously.
In short, I'm confused why most of the sources multiply $\sin px$ in both numerator and denominator to solve this kind of integral. Is this some kind of a general rule or totally a guess? What are the constrains for the variable $p$ in $\sin px$? Or how do we determine $p$ in case of any integral of this form? Or is that also a guess?
Kindly explain the above two questions.
Thank you in advance.