How can I find the definite integral of this trigonometric function?
$$\int_{0}^{2\pi}\cos ^2(x)\sin(x) \ dx$$
Currently my thought process is this:
$$ u = \cos x $$
$$du = -\sin x \ dx $$
$$\int_{0}^{2\pi}-u^2 \ du$$
$$-1\int_{0}^{2\pi}u^2 \ du$$
$$\left.-\frac{u^3}{3}\right\rvert_0^{2\pi} = -([\frac{\cos ^3(2\pi)}{3}] - [\frac{\cos ^3(0)}{3}])$$
$$=-(\frac{1}{3} - \frac{1}{3}) = -(0) = 0$$
Is this correct? Lecturer was rushing through integration quite quickly and my understanding isn't that great. (past exam so I don't have the answers)