Problem
Evaluate $$\int_0^{2\pi}(t-\sin t)(1-\cos t)^2{\rm d}t.$$
Comment
It's very complicated to compute the integral applying normal method. I obtain the result resorting to the skillful formula
$$\int_0^{2\pi}xf(\cos x){\rm d}x=\pi\int_0^{2\pi}f(\sin x){\rm d}x,$$ where $f(x) \in C[-1,1].$
\begin{align*} \require{begingroup} \begingroup \newcommand{\dd}{\;{\rm d}}\int_0^{2\pi} (t-\sin t)(1-\cos t)^2 \dd t &= \int_0^{2\pi} t(1-\cos t)^2 \dd t - \int_0^{2\pi} \sin t(1-\cos t)^2 \dd t \\ &= \pi\int_0^{2\pi} (1-\sin t)^2 \dd t - \int_0^{2\pi} (1-\cos t)^2 \dd (1-\cos t) \\ &= \pi\int_0^{2\pi} \left(\frac32-\frac12\cos2t-2\sin t\right) \dd t - \left[\frac13(1-\cos t)^3\right]_0^{2\pi}\\ &= \pi\left[\frac32t-\frac14\sin2t+2\cos t\right]_0^{2\pi}\\ &= 3\pi^2 \endgroup \end{align*}
But any other solution?
With substitution $t=\pi+x$ we see that $$I=\int_0^{2\pi}(t-\sin t)(1-\cos t)^2{\rm d}t=\int_{-\pi}^{\pi}(\pi+x+\sin x)(1+\cos x)^2{\rm d}x.$$ the part $(x+\sin x)(1+\cos x)^2$ is an odd function so it's integral over $[-\pi,\pi]$ is zero, then $$I=\pi\int_{-\pi}^{\pi}(1+\cos x)^2{\rm d}x=\pi\int_{-\pi}^{\pi}\dfrac32+2\cos x+\dfrac12\cos2x{\rm d}x=\color{blue}{3\pi^2}$$