Question:

The area under the curve \(y=|\cos x-\sin x|,\ 0\le x\le\frac{\pi}{2}\), and above \(x\)-axis is :

Show Hint

Split the interval at \(x=\pi/4\), where \(\cos x=\sin x\).
Updated On: Oct 31, 2026
  • \(2\sqrt{2}\)
  • \(2\sqrt{2}-2\)
  • \(2\sqrt{2}+2\)
  • 0
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

\(\cos x-\sin x\ge0\) for \(0\le x\le\pi/4\) and \(\lt 0\) for \(\pi/4\lt x\le\pi/2\).
Area \(=\displaystyle\int_0^{\pi/4}(\cos x-\sin x)\,dx+\int_{\pi/4}^{\pi/2}(\sin x-\cos x)\,dx\).
First part: \([\sin x+\cos x]_0^{\pi/4}=\sqrt2-1\).
Second part: \([-\cos x-\sin x]_{\pi/4}^{\pi/2}=(-1)-(-\sqrt2)=\sqrt2-1\).
Total \(=2\sqrt2-2\).
Answer: (2) \(2\sqrt{2}-2\)
Was this answer helpful?
0
0