<s>[INST] Reduction Formula for $I_n=\int \frac{dx}{(a+b \cos x)^n}$ Reduction Formula for $$I_n=\int \frac{dx}{(a+b \cos x)^n}$$
I considered $$I_{n-1}=\int \frac{(a+b \cos x)dx}{(a+b \cos x)^n}=aI_n+b\int \frac{\cos x\:dx}{(a+b\cos x)^n}$$
Let $$J_n=\int \frac{\cos x\:dx}{(a+b\cos x)^n}$$ using parts for $J_n$ we get
$$J_n=\frac{\sin x}{(a+b \cos x)^n}-nb \int \frac{\sin^2 x\:dx}{{(a+b \cos x)^{n+1}}}$$
Can we proceed here?
 [/INST] If I've got my coefficients right, $$\sin^2 x =1-\cos^2 x=-\frac{1}{b^2}(a+b\cos x)^2+\frac{2a}{b^2}(a+b\cos x)+1-\frac{a^2}{b^2}.$$
Thus $$\frac{\sin x (a+b\cos x)^{-n}-J_n}{nb}=\int\frac{1-\cos^2 x}{(a+b\cos x)^{n+1}}dx=(1-\frac{a^2}{b^2})I_{n+1}+\frac{2a}{b^2}I_n-\frac{1}{b^2}I_{n-1}.$$You'll want to double-check what comes next, but I get:$$(1-n)I_{n-1}=(1-2n)aI_n+\frac{b\sin x}{ (a+b\cos x)^n}-nb^2(1-\frac{a^2}{b^2})I_{n+1}.$$
</s>