Answer: A
We need to evaluate the definite integral:
I=∫0πx2cosxdx
We can solve this using integration by parts, or more quickly using the tabular integration (DI method):
| Sign |
Differentiate (u) |
Integrate (dv) |
| + |
x2 |
cosx |
| − |
2x |
sinx |
| + |
2 |
−cosx |
| − |
0 |
−sinx |
Multiplying along the diagonals, we get the antiderivative:
∫x2cosxdx=x2sinx+2xcosx−2sinx
Now, applying the limits from 0 to π:
I=[x2sinx+2xcosx−2sinx]0π
Evaluating at the upper limit x=π:
π2sinπ+2πcosπ−2sinπ=0+2π(−1)−0=−2π
Evaluating at the lower limit x=0:
02sin0+2(0)cos0−2sin0=0
Subtracting the lower limit value from the upper limit value:
I=−2π−0=−2π
Therefore, the correct option is A.