Analyzing the Setup
When you encounter an integral with symmetric limits, such as from −2π to 2π, this is a massive, flashing neon sign in the world of JEE Advanced. Your first instinct should always be to hunt for symmetry.
Is the function even? Is it odd? Or is it a mix of both? This problem is a perfect case study in how to decompose a complex challenge into manageable, elegant pieces.
The Symmetry Trap
The Logarithmic Vanishing Act
Let us look at our integrand: f(x)=(x2+lnπ−xπ+x)cosx. We can distribute the cosx to split this into two distinct integrals:
I=∫−2π2πx2cosxdx+∫−2π2πln(π−xπ+x)cosxdx
Now, focus on the second term. Let g(x)=ln(π−xπ+x)cosx. To test for symmetry, we replace x with −x:
Since cos(−x)=cosx and π+xπ−x is the reciprocal of π−xπ+x, we can write this as:
g(−x)=ln((π−xπ+x)−1)cosx=−ln(π−xπ+x)cosx=−g(x)
We have proven that this entire logarithmic term is an odd function. Consequently, the integral of an odd function over symmetric limits vanishes. It is gone, leaving us with only the first part.
The Even Function and the IBP Dance
We are now left with I=∫−2π2πx2cosxdx. Let h(x)=x2cosx. Testing for symmetry, h(−x)=(−x)2cos(−x)=x2cosx=h(x).
This is an even function, which allows us to simplify the integral:
To solve this, we use Integration by Parts (IBP), where ∫udv=uv−∫vdu. We choose u=x2 and dv=cosxdx, which gives du=2xdx and v=sinx.
Applying the formula:
We must apply IBP again to the remaining integral ∫2xsinxdx. Choosing u=2x and dv=sinxdx, we get du=2dx and v=−cosx. The integral becomes:
2x(−cosx)−∫2(−cosx)dx=−2xcosx+2sinx
The Final Tally
Combining everything, our antiderivative is x2sinx+2xcosx−2sinx. We evaluate this from 0 to 2π and multiply by the 2 we pulled out earlier:
I=2[x2sinx+2xcosx−2sinx]02π
At the upper limit 2π:
(2π)2(1)+2(2π)(0)−2(1)=4π2−2
At the lower limit 0, the expression evaluates to 0. Multiplying by 2, we arrive at the final result: