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

Question

If f(x) = \left\{ {\matrix{ {x + a} & , & {x \le 0} \cr {|x - 4|} & , & {x > 0} \cr } } \right. and g(x) = \left\{ {\matrix{ {x + 1} & , & {x < 0} \cr {{{(x - 4)}^2} + b} & , & {x \ge 0} \cr } } \right. are continuous on R, then (gof)(2)+(fog)(2)(gof)(2) + (fog)( - 2) is equal to :

Options

Solution

Key Concepts and Formulas

  • Continuity of a function: A function h(x)h(x) is continuous at a point cc if limxch(x)=limxc+h(x)=h(c)\lim_{x \to c^-} h(x) = \lim_{x \to c^+} h(x) = h(c). For piecewise functions, continuity at the point where the definition changes requires the left-hand limit, right-hand limit, and the function value at that point to be equal.
  • Composition of functions: For two functions ff and gg, the composite function (gf)(x)(g \circ f)(x) is defined as g(f(x))g(f(x)). Similarly, (fg)(x)(f \circ g)(x) is defined as f(g(x))f(g(x)).
  • Absolute value function: y|y| is equal to yy if y0y \ge 0, and y-y if y<0y < 0.

Step-by-Step Solution

Step 1: Determine the values of aa and bb using the continuity of f(x)f(x) and g(x)g(x).

The problem states that both f(x)f(x) and g(x)g(x) are continuous on R\mathbb{R}.

For f(x)f(x) to be continuous at x=0x=0: The left-hand limit is limx0f(x)=limx0(x+a)=0+a=a\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (x+a) = 0+a = a. The right-hand limit is limx0+f(x)=limx0+x4\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} |x-4|. Since x>0x > 0, as x0+x \to 0^+, x4x-4 approaches 4-4. Thus, x4|x-4| approaches 4=4|-4| = 4. The function value at x=0x=0 is f(0)=0+a=af(0) = 0+a = a. For continuity at x=0x=0, we must have a=4a = 4.

For g(x)g(x) to be continuous at x=0x=0: The left-hand limit is limx0g(x)=limx0(x+1)=0+1=1\lim_{x \to 0^-} g(x) = \lim_{x \to 0^-} (x+1) = 0+1 = 1. The right-hand limit is limx0+g(x)=limx0+((x4)2+b)=(04)2+b=16+b\lim_{x \to 0^+} g(x) = \lim_{x \to 0^+} ((x-4)^2 + b) = (0-4)^2 + b = 16+b. The function value at x=0x=0 is g(0)=(04)2+b=16+bg(0) = (0-4)^2 + b = 16+b. For continuity at x=0x=0, we must have 1=16+b1 = 16+b, which implies b=116=15b = 1 - 16 = -15.

So, we have a=4a=4 and b=15b=-15.

Step 2: Rewrite the functions f(x)f(x) and g(x)g(x) with the determined values of aa and bb.

With a=4a=4 and b=15b=-15, the functions become: f(x) = \left\{ {\matrix{ {x + 4} & , & {x \le 0} \cr {|x - 4|} & , & {x > 0} \cr } } \right. g(x) = \left\{ {\matrix{ {x + 1} & , & {x < 0} \cr {{{(x - 4)}^2} - 15} & , & {x \ge 0} \cr } } \right.

Step 3: Calculate (gf)(2)(g \circ f)(2).

First, we need to find f(2)f(2). Since 2>02 > 0, we use the second case for f(x)f(x): f(2)=24=2=2f(2) = |2 - 4| = |-2| = 2.

Now, we need to find g(f(2))g(f(2)), which is g(2)g(2). Since 202 \ge 0, we use the second case for g(x)g(x): g(2)=(24)215=(2)215=415=11g(2) = (2 - 4)^2 - 15 = (-2)^2 - 15 = 4 - 15 = -11. Therefore, (gf)(2)=11(g \circ f)(2) = -11.

Step 4: Calculate (fg)(2)(f \circ g)(-2).

First, we need to find g(2)g(-2). Since 2<0-2 < 0, we use the first case for g(x)g(x): g(2)=2+1=1g(-2) = -2 + 1 = -1.

Now, we need to find f(g(2))f(g(-2)), which is f(1)f(-1). Since 10-1 \le 0, we use the first case for f(x)f(x): f(1)=1+4=3f(-1) = -1 + 4 = 3. Therefore, (fg)(2)=3(f \circ g)(-2) = 3.

Step 5: Calculate (gf)(2)+(fg)(2)(g \circ f)(2) + (f \circ g)(-2).

Using the results from Step 3 and Step 4: (gf)(2)+(fg)(2)=11+3=8(g \circ f)(2) + (f \circ g)(-2) = -11 + 3 = -8.

Common Mistakes & Tips

  • Incorrectly evaluating absolute values: Be careful when evaluating x4|x-4| for x>0x>0. For example, when x=2x=2, 24=2=2|2-4| = |-2| = 2, not 242-4.
  • Confusing the order of composition: Remember that (gf)(x)=g(f(x))(g \circ f)(x) = g(f(x)), meaning you evaluate the inner function first.
  • Checking the correct piecewise definition: Always ensure you are using the correct part of the piecewise function definition based on the input value to the function.

Summary

The problem requires us to first find the unknown constants aa and bb by using the condition that the given piecewise functions f(x)f(x) and g(x)g(x) are continuous on R\mathbb{R}. We applied the definition of continuity at the point where the function definition changes (x=0x=0) for both f(x)f(x) and g(x)g(x) to find a=4a=4 and b=15b=-15. Then, we calculated the values of the composite functions (gf)(2)(g \circ f)(2) and (fg)(2)(f \circ g)(-2) by carefully evaluating the inner and outer functions using their respective piecewise definitions. Finally, we summed these two values to get the required result.

The final answer is \boxed{-8}.

Practice More Limits, Continuity & Differentiability Questions

View All Questions