Skip to main contentSkip to solution

The value of π2π2(sinx+cosx)dx\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}} (\sin|x| + \cos|x|) dx is

Solution

Correct Option: 3

The integral to evaluate is π2π2(sinx+cosx)dx\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}} (\sin|x| + \cos|x|) dx

Since x|x| changes at x=0x = 0, the integral splits into two parts:

For π2x<0-\frac{\pi}{2} \leq x < 0: x=x|x| = -x

For 0xπ20 \leq x \leq \frac{\pi}{2}: x=x|x| = x

The integral becomes:

π20(sin(x)+cos(x))dx+0π2(sinx+cosx)dx\int_{-\frac{\pi}{2}}^{0} (\sin(-x) + \cos(-x)) dx + \int_{0}^{\frac{\pi}{2}} (\sin x + \cos x) dx


Using the properties sin(x)=sin(x)\sin(-x) = -\sin(x) and cos(x)=cos(x)\cos(-x) = \cos(x):

π20(sinx+cosx)dx+0π2(sinx+cosx)dx\int_{-\frac{\pi}{2}}^{0} (-\sin x + \cos x) dx + \int_{0}^{\frac{\pi}{2}} (\sin x + \cos x) dx


For the first integral:

π20(sinx+cosx)dx=[cosx+sinx]π20\int_{-\frac{\pi}{2}}^{0} (-\sin x + \cos x) dx = [\cos x + \sin x]_{-\frac{\pi}{2}}^{0}

At x=0x = 0: cos(0)+sin(0)=1+0=1\cos(0) + \sin(0) = 1 + 0 = 1

At x=π2x = -\frac{\pi}{2}: cos(π2)+sin(π2)=0+(1)=1\cos(-\frac{\pi}{2}) + \sin(-\frac{\pi}{2}) = 0 + (-1) = -1

Result: 1(1)=21 - (-1) = 2


For the second integral:

0π2(sinx+cosx)dx=[cosx+sinx]0π2\int_{0}^{\frac{\pi}{2}} (\sin x + \cos x) dx = [-\cos x + \sin x]_{0}^{\frac{\pi}{2}}

At x=π2x = \frac{\pi}{2}: cos(π2)+sin(π2)=0+1=1-\cos(\frac{\pi}{2}) + \sin(\frac{\pi}{2}) = 0 + 1 = 1

At x=0x = 0: cos(0)+sin(0)=1+0=1-\cos(0) + \sin(0) = -1 + 0 = -1

Result: 1(1)=21 - (-1) = 2


Total value:

2+2=42 + 2 = 4

Therefore, the value of the integral is 44.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question