Detailed Explanation
A function \( f \) is continuous at a point \( x = c \) if the left-hand limit, the right-hand limit, and the value of the function at that point are all equal. That is, \( \lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = f(c) \). Here the function is defined by three different rules on three intervals, and the rules 'join' at \( x = 2 \) and \( x = 10 \). On each open interval the pieces are polynomials, so they are already continuous inside. The only points where continuity can break are the join points \( x = 2 \) and \( x = 10 \). By forcing the left and right pieces to agree at these two points, we get two equations in the two unknowns \( a \) and \( b \), which we then solve.
Formula Used
Continuity at \( x = c \): \[ \lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = f(c) \]
Solution
- Step 1: Identify the join points. The function changes definition at \( x = 2 \) and \( x = 10 \). Since each piece is either a constant or a linear polynomial, continuity is automatic on the open intervals. We only need to ensure continuity at \( x = 2 \) and \( x = 10 \).
- Step 2: Apply continuity at \( x = 2 \). For \( x \le 2 \) we have \( f(x) = 5 \), so the left-hand limit and value give \( \lim_{x \to 2^-} f(x) = 5 \). For \( 2 < x < 10 \) we have \( f(x) = ax + b \), so \( \lim_{x \to 2^+} f(x) = 2a + b \). Setting these equal: \[ 2a + b = 5 \]
- Step 3: Apply continuity at \( x = 10 \). For \( 2 < x < 10 \) we have \( f(x) = ax + b \), so \( \lim_{x \to 10^-} f(x) = 10a + b \). For \( x \ge 10 \) we have \( f(x) = 21 \), so \( \lim_{x \to 10^+} f(x) = 21 \). Setting these equal: \[ 10a + b = 21 \]
- Step 4: Solve the two equations simultaneously. Subtract the first equation from the second: \[ (10a + b) - (2a + b) = 21 - 5 \] This simplifies to \[ 8a = 16 \] so \[ a = 2 \]
- Step 5: Find \( b \) by substituting \( a = 2 \) into \( 2a + b = 5 \): \[ 2(2) + b = 5 \] which gives \[ 4 + b = 5 \] so \[ b = 1 \]
Final Answer
The function is continuous when \( a = 2 \) and \( b = 1 \).
Common Mistake
A common mistake is to only match the pieces at one join point (say \( x = 2 \)) and forget the other join point \( x = 10 \). With two unknowns \( a \) and \( b \), you need two equations, so both join points must be used.