Question:

\(\int_\limits0^{\frac{\pi}{2}}|\sin x-\cos x| d x\) has the value

Show Hint

Split the interval at the point where sin x equals cos x.
Updated On: Nov 16, 2026
  • \(2\sqrt{2}+1\)
  • \(2(\sqrt{2}+1)\)
  • \(2(\sqrt{2}-1)\)
  • \(2\sqrt{2}-1\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the Concept
The expression \(\sin x - \cos x\) changes sign at \(x=\frac{\pi}{4}\). For \(x\lt \frac{\pi}{4}\) it is negative and for \(x\gt \frac{\pi}{4}\) it is positive.

Step 2: Split the integral
\(I = \int_0^{\pi/4}(\cos x - \sin x)\,dx + \int_{\pi/4}^{\pi/2}(\sin x - \cos x)\,dx\)

Step 3: Integrate
\(\int_0^{\pi/4}(\cos x-\sin x)dx = [\sin x+\cos x]_0^{\pi/4} = \sqrt{2}-1\)
\(\int_{\pi/4}^{\pi/2}(\sin x-\cos x)dx = [-\cos x-\sin x]_{\pi/4}^{\pi/2} = -1+\sqrt{2}\)

Step 4: Add
\(I = 2(\sqrt{2}-1)\), option (C).

Final Answer:
The value of the integral is two times root 2 minus 1. \[ \boxed{\text{(C) }2(\sqrt{2}-1)} \]
Was this answer helpful?
0
0