Find the integrals of the functions in Exercises 1 to 22:
\(\int \sin^{-1}(\cos x)\,dx\)Show solutionHide solution
Write \(\operatorname{Arcsin}\) for the principal value of \(\sin^{-1}\), whose range is \([-\frac{\pi}{2},\frac{\pi}{2}]\). Since the integrand is \(2\pi\)-periodic, for every real \(x\) choose \(k=\left\lfloor\frac{x}{2\pi}\right\rfloor\) and \(u=x-2k\pi\), so \(0\le u<2\pi\).
For \(0\le u\le\pi\), we have \(\frac{\pi}{2}-u\in[-\frac{\pi}{2},\frac{\pi}{2}]\) and \(\sin(\frac{\pi}{2}-u)=\cos u=\cos x\), hence \(\sin^{-1}(\cos x)=\frac{\pi}{2}-u\). For \(\pi\le u<2\pi\), we have \(u-\frac{3\pi}{2}\in[-\frac{\pi}{2},\frac{\pi}{2})\) and \(\sin(u-\frac{3\pi}{2})=\cos u=\cos x\), hence \(\sin^{-1}(\cos x)=u-\frac{3\pi}{2}\). Therefore
\[\sin^{-1}(\cos x)=\begin{cases}\frac{\pi}{2}-u, & 0\le u\le\pi,\\ u-\frac{3\pi}{2}, & \pi\le u<2\pi.\end{cases}\]Integrating from \(0\) to \(u\) in the first interval gives \[\int_0^u\left(\frac{\pi}{2}-s\right)ds=\frac{\pi u}{2}-\frac{u^2}{2}.\] At \(u=\pi\) this is \(0\). In the second interval, integrate from \(\pi\) to \(u\): \[\int_\pi^u\left(s-\frac{3\pi}{2}\right)ds=\frac{u^2}{2}-\frac{3\pi u}{2}+\pi^2.\] Thus an antiderivative valid for all real \(x\) is
\[\int \sin^{-1}(\cos x)\,dx=\begin{cases}\frac{\pi u}{2}-\frac{u^2}{2}+C, & 0\le u\le\pi,\\ \frac{u^2}{2}-\frac{3\pi u}{2}+\pi^2+C, & \pi\le u<2\pi,\end{cases}\quad u=x-2k\pi,\quad k=\left\lfloor\frac{x}{2\pi}\right\rfloor.\]The two pieces agree at \(u=\pi\), so the antiderivative is continuous there. Differentiating gives back \(\frac{\pi}{2}-u\) and \(u-\frac{3\pi}{2}\), respectively. On the common textbook interval \(0\le x\le\pi\), this reduces to \[\int \sin^{-1}(\cos x)\,dx=\frac{\pi x}{2}-\frac{x^2}{2}+C.\]