Maths WorkshopMaths problems with full solutions
Exercise 2107Algebra › Complex numbersOlympiadAdded 3 Nov 2026

Integrating over the unit circle

#unit circle#parametrization#integration

Statement

Using a parametrization of the unit circle by complex numbers, compute
∫02πcos⁡2θ dθ.\int_0^{2\pi}\cos^2\theta\,d\theta.

Hint

cos⁡θ=(eiθ+e−iθ)/2\cos\theta=(e^{i\theta}+e^{-i\theta})/2, or parametrize by z=eiθz=e^{i\theta}.

Show solutionHide solution

Solution

Parametrization. Let z=eiθz=e^{i\theta}, θ∈[0,2π]\theta\in[0,2\pi].

Trigonometric. cos⁡2θ=1+cos⁡2θ2\cos^2\theta=\frac{1+\cos2\theta}{2}, so
∫02πcos⁡2θ dθ=∫02π1+cos⁡2θ2 dθ=12⋅2π+12∫02πcos⁡2θ dθ=π+0=π.\int_0^{2\pi}\cos^2\theta\,d\theta=\int_0^{2\pi}\frac{1+\cos2\theta}{2}\,d\theta=\frac{1}{2}\cdot2\pi+\frac12\int_0^{2\pi}\cos2\theta\,d\theta=\pi+0=\pi.

Complex approach. cos⁡θ=(z+z−1)/2\cos\theta=(z+z^{-1})/2 with z=eiθz=e^{i\theta}, dθ=dz/(iz)d\theta=dz/(iz). Then
∫02πcos⁡2θ dθ=∮∣z∣=1(z+z−1)24⋅dziz.\int_0^{2\pi}\cos^2\theta\,d\theta=\oint_{|z|=1}\frac{(z+z^{-1})^2}{4}\cdot\frac{dz}{iz}.
The integral evaluates to π\pi by the residue theorem.

Conclusion. ∫02πcos⁡2θ dθ=π\int_0^{2\pi}\cos^2\theta\,d\theta=\pi.