QlarIITy

MathematicsJEE Main 2021 · 20 JulySingle correct

Let a function f:R→Rf : R \to R be defined as,f(x)={sin⁡x−ex,if x≤0a+[−x],if 0<x<12x−b,if x≥1f(x) = \begin{cases} \sin x - e^x, & \text{if } x \leq 0 \\ a + [-x], & \text{if } 0 < x < 1 \\ 2x - b, & \text{if } x \geq 1 \end{cases}Where [x][x] is the greatest integer less than or equal to xx. If ff is continuous on RR, then (a+b)(a + b) is equal to:

  1. Option A: 4
  2. Option B: 3
  3. Option C: 2
  4. Option D: 5
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 greatest integer is constant between consecutive integers, so the piece containing it simplifies.

Concept refresher. The greatest integer [x][x] is the integer nn with

n≤x<n+1n \leq x < n + 1

so [x]≤n[x] \leq n means x<n+1x < n + 1 and [x]≥n[x] \geq n means x≥nx \geq n.

Picture the situation. For 0<x<10 < x < 1, −1<−x<0-1 < -x < 0, so [−x]=−1[-x] = -1 and the middle piece is the constant a−1a - 1. The first piece gives f(0)=sin⁡0−e0=−1f(0) = \sin 0 - e^0 = -1 and the last piece gives f(1)=2−bf(1) = 2 - b.

Approach. Match the middle constant with the values at the two joins.

  1. Step 1: The join at 0

    Continuity at 0 needs the middle constant to equal f(0)f(0), so a−1=−1a - 1 = -1 and a=0a = 0.

  2. Step 2: The join at 1

    Continuity at 1 needs the middle constant to equal f(1)f(1), so −1=2−b-1 = 2 - b and b=3b = 3. Hence a+b=3a + b = 3.

Answer. (B) 3

Sanity check. With a=0a = 0 and b=3b = 3 the function is −1-1 on the whole of [0,1][0, 1], joining sin⁡x−ex\sin x - e^x at 0 and 2x−32x - 3 at 1.

Smart method. The join at 1 alone gives a−1=2−ba - 1 = 2 - b, that is a+b=3a + b = 3. The join at 0 fixes aa but is not needed for the sum.

Why the other options are wrong

  • (A) The value 4 would need [−x][-x] to be −2-2 on the middle interval; it is −1-1.
  • (C) Taking [−x][-x] as 0 on the middle interval gives a=2−ba = 2 - b at the join at 1, and the value 2.
  • (D) The value 5 would need [−x][-x] to be −3-3 on the middle interval, which is not the case for 0<x<10 < x < 1.

Key takeaway

The trap. The greatest integer of a number between minus 1 and 0 is minus 1.

How toppers think. They notice that the join at 1 alone already gives the required sum.

Remember. a−1=2−ba - 1 = 2 - b

More on Continuity