Solution:
Key idea: First simplify cos−1(sinx) with inverse-trigonometric identities. We use cos−1y+sin−1y=2π and sin−1(sinx)=x, which holds for −2π≤x≤2π (the principal-value range). The integrand then becomes a simple polynomial in x.
Step 1 — Rewrite the inverse cosine.
We use the identity cos−1y=2π−sin−1y, and we put y=sinx in it.
cos−1(sinx)=2π−sin−1(sinx)
Step 2 — Simplify for the principal range.
For −2π≤x≤2π, we have sin−1(sinx)=x.
cos−1(sinx)=2π−x
Step 3 — Integrate term by term.
The integral of the constant 2π is 2πx, and the integral of x is 2x2.
I=∫(2π−x)dx
I=2πx−2x2+C
Note: Outside this interval sin−1(sinx) is no longer x. For example, for 2π≤x≤23π we have sin−1(sinx)=π−x, so the integrand becomes x−2π and the antiderivative there is 2x2−2πx+C. The answer below is for the principal interval, the form the question expects.
Therefore, for −2π≤x≤2π, ∫cos−1(sinx)dx=2πx−2x2+C.