Search any question & find its solution
 Question:  
Answered & Verified by Expert
 
 $\int_{0}^{\pi / 2}|\sin x-\cos x| d x$ is equal to.
  Options:
            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.