Differentiability and Continuity
Every differentiable function is continuous, but a continuous function can still fail to have a derivative. This guide shows the one-way connection, the four shapes where derivatives fail, and how to check a piecewise function.
If \(f'(c)\) exists, then \(f\) is continuous at \(c\): a function cannot have a tangent slope at a point where its graph breaks. The reverse is false. A continuous graph can still fail to have a derivative at a corner (slopes from the two sides disagree), a cusp (slopes run to opposite infinities), or a vertical tangent (slope is unbounded). And any discontinuity rules out a derivative.
1The one-way connection
| Statement | True? |
|---|---|
| Differentiable at c ⟹ continuous at c | Always true |
| Continuous at c ⟹ differentiable at c | False: |x| at 0 is a counterexample |
| Not continuous at c ⟹ not differentiable at c | Always true (the first statement turned around) |
“\(f\) is differentiable at \(x = 3\), so \(f\) is continuous at \(x = 3\).”
“\(f\) is not continuous at \(x = 2\), so \(f\) is not differentiable at \(x = 2\).”
2Where derivatives fail
| Shape at c | Continuous? | What the slopes do |
|---|---|---|
| Corner | Yes | Left and right slopes are different numbers |
| Cusp | Yes | Slopes go to \(\infty\) on one side and \(-\infty\) on the other |
| Vertical tangent | Yes | Slopes go to \(\infty\) (or \(-\infty\)) on both sides |
| Jump, hole, asymptote | No | No derivative, because no continuity |
“The graph has no breaks, so it is differentiable” fails at every corner and cusp. To be differentiable, the graph must also be smooth: one non-vertical tangent direction at the point.
3Checking with one-sided slopes
The derivative is a two-sided limit, so it exists only when the difference quotient has the same limit from both sides. At a suspicious point, compute the left-hand and right-hand slopes separately.
Is \(f(x) = |x|\) differentiable at 0?
- 1Difference quotient at 0: \(\dfrac{|0 + h| - |0|}{h} = \dfrac{|h|}{h}\).
- 2For \(h \gt 0\) it is 1; for \(h \lt 0\) it is \(-1\). The one-sided limits are 1 and \(-1\).
- 3They disagree, so the limit, and with it \(f'(0)\), does not exist.
- 4Note that \(|x|\) is continuous at 0. Continuity alone did not guarantee a derivative.
\(g(x) = \sqrt[3]{x}\) at 0
- 1Difference quotient: \(\dfrac{\sqrt[3]{h} - 0}{h} = \dfrac{1}{h^{2/3}}\).
- 2\(h^{2/3}\) is positive and shrinks to 0 from both sides, so the quotient grows without bound.
- 3The tangent line at the origin is vertical, and a vertical line has no slope.
\(y = x^{2/3}\) at 0 has difference quotient \(h^{-1/3}\), which goes to \(\infty\) from the right and \(-\infty\) from the left. The graph comes to a sharp point that is vertical on both sides, called a cusp.
4Piecewise functions
At a seam of a piecewise function, check in this order: (1) continuity, the heights match; (2) differentiability, the slopes match. Failing the first means the second does not matter.
\(p(x) = x^2\) for \(x \le 1\), \(p(x) = 3x - 2\) for \(x \gt 1\)
- 1Continuity first: \(p(1) = 1\), left limit \(1\), right limit \(3 - 2 = 1\). Continuous.
- 2Slopes: the left piece has derivative \(2x\), which is 2 at \(x = 1\). The right piece has slope 3.
- 3The slopes from the two sides disagree, so the graph has a corner at x = 1.
\(q(x) = ax^2 + 1\) for \(x \le 2\), \(q(x) = bx - 3\) for \(x \gt 2\)
Find \(a\) and \(b\) so that \(q\) is differentiable at \(x = 2\).
- 1Differentiable requires continuous, so the heights must match at 2: \(4a + 1 = 2b - 3\).
- 2The slopes must match too. Left slope \(2ax = 4a\) at \(x = 2\); right slope \(b\). So \(4a = b\).
- 3Substitute \(b = 4a\): \(4a + 1 = 8a - 3\), so \(a = 1\) and \(b = 4\).
- 4Check: heights \(4 + 1 = 5\) and \(8 - 3 = 5\); slopes \(4\) and \(4\).
Matching slopes on pieces that do not meet still gives a jump, and a jump has no derivative. Always check the heights first.
A calculator’s numerical derivative of \(|x|\) at 0 averages the slopes on both sides and reports 0. The true answer is that no derivative exists.
Quick reference
| Test at x = c | Conclusion |
|---|---|
| Not continuous | Not differentiable |
| Continuous; left slope = right slope (finite) | Differentiable |
| Continuous; left slope ≠ right slope | Corner: not differentiable |
| Slope unbounded | Vertical tangent or cusp: not differentiable |
| Piecewise seam | Match heights, then match slopes |