QlarIITy

MathematicsJEE Main 2021 · 16 MarchInteger

Let f:R→Rf : R \to R and g:R→Rg : R \to R be defined asf(x)={x+a,x<0∣x−1∣,x≥0f(x) = \begin{cases} x + a, & x < 0 \\ |x - 1|, & x \geq 0 \end{cases}and g(x)={x+1,x<0(x−1)2+b,x≥0g(x) = \begin{cases} x + 1, & x < 0 \\ (x - 1)^2 + b, & x \geq 0 \end{cases}, where a,ba, b are non-negative real numbers. If g∘f(x)g \circ f(x) is continuous for all x∈Rx \in R, then a+ba + b is equal to ______.

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. A composite is continuous when every jump of the inner or outer function is neutralised.

Concept refresher. A function ff is continuous at x=cx = c when both one-sided limits exist and equal the value there:

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

Picture the situation. For x≥0x \geq 0, f(x)=∣x−1∣≥0f(x) = |x - 1| \geq 0, so g(f(x))=(∣x−1∣−1)2+bg(f(x)) = (|x - 1| - 1)^2 + b, which is continuous, with value g(f(0))=g(1)=bg(f(0)) = g(1) = b at 0. For x<0x < 0, f(x)=x+af(x) = x + a, which is negative when x<−ax < -a and non-negative when −a≤x<0-a \leq x < 0.

Approach. Treat the cases of a positive and a zero first constant separately.

  1. Step 1: First constant positive

    For x<−ax < -a the composite is x+a+1x + a + 1, which tends to 1 at −a-a, while for −a≤x<0-a \leq x < 0 it is (x+a−1)2+b(x + a - 1)^2 + b, with value 1+b1 + b at −a-a. So b=0b = 0. At 0 the left-hand limit is (a−1)2(a - 1)^2 and the value is b=0b = 0, so a=1a = 1.

  2. Step 2: First constant zero

    Now f(x)=xf(x) = x is negative for x<0x < 0, so the composite is x+1x + 1 there and tends to 1 at 0. The value at 0 is bb, so b=1b = 1.

  3. Step 3: The sum

    So the two possible pairs are (1,0)(1, 0) and (0,1)(0, 1), and both give a+b=1a + b = 1.

Answer. 1

Sanity check. For the pair (1,0)(1, 0) both ff and gg are continuous, so their composite certainly is.

Common wrong answers

  • 2: Combining a=1a = 1 from one case with b=1b = 1 from the other gives 2, but the two values do not occur together.
  • 0: Taking both constants as 0 gives 0, but then the composite jumps from 1 to 0 at x=0x = 0.

Key takeaway

The trap. Different cases can lead to different pairs of constants with the same answer.

How toppers think. They locate where the inner function crosses the point at which the outer formula changes.

Remember. (a,b)=(1,0)(a, b) = (1, 0) or (0,1)(0, 1)

More on Continuity