The value of $\int_0^\pi |\cos x| \, dx$ equals _____.
Step-by-Step Solution
Key Concept: Split the interval at $x = \pi/2$ — where $\cos x$ changes sign — and integrate $\cos x$ on $[0, \pi/2]$ and $-\cos x$ on $[\pi/2, \pi]$ separately.
The detailed step-by-step mathematical proof is available inside the Mathbee app workspace.
Correct Answer: 2