Possible Duplicate:
How do you integrate $\int \frac{1}{a + \cos x} dx$?
I have come across this integral and I tried various methods of solving. The thing that gets in the way is the constant $2$ on the $\cos(x)$ term. I tried the conjugate (works without the 2
$\cos x$), Weierstrass Substitution (not sure if I was applying it correctly), and others. Is there a way to solve this integral elegantly or some unknown (sneaky) trick when you come across families of similar integrals as this one?:
$$ \int \! \frac{dx}{1+2\cos x} $$