The value of the integral \(\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}\displaystyle\cos^2x\,dx\) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\displaystyle\frac{\pi}{2}\)
Using the identity \(\cos^2x = \frac{1+\cos 2x}{2}\):
\( \displaystyle \int_{-\pi/2}^{\pi/2}\cos^2x\,dx = \int_{-\pi/2}^{\pi/2}\frac{1+\cos 2x}{2}\,dx \)
\( \displaystyle = \left[\frac{x}{2} + \frac{\sin 2x}{4}\right]_{-\pi/2}^{\pi/2} \)
Since \(\sin\pi = \sin(-\pi) = 0\), only the x/2 term remains:
\( \displaystyle = \frac{\pi}{4} - \left(-\frac{\pi}{4}\right) = \frac{\pi}{2} \)