Question
Consider the function
Find the values of and such that is differentiable at . Sketch the resulting function near .
Solution — Step by Step
Differentiability requires continuity. So we first need:
Left limit: . Right limit: . Setting equal:
Compute one-sided derivatives.
Left: for , so .
Right: for , so .
For differentiability, … (ii).
From (ii), . From (i), .
Resulting function:
At : from both sides ✓. Slope is 2 on both sides ✓. The graph shows a straight line of slope 2 meeting a parabola of slope 2 — they kiss tangentially at .
, .
Why This Works
A piecewise function is differentiable at a junction if and only if (1) both pieces agree in value (continuity) and (2) both pieces agree in derivative (smoothness). Visually, the two curves must meet and share the same tangent line at the meeting point.
If only continuity holds but slopes differ, you get a “corner” (like at ) — continuous but not differentiable. If continuity itself fails, there’s a jump and neither continuity nor differentiability holds.
Alternative Method
Use the limit definition of derivative directly:
Compute from the left (): get . From the right (): get . Setting equal gives . Same constraint.
Common Mistake
Students sometimes only enforce continuity and stop, ignoring differentiability. They get one equation in two unknowns and either guess or report "" without realising another equation comes from matching derivatives. Always remember: differentiability gives two conditions, not one.