Differentiability vs Continuity
We have seen that differentiability is a stronger requirement than continuity: differentiable continuous, but continuous differentiable. The function is continuous but not differentiable at .
Where exactly does a function fail to be differentiable? Three places: at kinks (corners, where left and right derivatives differ), at cusps (vertical tangents, where the difference quotient diverges to ), and at oscillatory discontinuities of the derivative (where the derivative exists but oscillates wildly). In each case, the limit defining the derivative fails to exist as a finite number.
This logical hierarchy — continuity at minimum, differentiability a step above — will expand in the next section to include (differentiable) vs (continuously differentiable).
Formal View
Proof: as . The converse fails: is continuous but not differentiable at .
Why This Matters
Understanding the hierarchy of regularity is essential for knowing when optimization algorithms have convergence guarantees.
- Subgradient methods extend gradient descent to non-differentiable (but continuous) functions like .
- Smooth optimization ( functions) has better convergence rates than non-smooth optimization.
- Regularization: L2 regularization (, smooth) vs L1 (, non-smooth) leads to different algorithmic requirements.
Quiz
Which implication is TRUE?
A function with a kink (corner) at can still be continuous at .
Common Mistakes
- Believing continuity implies differentiability — is the classic counterexample.
- Thinking a kink makes the function discontinuous — it does not; continuity and differentiability are different conditions.