When the Derivative Does Not Exist
Not every continuous function is differentiable. The derivative fails to exist when the limit does not exist. There are three classical failure modes: kinks (corners), vertical tangents, and wild oscillations.
A kink occurs when the left-hand and right-hand derivatives differ: the function approaches a corner from different angles. Classic example: at — the left-derivative is and the right-derivative is . A vertical tangent occurs when the limit of the difference quotient is — the graph becomes vertical. Wild oscillations like near produce a limit that does not exist.
Formal View
Even though is continuous everywhere, it is NOT differentiable at . Continuity does not imply differentiability.
Why This Matters
Knowing when derivatives fail is essential in optimization — non-smooth functions require specialized algorithms.
- ReLU activation has a kink at — it is not differentiable there, but subgradients are used in practice.
- L1 regularization creates kinks in the loss landscape — solved by proximal methods or subgradient descent.
- Contact mechanics: physical contact creates kinks in displacement fields.
Quiz
At , is:
If a function is differentiable at , it must also be continuous at .
Common Mistakes
- Thinking continuity implies differentiability — the function is the standard counterexample.
- Forgetting that a vertical tangent also means non-differentiability (limit is , not a finite number).