Rolle's Theorem

Suppose a smooth trip starts and ends at the same altitude. Must the road be perfectly flat somewhere along the way? This must happen even for just an instant. Common sense says yes. You cannot go up and come back down to your starting height without pausing at some peak. Nor can you dip down and return without resting at some valley. Rolle's theorem makes this intuition rigorous. It translates a statement about heights (a function returning to the same value) into a statement about slopes (a derivative equal to zero). This small theorem is a hinge on which a great deal of calculus turns. It is the seed from which the Mean Value Theorem grows. Indeed, the Mean Value Theorem is proved by tilting the graph of a general function. This tilting continues until Rolle's theorem applies directly. From the Mean Value Theorem one derives several key results. These include the sign tests for increasing and decreasing functions. They also include the characterization of functions with zero derivative as constants. Taylor's theorem with remainder and L'Hôpital's rule follow as well. Much of the logical architecture connecting a function's derivative to its global behavior emerges too. Without Rolle's theorem, calculus would be different. It would be a collection of local facts about instantaneous rates of change. There would be no bridge to global statements about the function itself. The proof is a beautiful two-line argument. It is built entirely from two facts you already have in hand. The first is the Extreme Value Theorem. This guarantees a continuous function on a closed bounded interval attains a maximum and a minimum. The second is the interior-extremum criterion from Interior Extrema and the Vanishing Derivative. This says a differentiable function must have zero derivative at any interior point. Such a point is where the function attains a local extreme value. Rolle's theorem is essentially the observation that these two facts, placed side by side, cannot fail to produce a stationary point. This article states the theorem with all its hypotheses made explicit. It proves the theorem completely from the two prerequisite results. It examines what happens when each hypothesis is dropped. It also traces the theorem's history back to its 17th-century origin. This origin is a surprising one. Michel Rolle himself distrusted the infinitesimal calculus that now bears his name in this form.

Key takeaways
  • Rolle's theorem: if ff is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f(a)=f(b)f(a) = f(b), then some c∈(a,b)c \in (a,b) has f′(c)=0f'(c) = 0.
  • All three hypotheses (continuity on the closed interval, differentiability on the open interval, equal endpoint values) are load-bearing; dropping any one breaks the conclusion.
  • The proof combines exactly two prior tools: the Extreme Value Theorem (existence of a max/min) and the interior-extremum criterion (a local extreme point has zero derivative there, if the derivative exists).
  • The theorem guarantees existence of a critical point, not uniqueness, and gives no formula for finding it.
  • It is the direct ancestor of the Mean Value Theorem, obtained by "tilting" an arbitrary function to make its endpoint values match.
  • Key idea: a continuous function that returns to its starting value must attain an interior extremum, and at a point of interior extremum a differentiable function's slope is forced to zero.

Where this lives today

Rolle's theorem is the direct logical predecessor of the Mean Value Theorem: given any differentiable ff on [a,b][a,b] (with no assumption that f(a)=f(b)f(a)=f(b)), one defines the auxiliary function

g(x)=f(x)−f(a)−f(b)−f(a)b−a(x−a),g(x) = f(x) - f(a) - \frac{f(b)-f(a)}{b-a}(x-a),

which subtracts off the secant line joining (a,f(a))(a,f(a)) to (b,f(b))(b,f(b)); one checks g(a)=g(b)=0g(a) = g(b) = 0, applies Rolle's theorem to gg, and translates the resulting g′(c)=0g'(c)=0 back into f′(c)=f(b)−f(a)b−af'(c) = \frac{f(b)-f(a)}{b-a}. This single trick — reduce to Rolle by tilting — is the standard proof pattern reused throughout analysis. Beyond this direct descendant, Rolle's theorem (or its underlying Fermat-critical-point idea) recurs constantly:

  • Root separation in numerical analysis: between any two consecutive real roots of a differentiable function, Rolle's theorem guarantees a root of the derivative, which underlies bisection-style root-isolation algorithms and Sturm's theorem on counting real roots of polynomials.
  • Polynomial theory: Rolle's original algebraic statement bounds how the real roots of a polynomial and its derivative interlace, still used in establishing bounds on the number of real roots of a polynomial (Descartes' rule of signs proofs use related ideas).
  • Physics and mechanics: any smooth motion that returns to its starting position at time bb having started at time aa must have zero instantaneous velocity at some intermediate time — a direct physical reading of the theorem, used in kinematics and control theory to argue the existence of "turning instants."
  • Optimization and machine learning theory: the underlying interior-extremum principle Rolle's theorem depends on is the same principle behind first-order optimality conditions (gradient equals zero at an unconstrained optimum) used throughout convex optimization and the analysis of gradient descent.
  • Complex and functional analysis generalizations: analogues and failures of Rolle's theorem in higher dimensions and for complex-differentiable functions are an active topic; the theorem does not generalize verbatim to complex analytic functions, which is itself an instructive boundary of the real-variable theory.

:::quiz[Let f(x)=∣x∣f(x) = |x| on [−1,1][-1,1]. Why does this NOT contradict Rolle's theorem?]

  • Because f(−1)≠f(1)f(-1) \neq f(1)
  • Because ff is not continuous on [−1,1][-1,1]
  • Because ff fails to be differentiable at the interior point x=0x=0, so a hypothesis of the theorem is not met ✓
  • Because the Extreme Value Theorem fails for ff on [−1,1][-1,1]

:::quiz[For f(x)=(x−1)2(x−4)f(x) = (x-1)^2(x-4) on [1,4][1,4], which point(s) are guaranteed to exist, and confirmed, by Rolle's theorem?]

  • x=1x = 1 only, since it is a root of ff
  • x=2.5x = 2.5, the midpoint of the interval
  • x=3x = 3, an interior point where f′(3)=0f'(3) = 0 ✓
  • x=4x = 4, the right endpoint

:::faq[Is Rolle's theorem true if [a,b][a,b] is replaced by an unbounded interval, like [0,∞)[0,\infty)?] Not in general, precisely because the Extreme Value Theorem's compactness hypothesis (closed and bounded) fails. Consider f(x)=x1+x2f(x) = \frac{x}{1+x^2} for a bounded counterexample-adjacent case, or more simply note that a continuous function on [0,∞)[0,\infty) with f(0)=lim⁡x→∞f(x)f(0) = \lim_{x\to\infty} f(x) need not attain any extremum at all if the limiting behavior is only approached, never reached. The closed-and-bounded hypothesis on the interval is doing real work by way of guaranteeing compactness for the Extreme Value Theorem.

Ask the tutor: How does tilting a general function by its secant line turn Rolle's theorem into the Mean Value Theorem?

DefinitionRolle's Theorem — hypotheses and conclusion

Let a<ba < b be real numbers and let f:[a,b]→Rf : [a,b] \to \mathbb{R} be a function satisfying: 1. (Continuity) ff is continuous on the closed interval [a,b][a,b]; 2. (Differentiability) ff is differentiable at every point of the open interval (a,b)(a,b); 3. (Equal endpoints) f(a)=f(b)f(a) = f(b). Then there exists at least one point c∈(a,b)c \in (a,b) such that

f′(c)=0.f'(c) = 0.

Intuition

Picture the graph of ff over [a,b][a,b]: it starts at height f(a)f(a), wanders around, and returns to the exact same height f(b)=f(a)f(b) = f(a). If ff were constant, every point is a stationary point and there is nothing to prove. Otherwise the graph must rise above, or dip below, its starting height at some point in between — because it is continuous, it cannot jump directly from f(a)f(a) back to f(a)f(a) without doing something in between (unless it does nothing at all). Wherever the graph reaches its highest point (or its lowest point) strictly inside the interval, the tangent line there must be momentarily horizontal: an instant of zero velocity, exactly like the peak of a ball thrown straight up, where the ball's height stops increasing and starts decreasing, so its velocity passes through zero. The proof strategy exploits the Extreme Value Theorem, which is only about existence of a global max and global min on the closed interval, and combines it with the purely local fact that an interior extremum forces a zero derivative. The subtlety the proof must handle is that the max and min guaranteed by the Extreme Value Theorem might both occur at the endpoints aa and bb — and endpoints are not "interior," so the local criterion does not apply there. The resolution is a case split: if both extrema sit at the endpoints, then since f(a)=f(b)f(a)=f(b), the max equals the min, forcing ff to be constant, and any interior point works. Otherwise, at least one extremum is genuinely interior, and the criterion applies directly to that point.

Figure
A function returning to its starting height must level off somewhere in between
x y a b f(a) = f(b) tangent horizontal at c c
TheoremRolle's Theorem

Let a,b∈Ra,b \in \mathbb{R} with a<ba<b, and let f:[a,b]→Rf:[a,b]\to\mathbb{R} satisfy:

  • ff is continuous on [a,b][a,b],
  • ff is differentiable on (a,b)(a,b),
  • f(a)=f(b)f(a) = f(b).

Then there exists c∈(a,b)c \in (a,b) with f′(c)=0f'(c) = 0.

Proof

We use two previously established results and organize the argument as a case split. The technique is existence-by-extremum: locate a global extreme point using compactness, then show it must be interior, then invoke the local criterion there.

Step 1: Existence of a global maximum and minimum. Since [a,b][a,b] is closed and bounded and ff is continuous on [a,b][a,b], the Extreme Value Theorem guarantees the existence of points xM,xm∈[a,b]x_M, x_m \in [a,b] such that

f(xm)≤f(x)≤f(xM)for all x∈[a,b].f(x_m) \le f(x) \le f(x_M) \quad \text{for all } x \in [a,b].

That is, ff attains a global minimum value m:=f(xm)m := f(x_m) and a global maximum value M:=f(xM)M := f(x_M) on [a,b][a,b].

Step 2: Case split on whether M=mM = m. Case A: M=mM = m. Then for every x∈[a,b]x \in [a,b],

m≤f(x)≤M=m,m \le f(x) \le M = m,

which forces f(x)=mf(x) = m for all x∈[a,b]x \in [a,b]; that is, ff is constant on [a,b][a,b]. Pick any point cc in the (nonempty) open interval (a,b)(a,b) — such a point exists because a<ba < b. Since ff is constant near cc, the difference quotient

f(c+h)−f(c)h=m−mh=0\frac{f(c+h)-f(c)}{h} = \frac{m-m}{h} = 0

for all sufficiently small h≠0h \neq 0, so f′(c)=lim⁡h→00=0f'(c) = \lim_{h\to 0} 0 = 0. This proves the theorem in Case A. Case B: M≠mM \neq m. Since m≤Mm \le M always, this means m<Mm < M. We claim at least one of the extremum points xM,xmx_M, x_m found in Step 1 lies in the open interval (a,b)(a,b), i.e., is not equal to aa or bb. Suppose, for contradiction, that both xMx_M and xmx_m lie in {a,b}\{a,b\}. Since f(a)=f(b)f(a) = f(b) by hypothesis, we would have f(xM)=f(xm)f(x_M) = f(x_m) regardless of which of a,ba,b each equals — because ff takes the same value at both endpoints. But f(xM)=Mf(x_M) = M and f(xm)=mf(x_m) = m, so this would give M=mM = m, contradicting M≠mM \neq m in this case. Hence at least one of xM,xmx_M, x_m is not an endpoint, i.e., lies in (a,b)(a,b). Let cc denote this interior extremum point (if both happen to be interior, pick either one). By construction ff attains a global extreme value (maximum if c=xMc = x_M, minimum if c=xmc = x_m) at cc, and in particular ff attains a local extreme value at cc relative to [a,b][a,b], since a global extreme value over [a,b][a,b] is certainly a local extreme value there. Because c∈(a,b)c \in (a,b), the point cc is an interior point of the domain [a,b][a,b] at which ff has a local extremum, and ff is differentiable at cc (since c∈(a,b)c \in (a,b) and ff is differentiable throughout (a,b)(a,b) by hypothesis). By the interior-extremum criterion (sometimes called Fermat's interior extremum theorem), if a function is differentiable at an interior point of its domain and attains a local extremum there, its derivative at that point must vanish. Applying this to ff at cc gives

f′(c)=0.f'(c) = 0.

Conclusion. In both Case A and Case B we have produced a point c∈(a,b)c \in (a,b) with f′(c)=0f'(c) = 0. Since these two cases are exhaustive (M=mM = m or M≠mM \neq m), the theorem holds in general. ■\blacksquare

∎

Worked examples

Example 1 (an asymmetric cubic). Let f(x)=x3−5x2+3x+9f(x) = x^3 - 5x^2 + 3x + 9 on the interval [a,b]=[−1,3][a,b] = [-1, 3]. Check the hypotheses. ff is a polynomial, hence continuous on R\mathbb{R}, so certainly continuous on [−1,3][-1,3]; and differentiable everywhere, in particular on (−1,3)(-1,3), with

f′(x)=3x2−10x+3.f'(x) = 3x^2 - 10x + 3.

Check the endpoint condition:

f(−1)=(−1)3−5(−1)2+3(−1)+9=−1−5−3+9=0,f(-1) = (-1)^3 - 5(-1)^2 + 3(-1) + 9 = -1 - 5 - 3 + 9 = 0,
f(3)=33−5(3)2+3(3)+9=27−45+9+9=0.f(3) = 3^3 - 5(3)^2 + 3(3) + 9 = 27 - 45 + 9 + 9 = 0.

So f(−1)=f(3)=0f(-1) = f(3) = 0: all three hypotheses of Rolle's theorem hold, even though the interval [−1,3][-1,3] is not centered at a "nice" point and the function has no symmetry. Find the guaranteed point(s). Solve f′(c)=3c2−10c+3=0f'(c) = 3c^2 - 10c + 3 = 0 using the quadratic formula:

c=10±100−366=10±86.c = \frac{10 \pm \sqrt{100 - 36}}{6} = \frac{10 \pm 8}{6}.

This gives c=3c = 3 or c=13c = \tfrac{1}{3}. The root c=3c = 3 is an endpoint, not in the open interval, so it is not the point Rolle's theorem promises (indeed the theorem only asserts existence of a point in the open interval — the appearance of c=3c=3 as an algebraic root of f′f' is incidental here). The other root,

c=13∈(−1,3),c = \frac{1}{3} \in (-1, 3),

lies strictly inside the interval, confirming the theorem: f′ ⁣(13)=3⋅19−10⋅13+3=13−103+3=1−10+93=0f'\!\left(\tfrac13\right) = 3\cdot\tfrac19 - 10\cdot\tfrac13 + 3 = \tfrac13 - \tfrac{10}{3} + 3 = \tfrac{1 - 10 + 9}{3} = 0, as required.

Example 2 (a case where the naive "midpoint guess" fails, testing the proof's logic). Let f(x)=(x−1)2(x−4)f(x) = (x-1)^2(x-4) on [a,b]=[1,4][a,b] = [1,4]. Check hypotheses. ff is a polynomial: continuous on [1,4][1,4] and differentiable on (1,4)(1,4). Endpoints:

f(1)=(0)2(1−4)=0,f(4)=(3)2(0)=0.f(1) = (0)^2(1-4) = 0, \qquad f(4) = (3)^2(0) = 0.

So f(1)=f(4)=0f(1) = f(4) = 0, satisfying the theorem's hypotheses. Locate the zero-derivative point. Expand:

f(x)=(x2−2x+1)(x−4)=x3−6x2+9x−4.f(x) = (x^2 - 2x + 1)(x-4) = x^3 - 6x^2 + 9x - 4.

Then

f′(x)=3x2−12x+9=3(x2−4x+3)=3(x−1)(x−3).f'(x) = 3x^2 - 12x + 9 = 3(x^2 - 4x + 3) = 3(x-1)(x-3).

The roots of f′f' are x=1x = 1 and x=3x = 3. Here x=1x=1 is an endpoint (excluded from the open interval, consistent with the theorem only guaranteeing an interior point), while

c=3∈(1,4)c = 3 \in (1,4)

is genuinely interior, and f′(3)=3(2)(0)=0f'(3) = 3(2)(0) = 0, confirming the conclusion. Note the midpoint of [1,4][1,4] is 2.52.5, not 33: this example is deliberately asymmetric to show the guaranteed point need not be, and generally is not, the midpoint of the interval — Rolle's theorem promises existence of some interior critical point, never where it sits or that there is only one (here there would have been two critical points of ff inside [1,4][1,4] had x=1x=1 not been an endpoint, illustrating that the theorem's "cc" need not be unique when it exists in the interior more than once).

CounterexampleDropping differentiability at even one interior point

Consider f(x)=∣x∣f(x) = |x| on [a,b]=[−1,1][a,b] = [-1,1]. Which hypotheses hold? ff is continuous on all of R\mathbb{R}, in particular on [−1,1][-1,1] — continuity holds. The endpoint condition holds: f(−1)=1=f(1)f(-1) = 1 = f(1). But differentiability fails at the single interior point x=0x=0: the left-hand derivative there is −1-1 and the right-hand derivative is +1+1, so f′(0)f'(0) does not exist. Thus exactly one hypothesis of Rolle's theorem — differentiability throughout the open interval — is violated, and only at a single point. The conclusion fails. For every x∈(−1,0)x \in (-1,0), f′(x)=−1≠0f'(x) = -1 \neq 0; for every x∈(0,1)x \in (0,1), f′(x)=+1≠0f'(x) = +1 \neq 0; and f′(0)f'(0) does not exist at all. So there is no point c∈(−1,1)c \in (-1,1) with f′(c)=0f'(c) = 0. The theorem's conclusion is false here. Why the proof breaks. Revisit the proof: the Extreme Value Theorem still applies (it only needs continuity), producing a global minimum at xm=0x_m = 0, which is an interior point. But the interior-extremum criterion requires ff to be differentiable at that interior critical point to conclude the derivative vanishes there — and ff is not differentiable at x=0x=0. The proof's final step, "apply the interior-extremum criterion at cc," has no valid target: the hypothesis "ff differentiable at cc" is simply false. This shows differentiability at every point of the open interval — not merely "differentiable at most points" — is essential; a single non-differentiable point, exactly at the location the extremum wants to occur, is enough to destroy the conclusion.

Scope, edge cases & common traps

SituationWhat happens
ff differentiable on [a,b][a,b] (closed), not just (a,b)(a,b)Hypotheses are still satisfied (differentiability on the open interval is implied); theorem applies as stated, with room to spare.
ff continuous on [a,b][a,b] but only differentiable on (a,b)∖{x0}(a,b)\setminus\{x_0\} for one bad point x0x_0Conclusion can fail — see the ∣x∣|x| counterexample.
f(a)≠f(b)f(a) \neq f(b)Rolle's theorem does not apply directly; this is precisely the setting generalized by the Mean Value Theorem.
Domain is an open interval (a,b)(a,b) with no continuity assumed at endpoints (or endpoints not in domain at all)The Extreme Value Theorem no longer guarantees a maximum/minimum is attained; the conclusion can fail (e.g. f(x)=xf(x) = x on (0,1)(0,1), extended arbitrarily, has no interior critical point).
ff constant on [a,b][a,b]Every point of (a,b)(a,b) satisfies f′(c)=0f'(c) = 0; this is "Case A" of the proof and is the only situation where the guaranteed point is not unique in an essential way tied to a genuine extremum.
More than one point with f′(c)=0f'(c)=0Perfectly consistent with the theorem — it asserts existence of at least one such point, never uniqueness.

The mathematician behind it

Origins · 1 minMichel Rolle and how this was discovered
MR
Michel Rolle
1652–1719 · French Academy of Sciences, algebra and the foundations of calculus

Michel Rolle was a self-taught French mathematician who worked as a clerk and later became a respected member of the Académie Royale des Sciences. He is best remembered today for a 1691 result, stated purely in the language of polynomial algebra, concerning the location of roots of a polynomial's derivative between consecutive roots of the polynomial itself — a discrete, algebraic ancestor of the theorem that now carries his name in the language of calculus. Ironically, Rolle was for years an outspoken critic of the newly invented infinitesimal calculus of Newton and Leibniz, viewing it as insufficiently rigorous, and he had no notion of a general continuous, differentiable function in the modern sense. The theorem's generalization to arbitrary differentiable functions, and its formulation via limits, emerged only later, notably in the rigorous treatments developed in the 19th century by mathematicians building the modern theory of Continuity and differentiation, including Cauchy, who used essentially this result as a stepping stone toward the Mean Value Theorem.

History
- 1691 — Michel Rolle publishes an algebraic version of the theorem for polynomials, in the context of a method for approximating roots of equations.
- 1823 — Augustin-Louis Cauchy, in his lectures on the calculus, formalizes limits and continuity rigorously and proves a general version of the Mean Value Theorem, using a Rolle-type lemma as its key step.
- Late 1800s — the theorem is given its modern name "Rolle's Theorem" in calculus textbooks, extended fully to general differentiable real functions rather than polynomials alone.
- 20th century — the theorem becomes a standard early result in real analysis courses, typically proved (as here) directly from the Extreme Value Theorem and Fermat's interior-extremum criterion.
- Today — the theorem is a foundational lemma cited in the proof of the Mean Value Theorem in essentially every modern analysis textbook.
Does Rolle's theorem require f(a)=f(b)=0f(a) = f(b) = 0, or just f(a)=f(b)f(a) = f(b)?

Just f(a)=f(b)f(a) = f(b) — the common value need not be zero. Many textbook examples use functions vanishing at both endpoints because it makes finding the interval easy (just find two roots of ff), but the theorem itself only cares that the two endpoint heights match, whatever that common height is. For instance f(x)=cos⁡xf(x) = \cos x on [−π/3,π/3][-\pi/3, \pi/3] has f(−π/3)=f(π/3)=1/2≠0f(-\pi/3) = f(\pi/3) = 1/2 \neq 0, and Rolle's theorem still guarantees a point c∈(−π/3,π/3)c \in (-\pi/3,\pi/3) with f′(c)=−sin⁡c=0f'(c) = -\sin c = 0, namely c=0c = 0.

Why is the Extreme Value Theorem needed — couldn't we just look at where f′=0f' = 0 directly?

The whole difficulty is that we are not handed a formula for f′f' to solve directly; we only know ff is some differentiable function. Rolle's theorem is an existence statement valid for every differentiable function satisfying the hypotheses, including ones without a closed-form derivative. The Extreme Value Theorem is what guarantees, abstractly and for any continuous function on a closed bounded interval, that a highest and lowest point actually exist to reason about — without it, a function could in principle have a supremum that is never attained, and the whole argument would collapse.

What if ff is differentiable but f′f' is not continuous — does Rolle's theorem still apply?

Yes. Rolle's theorem only requires ff to be differentiable on (a,b)(a,b); it says nothing about the derivative function f′f' being continuous. A classic example is f(x)=x2sin⁡(1/x)f(x) = x^2 \sin(1/x) for x≠0x \neq 0 and f(0)=0f(0) = 0, whose derivative exists everywhere but is discontinuous at 00; Rolle's theorem applies to such functions exactly as stated, because the interior-extremum criterion it relies on likewise never assumes continuity of the derivative.

Can Rolle's theorem produce more than one valid point cc?

Absolutely, and this is not a contradiction of the theorem, which only claims existence of at least one point. For example f(x)=sin⁡xf(x) = \sin x on [0,2π][0, 2\pi] has f(0)=f(2π)=0f(0) = f(2\pi) = 0, and f′(x)=cos⁡xf'(x) = \cos x vanishes at both c=π/2c = \pi/2 and c=3π/2c = 3\pi/2, both interior to (0,2π)(0,2\pi). The theorem is silent on how many zeros of f′f' exist; it only guarantees the set is nonempty.

How does Rolle's theorem relate to finding roots of a derivative numerically?

It gives a sufficient condition for a root of f′f' to exist between two points where ff agrees, which underlies bracketing methods: if you can find two points a<ba<b with f(a)=f(b)f(a)=f(b), Rolle's theorem certifies a critical point of ff lies strictly between them, and further subdividing (using the Intermediate Value Theorem on f′f', if f′f' is continuous) can narrow down its location — this is one heuristic behind root-isolation techniques for derivatives in numerical root-finding and critical-point search algorithms.

Does an analogous theorem hold for complex-differentiable (holomorphic) functions?

No — Rolle's theorem is a distinctly real-variable phenomenon and fails for complex differentiable functions. For example f(z)=e2πizf(z) = e^{2\pi i z} satisfies f(0)=f(1)=1f(0) = f(1) = 1, yet f′(z)=2πi e2πizf'(z) = 2\pi i\, e^{2\pi i z} is never zero anywhere in C\mathbb{C}, including on the segment (0,1)(0,1). The proof of the real theorem relies essentially on the Extreme Value Theorem for real-valued continuous functions and the real-variable interior-extremum criterion, neither of which has a direct analogue for complex-valued functions in the same form.

Before this

Where this leads