I want to solve a integral of the form:
$$ \int \frac{dx}{a+f^2(x)} $$
in my particular case I got
$$ \int \frac{dx}{5+\cos^2(x)} $$
in my case I followed this process:
$$ \int \frac{dx}{5+\cos^2(x)} \\ let \ t = tg(\frac{x}{2}) => dx = \frac{2dt}{1+t^2}\\ \int \frac{dx}{5+\cos^2(x)} = \int \frac{\frac{2\,dt}{1+t^2}}{5+(\frac{1-t^2}{1+t^2})^2}\\ $$ Expanding the denominator $$ 5+(\frac{1-t^2}{1+t^2})^2 = \frac{5(1+t^2)^2+(1-t^2)^2}{(1+t^2)^2} $$ Rewriting all: $$ \int \frac{2\,dt}{1+t^2} \frac{(1+t^2)^2}{5(1+t^2)^2+(1-t^2)^2} = \\ 2 \int \frac{(1+t^2)}{5(1+t^2)^2+(1-t^2)^2}dt $$ Now I am stuck, I can try to expand the denominator again, but then I cannot divide it for the numerator, something like this: $$ 2 \int \frac{1+t^2}{5(1+2t^2+t^4)+(1-2t^2+t^4)} \,dt = \\ 2 \int \frac{1+t^2}{5+10t^2+5t^4+1-2t^2+t^4} \,dt = \\ 2 \int \frac{1+t^2}{6t^4+8t^2+6} \,dt = \\ \int \frac{1+t^2}{3t^4+4t^2+3}\, dt $$
But now I really don't know how to move next...