So I am looking at the integral $$ \int_0^{2\pi} \frac{1}{a + \cos\theta} \mathrm{d} \theta$$ for $a > 1$. Evaluating the integral with complex analysis gives us $\frac{2 \pi}{\sqrt{a^2 - 1}} $ but I have failed to reproduce the result using standard substitution.
Here’s what I did: I found the antiderivative first, which is $$\frac{2}{\sqrt{a^2 - 1}} \arctan \left(\sqrt{\frac{a - 1}{a + 1}} \tan\left(\frac{\theta}{2}\right) \right)$$ but substituting in the bounds would give us 0.
I used the standard substitution $t = \tan\left(\frac{\theta}{2}\right) $ to obtain the following result.
EDIT: Plotting the graph shows us that the area is definitely positive, so there’s no way the answer is $0$.
EDIT2: Is it because $2\pi$ corresponds to the second “cycle” so we should $\arctan 0$ to be $\pi$ for our upper bound instead?
\leftand\rightbefore parentheses and brackets automatically makes them the same size as whatever's inside them. – Robert Howard Oct 20 '18 at 04:48