Question 591
f(x) =
Evaluate \(a\) and \(b\) so that \(f\) is both continuous and differentiable at \(x = 0\).
Main Solution
Strategy
To ensure a piecewise function is continuous and differentiable at a point, we must satisfy two conditions: the function values (limits) must match at the point for continuity, and the derivatives must match at the point for differentiability.
Key Insight
The crucial insight is that the derivative of the trigonometric piece, \(a \cos(bx)\), evaluated at \(x=0\) will always be zero because of the sine factor \(\sin(bx)\) becoming \(\sin(0)=0\), while the derivative of the polynomial piece, \(x^2 + 2x + 3\), evaluated at \(x=0\) is a non-zero constant.
Choice Analysis
First, we establish the condition for continuity at \(x=0\). For \(f(x)\) to be continuous at \(x=0\), the left-hand limit must equal the right-hand limit and the function value at \(x=0\).:
The left-hand limit is found using the first piece of the function:
\[\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (x^2 + 2x + 3) = 0^2 + 2(0) + 3 = 3\]:
The right-hand limit and the function value at \(x=0\) are found using the second piece of the function:
\[\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} (a \cos(bx)) = a \cos(b \cdot 0) = a \cos(0) = a \cdot 1 = a\]\nAnd \(f(0) = a \cos(b \cdot 0) = a\).:
For continuity, we must have \(a = 3\).:
Next, we establish the condition for differentiability at \(x=0\). For \(f(x)\) to be differentiable at \(x=0\), the left-hand derivative must equal the right-hand derivative at \(x=0\).:
First, find the derivative of each piece:\nFor \(x < 0\): \(f'(x) = \frac{d}{dx}(x^2 + 2x + 3) = 2x + 2\)\nFor \(x > 0\): \(f'(x) = \frac{d}{dx}(a \cos(bx)) = a(-b \sin(bx)) = -ab \sin(bx)\):
Now, evaluate the limits of these derivatives as \(x \to 0\):\nLeft-hand derivative:
\[\lim_{x \to 0^-} f'(x) = \lim_{x \to 0^-} (2x + 2) = 2(0) + 2 = 2\]:
Right-hand derivative:
\[\lim_{x \to 0^+} f'(x) = \lim_{x \to 0^+} (-ab \sin(bx)) = -ab \sin(b \cdot 0) = -ab \sin(0) = -ab \cdot 0 = 0\]:
Choice B - Correct ✓ - For differentiability, these two derivatives must be equal. However, we found that \(2 = 0\), which is a contradiction. Therefore, it is impossible for \(f(x)\) to be differentiable at \(x=0\) for any real values of \(a\) and \(b\). No such values exist.: The left-hand derivative at \(x=0\) is 2, while the right-hand derivative at \(x=0\) is 0. Since these are not equal, the function cannot be differentiable at \(x=0\).
Teacher Explanation
A strong AP Calculus student should first identify that this problem requires applying the conditions for continuity and differentiability at a piecewise junction. The key task is to calculate the left and right limits of the function and its derivative at \(x=0\). For continuity, the limits must be equal, leading to \(a=3\). For differentiability, the derivatives must be equal. The left-hand derivative at \(x=0\) is \(2x+2\) evaluated at \(x=0\), which is \(2\). The right-hand derivative is \(-ab\sin(bx)\) evaluated at \(x=0\), which simplifies to \(0\) because \(\sin(0)=0\). Since \(2 \ne 0\), the derivatives do not match, implying that the function cannot be differentiable at \(x=0\) for any values of \(a\) and \(b\). The correct answer is B, as no such values exist.
Education Coach Advice
Always check both continuity and differentiability conditions separately when dealing with piecewise functions at their junction points.
Remember that for differentiability, the left-hand derivative and the right-hand derivative must be equal. This means taking the derivative of each piece and evaluating them at the junction point.
Pay close attention to trigonometric derivatives and their values at common points like \(x=0\). \(\sin(0)=0\) is a frequent source of simplification that can lead to contradictions.
If the conditions for differentiability lead to a mathematical contradiction (e.g., \(2=0\)), it indicates that the function cannot be differentiable under those conditions, and thus, no such parameters exist.
Traps
Students might correctly find \(a=3\) from the continuity condition and then incorrectly assume that a value for \(b\) must exist, or they might make an error in differentiating the trigonometric function or evaluating \(\sin(0)\), leading them to believe that \(b\) can be found and that one of options A, C, D, or E is correct.
Answer images

