Quick question, might end up having a simple answer, but I have here a "proof" that any integral from 0 to $2\pi$ is zero, as follows:
$$\int^{2\pi}_0f(x)dx$$
Now using u-substitution, let $u = \sin x$, so $dx = \frac{du}{\cos x}$, so:
$$\int^{0}_{0}\frac{f(x)du}{\cos x}$$
(The bounds were evaluated to zero due to the u-substituion).
However, this is zero, since the integral goes from zero to zero.
Any help as to why this is wrong would be appreciated.
the $\sin$ function is not injective on $[0 ; 2\pi]$ so you may not be able to do such a substitution. Since you cannot readily give an inverse, you may have some difficulty expressing everything in terms of $u$.
In your case, the $\cos(x)$ term that appears from the change of variable cannot be expressed only in terms of $u = \sin(x)$, so the thing you are integrating "from $0$ to $0$" is not even a function of $u$ :
$\cos(x)$ is either $+\sqrt{1-u^2}$ or $-\sqrt{1-u^2}$ where the sign depends on $x$ (and not on $u$), and so $\sin(x)dx$ is not of the form $f(\sin(x))\cos(x)dx$ for any function $f$.
To resolve this you can split the integral in three parts (splitting the interval at $\pi/2$ and $3\pi/2$) and do $3$ separate substitutions and you will obtain something true but mostly useless.
Thanks to the user @m_t_ for pointing out that in case this doesn't happen, the substitution rule is applicable.