Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
$\int_{0}^{\pi / 2}|\sin x-\cos x| d x$ is equal to.
MathematicsDefinite IntegrationNDANDA 2019 (Phase 1)
Options:
  • A 0
  • B $2(\sqrt{2}-1)$
  • C $2 \sqrt{2}$
  • D $2(\sqrt{2}+1)$
Solution:
2280 Upvotes Verified Answer
The correct answer is: $2(\sqrt{2}-1)$
$\begin{aligned} & \int_{0}^{\pi / 2}|\sin x-\cos x| d x \\ &=\int_{0}^{\pi / 4}(\sin x-\cos x) \cdot d x+\int_{\pi / 4}^{\pi / 2}(\sin x-\cos x) d x \\ &=\int_{0}^{\pi / 4}(\cos x-\sin x) \cdot d x+\int_{\pi / 4}^{\pi / 2}(\sin x-\cos x) \cdot d x \\ &=(\sin x+\cos x)_{0}^{\pi / 4}+(-\cos x-\sin x)_{\pi / 4}^{\pi / 2} \\ &=2 \sqrt{2}-2=2(\sqrt{2}-1) \end{aligned}$

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.