I saw somewhere on Math Stack that there was a way of finding integrals in the form $$\int \frac{dx}{a+b \cos x}$$ without using Weierstrass substitution, which is the usual technique.
When $a,b=1$ we can just multiply the numerator and denominator by $1-\cos x$ and that solves the problem nicely.
But I remember that the technique I saw was a nice way of evaluating these even when $a,b\neq 1$.
One usual trick is the substitution $x=2y$. Note that $$\frac{1}{a+b\cos(2y)}=\frac{1}{a+b(2\cos^2(y)-1)}=\frac{\sec^2(y)}{2b+(a-b)\sec^2(y)}=\frac{\sec^2(y)}{(a+b)+(a-b)\tan^2(y)}.$$ Hence $$\int \frac{dx}{a+b\cos(x)}=\int \frac{\sec^2(y)}{(a+b)+(a-b)\tan^2(y)} \, dy.$$ Now conclude with the substitution $t=\tan(y).$