The value of the integral is
- A.
- B.
- C.
- D.
Show answer and solution
Correct option: B
Solution
Split the integrand: x²cosx + log((π-x)/(π+x))·cosx.
The second term: log((π-x)/(π+x)) is an odd function (replacing x with -x gives log((π+x)/(π-x)) = -log((π-x)/(π+x))), and cosx is even, so their product is odd. Its integral over [-π/2, π/2] = 0.
The first term x²cosx is even, so the integral = 2∫₀^(π/2) x²cosx dx.
Integrate by parts twice: ∫x²cosx dx = x²sinx - 2∫x sinx dx = x²sinx - 2(-x cosx + sinx) + C = x²sinx + 2x cosx - 2sinx + C.
Evaluate from 0 to π/2: [(π/2)²·1 + 2·(π/2)·0 - 2·1] - [0] = π²/4 - 2.
Multiply by 2: π²/2 - 4.
The second term: log((π-x)/(π+x)) is an odd function (replacing x with -x gives log((π+x)/(π-x)) = -log((π-x)/(π+x))), and cosx is even, so their product is odd. Its integral over [-π/2, π/2] = 0.
The first term x²cosx is even, so the integral = 2∫₀^(π/2) x²cosx dx.
Integrate by parts twice: ∫x²cosx dx = x²sinx - 2∫x sinx dx = x²sinx - 2(-x cosx + sinx) + C = x²sinx + 2x cosx - 2sinx + C.
Evaluate from 0 to π/2: [(π/2)²·1 + 2·(π/2)·0 - 2·1] - [0] = π²/4 - 2.
Multiply by 2: π²/2 - 4.
[AIEEE 2012]