QlarIITy

MathematicsJEE Main 2022 · 27 JulySingle correct

Let f:R→Rf : \mathbb{R} \to \mathbb{R} be a function defined as f(x)=asin⁡(π[x]2)+[2−x],a∈Rf(x) = a\sin\left(\frac{\pi[x]}{2}\right) + [2 - x], a \in \mathbb{R}, where [t][t] is the greatest integer less than or equal to tt. If lim⁡x→−1f(x)\lim_{x \to -1}f(x) exists, then the value of ∫04f(x)dx\int_0^4 f(x)dx is equal to

  1. Option A: −1
  2. Option B: −2
  3. Option C: 1
  4. Option D: 2
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A function built from greatest integers is constant between consecutive integers, so its integral is a sum of rectangles.

Concept refresher. A limit at a point exists exactly when the left-hand and right-hand limits are equal:

lim⁡x→c−f(x)=lim⁡x→c+f(x)\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x)

Picture the situation. Just left of −1-1, [x]=−2[x] = -2 and 2−x2 - x is slightly above 3, so [2−x]=3[2 - x] = 3. Just right of −1-1, [x]=−1[x] = -1 and 2−x2 - x is slightly below 3, so [2−x]=2[2 - x] = 2. Between consecutive integers both greatest integers are constant, so the function is a step function.

Graph of the step function from 0 to 4: a horizontal segment at height 1 over the interval from 0 to 1 and a horizontal segment at height −1 over the interval from 1 to 4, with open circles at the integer points. The shaded region above the axis is marked +1 and the shaded region below it is marked −3.

Approach. Equate the one-sided limits to find the constant, then add the values of the step function over the four unit intervals.

  1. Step 1: The constant

    The left-hand value is asin⁡(−π)+3=3a\sin(-\pi) + 3 = 3 and the right-hand value is asin⁡(−π2)+2=2−aa\sin\left(-\dfrac{\pi}{2}\right) + 2 = 2 - a. The limit exists, so 2−a=32 - a = 3 and a=−1a = -1.

  2. Step 2: The step values

    On the intervals (0,1)(0, 1), (1,2)(1, 2), (2,3)(2, 3) and (3,4)(3, 4) the term −sin⁡π[x]2-\sin\dfrac{\pi[x]}{2} is 00, −1-1, 00 and 11, and [2−x][2 - x] is 11, 00, −1-1 and −2-2. So the function is 11, −1-1, −1-1 and −1-1 on them.

  3. Step 3: The integral

    Each of the four intervals has length 1, so the integral is the sum of these values, 1−1−1−1=−21 - 1 - 1 - 1 = -2.

Answer. (B) −2

Sanity check. The function is positive on one unit interval and negative on three, each time with size 1, so a total of −2-2 agrees with the drawing.

Smart method. The sine term is aa times 00, 11, 00, −1-1 on the four unit intervals, so it integrates to 0 for every aa. The integral is therefore that of [2−x][2 - x] alone, 1+0−1−2=−21 + 0 - 1 - 2 = -2, and the constant is not needed.

Why the other options are wrong

  • (A) The value −1-1 is what the function equals on each of the last three intervals; the integral adds all four intervals.
  • (C) The value 1 is the integral over the first unit interval alone, before the three negative pieces are added.
  • (D) Reading [2−x][2 - x] at the left end of each interval gives 22, 11, 00, −1-1 and the total 2; inside the intervals it is one less.

Key takeaway

The trap. When the argument decreases, a greatest integer inside an interval is one less than at the left end.

How toppers think. They notice that the sine term cancels over a full cycle of four intervals.

Remember. 1−1−1−1=−21 - 1 - 1 - 1 = -2

More on Algebraic & Standard Limits