Evaluate the definite integrals in Exercises 1 to 20.
\(\int_{0}^{\frac{\pi}{2}} \cos^{2} x\, dx\)Show solutionHide solution
Use the standard double-angle identity
\[ \cos^2 x=\frac{1+\cos 2x}{2}. \]Therefore
\[ \int_0^{\pi/2}\cos^2 x\,dx = \int_0^{\pi/2}\frac{1+\cos 2x}{2}\,dx. \]Split the integral and integrate term by term:
\[ \int_0^{\pi/2}\frac{1}{2}\,dx + \int_0^{\pi/2}\frac{\cos 2x}{2}\,dx = \left[\frac{x}{2}\right]_0^{\pi/2} + \left[\frac{\sin 2x}{4}\right]_0^{\pi/2}. \]Now evaluate the boundary terms. The first part gives
\[ \frac{\pi/2}{2}-\frac{0}{2}=\frac{\pi}{4}. \]For the second part,
\[ \frac{\sin\pi}{4}-\frac{\sin 0}{4}=\frac{0}{4}-\frac{0}{4}=0. \]Hence
\[ \int_0^{\pi/2}\cos^2 x\,dx = \frac{\pi}{4}. \]