I've been trying to develop this integral in parts twice, but I can't come up with anything meaningful,
Could you give me some hints on how to develop this exercise?
Prove that
$$\int \frac{dx}{(a+b\cos x)^n}=\frac{A\sin x}{(a+b\cos x)^{n-1}}+B\int {dx \over (a+b\cos x)^{n-1}}+C\int {dx \over (a+b\cos x)^{n-2}}, \hspace{1cm} (|a|\neq |b|). $$ and determine the coefficients $A,B$ and $C$, if $n$ is a natural number greater than the unit
Hint
By differentiating the equality, we should prove $$\frac{1}{(a+b\cos x)^n}={d\over dx}\frac{A\sin x}{(a+b\cos x)^{n-1}}+{B \over (a+b\cos x)^{n-1}}+{C \over (a+b\cos x)^{n-2}}, \hspace{1cm}$$ with $|a|\neq |b|$. Also $${d\over dx}\frac{A\sin x}{(a+b\cos x)^{n-1}}{={A\cos x(a+b\cos x)^{n-1}+(n-1)Ab\sin^2 x(a+b\cos x)^{n-2}\over (a+b\cos x)^{2n-2} } \\= {A\cos x(a+b\cos x)+(n-1)Ab\sin^2 x\over (a+b\cos x)^{n}} \\={Aa\cos x+Ab\cos^2 x+(n-1)Ab\sin^2 x\over (a+b\cos x)^{n}} }$$ The task of finding proper values $A,B,C$ such that $$\frac{1}{(a+b\cos x)^n}-{B \over (a+b\cos x)^{n-1}}-{C \over (a+b\cos x)^{n-2}}={Aa\cos x+Ab\cos^2 x+(n-1)Ab\sin^2 x\over (a+b\cos x)^{n}}$$should be easy.