Skip to main content
Back to Limits, Continuity & Differentiability
JEE Main 2019
Limits, Continuity & Differentiability
Limits, Continuity and Differentiability
Easy

Question

Let ff and gg be two functions defined by f(x)={x+1,x<0x1,x0f(x)=\left\{\begin{array}{cc}x+1, & x < 0 \\ |x-1|, & x \geq 0\end{array}\right. and g(x)={x+1,x<01,x0\mathrm{g}(x)=\left\{\begin{array}{cc}x+1, & x < 0 \\ 1, & x \geq 0\end{array}\right. Then (gf)(x)(g \circ f)(x) is :

Options

Solution

Key Concepts and Formulas

  • Function Composition: For two functions ff and gg, the composite function (gf)(x)(g \circ f)(x) is defined as g(f(x))g(f(x)). To evaluate this, we first find the value of f(x)f(x) and then use this value as the input for the function gg.
  • Definition of Absolute Value: a=a|a| = a if a0a \geq 0, and a=a|a| = -a if a<0a < 0.
  • Continuity of a Function: A function h(x)h(x) is continuous at a point x=cx=c if:
    1. h(c)h(c) is defined.
    2. limxch(x)\lim_{x \to c} h(x) exists.
    3. limxch(x)=h(c)\lim_{x \to c} h(x) = h(c). For a piecewise function, we need to check continuity at the points where the definition changes. We do this by comparing the left-hand limit, the right-hand limit, and the function value at that point.
  • Differentiability of a Function: A function h(x)h(x) is differentiable at a point x=cx=c if the limit of the difference quotient exists: limh0h(c+h)h(c)h\lim_{h \to 0} \frac{h(c+h) - h(c)}{h}. For a piecewise function, differentiability at the points where the definition changes requires the left-hand derivative and the right-hand derivative to be equal.
    • Left-hand derivative: limxch(x)h(c)xc\lim_{x \to c^-} \frac{h(x) - h(c)}{x-c}
    • Right-hand derivative: limxc+h(x)h(c)xc\lim_{x \to c^+} \frac{h(x) - h(c)}{x-c}

Step-by-Step Solution

Step 1: Analyze and rewrite the function f(x)f(x) in a piecewise form. The function f(x)f(x) is defined as: f(x)={x+1,x<0x1,x0f(x)=\left\{\begin{array}{cc}x+1, & x < 0 \\ |x-1|, & x \geq 0\end{array}\right. We need to expand the absolute value term x1|x-1| for x0x \geq 0.

  • If 0x<10 \leq x < 1, then x1<0x-1 < 0, so x1=(x1)=1x|x-1| = -(x-1) = 1-x.
  • If x1x \geq 1, then x10x-1 \geq 0, so x1=x1|x-1| = x-1. Therefore, f(x)f(x) can be written as: f(x)={x+1,x<01x,0x<1x1,x1f(x)=\left\{\begin{array}{cc}x+1, & x < 0 \\ 1-x, & 0 \leq x < 1 \\ x-1, & x \geq 1\end{array}\right.

Step 2: Analyze and rewrite the function g(x)g(x). The function g(x)g(x) is defined as: g(x)={x+1,x<01,x0g(x)=\left\{\begin{array}{cc}x+1, & x < 0 \\ 1, & x \geq 0\end{array}\right. This function is already in a clear piecewise form.

Step 3: Determine the composite function (gf)(x)=g(f(x))(g \circ f)(x) = g(f(x)). We need to consider the definition of g(x)g(x) based on the value of its input, which is f(x)f(x). The definition of gg changes at f(x)=0f(x) = 0.

We need to find the values of xx for which f(x)<0f(x) < 0 and f(x)0f(x) \geq 0.

Case 1: f(x)<0f(x) < 0 From the definition of f(x)f(x):

  • If x<0x < 0, then f(x)=x+1f(x) = x+1. So, x+1<0    x<1x+1 < 0 \implies x < -1.
  • If 0x<10 \leq x < 1, then f(x)=1xf(x) = 1-x. So, 1x<0    x>11-x < 0 \implies x > 1. This contradicts 0x<10 \leq x < 1, so there are no solutions in this interval.
  • If x1x \geq 1, then f(x)=x1f(x) = x-1. So, x1<0    x<1x-1 < 0 \implies x < 1. This contradicts x1x \geq 1, so there are no solutions in this interval. Thus, f(x)<0f(x) < 0 only when x<1x < -1. For x<1x < -1, f(x)=x+1f(x) = x+1. Since f(x)<0f(x) < 0, we use the first case of g(x)g(x): g(y)=y+1g(y) = y+1. So, g(f(x))=g(x+1)=(x+1)+1=x+2g(f(x)) = g(x+1) = (x+1) + 1 = x+2 for x<1x < -1.

Case 2: f(x)0f(x) \geq 0 We need to find the values of xx where f(x)0f(x) \geq 0.

  • If x<0x < 0, then f(x)=x+1f(x) = x+1. So, x+10    x1x+1 \geq 0 \implies x \geq -1. Combining with x<0x < 0, this gives 1x<0-1 \leq x < 0.
  • If 0x<10 \leq x < 1, then f(x)=1xf(x) = 1-x. So, 1x0    x11-x \geq 0 \implies x \leq 1. Combining with 0x<10 \leq x < 1, this gives 0x<10 \leq x < 1.
  • If x1x \geq 1, then f(x)=x1f(x) = x-1. So, x10    x1x-1 \geq 0 \implies x \geq 1. Combining with x1x \geq 1, this gives x1x \geq 1. Thus, f(x)0f(x) \geq 0 for all x1x \geq -1.

Now we apply the definition of g(x)g(x) for f(x)0f(x) \geq 0.

  • If 1x<0-1 \leq x < 0: Here f(x)=x+1f(x) = x+1. Since 1x<0-1 \leq x < 0, we have 0x+1<10 \leq x+1 < 1. So f(x)0f(x) \geq 0. We use the second case of g(x)g(x): g(y)=1g(y) = 1. Therefore, g(f(x))=g(x+1)=1g(f(x)) = g(x+1) = 1 for 1x<0-1 \leq x < 0.
  • If 0x<10 \leq x < 1: Here f(x)=1xf(x) = 1-x. Since 0x<10 \leq x < 1, we have 0<1x10 < 1-x \leq 1. So f(x)0f(x) \geq 0. We use the second case of g(x)g(x): g(y)=1g(y) = 1. Therefore, g(f(x))=g(1x)=1g(f(x)) = g(1-x) = 1 for 0x<10 \leq x < 1.
  • If x1x \geq 1: Here f(x)=x1f(x) = x-1. Since x1x \geq 1, we have x10x-1 \geq 0. So f(x)0f(x) \geq 0. We use the second case of g(x)g(x): g(y)=1g(y) = 1. Therefore, g(f(x))=g(x1)=1g(f(x)) = g(x-1) = 1 for x1x \geq 1.

Combining all these, we get the composite function (gf)(x)(g \circ f)(x): (gf)(x)={x+2,x<11,1x<01,0x<11,x1(g \circ f)(x) = \left\{\begin{array}{cc}x+2, & x < -1 \\ 1, & -1 \leq x < 0 \\ 1, & 0 \leq x < 1 \\ 1, & x \geq 1\end{array}\right. This can be simplified to: (gf)(x)={x+2,x<11,x1(g \circ f)(x) = \left\{\begin{array}{cc}x+2, & x < -1 \\ 1, & x \geq -1\end{array}\right.

Step 4: Check for continuity of (gf)(x)(g \circ f)(x). The composite function is defined piecewise with a change in definition at x=1x=-1. We need to check continuity at x=1x=-1.

  • Left-hand limit at x=1x=-1: limx1(gf)(x)=limx1(x+2)=1+2=1\lim_{x \to -1^-} (g \circ f)(x) = \lim_{x \to -1^-} (x+2) = -1+2 = 1.
  • Right-hand limit at x=1x=-1: limx1+(gf)(x)=limx1+1=1\lim_{x \to -1^+} (g \circ f)(x) = \lim_{x \to -1^+} 1 = 1.
  • Function value at x=1x=-1: (gf)(1)=1(g \circ f)(-1) = 1 (from the second part of the definition). Since the left-hand limit, right-hand limit, and the function value are all equal to 1, the function (gf)(x)(g \circ f)(x) is continuous at x=1x=-1. For x<1x < -1, (gf)(x)=x+2(g \circ f)(x) = x+2, which is a linear function and thus continuous. For x>1x > -1, (gf)(x)=1(g \circ f)(x) = 1, which is a constant function and thus continuous. Therefore, (gf)(x)(g \circ f)(x) is continuous everywhere.

Step 5: Check for differentiability of (gf)(x)(g \circ f)(x). We need to check differentiability at the point where the definition changes, which is x=1x=-1.

  • Left-hand derivative at x=1x=-1: Let h(x)=(gf)(x)h(x) = (g \circ f)(x). For x<1x < -1, h(x)=x+2h(x) = x+2. h(x)=ddx(x+2)=1h'(x) = \frac{d}{dx}(x+2) = 1. So, the left-hand derivative is limx1h(x)=1\lim_{x \to -1^-} h'(x) = 1. Alternatively, using the limit definition: limx1h(x)h(1)x(1)=limx1(x+2)1x+1=limx1x+1x+1=limx11=1\lim_{x \to -1^-} \frac{h(x) - h(-1)}{x - (-1)} = \lim_{x \to -1^-} \frac{(x+2) - 1}{x+1} = \lim_{x \to -1^-} \frac{x+1}{x+1} = \lim_{x \to -1^-} 1 = 1.

  • Right-hand derivative at x=1x=-1: For x>1x > -1, h(x)=1h(x) = 1. h(x)=ddx(1)=0h'(x) = \frac{d}{dx}(1) = 0. So, the right-hand derivative is limx1+h(x)=0\lim_{x \to -1^+} h'(x) = 0. Alternatively, using the limit definition: limx1+h(x)h(1)x(1)=limx1+11x+1=limx1+0x+1=0\lim_{x \to -1^+} \frac{h(x) - h(-1)}{x - (-1)} = \lim_{x \to -1^+} \frac{1 - 1}{x+1} = \lim_{x \to -1^+} \frac{0}{x+1} = 0.

Since the left-hand derivative (1) is not equal to the right-hand derivative (0) at x=1x=-1, the function (gf)(x)(g \circ f)(x) is not differentiable at x=1x=-1.

For x<1x < -1, (gf)(x)=x+2(g \circ f)(x) = x+2, which is differentiable everywhere with derivative 1. For x>1x > -1, (gf)(x)=1(g \circ f)(x) = 1, which is differentiable everywhere with derivative 0.

Therefore, (gf)(x)(g \circ f)(x) is continuous everywhere but not differentiable at x=1x=-1.

Common Mistakes & Tips

  • Incorrectly expanding absolute values: Ensure you correctly define x1|x-1| for different intervals of xx. For example, x1=1x|x-1| = 1-x for x<1x < 1 and x1=x1|x-1| = x-1 for x1x \geq 1.
  • Forgetting to check continuity/differentiability at the boundary points: The critical points for continuity and differentiability are where the definition of the piecewise function changes. For (gf)(x)(g \circ f)(x), this is where f(x)f(x) changes its behavior or where the input to gg crosses its critical point (which is 0).
  • Confusing the input for gg with xx: When calculating g(f(x))g(f(x)), remember that the condition for gg (i.e., input <0< 0 or input 0\geq 0) applies to f(x)f(x), not directly to xx.

Summary

We first explicitly defined the piecewise function f(x)f(x) by resolving the absolute value. Then, we computed the composite function g(f(x))g(f(x)) by considering the different cases for the input of gg based on the values of f(x)f(x). We found that (gf)(x)(g \circ f)(x) is a piecewise function that is equal to x+2x+2 for x<1x < -1 and 11 for x1x \geq -1. By checking the limits and function values at x=1x=-1, we confirmed that the composite function is continuous everywhere. Finally, by comparing the left-hand and right-hand derivatives at x=1x=-1, we determined that the function is not differentiable at this single point.

The final answer is A\boxed{A}.

Practice More Limits, Continuity & Differentiability Questions

View All Questions