\[\int_{0}^{\pi}{\sin}^{2}\left(nt\right)\,\mathrm{d}t=\int_{0}^{\pi}{\cos}^{2}%
\left(nt\right)\,\mathrm{d}t=\tfrac{1}{2}\pi,\]