We are doing definite integrals in university and I wanted to practice but this problem is giving me a hard time.
The problem is to evaluate the following integral:
$ \displaystyle \int_{0}^{2\pi} \frac{1}{5+4\cos(x)} dx$
For the antiderivative I got:
$\displaystyle\frac{2}{3}\tan^{-1}\left(\frac{\tan(\frac{x}{2})}{3}\right)$
Now the result should be $\frac{2\pi}{3}$, but all I get with splitting the integral is always $0$.
Can someone help me find the right way to do this calculation?
