I have to find the integral
$$\int_0^{2\pi} \dfrac{1}{3 + \cos x} dx$$
I tried using the Weierstrass subtitution, but replacing the bounds, I get:
$$t_1 = \tan \dfrac{0}{2} = \tan 0 = 0$$
$$t_2 = \tan \dfrac{2 \pi}{2} = \tan \pi = 0$$
Resulting in the integral:
$$\int_0^0 \dfrac{1}{3 + \dfrac{1 - t^2}{1 + t^2}} \cdot \dfrac{2}{1 + t^2} dt$$
which obviously equals $0$ since the bounds are the same. Is this correct? It feels wrong.