Rolle’s theorem and Lagrange mean value theorem

A smooth curve that starts and ends at the same height must, somewhere in between, level off — its tangent must go flat at least once. That simple picture is Rolle's theorem, and it is the seed from which almost every "existence" statement of one-variable calculus grows. Tilt the picture slightly — let the curve end at a different height than it started — and the flat tangent becomes a tangent parallel to the chord joining the endpoints. That is the Lagrange mean value theorem (LMVT), and Rolle's theorem is just its special case. Both theorems are silent on where the special point sits; they only promise it exists. That is precisely their power: MA10001 uses them to prove inequalities, bound errors, and justify sign-of-derivative tests, all without ever solving for the point explicitly. This node covers the precise statements, the standard proof of LMVT from Rolle's theorem, how to hunt for the guaranteed point cc in practice, and the traps that catch nearly every first attempt.

The core insight

If a differentiable function returns to its starting value over an interval, its derivative must vanish somewhere inside — and more generally, its instantaneous rate of change must equal its average rate of change somewhere inside.

The core idea

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

∃ c∈(a,b) such that f′(c)=0.\exists\, c \in (a,b) \text{ such that } f'(c) = 0.

where: [a,b][a,b] is a closed interval, (a,b)(a,b) its open interior, and cc is the (not necessarily unique) guaranteed point.

Lagrange's mean value theorem. If ff is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), then

∃ c∈(a,b) such that f′(c)=f(b)−f(a)b−a.\exists\, c \in (a,b) \text{ such that } f'(c) = \frac{f(b)-f(a)}{b-a}.

where: the right-hand side is the average rate of change of ff over [a,b][a,b] — the slope of the chord from (a,f(a))(a,f(a)) to (b,f(b))(b,f(b)) — and f′(c)f'(c) is the instantaneous rate of change at cc. A few points worth internalizing before touching a single example:

  • Rolle's theorem is exactly LMVT with f(a)=f(b)f(a) = f(b), so the chord is horizontal and the "parallel tangent" is horizontal too, i.e. f′(c)=0f'(c) = 0. Every Rolle statement is a special LMVT statement, never the reverse.
  • Both theorems demand continuity on the closed interval but differentiability only on the open interval — the function is allowed to misbehave (have a corner, or fail to be differentiable) exactly at the two endpoints and nowhere else.
  • Neither theorem says cc is unique, and neither says how to find it quickly — only that it exists. Finding it explicitly is a separate algebraic step: solve f′(c)=0f'(c)=0 or f′(c)=f(b)−f(a)b−af'(c) = \frac{f(b)-f(a)}{b-a} for cc and keep only roots inside (a,b)(a,b).
  • The usual sketch of the proof of Rolle's theorem runs through the extreme value theorem: continuity on [a,b][a,b] guarantees ff attains a maximum and a minimum somewhere on [a,b][a,b]. If both occur at the endpoints, then since f(a)=f(b)f(a)=f(b), ff is constant and f′(c)=0f'(c)=0 everywhere. Otherwise at least one extremum lies strictly inside (a,b)(a,b), and at an interior extremum of a differentiable function the derivative must vanish — that interior point is the guaranteed cc.
Figure
Two curves side by side. The left curve starts and ends at the same height with a horizontal dashed tangent line at its highest point marked c. The right curve starts lower and ends higher with a dashed chord line and a parallel dashed tangent line touching the curve at a point marked c
Rolle: f(a) = f(b), flat tangent at c LMVT: tangent at c parallel to chord c a b c a b
Derivation ALMVT from Rolle's theorem

Derive the Lagrange mean value theorem from Rolle's theorem by constructing an auxiliary function whose endpoint values are forced to be equal, so that Rolle's theorem can be applied to it directly and its conclusion translated back into a statement about the derivative of the original function ff.

Step 1. Define the auxiliary function

ϕ(x)=f(x)−f(a)−f(b)−f(a)b−a(x−a).\phi(x) = f(x) - f(a) - \frac{f(b)-f(a)}{b-a}(x-a).

This is f(x)f(x) with a straight line (the secant through (a,f(a))(a,f(a)) and (b,f(b))(b,f(b))) subtracted off, so ϕ\phi measures the vertical gap between the curve and its own chord.

Step 2. Check ϕ\phi satisfies Rolle's hypotheses. Since ff is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), and ϕ\phi is built from ff by subtracting a polynomial (which is continuous and differentiable everywhere), ϕ\phi inherits the same continuity and differentiability.

Step 3. Compute the endpoint values.

ϕ(a)=f(a)−f(a)−0=0,ϕ(b)=f(b)−f(a)−f(b)−f(a)b−a(b−a)=f(b)−f(a)−(f(b)−f(a))=0.\phi(a) = f(a) - f(a) - 0 = 0, \qquad \phi(b) = f(b) - f(a) - \frac{f(b)-f(a)}{b-a}(b-a) = f(b) - f(a) - (f(b)-f(a)) = 0.

So ϕ(a)=ϕ(b)=0\phi(a) = \phi(b) = 0: the endpoint condition Rolle's theorem needs is satisfied automatically, by construction.

Step 4. Apply Rolle's theorem to ϕ\phi on [a,b][a,b]. It guarantees some c∈(a,b)c \in (a,b) with ϕ′(c)=0\phi'(c) = 0. Differentiating the definition of ϕ\phi,

ϕ′(x)=f′(x)−f(b)−f(a)b−a,\phi'(x) = f'(x) - \frac{f(b)-f(a)}{b-a},

so ϕ′(c)=0\phi'(c) = 0 means

f′(c)=f(b)−f(a)b−a,f'(c) = \frac{f(b)-f(a)}{b-a},

which is exactly the LMVT conclusion. The theorem is proved by reducing it to the simpler Rolle's theorem via a single well-chosen auxiliary function.

Worked example

Verify Rolle's theorem and find cc for f(x)=x3−4xf(x) = x^3 - 4x on [−2,2][-2,2], then use LMVT on the same function over [0,2][0,2].

Step 1. Check Rolle's hypotheses on [−2,2][-2,2]. ff is a polynomial, hence continuous on [−2,2][-2,2] and differentiable on (−2,2)(-2,2). Endpoints:

f(−2)=(−2)3−4(−2)=−8+8=0,f(2)=23−4(2)=8−8=0.f(-2) = (-2)^3 - 4(-2) = -8+8 = 0, \qquad f(2) = 2^3 - 4(2) = 8-8 = 0.

So f(−2)=f(2)=0f(-2) = f(2) = 0; all hypotheses hold and Rolle's theorem guarantees some c∈(−2,2)c \in (-2,2) with f′(c)=0f'(c) = 0.

Step 2. Solve for cc. f′(x)=3x2−4f'(x) = 3x^2 - 4, so

3c2−4=0  ⟹  c2=43  ⟹  c=±23≈±1.1547.3c^2 - 4 = 0 \implies c^2 = \frac43 \implies c = \pm\frac{2}{\sqrt3} \approx \pm 1.1547.

Both roots lie inside (−2,2)(-2,2), so there are two valid points here — Rolle's theorem only promises "at least one."

Step 3. Now apply LMVT to the same ff on [0,2][0,2]. Compute the average rate of change:

f(2)−f(0)2−0=8−02=4.\frac{f(2)-f(0)}{2-0} = \frac{8 - 0}{2} = 4.

LMVT guarantees some c∈(0,2)c \in (0,2) with f′(c)=4f'(c) = 4, i.e. 3c2−4=4  ⟹  c2=83  ⟹  c=8/3≈1.6333c^2 - 4 = 4 \implies c^2 = \frac{8}{3} \implies c = \sqrt{8/3} \approx 1.633 (the negative root is discarded since it lies outside (0,2)(0,2)).

The guaranteed points are c=±23c = \pm\tfrac{2}{\sqrt3} for Rolle's theorem on [−2,2][-2,2], and c=8/3≈1.633c = \sqrt{8/3} \approx 1.633 for LMVT on [0,2][0,2].

Competitive stretch

The same auxiliary-function trick used in the derivation above proves standard inequalities without ever computing cc numerically. Applying LMVT to f(t)=ln⁡tf(t) = \ln t on [1,1+x][1,1+x] for x>0x>0 gives 1c=ln⁡(1+x)x\frac{1}{c} = \frac{\ln(1+x)}{x} for some c∈(1,1+x)c \in (1,1+x); bounding 1c\frac{1}{c} between 11+x\frac{1}{1+x} and 11 yields x1+x<ln⁡(1+x)<x\frac{x}{1+x} < \ln(1+x) < x for all x>0x>0 — a two-sided estimate obtained purely from the existence of cc, never its exact value.

Common traps

  • Applying Rolle's theorem without checking f(a)=f(b)f(a) = f(b) explicitly — this is the single most-skipped hypothesis.
  • Requiring differentiability at the endpoints too — the theorems only need it on the open interval (a,b)(a,b); a function like x(1−x)\sqrt{x(1-x)} can fail to be differentiable at an endpoint and still satisfy Rolle's theorem on [0,1][0,1].
  • Assuming cc is unique — Worked Example step 2 found two valid points for one Rolle statement; the theorem only asserts "at least one."
  • Applying either theorem across a discontinuity or undefined point, e.g. tan⁡x\tan x on [0,π][0,\pi], which blows up at π/2\pi/2 — always verify continuity on the whole closed interval before proceeding.

Ask the tutor: if the auxiliary-function step in the LMVT proof feels unmotivated, ask the AI tutor to walk through why subtracting the chord's equation is exactly the right move.

Why does Rolle's theorem need continuity on the closed interval but differentiability only on the open interval?

Continuity at the endpoints is needed so the values f(a)f(a) and f(b)f(b) are actually well-defined and meaningful for the hypothesis f(a)=f(b)f(a)=f(b). But the proof only ever differentiates at an interior maximum or minimum, which by construction lies strictly inside (a,b)(a,b) — so differentiability is never actually used at the endpoints, and demanding it there would be an unnecessary restriction.

If LMVT only proves that c exists, why is it useful — shouldn't we want to know where c actually is?

In most applications you never need the exact location of cc, only a bound on f′(c)f'(c). Since cc lies strictly between aa and bb, you can often bound f′f' over the whole interval and get a two-sided inequality on the difference quotient, as in the logarithm example above. This "existence, not location" style is exactly what makes LMVT so widely reusable — it turns a derivative bound into a global inequality about the function itself.

Is Rolle's theorem just a special case of LMVT, or are they really separate theorems?

Rolle's theorem is the special case of LMVT where f(a)=f(b)f(a)=f(b), making the right-hand side f(b)−f(a)b−a\frac{f(b)-f(a)}{b-a} equal to zero. Historically Rolle's theorem came first and is logically simpler, which is why the standard proof runs Rolle-to-Lagrange rather than the other way: LMVT is derived from Rolle's theorem via the auxiliary function ϕ(x)=f(x)−f(a)−f(b)−f(a)b−a(x−a)\phi(x) = f(x) - f(a) - \frac{f(b)-f(a)}{b-a}(x-a), not independently.

Where this leads