Question 731
\[f(x) = \begin{cases} \ln(3-x), & x \lt 2 \\ a - bx, & x \ge 2 \end{cases}\] Find the values of \(a\) and \(b\) so that \(f(x)\) is differentiable at \(x = 2\).
Main Solution
Strategy
To make a piecewise function differentiable at a point, two conditions must be met: the function must be continuous at that point, and its left-hand derivative must equal its right-hand derivative at that point. This will lead to a system of two equations with two unknowns, \(a\) and \(b\), which can then be solved.
Key Insight
Differentiability at a point implies continuity at that point. Therefore, both the function values and the derivatives must match at the point where the function changes definition.
Choice Analysis
Choice D - Correct ✓ - Correct values of a and b: For \(f(x)\) to be differentiable at \(x = 2\), it must first be continuous at \(x = 2\).1. Continuity Condition at \(x=2\):
The left-hand limit must equal the function value at \(x=2\).
\[\lim_{x \to 2^-} f(x) = \lim_{x \to 2^-} \ln(3-x) = \ln(3-2) = \ln(1) = 0\]
The function value at \(x=2\) is given by the second piece of the function:
\[f(2) = a - b(2) = a - 2b\]
For continuity, these must be equal:
\[a - 2b = 0 \quad \text{(Equation 1)}\]
2. Differentiability Condition at \(x=2\):
The derivative of each piece of the function is:
For \(x < 2\), \(f'(x) = \frac{d}{dx}(\ln(3-x)) = \frac{1}{3-x} \cdot (-1) = -\frac{1}{3-x}\)
For \(x > 2\), \(f'(x) = \frac{d}{dx}(a - bx) = -b\)
For differentiability, the left-hand derivative must equal the right-hand derivative at \(x=2\).
\[\lim_{x \to 2^-} f'(x) = -\frac{1}{3-2} = -\frac{1}{1} = -1\]
\[\lim_{x \to 2^+} f'(x) = -b\]
For differentiability, these must be equal:
\[-b = -1 \quad \text{(Equation 2)}\]
3. Solve the System of Equations:
From Equation 2, we have:
\[b = 1\]
Substitute \(b=1\) into Equation 1:
\[a - 2(1) = 0\]
\[a - 2 = 0\]
\[a = 2\]
Thus, the values are \(a = 2\) and \(b = 1\).
Choice A - Incorrect - Incorrect a, correct b: This option provides \(b=1\), which is correct. However, \(a=3\) would lead to \(3 - 2(1) = 1 \ne 0\), violating the continuity condition \(a - 2b = 0\). This might result from an error in solving the system of equations or a misunderstanding of the continuity requirement.
Choice B - Incorrect - Incorrect a, incorrect b: This option presents \(a=1\) and \(b=2\). If \(b=2\), the differentiability condition would imply \(-b = -1 \implies -2 = -1\), which is false. Even if it were assumed \(b\) was correct, the continuity condition \(a-2b=0\) would lead to \(1 - 2(2) = 1 - 4 = -3 \ne 0\). This suggests errors in applying both continuity and differentiability conditions.
Choice C - Incorrect - Incorrect a, incorrect b (sign error): This option suggests \(a=-2\) and \(b=-1\). If \(b=-1\), the differentiability condition \(-b = -1\) would lead to \(-(-1) = -1 \implies 1 = -1\), which is false. This value for \(b\) often arises from a sign error in the derivative of \(\ln(3-x)\), where a student might forget the chain rule factor of \(-1\), leading to \(\lim_{x \to 2^-} f'(x) = \frac{1}{3-2} = 1\), so \(-b = 1 \implies b = -1\). If this incorrect \(b=-1\) is then used in the continuity equation \(a-2b=0\), it would give \(a-2(-1)=0 \implies a+2=0 \implies a=-2\). This is a common mistake.
Teacher Explanation
A strong AP Calculus student should first identify that differentiability at a point requires two main conditions: continuity at that point and equal left and right-hand derivatives. The key task is to set up a system of two equations based on these conditions. The first equation comes from setting the limit of the first piece equal to the value of the second piece at \(x=2\). The second equation comes from setting the derivative of the first piece equal to the derivative of the second piece at \(x=2\). The correct answer is \(a=2, b=1\) because these values satisfy both the continuity and differentiability criteria. The most common error is miscalculating the derivative of \(\ln(3-x)\) due to a chain rule sign error, which propagates through the rest of the calculation.
Education Coach Advice
Always remember that for a function to be differentiable at a point, it must first be continuous at that point. Set up the continuity equation first.
When differentiating a composite function like \(\ln(u)\), remember to apply the chain rule: \(\frac{d}{dx}(\ln(u)) = \frac{1}{u} \cdot \frac{du}{dx}\). Pay close attention to signs, especially with expressions like \((3-x)\).
After setting up the two equations (one for continuity, one for differentiability), solve the system carefully. Often, one variable can be found directly from the derivative equation, simplifying the process.
Double-check your final \(a\) and \(b\) values by plugging them back into both the original function's continuity conditions and the derivative's equality condition to ensure they hold true.
Traps
The most common trap is a sign error when differentiating \(\ln(3-x)\). The chain rule dictates that the derivative is \(\frac{1}{3-x} \cdot \frac{d}{dx}(3-x) = \frac{1}{3-x} \cdot (-1) = -\frac{1}{3-x}\). Forgetting the \(-1\) factor leads to an incorrect value for \(b\), and subsequently for \(a\).
Answer images

