Question
Mathematics Question on integral
∫−π/2π/2f(x)dx =?
Where f(x) = sin |x| + cos |x|, x ∈ (−2π,2π)
A
0
B
2
C
4
D
8
Answer
4
Explanation
Solution
We have f(x) = sin|x| + cos|x|
Then, f(x) =f(–x) Since, (f(x) is an even function.
I = ∫−π/2π/2sin∣x∣+cos∣x∣dx
I = 2 ∫0π/2sin∣x∣+cos∣x∣dx
I = 2[-cosx + sinx]π/20
I = 2[-cos 2π + sin 2π + cos 0 - sin 0]
I = 2[0 + 1 + 1–0]
I = 2x2
I = 4
Therefore, the correct option is (C) 4