The Staircase of Calculus
Unlocking the Greatest Integer Function
Imagine you are standing at the base of a staircase. Each step is a flat, horizontal surface, but to get from one to the next, you must make a distinct, vertical jump.
This is exactly how the Greatest Integer Function, [x], behaves. It is the most common "trap" in JEE Advanced problems because it forces you to stop thinking about smooth, continuous curves and start thinking about discrete, piecewise behavior.
Today, we are going to dismantle this problem,
π2∫02(sin2πx)(x−[x])[x]dx
, piece by piece.
Phase 1
The Anatomy of the Split
The first thing you must do when you see [x] in an integral is to identify the "jump points." Since our limits of integration are from 0 to 2, the only integer between them is 1.
This means the function behaves differently on [0,1) than it does on [1,2). We must split the integral:
I=π2[∫01f(x)dx+∫12f(x)dx]
If you try to integrate this without splitting, you are essentially trying to walk up a staircase by treating it like a ramp—you will trip. By splitting, we respect the mathematical reality of the function.
Phase 2
The First Interval - The Easy Win
Let's look at the first interval, x∈[0,1). Here, the greatest integer less than or equal to x is always 0.
So, our term (x−[x])[x] becomes (x−0)0. As long as x is not exactly 0, this is 1.
The integral simplifies to:
The anti-derivative of sin(2πx) is −π2cos(2πx). Evaluating this from 0 to 1 gives us:
−π2(cos(2π)−cos(0))=−π2(0−1)=π2
Phase 3
The Second Interval - The Substitution Trick
Now, for the interval x∈[1,2), the greatest integer is 1. Our expression becomes (x−1)1, which is simply (x−1).
The integral is:
Let t=x−1. Then dx=dt. When x=1, t=0; when x=2, t=1. The integral becomes:
Using the trigonometric identity sin(θ+2π)=cos(θ), the integrand transforms into tcos(2πt).
Phase 4
Integration by Parts - The Heavy Lifting
We are left with ∫01tcos(2πt)dt. We use the formula ∫udv=uv−∫vdu.
Following the ILATE rule, we set u=t and dv=cos(2πt)dt. Then du=dt and v=π2sin(2πt).
Applying the formula:
[t⋅π2sin(2πt)]01−∫01π2sin(2πt)dt
The first part evaluates to π2. The second part, after integrating, becomes:
[π24cos(2πt)]01=π24(0−1)=−π24
Subtracting this from the first part, we get I2=π2−π24.
The Final Synthesis
We have I1=π2 and I2=π2−π24. Adding them together, the total integral inside the brackets is:
Finally, we multiply by the constant π2 that was waiting outside the integral from the very beginning:
The final answer is 4(π−1).