By using the properties of definite integrals, evaluate the integrals in Exercises 1 to 19.
\(\int_{\frac{-\pi}{2}}^{\frac{\pi}{2}} \sin^2 x \, dx\)Show solutionHide solution
The integrand \(f(x)=\sin^2 x\) is an even function, because
\[f(-x)=\sin^2(-x)=(-\sin x)^2=\sin^2 x=f(x).\]For an even function,
\[\int_{-a}^{a} f(x)\,dx=2\int_0^a f(x)\,dx.\]Taking \(a=\frac{\pi}{2}\), we get
\[\int_{-\pi/2}^{\pi/2}\sin^2 x\,dx =2\int_0^{\pi/2}\sin^2 x\,dx.\]Now use the identity
\[\sin^2 x=\frac{1-\cos 2x}{2}.\]Thus
\[2\int_0^{\pi/2}\sin^2 x\,dx =2\int_0^{\pi/2}\frac{1-\cos 2x}{2}\,dx =\int_0^{\pi/2}(1-\cos 2x)\,dx.\]Integrating term by term,
\[\int_0^{\pi/2}(1-\cos 2x)\,dx =\left[x-\frac{\sin 2x}{2}\right]_0^{\pi/2}.\]Evaluate at the limits:
\[\left(\frac{\pi}{2}-\frac{\sin \pi}{2}\right)-\left(0-\frac{\sin 0}{2}\right) =\frac{\pi}{2}-0-0 =\frac{\pi}{2}.\]Therefore,
\[\boxed{\int_{-\pi/2}^{\pi/2}\sin^2 x\,dx=\frac{\pi}{2}}.\]