The Mean Value Theorem
You drive 60 miles and it takes you exactly one hour. Your average speed was 60 mph — but you
certainly didn't hold 60 the whole way. You crawled through a town, you overtook a lorry at 72,
you sat at a red light doing 0. Question: was there ever an instant at which your
speedometer read exactly 60 mph?
Yes — provably, unavoidably yes. If you spent the whole hour below 60 you couldn't have covered
60 miles; always above 60 and you'd have covered more. Somewhere between the crawling and the
overtaking, your instantaneous speed must have passed through the average. That everyday certainty,
made rigorous, is the Mean Value Theorem (MVT) — and it is not a curiosity: police
average-speed cameras convict drivers on the strength of it, and half of calculus quietly leans on it.
In the language of the
derivative, the
MVT converts a fact about f' — a local, instantaneous quantity — into a
fact about f over a whole interval. It says the average rate of
change is achieved exactly, at some interior instant:
\exists\, c \in (a, b) : \quad f'(c) = \frac{f(b) - f(a)}{b - a}.
Geometrically: draw the secant joining the endpoints
(a, f(a)) and (b, f(b)). Somewhere strictly
between them, the tangent to the curve is parallel to that secant. We will earn this
in two moves: first a level special case (Rolle's theorem), then a tilt.
The statement — every word doing work
Analysis theorems are contracts, and the fine print matters. The MVT asks for exactly two things,
and asks for them on different sets:
-
Continuity on the closed interval [a, b] — endpoints
included. This is what lets the Extreme Value Theorem run: no jumps, no missing values, so a
maximum and minimum genuinely exist.
-
Differentiability on the open interval (a, b) —
endpoints excluded. The conclusion delivers a c strictly
inside, so we never need a derivative at a or
b. That generosity is deliberate: it lets the theorem apply to
f(x) = \sqrt{1 - x^2} on [-1, 1], whose
graph is a semicircle with vertical (hence non-differentiable) tangents at the very ends.
Let f be continuous on [a, b] and differentiable on (a, b). Then:
-
Rolle: if f(a) = f(b) then
f'(c) = 0 for some c \in (a, b).
-
Mean Value Theorem:
f'(c) = \dfrac{f(b) - f(a)}{b - a} for some
c \in (a, b) — the tangent is parallel to the secant.
Rolle's theorem is the MVT with the ends at the same height: the secant is horizontal, so the
promised parallel tangent is horizontal too — f'(c) = 0. In the
driving picture, Rolle says: leave home and return home, and at some moment your velocity was
exactly zero (of course — you turned around). The MVT is the same statement after tilting the axes.
Drop either hypothesis and the conclusion dies. Two standard assassins:
-
A corner kills differentiability. Take f(x) = |x| on
[-1, 1]. It is continuous, and f(-1) = f(1) = 1,
so Rolle would promise a c with f'(c) = 0.
But f' is -1 to the left of zero,
+1 to the right, and does not exist at the corner itself — the value
0 is never taken. One non-differentiable point is enough to void the contract.
-
A jump kills continuity. Define f(x) = x for
0 \le x < 1 and f(1) = 0. The secant from
(0,0) to (1,0) has slope
0, yet f'(x) = 1 at every point where the
derivative exists. The single discontinuity at the endpoint lets the function "teleport" back down
without ever having zero slope.
-
The theorem says c exists — nothing more. It does not
say where c is, it gives no recipe for finding it, and it does not say
c is unique. For f(x) = \sin x on
[0, 2\pi] the secant is horizontal and two points work
(c = \pi/2 and 3\pi/2). Pure existence
theorems feel unsatisfying at first — until you watch how much work they do.
Centrepiece, part 1: Rolle's theorem
Rolle. If f is continuous on
[a, b], differentiable on (a, b), and the ends
are level, f(a) = f(b), then f'(c) = 0 for some
c \in (a, b). We derive it line by line.
Step 1 — get an extremum for free. f is continuous on the
closed bounded interval [a, b], so by the
Extreme Value Theorem
it attains a maximum M and a minimum m on
[a, b].
Step 2 — split into two cases. Either M = m, or not.
Step 3 — the flat case. If M = m, the function is
constant, so f'(c) = 0 at every interior point — done.
Step 4 — the non-flat case forces an interior extremum. If
M \ne m, at least one of them differs from the common endpoint value
f(a) = f(b). So a max or a min is attained at some point
c that is not an endpoint — i.e. c \in (a, b).
Step 5 — Fermat's stationary-point lemma kills the derivative. At an interior
extremum a differentiable function has f'(c) = 0. Why: at an interior
maximum the one-sided difference quotients have opposite signs,
\frac{f(x) - f(c)}{x - c} \le 0 \text{ for } x > c, \qquad \frac{f(x) - f(c)}{x - c} \ge 0 \text{ for } x < c,
so the limit (which exists, since f is differentiable) must be
\ge 0 and \le 0 at once — hence
f'(c) = 0. That proves Rolle.
Notice where each hypothesis was spent: continuity on the closed interval bought the
extremum in Step 1; differentiability on the open interval was cashed in at Step 5,
and only at the interior point c where it was needed.
Centrepiece, part 2: the MVT by tilting
The MVT is Rolle applied to the function with the secant subtracted off. The picture:
Rolle handles level-ended functions; a general f has tilted ends, so we
un-tilt it, apply Rolle, and translate back.
Step 1 — build the tilt. Let L be the secant line through
the endpoints,
L(x) = f(a) + \frac{f(b) - f(a)}{b - a}\,(x - a),
and define the gap between the curve and the secant,
g(x) = f(x) - L(x).
Step 2 — check Rolle's hypotheses for g.
g is continuous on [a, b] and differentiable on
(a, b) (a difference of such functions). And it is level at the ends —
because the secant touches the curve there:
g(a) = f(a) - L(a) = 0, \qquad g(b) = f(b) - L(b) = 0.
Step 3 — apply Rolle to g. Some
c \in (a, b) has g'(c) = 0.
Step 4 — read off g'. Differentiating
g = f - L and using that L has constant slope,
g'(x) = f'(x) - \frac{f(b) - f(a)}{b - a}.
Step 5 — set it to zero. At the c from Step 3,
0 = g'(c) = f'(c) - \frac{f(b) - f(a)}{b - a} \quad\Longrightarrow\quad f'(c) = \frac{f(b) - f(a)}{b - a}.
The tangent at c is parallel to the secant. That is the Mean Value Theorem —
one clever substitution away from Rolle, which was itself one lemma away from the Extreme Value
Theorem. Analysis is a tower, and this is one of its cleanest storeys.
Watch the tangent track the secant
For f(x) = \tfrac14 x^3 - x, drag the endpoints a
and b. The dashed secant connects the endpoints; the solid
tangent is drawn at the MVT point c where their slopes
match. They stay parallel no matter where you put the ends.
Two things to notice as you drag. First, c moves — it depends on
the interval, and nothing in the theorem tells you where it will be. Second, try squeezing
a and b together: the secant slope tends to the
derivative at the squeeze point, and c, trapped between them, is dragged
along. That trapping trick — "c is squeezed, so c \to a" —
is exactly how the MVT gets used in limit arguments like L'Hôpital's rule below.
Worked examples: pinning down the promised c
The theorem never tells you where c is — but for concrete functions you
can often solve for it. The recipe: compute the secant slope, set f'(c)
equal to it, solve, and check the solution lands inside (a, b).
Example 1 — f(x) = x^2 on [1, 3].
The secant slope is
\frac{f(3) - f(1)}{3 - 1} = \frac{9 - 1}{2} = 4.
Set f'(c) = 2c = 4, so c = 2 \in (1, 3). Done —
and notice c is the exact midpoint. That's no accident: for any parabola
x^2 on [a, b], the equation
2c = \frac{b^2 - a^2}{b - a} = a + b gives
c = \tfrac{a+b}{2}, the midpoint, every time.
Example 2 — f(x) = \sqrt{x} on [1, 4].
Secant slope: \frac{2 - 1}{4 - 1} = \tfrac13. Set
f'(c) = \frac{1}{2\sqrt{c}} = \tfrac13, so
\sqrt{c} = \tfrac32 and c = \tfrac94 = 2.25 \in (1, 4).
Not the midpoint this time — c sits left of centre, where the steep early
part of the square root does most of the climbing.
Example 3 — the speed camera. An average-speed check zone is 5 miles long. A car's
number plate is photographed entering at 14:00:00 and leaving at 14:04:00 — four minutes, i.e.
\tfrac{1}{15} of an hour. Let s(t) be the car's
position: continuous (cars don't teleport) and differentiable (the speedometer always reads
something). The average speed is
\frac{s(b) - s(a)}{b - a} = \frac{5 \text{ miles}}{1/15 \text{ hour}} = 75 \text{ mph},
so by the MVT there was an instant c at which
s'(c) = 75 mph — exactly. In a 70 mph zone, that instant is the
offence. No camera ever saw the speedometer; a theorem did.
This is one of the very few pieces of pure analysis with a criminal-law career. Average-speed
camera systems (SPECS in the UK, "section control" across Europe and Australia) photograph your
plate at two points a known distance apart and divide by the elapsed time. If the average exceeds
the limit, you are prosecuted — not for your speed at either camera, where you may have virtuously
slowed down, but for the speed the Mean Value Theorem guarantees you held at some unphotographed
moment in between.
Defence lawyers have tried the obvious objection — "no device measured my client's speed" — and it
fails, because the mathematics is airtight: a continuous, differentiable position function with
average rate 92 km/h must have instantaneous rate 92 km/h somewhere. The theorem
even survives the physical quibbles: real cars have continuous position (no teleporting) and
continuously varying velocity (no infinite acceleration), so the hypotheses hold with room to spare.
It is pleasant to imagine Cauchy, who formalised the modern proof in the 1820s, learning that his
lemma now issues speeding tickets.
The payoff: the corollaries that run calculus
Here is why the MVT is a workhorse rather than a museum piece. Facts you have used a hundred times —
"zero derivative means constant", "positive derivative means increasing" — are not obvious;
they are two-line consequences of the MVT, and there is no honest route to them without it.
Corollary 1: f' = 0 throughout an interval
\Rightarrow f is constant. Take any
two points x_1 < x_2 in the interval. By the MVT on
[x_1, x_2] there is a c with
f(x_2) - f(x_1) = f'(c)\,(x_2 - x_1) = 0 \cdot (x_2 - x_1) = 0,
so f(x_2) = f(x_1) — the value never changes. This is exactly why two
antiderivatives
of the same function differ only by a constant (their difference has zero derivative), which is the
fact the "+ C" in every integral, and the Fundamental Theorem of Calculus itself, stand on.
Corollary 2: f' > 0 throughout an interval
\Rightarrow f is strictly increasing.
Same two lines, different sign: for x_1 < x_2, the MVT gives a
c with
f(x_2) - f(x_1) = f'(c)\,(x_2 - x_1) > 0,
since both factors are positive. So f(x_2) > f(x_1): every increasing/decreasing
argument in curve sketching, every first-derivative test, is the MVT wearing work clothes.
Corollary 3: a speed limit for functions. If
|f'(x)| \le M on an interval, then for any two points in it,
|f(x_2) - f(x_1)| = |f'(c)|\,|x_2 - x_1| \le M\,|x_2 - x_1|. A bound on the
derivative becomes a bound on how far the function can travel — the germ of Lipschitz estimates,
error bounds for Taylor polynomials, and uniqueness theorems for differential equations.
On an interval, for f differentiable throughout:
-
f' \equiv 0 \Rightarrow
f is constant; hence two antiderivatives of one function differ by a
constant.
-
f' > 0 \Rightarrow
f is strictly increasing (and f' < 0
\Rightarrow strictly decreasing).
-
|f'| \le M \Rightarrow
|f(x_2) - f(x_1)| \le M\,|x_2 - x_1| for all
x_1, x_2 in the interval.
Running two functions at once gives the Cauchy Mean Value Theorem: for
f, g continuous on [a, b] and differentiable
on (a, b), some c \in (a, b) satisfies
\big(f(b) - f(a)\big)\,g'(c) = \big(g(b) - g(a)\big)\,f'(c).
Take g(x) = x and it collapses to the ordinary MVT. Its real payoff is
L'Hôpital's rule. Near a point where f(a) = g(a) = 0, the
Cauchy MVT lets you write, for some c squeezed between
a and x,
\frac{f(x)}{g(x)} = \frac{f(x) - f(a)}{g(x) - g(a)} = \frac{f'(c)}{g'(c)}.
As x \to a the trapped c \to a too, so the
indeterminate 0/0 ratio equals the limit of
f'/g' — which is L'Hôpital's rule, falling straight out of a tilted Rolle.
See it explained