QlarIITy

MathematicsJEE Main 2021 · 17 MarchInteger

If [⋅][\cdot] represents the greatest integer function, then the value of ∣∫0π2[[x2]−cos⁡x]dx∣\left|\int_0^{\sqrt{\frac{\pi}{2}}}\left[[x^2] - \cos x\right]dx\right| is ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Nested greatest integer parts are resolved from the inside, stretch by stretch.

Concept refresher. For a real number uu and an integer nn,

[u+n]=[u]+n[u + n] = [u] + n

so an integer can be taken out of the greatest integer function.

Picture the situation. Since π2<2\dfrac{\pi}{2} < 2, [x2][x^2] is 0 on [0,1)[0, 1) and 1 on [1,π2]\left[1, \sqrt{\dfrac{\pi}{2}}\right]. On the first stretch the integrand is [−cos⁡x][-\cos x] and on the second it is 1+[−cos⁡x]1 + [-\cos x].

Approach. Evaluate the outer brackets on each stretch.

  1. Step 1: The first stretch

    For 0≤x<10 \leq x < 1, cos⁡x\cos x lies in (0,1](0, 1], so −cos⁡x-\cos x lies in [−1,0)[-1, 0) and [−cos⁡x]=−1[-\cos x] = -1.

  2. Step 2: The second stretch

    For 1≤x≤π21 \leq x \leq \sqrt{\dfrac{\pi}{2}}, cos⁡x\cos x still lies in (0,1)(0, 1), so [−cos⁡x]=−1[-\cos x] = -1 and the integrand is 1−1=01 - 1 = 0. The integral is therefore −1×1+0=−1-1 \times 1 + 0 = -1, and its modulus is 1.

Answer. 1

Sanity check. The upper limit π2\sqrt{\dfrac{\pi}{2}} is about 1.25, less than π2\dfrac{\pi}{2}, so the cosine is positive throughout, as used.

Common wrong answers

  • -1: Forgetting the modulus outside the integral gives −1-1.

Key takeaway

The trap. The greatest integer part of a difference is not the difference of the greatest integer parts.

How toppers think. They compare the upper limit with the square roots of the integers first.

Remember. [−cos⁡x]=−1[-\cos x] = -1 while 0<cos⁡x≤10 < \cos x \leq 1

More on Properties of Definite Integrals