QlarIITy

MathematicsJEE Main 2022 · 26 JuneSingle correct

f,g:R→Rf, g : R \to R be two real valued function defined asf(x)={−∣x+3∣,x<0ex,x≥0f(x) = \begin{cases} -|x + 3|, & x < 0 \\ e^x, & x \geq 0 \end{cases}and g(x)={x2+k1x,x<04x+k2,x≥0g(x) = \begin{cases} x^2 + k_1x, & x < 0 \\ 4x + k_2, & x \geq 0 \end{cases}, where k1k_1 and k2k_2 are real constants. If g∘fg \circ f is differentiable at x=0x = 0, then g∘f(−4)+g∘f(4)g \circ f(-4) + g \circ f(4) is equal to

  1. Option A: 4(e4+1)4(e^4 + 1)
  2. Option B: 2(2e4+1)2(2e^4 + 1)
  3. Option C: 4e44e^4
  4. Option D: 2(2e4−1)2(2e^4 - 1)
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 is differentiable at a point when its two one-sided formulas agree in value and slope.

Concept refresher. A function given by two formulas uu and vv on either side of x=cx = c is continuous there if u(c)=v(c)u(c) = v(c), and differentiable there only if also

u′(c)=v′(c)u^{\prime}(c) = v^{\prime}(c)

Picture the situation. Just left of 0, x+3>0x + 3 > 0, so f(x)=−(x+3)f(x) = -(x + 3), which is negative, and g(f(x))=(x+3)2−k1(x+3)g(f(x)) = (x + 3)^2 - k_1(x + 3). For x≥0x \geq 0, f(x)=ex≥1f(x) = e^x \geq 1, so g(f(x))=4ex+k2g(f(x)) = 4e^x + k_2.

Approach. Match slopes and values of the composite at 0, then evaluate it at the two points.

  1. Step 1: The constants

    The slope from the left at 0 is 2(x+3)−k1=6−k12(x + 3) - k_1 = 6 - k_1 and from the right it is 4e0=44e^0 = 4, so k1=2k_1 = 2. The values are 9−3k1=39 - 3k_1 = 3 and 4+k24 + k_2, so k2=−1k_2 = -1.

  2. Step 2: The two values

    Since f(−4)=−∣−1∣=−1f(-4) = -|-1| = -1 is negative, g(f(−4))=1−2=−1g(f(-4)) = 1 - 2 = -1. Since f(4)=e4f(4) = e^4 is positive, g(f(4))=4e4−1g(f(4)) = 4e^4 - 1.

  3. Step 3: The sum

    Adding the two values of the composite gives 4e4−24e^4 - 2, which is 2(2e4−1)2(2e^4 - 1).

Answer. (D) 2(2e4−1)2(2e^4 - 1)

Sanity check. With these constants the composite near 0 is (x+3)2−2(x+3)(x + 3)^2 - 2(x + 3) on the left and 4ex−14e^x - 1 on the right; both equal 3 with slope 4 at 0.

Why the other options are wrong

  • (A) The value 4(e4+1)4(e^4 + 1) would need the two constant terms to add to +4+4; they are −1-1 and −1-1.
  • (B) The value 2(2e4+1)2(2e^4 + 1) has +2+2 in place of −2-2; both g(f(−4))g(f(-4)) and the constant k2k_2 contribute −1-1.
  • (C) The value 4e44e^4 leaves out the constant terms −1-1 and −1-1 of the two composites.

Key takeaway

The trap. The outer formula is chosen by the sign of the inner value, not of the original variable.

How toppers think. They write the composite explicitly on each side of 0 before imposing any condition.

Remember. k1=2k_1 = 2, k2=−1k_2 = -1

More on Differentiability