Question
Let f : R R and g : R R be defined as f(x) = \left\{ {\matrix{ {x + a,} & {x < 0} \cr {|x - 1|,} & {x \ge 0} \cr } } \right. and g(x) = \left\{ {\matrix{ {x + 1,} & {x < 0} \cr {{{(x - 1)}^2} + b,} & {x \ge 0} \cr } } \right., where a, b are non-negative real numbers. If (gof) (x) is continuous for all x R, then a + b is equal to ____________.
Answer: 1
Solution
Key Concepts and Formulas
- Composition of Functions: For two functions and , the composite function is defined as .
- Continuity of a Function: A function is continuous at a point if . For a function to be continuous over an interval, it must be continuous at every point in that interval.
- Piecewise Functions: When dealing with piecewise functions, especially in compositions and continuity checks, it's crucial to analyze the behavior of the function in each interval defined by the pieces and at the transition points.
Step-by-Step Solution
Step 1: Define the composite function . We are given and . To find , we substitute into the definition of . The definition of is: g(y) = \left\{ {\matrix{ {y + 1,} & {y < 0} \cr {{{(y - 1)}^2} + b,} & {y \ge 0} \cr } } \right. Replacing with , we get: g(f(x)) = \left\{ {\matrix{ {f(x) + 1,} & {f(x) < 0} \cr {{{(f(x) - 1)}^2} + b,} & {f(x) \ge 0} \cr } } \right.
Step 2: Determine the conditions on for each case of . We need to analyze the conditions and based on the definition of . f(x) = \left\{ {\matrix{ {x + a,} & {x < 0} \cr {|x - 1|,} & {x \ge 0} \cr } } \right. Since :
- Case 1: . Here, .
- .
- . So, for , we have two sub-cases:
- If (and ), then .
- If , then .
- Case 2: . Here, .
- Since for all , the condition is always true for .
- The condition is never true for .
Step 3: Substitute into the definition of and simplify based on the conditions on . We combine the information from Step 1 and Step 2.
-
Sub-case 2.1: and . This occurs when . In this case, . So, for , .
-
Sub-case 2.2: and . This occurs when . In this case, . So, for , .
-
Sub-case 2.3: and . This occurs for all . In this case, . So, for , .
-
Sub-case 2.4: and . This case never happens as for .
Thus, the composite function can be written as: g(f(x)) = \left\{ {\matrix{ {x + a + 1,} & {x < -a} \cr {{(x + a - 1)}^2 + b,} & {-a \le x < 0} \cr {{(|x - 1| - 1)}^2 + b,} & {x \ge 0} \cr } } \right.
Step 4: Apply the condition of continuity for at the transition points. For to be continuous for all , it must be continuous at the points where the definition changes, which are and .
-
Continuity at : The left-hand limit (LHL) as is given by the first piece: . The right-hand limit (RHL) as is given by the second piece: . The value of the function at is given by the second piece: . For continuity at , LHL = RHL = : . This implies .
-
Continuity at : The left-hand limit (LHL) as is given by the second piece: . The right-hand limit (RHL) as is given by the third piece: . The value of the function at is given by the third piece: . For continuity at , LHL = RHL = : . This implies , which means , so .
Step 5: Calculate . From Step 4, we found and . Therefore, .
Common Mistakes & Tips
- Careless handling of absolute values: Ensure the definition of is correctly used for . For , is for and for . However, in the continuity check at , we only need the value at , where .
- Incorrectly combining intervals: When defining the composite function, pay close attention to the intersection of the conditions on and the conditions on . For example, the case must be further split based on whether or .
- Missing continuity checks: Ensure continuity is checked at all points where the definition of the composite function changes. In this problem, these points are and .
Summary
To find the value of , we first constructed the composite function by substituting into and carefully considering the intervals defined by . We then used the condition that is continuous for all . This required checking continuity at the transition points of the piecewise defined composite function, which are and . By equating the left-hand limits, right-hand limits, and function values at these points, we derived two equations involving and . Solving these equations yielded and , leading to .
The final answer is .