Key idea: Split the interval where the curves cross and always integrate the upper curve minus the lower one.
- sinx=cosx on [0,23π] at x=4π and 45π.
- ∫0π/4(cosx−sinx)dx=[sinx+cosx]0π/4=2−1.
- ∫π/45π/4(sinx−cosx)dx=[−cosx−sinx]π/45π/4=2−(−2)=22.
- ∫5π/43π/2(cosx−sinx)dx=[sinx+cosx]5π/43π/2=−1−(−2)=2−1.
- Total =(2−1)+22+(2−1)=42−2.
Answer: (D) 42−2