Question

$$=\frac{1}{2}\int_{-\pi}^{\pi}(1-\cos\ 2n\ x)dx$$

Evaluate

$\frac{-\frac{\sin(2\pi ^{2})}{\pi }+2\pi }{2}\approx 3.017952624$