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

Question

Let f, g : R \to R be two real valued functions defined as f(x) = \left\{ {\matrix{ { - |x + 3|} & , & {x < 0} \cr {{e^x}} & , & {x \ge 0} \cr } } \right. and g(x) = \left\{ {\matrix{ {{x^2} + {k_1}x} & , & {x < 0} \cr {4x + {k_2}} & , & {x \ge 0} \cr } } \right., where k 1 and k 2 are real constants. If (gof) is differentiable at x = 0, then (gof) (- 4) + (gof) (4) is equal to :

Options

Solution

Key Concepts and Formulas

  • Differentiability: A function is differentiable at a point if its derivative exists at that point. For a piecewise function, differentiability at the point where the definition changes requires:
    • Continuity at that point.
    • Equality of the left-hand derivative (LHD) and the right-hand derivative (RHD) at that point.
  • Left-Hand Derivative (LHD): f(a)=limh0f(a+h)f(a)h{f'_{-}}(a) = \lim_{h \to 0^-} \frac{f(a+h) - f(a)}{h}
  • Right-Hand Derivative (RHD): f+(a)=limh0+f(a+h)f(a)h{f'_{ + }}(a) = \lim_{h \to 0^+} \frac{f(a+h) - f(a)}{h}
  • Composition of Functions (gof)(x): This is defined as g(f(x))g(f(x)). When evaluating (gof)(x), we first find f(x)f(x), and then use that result as the input for g(x)g(x).
  • Absolute Value Function: |x| = \left\{ {\matrix{ x & , & {x \ge 0} \cr -x & , & {x < 0} \cr } } \right.

Step-by-Step Solution

Step 1: Define the composite function (gof)(x). We need to find g(f(x))g(f(x)). The definition of f(x)f(x) changes at x=0x=0, and the definition of g(x)g(x) also changes at x=0x=0. Therefore, we need to consider cases based on the value of f(x)f(x).

  • Case 1: f(x)<0f(x) < 0 If x<0x < 0, then f(x)=x+3f(x) = -|x+3|. Since x<0x < 0, x+3x+3 can be positive or negative.

    • If 3x<0-3 \le x < 0, then x+30x+3 \ge 0, so x+3=x+3|x+3| = x+3. Thus, f(x)=(x+3)=x3f(x) = -(x+3) = -x-3. In this range, 3x<0-3 \le x < 0, so 0x30 \le -x \le 3, and 3x3<0-3 \le -x-3 < 0. So f(x)<0f(x) < 0.
    • If x<3x < -3, then x+3<0x+3 < 0, so x+3=(x+3)|x+3| = -(x+3). Thus, f(x)=((x+3))=x+3f(x) = -(-(x+3)) = x+3. In this range, x<3x < -3, so x+3<0x+3 < 0. Thus, f(x)<0f(x) < 0. So, for x<0x < 0, f(x)<0f(x) < 0. When f(x)<0f(x) < 0, g(f(x))=(f(x))2+k1(f(x))g(f(x)) = (f(x))^2 + k_1(f(x)). For 3x<0-3 \le x < 0, f(x)=x3f(x) = -x-3. So, (gf)(x)=(x3)2+k1(x3)(g \circ f)(x) = (-x-3)^2 + k_1(-x-3). For x<3x < -3, f(x)=x+3f(x) = x+3. So, (gf)(x)=(x+3)2+k1(x+3)(g \circ f)(x) = (x+3)^2 + k_1(x+3).
  • Case 2: f(x)0f(x) \ge 0 If x0x \ge 0, then f(x)=exf(x) = e^x. Since x0x \ge 0, exe0=1e^x \ge e^0 = 1. So f(x)0f(x) \ge 0. When f(x)0f(x) \ge 0, g(f(x))=4(f(x))+k2g(f(x)) = 4(f(x)) + k_2. For x0x \ge 0, f(x)=exf(x) = e^x. So, (gf)(x)=4ex+k2(g \circ f)(x) = 4e^x + k_2.

Combining these, we have: (g \circ f)(x) = \left\{ {\matrix{ {(x+3)^2 + k_1(x+3)} & , & {x < -3} \cr {(-x-3)^2 + k_1(-x-3)} & , & {-3 \le x < 0} \cr {4{e^x} + {k_2}} & , & {x \ge 0} \cr } } \right.

Step 2: Ensure continuity of (gof)(x) at x = 0. For (gof) to be differentiable at x=0x=0, it must first be continuous at x=0x=0. We need limx0(gf)(x)=limx0+(gf)(x)=(gf)(0)\lim_{x \to 0^-} (g \circ f)(x) = \lim_{x \to 0^+} (g \circ f)(x) = (g \circ f)(0).

  • Left-hand limit at x = 0: As x0x \to 0^- , we use the definition for 3x<0-3 \le x < 0. limx0(gf)(x)=limx0((x3)2+k1(x3))\lim_{x \to 0^-} (g \circ f)(x) = \lim_{x \to 0^-} ((-x-3)^2 + k_1(-x-3)) =(03)2+k1(03)=(3)2+k1(3)=93k1= (-0-3)^2 + k_1(-0-3) = (-3)^2 + k_1(-3) = 9 - 3k_1

  • Right-hand limit at x = 0: As x0+x \to 0^+ , we use the definition for x0x \ge 0. limx0+(gf)(x)=limx0+(4ex+k2)\lim_{x \to 0^+} (g \circ f)(x) = \lim_{x \to 0^+} (4e^x + k_2) =4e0+k2=4(1)+k2=4+k2= 4e^0 + k_2 = 4(1) + k_2 = 4 + k_2

  • Function value at x = 0: (gf)(0)=4e0+k2=4+k2(g \circ f)(0) = 4e^0 + k_2 = 4 + k_2

For continuity, 93k1=4+k29 - 3k_1 = 4 + k_2. 53k1=k2()5 - 3k_1 = k_2 \quad (*)

Step 3: Ensure differentiability of (gof)(x) at x = 0 by equating LHD and RHD. We need to find the derivatives of the relevant pieces of (gf)(x)(g \circ f)(x) and evaluate them at x=0x=0.

  • Right-hand derivative (RHD) at x = 0: For x0x \ge 0, (gf)(x)=4ex+k2(g \circ f)(x) = 4e^x + k_2. The derivative is ddx(4ex+k2)=4ex{d \over {dx}}(4e^x + k_2) = 4e^x. The RHD at x=0x=0 is f+(0)=4e0=4{f'_{ + }}(0) = 4e^0 = 4.

  • Left-hand derivative (LHD) at x = 0: For 3x<0-3 \le x < 0, (gf)(x)=(x3)2+k1(x3)(g \circ f)(x) = (-x-3)^2 + k_1(-x-3). Let u=x3u = -x-3. Then du/dx=1du/dx = -1. (gf)(x)=u2+k1u(g \circ f)(x) = u^2 + k_1u. Using the chain rule, ddx(u2+k1u)=(2u+k1)dudx{d \over {dx}}(u^2 + k_1u) = (2u + k_1) \frac{du}{dx} =(2(x3)+k1)(1)= (2(-x-3) + k_1)(-1) =(2x6+k1)(1)= (-2x - 6 + k_1)(-1) =2x+6k1= 2x + 6 - k_1 The LHD at x=0x=0 is f(0)=limx0(2x+6k1){f'_{-}}(0) = \lim_{x \to 0^-} (2x + 6 - k_1) =2(0)+6k1=6k1= 2(0) + 6 - k_1 = 6 - k_1

For differentiability, LHD = RHD: 6k1=46 - k_1 = 4 k1=2k_1 = 2

Step 4: Find the value of k2 using the continuity equation. Substitute k1=2k_1 = 2 into the continuity equation ()(*) : k2=53k1k_2 = 5 - 3k_1 k2=53(2)k_2 = 5 - 3(2) k2=56k_2 = 5 - 6 k2=1k_2 = -1

Step 5: Evaluate (gof)(-4) and (gof)(4).

  • Evaluate (gof)(-4): Since 4<0-4 < 0, we use the definition of f(x)f(x) for x<0x < 0. f(4)=4+3=1=(1)=1f(-4) = -|-4 + 3| = -|-1| = -(1) = -1 Now we evaluate g(f(4))=g(1)g(f(-4)) = g(-1). Since 1<0-1 < 0, we use the definition of g(x)g(x) for x<0x < 0. g(1)=(1)2+k1(1)g(-1) = (-1)^2 + k_1(-1) =1+(2)(1)= 1 + (2)(-1) =12=1= 1 - 2 = -1 So, (gf)(4)=1(g \circ f)(-4) = -1.

  • Evaluate (gof)(4): Since 404 \ge 0, we use the definition of f(x)f(x) for x0x \ge 0. f(4)=e4f(4) = e^4 Now we evaluate g(f(4))=g(e4)g(f(4)) = g(e^4). Since e40e^4 \ge 0, we use the definition of g(x)g(x) for x0x \ge 0. g(e4)=4(e4)+k2g(e^4) = 4(e^4) + k_2 =4e4+(1)= 4e^4 + (-1) =4e41= 4e^4 - 1 So, (gf)(4)=4e41(g \circ f)(4) = 4e^4 - 1.

Step 6: Calculate (gof)(-4) + (gof)(4). (gf)(4)+(gf)(4)=(1)+(4e41)(g \circ f)(-4) + (g \circ f)(4) = (-1) + (4e^4 - 1) =4e42= 4e^4 - 2 =2(2e41)= 2(2e^4 - 1)

Alternative approach for Step 5 and 6 using the derived (gof)(x) definition: We found k1=2k_1=2 and k2=1k_2=-1. The definition of (gf)(x)(g \circ f)(x) is: (g \circ f)(x) = \left\{ {\matrix{ {(x+3)^2 + 2(x+3)} & , & {x < -3} \cr {(-x-3)^2 + 2(-x-3)} & , & {-3 \le x < 0} \cr {4{e^x} - 1} & , & {x \ge 0} \cr } } \right.

  • Evaluate (gof)(-4): Since 4<3-4 < -3, we use the first case. (gf)(4)=(4+3)2+2(4+3)(g \circ f)(-4) = (-4+3)^2 + 2(-4+3) =(1)2+2(1)= (-1)^2 + 2(-1) =12=1= 1 - 2 = -1

  • Evaluate (gof)(4): Since 404 \ge 0, we use the third case. (gf)(4)=4e41(g \circ f)(4) = 4e^4 - 1

  • Calculate (gof)(-4) + (gof)(4): (gf)(4)+(gf)(4)=(1)+(4e41)(g \circ f)(-4) + (g \circ f)(4) = (-1) + (4e^4 - 1) =4e42= 4e^4 - 2 =2(2e41)= 2(2e^4 - 1)

Common Mistakes & Tips

  • Incorrectly applying the absolute value: Be careful when evaluating x+3|x+3| for different ranges of xx.
  • Mixing up the definitions of f(x)f(x) and g(x)g(x) when composing: Ensure you are using the correct function for the input value. For (gf)(x)(g \circ f)(x), first evaluate f(x)f(x), and then use that output as the input for g(x)g(x).
  • Forgetting the continuity condition: Differentiability implies continuity. Always check for continuity first, as it provides necessary equations for the constants.
  • Chain Rule Errors: When differentiating composite functions, especially piecewise ones, ensure the chain rule is applied correctly. For (gf)(x)(g \circ f)(x), the derivative is g(f(x))f(x)g'(f(x)) \cdot f'(x). However, it's often easier to derive the explicit form of (gf)(x)(g \circ f)(x) first and then differentiate.

Summary

To solve this problem, we first defined the composite function (gf)(x)(g \circ f)(x). For the function to be differentiable at x=0x=0, it must be continuous and have equal left-hand and right-hand derivatives at x=0x=0. We used the continuity condition to establish a relationship between the constants k1k_1 and k2k_2. Then, we calculated the left-hand and right-hand derivatives of (gf)(x)(g \circ f)(x) at x=0x=0 and equated them to find the value of k1k_1. Using the value of k1k_1, we found the value of k2k_2. Finally, we substituted these values back into the expression for (gf)(x)(g \circ f)(x) and calculated (gf)(4)+(gf)(4)(g \circ f)(-4) + (g \circ f)(4).

The final answer is 4e424e^4 - 2, which is equal to 2(2e41)2(2e^4 - 1).

The final answer is \boxed{2(2{e^4} - 1)}.

Practice More Limits, Continuity & Differentiability Questions

View All Questions