Parametrization. Let z=eiθ, θ∈[0,2π].
Trigonometric. cos2θ=21+cos2θ, so
∫02πcos2θdθ=∫02π21+cos2θdθ=21⋅2π+21∫02πcos2θdθ=π+0=π.
Complex approach. cosθ=(z+z−1)/2 with z=eiθ, dθ=dz/(iz). Then
∫02πcos2θdθ=∮∣z∣=14(z+z−1)2⋅izdz.
The integral evaluates to π by the residue theorem.
Conclusion. ∫02πcos2θdθ=π.