So I have this integral question and it seems like it's primitive it's not so appealing.... so I'm thinking there should be another way to solve it.... but I seem to can't figure out how.
$\int_0^{2\pi}x\frac{\cos x}{2-\cos^2x}dx$
I entered it on wolframalpha and it seemed like it's answer is 0. So I'm thinking this shouldn't be a coincidence and there must be a smart way to solve this.
Do the substitution $u = 2\pi - x$ to see that $$\int_0^{2\pi}x\frac{\cos x}{2-\cos^2x}dx = \int_0^{2\pi} (2\pi - u) \frac{\cos u}{2-\cos^2u}du = \int_0^{2\pi} (2\pi - x) \frac{\cos x}{2-\cos^2x}dx.$$ Take the average of both sides to see that $$\int_0^{2\pi}x\frac{\cos x}{2-\cos^2x}dx = \pi \int_0^{2\pi} \frac{\cos x}{2-\cos^2x}dx.$$ \begin{align} \int_0^{2\pi}x\frac{\cos x}{2-\cos^2x}dx &= \pi \int_0^{2\pi} \frac{\cos x}{2-\cos^2x}dx \\ &= \pi \int_0^{2\pi} \frac{d(\sin x)}{1+\sin^2x} \\ &= \pi \left[\arctan(\sin x)\right]_0^{2\pi} \\ &= \pi [\arctan(2\pi) - \arctan(0)] \\ &= 0 \end{align}