QlarIITy

MathematicsJEE Main 2023 · 11 AprilSingle correct

Let ff and gg be two functions defined byf(x)={x+1,x<0∣x−1∣,x≥0f(x) = \begin{cases} x + 1, & x < 0 \\ |x - 1|, & x \geq 0 \end{cases}and g(x)={x+1,x<01,x≥0g(x) = \begin{cases} x + 1, & x < 0 \\ 1, & x \geq 0 \end{cases}. Then (g∘f)(x)(g \circ f)(x) is

  1. Option A: Continuous everywhere but not differentiable exactly at one point
  2. Option B: Continuous everywhere but not differentiable at x=1x = 1
  3. Option C: Differentiable everywhere
  4. Option D: Not continuous at x=1x = 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 of piecewise functions is found by tracking which formula of the outer function applies.

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. For x<−1x < -1, f(x)=x+1f(x) = x + 1 is negative, so g(f(x))=f(x)+1=x+2g(f(x)) = f(x) + 1 = x + 2. For −1≤x<0-1 \leq x < 0, f(x)=x+1f(x) = x + 1 lies in [0,1)[0, 1), and for x≥0x \geq 0, f(x)=∣x−1∣≥0f(x) = |x - 1| \geq 0; in both cases g(f(x))=1g(f(x)) = 1.

Graph of the composite: a line of slope 1 rising to the point (−1, 1), then a horizontal line at height 1 to the right of that point, with a corner at (−1, 1).

Approach. Write the composite piece by piece and examine the single join.

  1. Step 1: Continuity

    At x=−1x = -1 the line x+2x + 2 gives 1, the same as the constant piece, so the composite is continuous everywhere.

  2. Step 2: Differentiability

    At x=−1x = -1 the slope changes from 1 to 0, so the composite is not differentiable there. Everywhere else it is a line or a constant, so this is the only such point.

Answer. (A) Continuous everywhere but not differentiable exactly at one point

Sanity check. At x=1x = 1, where ff has a corner, the composite is the constant 1 on both sides, so nothing happens there.

Why the other options are wrong

  • (B) The corner is at x=−1x = -1; near x=1x = 1 the composite is the constant 1 and is differentiable.
  • (C) At x=−1x = -1 the slope changes from 1 to 0, so the composite is not differentiable everywhere.
  • (D) Near x=1x = 1 the composite equals 1 on both sides, so it is continuous there.

Key takeaway

The trap. A corner of the inner function disappears when the outer function is constant there.

How toppers think. They first find where the inner function changes sign.

Remember. (g∘f)(x)(g \circ f)(x) is x+2x + 2 for x<−1x < -1, and 1 otherwise

More on Differentiability