QlarIITy

MathematicsJEE Main 2022 · 26 JulySingle correct

Iff(x)={x+a,x≤0∣x−4∣,x>0f(x) = \begin{cases} x + a, & x \leq 0 \\ |x - 4|, & x > 0 \end{cases}andg(x)={x+1,x<0(x−4)2+b,x≥0g(x) = \begin{cases} x + 1, & x < 0 \\ (x - 4)^2 + b, & x \geq 0 \end{cases}are continuous on RR, then (g∘f)(2)+(f∘g)(−2)(g \circ f)(2) + (f \circ g)(-2) is equal to:

  1. Option A: −10
  2. Option B: 10
  3. Option C: 8
  4. Option D: −8
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 composite of piecewise functions is evaluated from the inside, choosing the formula by the inner value.

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. Each function is given by two formulas that meet at x=0x = 0, and each formula is continuous on its own interval. So continuity on RR means that the two formulas agree at 0.

Approach. Find the constants, then evaluate the composites from the inside out.

  1. Step 1: The constants

    For ff the two formulas agree at 0 when 0+a=∣0−4∣0 + a = |0 - 4|, so a=4a = 4. For gg they agree when 0+1=(0−4)2+b0 + 1 = (0 - 4)^2 + b, so b=−15b = -15.

  2. Step 2: The first composite

    Since 2>02 > 0, f(2)=∣2−4∣=2f(2) = |2 - 4| = 2, and since 2≥02 \geq 0, g(2)=(2−4)2−15=−11g(2) = (2 - 4)^2 - 15 = -11. So (g∘f)(2)=−11(g \circ f)(2) = -11.

  3. Step 3: The second composite

    Since −2<0-2 < 0, g(−2)=−2+1=−1g(-2) = -2 + 1 = -1, and since −1≤0-1 \leq 0, f(−1)=−1+4=3f(-1) = -1 + 4 = 3. So (f∘g)(−2)=3(f \circ g)(-2) = 3, and the sum is −11+3=−8-11 + 3 = -8.

Answer. (D) −8

Sanity check. The inner values 2 and −1-1 fall on different sides of 0, so each outer function is used with a different one of its formulas.

Why the other options are wrong

  • (A) The value −10-10 would need the second composite to be 1; it is f(−1)=−1+4=3f(-1) = -1 + 4 = 3.
  • (B) The value 10 would need the first composite to be positive; g(2)=4−15g(2) = 4 - 15 is −11-11.
  • (C) The value 8 has the sign reversed; the composites are −11-11 and 3, whose sum is negative.

Key takeaway

The trap. The formula for the outer function depends on the inner value, not on the original input.

How toppers think. They note on which side of 0 each inner value falls before substituting.

Remember. a=4a = 4, b=−15b = -15

More on Continuity