Solution:
Key idea: For −1≤y≤1, sin−1y+cos−1y=2π, so cos−1(sinx)=2π−sin−1(sinx), and sin−1(sinx)=x holds when x lies in the principal range −2π≤x≤2π. C is the constant of integration.
Step 1 — Change cos−1 into sin−1.
We use the identity with y=sinx, which always lies between −1 and 1.
cos−1(sinx)=2π−sin−1(sinx)
Step 2 — Remove the inverse function.
For −2π≤x≤2π the inverse undoes the sine.
sin−1(sinx)=x
cos−1(sinx)=2π−x
Step 3 — Integrate.
The first term is a constant and the second uses the power rule.
∫(2π−x)dx=2πx−2x2+C
Note: For 2π≤x≤23π, cos−1(sinx)=x−2π, and the integral there is 2x2−2πx+C.
Therefore, ∫cos−1(sinx)dx=2πx−2x2+C for −2π≤x≤2π.