(f, \cos x) = 2 \int_{-\pi}^{\pi} \sin x \cos^2 x \;\mathrm{d}x = 2 (-\frac{1}{3} \cos^3 x) \;\big|_{-\pi}^{\pi}