Analyzing the Setup
My dear student, welcome to a problem that looks like a monster but behaves like a lamb. When you first encounter the integral
In=∫−ππ(1+πx)sinxsinnxdx
it is natural to feel a shiver of intimidation. The limits are symmetric, from −π to π, and that (1+πx) term in the denominator seems designed to ruin your day.
But in the world of JEE Advanced, whenever you see symmetric limits, you are being given a massive hint. The King's Property is your best friend here.
The King's Property
A Mirror Image
The King's Property states that
∫abf(x)dx=∫abf(a+b−x)dx
In our case, a=−π and b=π, so a+b=0. This means we can replace x with −x without changing the value of the integral.
Let's see what happens when we do that:
In=∫−ππ(1+π−x)sin(−x)sinn(−x)dx
Since sin(−θ)=−sinθ, the negative signs in the numerator and denominator cancel out. We are left with:
In=∫−ππ(1+πx1)sinxsinnxdx
If you multiply the numerator and denominator by πx, the denominator becomes (1+πx), and the integral transforms into:
In=∫−ππ(1+πx)sinxπxsinnxdx
The Magic of Addition
Now, here is where the magic happens. We have two expressions for In. Let's add them together:
2In=∫−ππ(1+πx)sinxsinnx+πxsinnxdx
Factor out the sinnx in the numerator:
2In=∫−ππ(1+πx)sinx(1+πx)sinnxdx
The (1+πx) terms cancel out perfectly! We are left with:
Since the integrand sinxsinnx is an even function, we can simplify this to:
The Recurrence Relation
Now we need to find the relationship between In and In+2. Let's look at the difference:
In+2−In=∫0πsinxsin(n+2)x−sinnxdx
Using the trigonometric identity sinC−sinD=2cos(2C+D)sin(2C−D), the numerator becomes 2cos(n+1)xsinx. The sinx terms cancel, leaving us with:
In+2−In=2∫0πcos(n+1)xdx
Integrating this, we get:
Since sin(n+1)π=0 and sin0=0, the entire expression evaluates to zero. Thus, In=In+2.
This is a profound result! It tells us that all even-indexed integrals are equal to I0=0, and all odd-indexed integrals are equal to I1=π. You have just conquered a complex-looking problem by simply observing the symmetry.