AP Calculus AB and BC
When Rolle's Theorem Fails: Three Counterexamples
Rolle's Theorem needs three things: continuity on the closed interval, differentiability on the open one, and equal values at the two endpoints. Drop any single one and there is a function with no horizontal tangent anywhere inside. All three failures are shown below.
Rolle's Theorem
If f is continuous on the closed interval, differentiable on the open interval inside it, and takes equal values at the two endpoints, then the graph has a horizontal tangent somewhere strictly between them.
The hypotheses, and what each one buys
A theorem is only as strong as its conditions. Below, each hypothesis is dropped on its own while every other one is kept, so you can see precisely what it was holding up.
- 1
f is continuous on the closed interval [a, b]
This is the hypothesis that binds the endpoints to the rest of the graph. Differentiability on the open interval already gives continuity inside, so what continuity adds here is the promise that the function does not jump as it arrives at or .
Drop it and the theorem fails
f(x) = x on [0, 1), with f(1) redefined as 0
The endpoint values now agree, , so the third hypothesis holds. The function is differentiable throughout , so the second holds. Only continuity at fails, and that alone is enough: everywhere inside, never 0.
- 2
f is differentiable on the open interval (a, b)
The conclusion names , so a function with no derivative at the one place a horizontal tangent could occur has nothing to offer. A single corner is enough, and the corner tends to sit exactly where the turning point is.
Drop it and the theorem fails
f(x) = |x| on [-1, 1]
Continuity holds and the endpoints agree, . The turning point is at the origin, which is precisely where the derivative fails to exist. Everywhere else the slope is . The graph turns around without ever being flat.
- 3
The endpoint values are equal, f(a) = f(b)
This is what forces the graph to come back. Without it there is nothing making the function turn around, and a function that only ever climbs has no flat spot to offer. The Mean Value Theorem is what you get when you drop this one and ask for the secant slope instead of zero.
Drop it and the theorem fails
f(x) = x on [0, 1]
As bland as a function gets: continuous everywhere, differentiable everywhere, and utterly without a horizontal tangent. The only failing hypothesis is . The Mean Value Theorem still applies here and correctly promises a point where , which is every point.
All 3 counterexamples above are checked numerically on every build: each function is evaluated and the conclusion is confirmed to fail. A counterexample that stopped working would fail the build rather than sit here misleading you.
Why it is true
- The Extreme Value Theorem applies, since is continuous on a closed bounded interval, so attains a maximum and a minimum on .
- If both the maximum and the minimum occur at the endpoints, then since they are equal, so is constant and at every interior point.
- Otherwise at least one of them occurs at an interior point .
- At an interior extremum where the derivative exists, the derivative must be 0, by the interior extremum theorem. Differentiability on supplies exactly that, and is the point.
What it does not say
Rolle's Theorem is weaker than the Mean Value Theorem.
They are equivalent. The Mean Value Theorem follows from Rolle by subtracting the secant line, and Rolle is the case of the Mean Value Theorem where the secant happens to be horizontal. Neither is stronger.
f(a) = f(b) = 0 is required.
Only equality is required, not the value 0. The common statement uses zeros because Rolle is usually applied to a function's roots, but works just as well.
A function with no horizontal tangent contradicts Rolle.
Only if it satisfied all three hypotheses, which it will not. The three counterexamples above each fail exactly one, which is what makes them informative rather than paradoxical.
Frequently asked questions
Can Rolle's Theorem be applied to |x| on [-1, 1]?
No. The endpoint values are equal and the function is continuous, but it is not differentiable at , so the hypotheses are not met and the theorem makes no claim. That is why having no horizontal tangent is not a contradiction.
Does Rolle's Theorem guarantee only one point?
No, at least one. A function can have many horizontal tangents inside the interval; on has four.