The integral to evaluate is ∫−2π2π(sin∣x∣+cos∣x∣)dx
Since ∣x∣ changes at x=0, the integral splits into two parts:
For −2π≤x<0: ∣x∣=−x
For 0≤x≤2π: ∣x∣=x
The integral becomes:
∫−2π0(sin(−x)+cos(−x))dx+∫02π(sinx+cosx)dx
Using the properties sin(−x)=−sin(x) and cos(−x)=cos(x):
∫−2π0(−sinx+cosx)dx+∫02π(sinx+cosx)dx
For the first integral:
∫−2π0(−sinx+cosx)dx=[cosx+sinx]−2π0
At x=0: cos(0)+sin(0)=1+0=1
At x=−2π: cos(−2π)+sin(−2π)=0+(−1)=−1
Result: 1−(−1)=2
For the second integral:
∫02π(sinx+cosx)dx=[−cosx+sinx]02π
At x=2π: −cos(2π)+sin(2π)=0+1=1
At x=0: −cos(0)+sin(0)=−1+0=−1
Result: 1−(−1)=2
Total value:
2+2=4
Therefore, the value of the integral is 4.