The Mean Value Theorem

Suppose a car travels 120 miles in 2 hours along a straight highway. At some instant, its speedometer must read exactly 60 miles per hour. Why must this be true? How would one prove it rather than merely believe it? This is the essential content of the Mean Value Theorem (MVT). It is one of the central pillars of differential calculus. The question of how to prove it rigorously is precisely what this article answers. The MVT is the bridge between local information (the derivative at a single point) and global information (the net change of a function over an interval). Nearly every major theorem about the behavior of differentiable functions rests on this bridge. This includes monotonicity tests, the identification of extrema, and error bounds in Taylor approximation. It also includes L'Hôpital's rule and uniqueness theorems for differential equations. Without it, calculus would be a collection of local facts. There would be no way to compare a function's values at two different points. The proof strategy is elegant and reusable: reduce the MVT to Rolle's Theorem, a special case where the function returns to its starting height. This is done by subtracting off a linear function — the secant line — from the original function. This produces an auxiliary function whose endpoints agree exactly. Rolle's Theorem then supplies an interior point where the auxiliary function's derivative vanishes. Unwinding the algebra reveals the tangent-secant equality that is the MVT's content. This article states the theorem with full precision. It proves it completely by constructing the correct auxiliary function. It illustrates it with two asymmetric worked examples. It shows exactly what fails when its hypotheses are weakened. It closes by connecting the MVT forward to Monotonicity and the Sign of the Derivative, The Cauchy Mean Value Theorem, and Taylor's Theorem with Remainder.

Key takeaways
  • The MVT says a differentiable function's average rate of change over [a,b][a,b] equals its instantaneous rate of change at some interior point.
  • It is proved by applying Rolle's Theorem to the auxiliary function h(x)=f(x)−ℓ(x)h(x) = f(x) - \ell(x), where ℓ\ell is the secant line through the endpoints.
  • Hypotheses required: continuity on the closed interval [a,b][a,b], differentiability on the open interval (a,b)(a,b).
  • Geometrically: some tangent line is parallel to the secant line joining (a,f(a))(a,f(a)) and (b,f(b))(b,f(b)).
  • It converts derivative information (local) into information about f(b)−f(a)f(b)-f(a) (global), enabling monotonicity tests and error estimates.
  • Dropping continuity at an endpoint or differentiability at even one interior point can destroy the conclusion.
  • Key idea: subtract the secant line from ff to force equal endpoint values, then invoke Rolle's Theorem.

Where this lives today

The MVT is the working engine behind the derivative sign test: if f′>0f' > 0 throughout an interval, the MVT shows directly that ff is strictly increasing there, giving the theorem Monotonicity and the Sign of the Derivative. It generalizes to a two-function ratio form, The Cauchy Mean Value Theorem, which underlies L'Hôpital's rule for evaluating indeterminate limits. Iterating the MVT idea on higher derivatives produces the Lagrange remainder term in Taylor's Theorem with Remainder, the standard tool for bounding polynomial approximation error in numerical analysis. In numerical methods, MVT-based error bounds justify convergence estimates for Newton's method and finite-difference schemes. In physics and engineering, the "instant equals average" reading is used constantly — for instance to argue that a particle's instantaneous velocity must match its average velocity at some moment, or that a continuous stress function must equal its average stress somewhere in a loaded beam. In probability and statistics, MVT-style arguments underlie proofs of consistency and asymptotic normality of estimators via Taylor linearization. In cryptography and complexity-adjacent numerical analysis, Lipschitz bounds derived from the MVT (bounding ∣f(x)−f(y)∣|f(x)-f(y)| by sup⁡∣f′∣⋅∣x−y∣\sup|f'|\cdot|x-y|) are used to control error propagation in iterative algorithms.

:::quiz[For f(x)=x3−3x2+1f(x)=x^3-3x^2+1 on [−1,3][-1,3], the secant slope f(3)−f(−1)3−(−1)\frac{f(3)-f(-1)}{3-(-1)} equals]

  • 0
  • 4
  • 1 ✓
  • -1

:::quiz[For f(x)=∣x∣f(x)=|x| on [−1,1][-1,1], why does the MVT conclusion fail?]

  • ff is not continuous on [−1,1][-1,1]
  • ff is not differentiable at x=0∈(−1,1)x=0 \in (-1,1) ✓
  • The secant slope is undefined
  • ff is not bounded on [−1,1][-1,1]

:::faq[Why must ff be continuous on the closed interval [a,b][a,b], not just the open interval?] The proof needs f(a)f(a) and f(b)f(b) to be genuine, well-defined values matching the secant line's endpoints, and it needs the auxiliary function hh to be continuous on the closed interval so that Rolle's Theorem (which itself requires closed-interval continuity, ultimately to invoke the Extreme Value Theorem) applies. If ff were merely continuous on the open interval (a,b)(a,b), with a jump or unbounded behavior as x→a+x\to a^+ or x→b−x\to b^-, the secant line's endpoint values f(a),f(b)f(a), f(b) might not even be defined, or hh might fail to attain a maximum or minimum on [a,b][a,b], breaking the proof at its foundation.

Ask the tutor: Can you show me how the same auxiliary-function trick proves the Cauchy Mean Value Theorem?

DefinitionMean Value Theorem — statement of the object

Let f:[a,b]→Rf:[a,b]\to\mathbb{R} with a<ba<b. The hypotheses are: 1. ff is continuous on the closed interval [a,b][a,b]; 2. ff is differentiable on the open interval (a,b)(a,b). Under these hypotheses, the Mean Value Theorem asserts the existence of at least one point c∈(a,b)c\in(a,b) such that

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

Equivalently, f(b)−f(a)=f′(c)(b−a)f(b) - f(a) = f'(c)(b-a) for some c∈(a,b)c \in (a,b).

Intuition

Picture the graph of ff over [a,b][a,b], and draw the secant line through the two endpoints (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)). Its slope is exactly the average rate of change f(b)−f(a)b−a\frac{f(b)-f(a)}{b-a}. The MVT claims that somewhere in between, the curve has a tangent line with that same slope — the tangent is parallel to the secant. Intuitively this is unavoidable: if the curve starts and ends on the secant line but is not identically equal to it, the curve must bulge away from the secant somewhere, reach a farthest point from it, and at that farthest point the tangent to the curve must be "flat relative to the secant," i.e., parallel to it. This is the geometric heart of the proof: the auxiliary function h(x)=f(x)−ℓ(x)h(x) = f(x) - \ell(x) measures vertical distance from the secant line, and Rolle's Theorem finds the point where this distance is stationary.

Figure
The tangent at cc is parallel to the secant joining the endpoints
x y a, f(a) b, f(b) c, f(c) secant, slope = (f(b)−f(a))/(b−a) tangent at c, slope = f′(c)

Theorem

TheoremMean Value Theorem

Let a<ba<b be real numbers and let f:[a,b]→Rf:[a,b]\to\mathbb{R} satisfy: 1. (Continuity) ff is continuous on [a,b][a,b]; 2. (Differentiability) ff is differentiable at every point of (a,b)(a,b). Then there exists c∈(a,b)c\in(a,b) such that

f′(c)=f(b)−f(a)b−a.f'(c) = \frac{f(b)-f(a)}{b-a}.
LemmaRolle's Theorem, restated for reference

Let g:[a,b]→Rg:[a,b]\to\mathbb{R} be continuous on [a,b][a,b] and differentiable on (a,b)(a,b), with g(a)=g(b)g(a) = g(b). Then there exists c∈(a,b)c\in(a,b) with g′(c)=0g'(c) = 0. (This is <a class="wiki-link" href="/wiki/math-analysis-rolles-theorem" data-track="wiki_article.body.wiki_link">Rolle&#39;s Theorem</a>, assumed known and used as the engine of the proof below; it is itself typically proved via the Extreme Value Theorem and Fermat's interior extremum theorem, machinery entirely independent of the MVT, so there is no circularity.)

Proof

Proof technique: reduction to Rolle's Theorem via an auxiliary function. Step 1 — Construct the secant line. Define ℓ:[a,b]→R\ell:[a,b]\to \mathbb{R} to be the affine (linear) function whose graph is the secant line through (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)):

ℓ(x)=f(a)+f(b)−f(a)b−a(x−a).\ell(x) = f(a) + \frac{f(b)-f(a)}{b-a}(x-a).

This is well-defined since b≠ab \neq a. Note ℓ(a)=f(a)\ell(a) = f(a) and ℓ(b)=f(a)+f(b)−f(a)b−a(b−a)=f(b)\ell(b) = f(a) + \frac{f(b)-f(a)}{b-a}(b-a) = f(b), so ℓ\ell agrees with ff at both endpoints. Step 2 — Define the auxiliary function. Let

h(x)=f(x)−ℓ(x)=f(x)−f(a)−f(b)−f(a)b−a(x−a),x∈[a,b].h(x) = f(x) - \ell(x) = f(x) - f(a) - \frac{f(b)-f(a)}{b-a}(x-a), \qquad x \in [a,b].

This hh measures the signed vertical gap between the graph of ff and the secant line. Step 3 — Verify the hypotheses of Rolle's Theorem for hh.

  • Continuity on [a,b][a,b]: ff is continuous on [a,b][a,b] by hypothesis, and ℓ\ell is a polynomial (degree ≤1\le 1), hence continuous everywhere. A difference of continuous functions is continuous, so h=f−ℓh = f - \ell is continuous on [a,b][a,b].
  • Differentiability on (a,b)(a,b): ff is differentiable on (a,b)(a,b) by hypothesis, and ℓ\ell, being affine, is differentiable everywhere with ℓ′(x)=f(b)−f(a)b−a\ell'(x) = \frac{f(b)-f(a)}{b-a} for all xx. A difference of differentiable functions is differentiable, so hh is differentiable on (a,b)(a,b), with
h′(x)=f′(x)−f(b)−f(a)b−a,x∈(a,b).(∗)h'(x) = f'(x) - \frac{f(b)-f(a)}{b-a}, \qquad x \in (a,b). \tag{$\ast$}
  • Equal endpoint values: using ℓ(a)=f(a)\ell(a) = f(a) and ℓ(b)=f(b)\ell(b) = f(b) from Step 1,
h(a)=f(a)−ℓ(a)=f(a)−f(a)=0,h(b)=f(b)−ℓ(b)=f(b)−f(b)=0.h(a) = f(a) - \ell(a) = f(a) - f(a) = 0, \qquad h(b) = f(b) - \ell(b) = f(b) - f(b) = 0.

Hence h(a)=h(b)=0h(a) = h(b) = 0, so in particular h(a)=h(b)h(a) = h(b). Step 4 — Apply Rolle's Theorem. Since hh is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and h(a)=h(b)h(a) = h(b), Rolle's Theorem guarantees the existence of a point c∈(a,b)c \in (a,b) such that

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

Step 5 — Unwind the algebra. Substituting x=cx = c into (∗)(\ast):

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

and therefore

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

This exhibits the required point c∈(a,b)c \in (a,b), completing the proof. ■\blacksquare

∎
CorollaryIncrement form

Under the same hypotheses, there exists c∈(a,b)c \in (a,b) with

f(b)−f(a)=f′(c) (b−a).f(b) - f(a) = f'(c)\,(b-a).

Proof: Multiply both sides of the MVT conclusion by (b−a)≠0(b-a) \neq 0. ■\blacksquare

Worked examples

Example 1 — a non-symmetric cubic. Let f(x)=x3−3x2+1f(x) = x^3 - 3x^2 + 1 on [a,b]=[−1,3][a,b] = [-1, 3]. Check hypotheses. ff is a polynomial, hence continuous on [−1,3][-1,3] and differentiable on (−1,3)(-1,3) (indeed on all of R\mathbb{R}). Both hypotheses of the MVT hold. Compute the secant slope.

f(−1)=(−1)3−3(−1)2+1=−1−3+1=−3,f(-1) = (-1)^3 - 3(-1)^2 + 1 = -1 - 3 + 1 = -3,
f(3)=27−27+1=1.f(3) = 27 - 27 + 1 = 1.

So the average rate of change is

f(3)−f(−1)3−(−1)=1−(−3)4=44=1.\frac{f(3) - f(-1)}{3 - (-1)} = \frac{1 - (-3)}{4} = \frac{4}{4} = 1.

Find cc. We have f′(x)=3x2−6xf'(x) = 3x^2 - 6x. We need c∈(−1,3)c \in (-1,3) with

3c2−6c=1⟺3c2−6c−1=0.3c^2 - 6c = 1 \quad\Longleftrightarrow\quad 3c^2 - 6c - 1 = 0.

By the quadratic formula,

c=6±36+126=6±486=1±233.c = \frac{6 \pm \sqrt{36 + 12}}{6} = \frac{6 \pm \sqrt{48}}{6} = 1 \pm \frac{2\sqrt{3}}{3}.

Numerically, 3≈1.7320508\sqrt{3} \approx 1.7320508, so 233≈1.1547\frac{2\sqrt3}{3}\approx 1.1547, giving

c1≈2.1547,c2≈−0.1547.c_1 \approx 2.1547, \qquad c_2 \approx -0.1547.

Both lie in (−1,3)(-1,3) (check: −1<−0.1547<3-1 < -0.1547 < 3 and −1<2.1547<3-1< 2.1547 < 3), so in this example the MVT point cc is not unique — there are two valid choices. This is consistent with the theorem, which only asserts existence of at least one such cc, never uniqueness.

Example 2 — a function with an endpoint corner outside the interval, and a genuine square-root derivative. Let f(x)=xf(x) = \sqrt{x} on [a,b]=[1,4][a,b] = [1, 4]. Check hypotheses. On [1,4][1,4], f(x)=xf(x)=\sqrt x is continuous (composition/restriction of the continuous square-root function on [0,∞)[0,\infty)), and on (1,4)(1,4) it is differentiable with f′(x)=12xf'(x) = \frac{1}{2\sqrt x}, which is well-defined and finite since x>0x > 0 throughout (1,4)(1,4). (Differentiability would fail only at x=0x=0, which is not in our interval.) Both hypotheses hold. Compute the secant slope.

f(1)=1,f(4)=2,f(1) = 1, \qquad f(4) = 2,
f(4)−f(1)4−1=2−13=13.\frac{f(4)-f(1)}{4-1} = \frac{2-1}{3} = \frac{1}{3}.

Find cc. Solve

f′(c)=12c=13⟹2c=3⟹c=32⟹c=94=2.25.f'(c) = \frac{1}{2\sqrt c} = \frac13 \quad\Longrightarrow\quad 2\sqrt c = 3 \quad\Longrightarrow\quad \sqrt c = \frac32 \quad\Longrightarrow\quad c = \frac94 = 2.25.

Check c=2.25∈(1,4)c = 2.25 \in (1,4): yes. So the unique MVT point here is c=9/4c = 9/4, and indeed

f′(9/4)=129/4=12⋅(3/2)=13,f'(9/4) = \frac{1}{2\sqrt{9/4}} = \frac{1}{2\cdot(3/2)} = \frac{1}{3},

matching the secant slope exactly. This example also shows the MVT point can be a non-integer, non-obvious rational value, found by directly solving f′(c)=f'(c) = (secant slope).

Counterexampledropping differentiability at a single interior point

The MVT requires differentiability at every point of the open interval (a,b)(a,b) — not merely "differentiable almost everywhere" or "differentiable except at one point." Consider

f(x)=∣x∣,[a,b]=[−1,1].f(x) = |x|, \qquad [a,b] = [-1, 1].

Continuity: ff is continuous on [−1,1][-1,1] (indeed on all of R\mathbb R), so hypothesis (1) holds. Differentiability: ff is differentiable at every point of (−1,1)(-1,1) except x=0x=0, where the left-hand derivative is −1-1 and the right-hand derivative is +1+1; these disagree, so f′(0)f'(0) does not exist. Hypothesis (2) of the MVT fails, since differentiability is required on the whole open interval (−1,1)(-1,1), and it fails at the single point x=0x=0. What the conclusion would require: the secant slope is

f(1)−f(−1)1−(−1)=1−12=0.\frac{f(1)-f(-1)}{1-(-1)} = \frac{1-1}{2} = 0.

So the MVT conclusion, if it held, would require some c∈(−1,1)c\in(-1,1) with f′(c)=0f'(c) = 0. But

f′(x)={−1x<0+1x>0f'(x) = \begin{cases} -1 & x < 0 \\ +1 & x> 0\end{cases}

on (−1,1)∖{0}(-1,1)\setminus\{0\}, and f′(0)f'(0) does not exist. The derivative takes only the values −1-1 and +1+1 wherever it is defined — it is never 00. Hence no c∈(−1,1)c\in(-1,1) satisfies f′(c)=0f'(c)=0, and the MVT's conclusion genuinely fails. This shows the differentiability hypothesis cannot be weakened even at a single interior point: the single "corner" at x=0x=0 is enough to destroy the existence of the required cc.

Scope, edge cases & common traps

SituationWhat happens
ff differentiable on all of [a,b][a,b] (endpoints included)MVT still applies; the weaker hypothesis (differentiable only on the open interval) already suffices, so this is a special case, not an obstruction.
ff continuous on [a,b][a,b] but not differentiable at one interior pointMVT can fail entirely (see counterexample above with f(x)=∣x∣f(x)=|x|).
ff differentiable on (a,b)(a,b) but discontinuous at an endpointMVT can fail; e.g. redefine a function to jump at x=bx=b while keeping the same formula on [a,b)[a,b).
Multiple valid ccPerfectly allowed — MVT asserts existence, not uniqueness (Example 1 above).
a>ba > b or interval a single pointMVT is stated for a<ba<b; degenerate or reversed intervals are excluded by convention, since b−ab-a must be nonzero and the interval nondegenerate.
Confusing MVT with Rolle's TheoremRolle's Theorem is the special case f(a)=f(b)f(a)=f(b), forcing f′(c)=0f'(c)=0; MVT is the general tilted version.

The mathematician behind it

Origins · 1 minJoseph-Louis Lagrange and how this was discovered
JL
Joseph-Louis Lagrange
1736–1813 · Analysis and mechanics in 18th-century Europe

Lagrange, working in Turin, Berlin, and later Paris, sought to place calculus on a rigorous algebraic footing, largely to avoid the infinitesimal and "fluxion" language of Newton and Leibniz. In his Théorie des fonctions analytiques (1797) he studied Taylor expansions and derivative bounds, and the theorem now called the Mean Value Theorem — sometimes still called Lagrange's Theorem — emerged from this program as the key tool for bounding the error in polynomial approximations of functions. The modern epsilon-delta proof via Rolle's Theorem, as given above, was refined by later 19th-century analysts (notably Cauchy and Bonnet) into the form used today.

History
- 1691 — Michel Rolle proves the special case (equal endpoint values) for polynomials, in the context of root-separation problems, without full calculus rigor.
- 1797 — Lagrange, in Théorie des fonctions analytiques, formulates and uses the general mean value inequality/equality to bound remainders in series expansions.
- 1823 — Cauchy gives a rigorous proof of the theorem using the modern definition of the derivative as a limit, cementing its place in analysis.
- 1868 — Ossian Bonnet gives the now-standard textbook proof of the MVT as a direct corollary of Rolle's Theorem, via the auxiliary secant-line function used above.
- 20th century — the MVT becomes a standard early theorem in real analysis courses, immediately preceding monotonicity criteria and Taylor's theorem with Lagrange remainder.
Is the Mean Value Theorem the same as Rolle's Theorem?

No, but they are closely linked. Rolle's Theorem is the special case where f(a)=f(b)f(a) = f(b), and its conclusion is that some c∈(a,b)c\in(a,b) has f′(c)=0f'(c) = 0 — the tangent is horizontal. The MVT is the general "tilted" version, where f(a)f(a) and f(b)f(b) need not be equal, and the conclusion is that some tangent is parallel to the secant line, not necessarily horizontal. In fact the standard proof of the MVT works by constructing an auxiliary function to which Rolle's Theorem directly applies, so Rolle's Theorem is logically prior to, and used inside the proof of, the MVT.

Does the Mean Value Theorem tell you where the point cc is?

Not directly — it is a pure existence theorem. To actually locate cc, you must solve the equation f′(x)=f(b)−f(a)b−af'(x) = \frac{f(b)-f(a)}{b-a} for xx in (a,b)(a,b), which is exactly what was done in the two worked examples above. Sometimes this equation has a unique solution in the interval (as with x\sqrt{x} on [1,4][1,4]), and sometimes it has several (as with the cubic on [−1,3][-1,3]). The theorem guarantees at least one solution exists; it gives no formula and no promise of uniqueness.

What happens if ff fails to be differentiable at just one point in (a,b)(a,b)?

The conclusion can fail completely, as shown in the counterexample with f(x)=∣x∣f(x) = |x| on [−1,1][-1,1]. There, the only "corner" is at x=0x=0, yet this single failure of differentiability is enough to make the required point cc (with f′(c)=0f'(c)=0) nonexistent, since the derivative only ever takes the values ±1\pm 1 where it is defined. This illustrates that the differentiability hypothesis in the MVT is not a technical nicety — it is load-bearing at every single interior point.

How does the Mean Value Theorem lead to monotonicity tests?

If f′>0f' > 0 everywhere on an interval II, take any x1<x2x_1 < x_2 in II; the MVT applied to [x1,x2][x_1,x_2] gives some cc with f(x2)−f(x1)=f′(c)(x2−x1)>0f(x_2)-f(x_1) = f'(c)(x_2-x_1) > 0, since f′(c)>0f'(c)>0 and x2−x1>0x_2 - x_1 > 0. Hence f(x2)>f(x1)f(x_2) > f(x_1), so ff is strictly increasing. This argument, repeated with f′<0f'<0 or f′=0f'=0, produces the full toolkit of Monotonicity and the Sign of the Derivative — arguably the single most common downstream application of the MVT in a first calculus course.

What is the Cauchy Mean Value Theorem, and how does it relate?

The Cauchy Mean Value Theorem generalizes the MVT to two functions f,gf,g simultaneously continuous on [a,b][a,b] and differentiable on (a,b)(a,b), asserting a point cc with (f(b)−f(a))g′(c)=(g(b)−g(a))f′(c)(f(b)-f(a))g'(c) = (g(b)-g(a))f'(c). Taking g(x)=xg(x) = x recovers the ordinary MVT exactly. Its proof follows the same auxiliary-function strategy — construct a function vanishing at both endpoints and apply Rolle's Theorem — but with a more elaborate combination of ff and gg. It is the key lemma behind L'Hôpital's rule.

Does the Mean Value Theorem hold for vector-valued or complex-valued functions?

Not in its equality form. For f:[a,b]→Rnf:[a,b]\to \mathbb{R}^n with n≥2n\ge 2, there need not exist a single cc with f(b)−f(a)=f′(c)(b−a)f(b)-f(a) = f'(c)(b-a) as vectors; a standard counterexample is a curve tracing part of a circle, whose net displacement is a chord but whose derivative (a tangent vector) never points in the chord's exact direction. What survives is an inequality form, ∥f(b)−f(a)∥≤sup⁡t∈(a,b)∥f′(t)∥⋅(b−a)\|f(b)-f(a)\| \le \sup_{t\in(a,b)}\|f'(t)\|\cdot (b-a), proved differently (often via integration or a scalar auxiliary function using the dot product with f(b)−f(a)f(b)-f(a)), which is the form generalized in vector calculus and used to establish Lipschitz bounds.

Before this

Where this leads