In short

If a function is continuous on [a, b], differentiable on (a, b), and satisfies f(a) = f(b), then there exists at least one point c in (a, b) where f'(c) = 0. In plain language: a smooth curve that starts and ends at the same height must have a horizontal tangent somewhere in between.

Throw a ball straight up into the air. It rises, slows down, stops for an instant, and falls back. At the very top — the moment it is neither rising nor falling — its velocity is exactly zero. Not approximately zero. Exactly zero.

You did not need calculus to know that. You knew it from experience, from watching every ball you have ever thrown. But here is the mathematical version of the same observation. The ball's height is a smooth function of time. At the moment of the throw it is at some height, and some time later — when it returns to the same height — it is back to the same value. Somewhere between those two moments, the height function stopped increasing and started decreasing. At that transition point, the rate of change of height was zero. The derivative was zero.

This is the simplest and one of the most powerful ideas in calculus. It is called Rolle's theorem, and it is the foundation on which the entire theory of the Mean Value Theorem is built.

The idea, drawn

Take any smooth curve that starts and ends at the same height. It doesn't matter what happens in between — the curve can go up, come down, wiggle, loop around — as long as it starts at height f(a) and ends at the same height f(b) = f(a), and the curve has no sharp corners and no breaks in between.

Look at such a curve. Somewhere between a and b, the curve must have a highest point or a lowest point (or both). At that extreme point, the tangent line to the curve is horizontal — its slope is zero.

A curve with $f(a) = f(b)$. The dashed grey line shows that both endpoints sit at the same height. At the point $c$, the tangent is horizontal — $f'(c) = 0$. Rolle's theorem guarantees that such a point must exist.

That is the entire content of Rolle's theorem. If the curve connects two points at the same height, without breaks or corners, then somewhere in between the derivative must be zero.

Why must there be a highest or lowest point? Because a continuous function on a closed interval always achieves its maximum and minimum values — that is the Extreme Value Theorem. The curve cannot just drift upward forever; it is trapped between a and b, and continuity forces it to turn around somewhere. At that turning point, the tangent is flat.

The formal statement

Rolle's Theorem

Let f be a function such that:

  1. f is continuous on the closed interval [a, b],
  2. f is differentiable on the open interval (a, b),
  3. f(a) = f(b).

Then there exists at least one point c \in (a, b) such that f'(c) = 0.

Reading the conditions. Each condition is doing real work:

Notice that the theorem says "there exists at least one." There could be many such points. If the curve goes up and down multiple times between a and b, it may have several horizontal tangents. The theorem only promises at least one.

The proof

The proof uses one fact from analysis: a continuous function on a closed interval attains its maximum and minimum values. (This is the Extreme Value Theorem.) Given that, the argument is clean.

Case 1: f is constant on [a, b]. If f(x) = f(a) for every x in [a, b], then f'(x) = 0 for every x in (a, b). Any point in (a, b) works as c. Done.

Case 2: f is not constant. Since f is not constant and f(a) = f(b), the function must take some value different from f(a) at some point in the interior. Two sub-cases arise:

In either case, a point c in (a, b) with f'(c) = 0 exists. \blacksquare

The key step — "at a local extremum of a differentiable function, f'(c) = 0" — is sometimes called Fermat's lemma (it is a small observation, not a deep theorem). If you have read the article on critical points, you have already seen this reasoning in action.

Why each condition matters

Each of the three conditions is necessary. Remove any one, and the conclusion can fail. Here are the standard counterexamples.

Without continuity. Define f on [0, 1] as: f(x) = x for 0 \le x < 1, and f(1) = 0. Then f(0) = f(1) = 0, and f is differentiable on (0, 1) with f'(x) = 1 everywhere. The derivative is never zero. The problem is the jump at x = 1: f is not continuous on the closed interval.

Without differentiability. Take f(x) = 1 - |x| on [-1, 1]. Then f(-1) = f(1) = 0, and f is continuous on [-1, 1]. The function reaches its maximum at x = 0, but f'(0) does not exist — there is a sharp corner. The tangent is not defined, so the conclusion "f'(c) = 0" cannot even be stated.

The function $f(x) = 1 - |x|$ on $[-1, 1]$. The endpoints satisfy $f(-1) = f(1) = 0$, and the function is continuous everywhere. But at $x = 0$ there is a corner — $f$ is not differentiable. The conclusion of Rolle's theorem fails: there is no point where $f'(c) = 0$ (the derivative is $-1$ on the left and $+1$ on the right, and does not exist at the peak).

Without f(a) = f(b). Take f(x) = x on [0, 1]. Then f(0) = 0 and f(1) = 1 — different values. The function is continuous and differentiable everywhere, but f'(x) = 1 for all x. The derivative is never zero. The equal-endpoints condition is essential.

Applications

Rolle's theorem is not just a theoretical curiosity. It is a sharp tool for answering a specific kind of question: "how many roots can this equation have?"

Bounding the number of roots of a polynomial

Here is the key observation: between any two roots of f, there is at least one root of f'.

Why? If f(a) = 0 and f(b) = 0 with a < b, then f(a) = f(b), the function is continuous on [a, b] and differentiable on (a, b) (polynomials are always both), so Rolle's theorem says f'(c) = 0 for some c in (a, b).

This gives an immediate bound: if f' has n real roots, then f has at most n + 1 real roots. Because between every consecutive pair of roots of f, there must be a root of f', and those roots of f' are all distinct (they live in non-overlapping intervals). So f having k roots forces f' to have at least k - 1 roots. Flipping this: if f' has n roots, then k - 1 \le n, meaning k \le n + 1.

Example 1: Show that $x^3 - 3x + 1 = 0$ has exactly three real roots

Step 1. Set f(x) = x^3 - 3x + 1.

Why: to count the roots of the equation, study f and f' together.

Step 2. Compute f'(x) = 3x^2 - 3 = 3(x^2 - 1) = 3(x-1)(x+1).

Why: the roots of f' are where the curve has horizontal tangents. These separate the regions where f can cross zero.

Step 3. f'(x) = 0 at x = -1 and x = 1. Evaluate f at these critical points and at extreme values:

  • f(-1) = -1 + 3 + 1 = 3 > 0
  • f(1) = 1 - 3 + 1 = -1 < 0
  • As x \to -\infty, f(x) \to -\infty; as x \to +\infty, f(x) \to +\infty.

Why: sign changes in f between consecutive critical points (and the extremes) force roots to exist, by the Intermediate Value Theorem.

Step 4. Track the sign changes:

  • From -\infty (negative) to x = -1 (positive): sign change, so at least one root in (-\infty, -1).
  • From x = -1 (positive) to x = 1 (negative): sign change, so at least one root in (-1, 1).
  • From x = 1 (negative) to +\infty (positive): sign change, so at least one root in (1, +\infty).

Why: three sign changes give at least three roots. And a cubic has at most three roots. So there are exactly three.

Result: f(x) = x^3 - 3x + 1 has exactly three real roots.

The cubic $y = x^3 - 3x + 1$ crosses the $x$-axis at three points. The critical points at $x = -1$ and $x = 1$ (where $f' = 0$) separate the three roots. Rolle's theorem guarantees that between each consecutive pair of roots, $f'$ has a zero — and indeed, the two zeros of $f'$ sit one in each gap.

Showing an equation has at most one root

The same idea runs in reverse. If you can show that f'(x) is never zero in an interval, then f cannot have more than one root there.

Example 2: Show that $e^x = 2x + 1$ has exactly one positive root

Step 1. Define f(x) = e^x - 2x - 1.

Why: roots of f are exactly the solutions of the original equation.

Step 2. Note that f(0) = 1 - 0 - 1 = 0, so x = 0 is a root. Check: is it the only non-negative root?

Why: finding one root is the starting point; the question is whether there are others.

Step 3. Compute f'(x) = e^x - 2. For x > \ln 2 \approx 0.693, we have e^x > 2, so f'(x) > 0. And f(\ln 2) = 2 - 2\ln 2 - 1 = 1 - 2\ln 2 \approx 1 - 1.386 = -0.386 < 0.

Why: the derivative tells us where f is increasing. Once f starts increasing and is already negative at x = \ln 2, track where f becomes positive again.

Step 4. Since f(0) = 0 and f'(0) = e^0 - 2 = -1 < 0, f is decreasing at x = 0, so f becomes negative just to the right of 0. Then f has a minimum at x = \ln 2 (where f' = 0), and increases thereafter. Since f(2) = e^2 - 5 \approx 2.389 > 0, f crosses zero exactly once in (0, \infty) — somewhere between \ln 2 and 2. Together with the root at x = 0, there are exactly two non-negative roots.

Step 5. For x < 0: f'(x) = e^x - 2 < 0, so f is strictly decreasing on (-\infty, 0]. Since f(0) = 0 and f is decreasing, f(x) > 0 for all x < 0. So there are no negative roots.

Why: a strictly decreasing function can cross zero at most once, and it does so exactly at x = 0.

Result: The equation e^x = 2x + 1 has exactly two real solutions: x = 0 and one positive root near x \approx 1.256.

The curves $y = e^x$ and $y = 2x + 1$ intersect at exactly two points: $x = 0$ and $x \approx 1.256$. Rolle's theorem (applied via the derivative analysis of $f(x) = e^x - 2x - 1$) is the tool that confirms there are no other intersections hiding somewhere.

Common confusions

Going deeper

If you came here to understand what Rolle's theorem says and how to use it, you have it — you can stop here. The rest is for readers who want to see the theorem's place in the larger structure of calculus.

The logical chain: Rolle → Lagrange → Cauchy

Rolle's theorem looks like a special case — it only handles functions with equal endpoint values. But it is the seed from which the entire Mean Value Theorem family grows. The logical chain is:

  1. Rolle's theorem: if f(a) = f(b), there is a c where f'(c) = 0.
  2. Lagrange's Mean Value Theorem: for any continuous-differentiable function on [a, b], there is a c where f'(c) = \frac{f(b) - f(a)}{b - a}. (Proved by applying Rolle's theorem to a cleverly tilted version of f.)
  3. Cauchy's Mean Value Theorem: for two functions f and g, there is a c where \frac{f'(c)}{g'(c)} = \frac{f(b) - f(a)}{g(b) - g(a)}. (Proved by applying Rolle's theorem to a combination of f and g.)

Each theorem is proved by reducing to the one before it. Rolle's theorem, the simplest case, does all the heavy lifting. You will see the details in the Mean Value Theorems article.

Rolle's theorem and the existence of roots of derivatives

Here is a deep consequence. Suppose a polynomial p(x) of degree n has n real roots (counting multiplicity). Then p'(x) has at least n - 1 real roots. This follows directly from Rolle's theorem applied to each consecutive pair of roots of p.

More generally, if p has k distinct real roots, then p' has at least k - 1 real roots. This observation is the starting point for the theory of root separation — understanding how the roots of a polynomial and its derivative interlace on the real line.

The connection to the Intermediate Value Theorem

Rolle's theorem uses the Extreme Value Theorem (a continuous function on [a, b] attains its max and min) but not the Intermediate Value Theorem directly. However, the two theorems are complementary: the IVT tells you that a continuous function crosses a value, while Rolle's theorem (and its descendants) tell you where the derivative is zero. Together, they form the two pillars of the qualitative theory of continuous functions.

Where this leads next

Rolle's theorem is the door to the entire Mean Value Theorem family, and through that family, to almost every result about the behaviour of differentiable functions.