STEMviz
Mathematics · Differential and Integral Calculus

Mean Value Theorems (Lagrange and Cauchy)

Fermat's interior extremum theorem, Rolle's Theorem, the Mean Value Theorem of Lagrange and its corollaries, and Cauchy's Mean Value Theorem, each proved via a constructed auxiliary function.

Mean Value Theorems (Lagrange and Cauchy)

Chapter 3 defined the derivative pointwise: f′(a)f'(a) is a number attached to a single point aa. This chapter proves the theorems that let a single value of the derivative, at some unspecified point, control the global behaviour of ff across an entire interval — why f′=0f'=0 everywhere forces ff to be constant, why f′>0f'>0 everywhere forces ff to be increasing, and ultimately why L'Hopital's rule (next chapter) is valid at all. The Mean Value Theorem of Lagrange is the central result; Rolle's Theorem is its special case and also the engine of its proof; Cauchy's Mean Value Theorem is its two-function generalisation.

Have to hand: the Extreme Value Theorem (Chapter 2), the definition of the derivative (Chapter 3), and the fact that differentiability implies continuity.

The shape of every proof in this chapter. Each theorem below is proved by constructing an auxiliary function specifically engineered to have equal values at the two endpoints, then applying Rolle's Theorem to that auxiliary function. Learning to construct the right auxiliary function is the one transferable skill of this entire chapter.

1. Fermat's Interior Extremum Theorem

Theorem. Let ff be differentiable at cc, and suppose ff has a local maximum or local minimum at cc, where cc is an interior point of the domain being considered. Then f′(c)=0f'(c)=0.

Proof (local maximum case). Since ff has a local maximum at cc, there is δ>0\delta>0 such that f(x)≤f(c)f(x)\le f(c) for all xx with ∣x−c∣<δ|x-c|<\delta. For 0<h<δ0<h<\delta, f(c+h)−f(c)≤0f(c+h)-f(c)\le0 and h>0h>0, so f(c+h)−f(c)h≤0\frac{f(c+h)-f(c)}{h}\le0; letting h→0+h\to0^+ gives f+′(c)≤0f'_+(c)\le0. For −δ<h<0-\delta<h<0, f(c+h)−f(c)≤0f(c+h)-f(c)\le0 and h<0h<0, so f(c+h)−f(c)h≥0\frac{f(c+h)-f(c)}{h}\ge0; letting h→0−h\to0^- gives f−′(c)≥0f'_-(c)\ge0. Since ff is differentiable at cc, f+′(c)=f−′(c)=f′(c)f'_+(c)=f'_-(c)=f'(c), and a number that is simultaneously ≤0\le0 and ≥0\ge0 must be 00. Hence f′(c)=0f'(c)=0. ■\blacksquare

"Interior" is load-bearing. The theorem says nothing about an extremum at an endpoint of a closed interval: f(x)=xf(x)=x on [0,1][0,1] has a maximum at x=1x=1, yet f′(1)=1≠0f'(1)=1\ne0. One-sided derivatives at an endpoint need not vanish, because only one of the two one-sided inequalities above is available there.

2. Rolle's Theorem

Theorem (Rolle). Let ff be continuous on [a,b][a,b] and differentiable on (a,b)(a,b), with 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. By the Extreme Value Theorem (Chapter 2), ff attains a maximum MM and a minimum mm on [a,b][a,b]. Case 1: M=mM=m. Then ff is constant on [a,b][a,b], so f′(c)=0f'(c)=0 for every c∈(a,b)c\in(a,b). Case 2: M>mM>m. Since f(a)=f(b)f(a)=f(b), at least one of M,mM,m is attained at an interior point c∈(a,b)c\in(a,b) (otherwise both the max and min would be attained only at the two endpoints, forcing M=f(a)=f(b)=mM=f(a)=f(b)=m, contradicting M>mM>m). At that interior point cc, ff has a local extremum, and ff is differentiable there by hypothesis, so Fermat's theorem gives f′(c)=0f'(c)=0. ■\blacksquare

Every hypothesis is necessary. Continuity on [a,b][a,b]: f(x)=xf(x)=x for x∈[0,1)x\in[0,1), f(1)=0f(1)=0 is discontinuous at 11, satisfies f(0)=f(1)=0f(0)=f(1)=0, but f′(x)=1≠0f'(x)=1\ne0 everywhere it is defined. Differentiability on (a,b)(a,b): f(x)=∣x∣f(x)=|x| on [−1,1][-1,1] has f(−1)=f(1)=1f(-1)=f(1)=1 but no point with f′(c)=0f'(c)=0, because ff fails to be differentiable at the one candidate point c=0c=0. f(a)=f(b)f(a)=f(b): f(x)=xf(x)=x on [0,1][0,1] has no cc with f′(c)=0f'(c)=0 at all, consistent with f(0)≠f(1)f(0)\ne f(1).

Worked example. Verify Rolle's Theorem for f(x)=x2−4x+3f(x)=x^2-4x+3 on [1,3][1,3]: f(1)=1−4+3=0=f(3)=9−12+3f(1)=1-4+3=0=f(3)=9-12+3, and ff is a polynomial (continuous and differentiable everywhere). Rolle's Theorem guarantees some c∈(1,3)c\in(1,3) with f′(c)=0f'(c)=0. Indeed f′(x)=2x−4=0f'(x)=2x-4=0 gives c=2∈(1,3)c=2\in(1,3), confirming the theorem.

3. The Mean Value Theorem (Lagrange)

Theorem (MVT). Let ff be continuous on [a,b][a,b] and differentiable on (a,b)(a,b). Then there exists c∈(a,b)c\in(a,b) with

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

Proof. Define 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 from ff the secant line through (a,f(a))(a,f(a)) and (b,f(b))(b,f(b)). Then gg is continuous on [a,b][a,b] and differentiable on (a,b)(a,b) (a sum of ff and a linear function), and

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

So g(a)=g(b)=0g(a)=g(b)=0, and Rolle's Theorem applies to gg: there is c∈(a,b)c\in(a,b) with g′(c)=0g'(c)=0. Differentiating,

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

so g′(c)=0g'(c)=0 gives exactly f′(c)=f(b)−f(a)b−af'(c) = \dfrac{f(b)-f(a)}{b-a}. ■\blacksquare

Geometric meaning. f(b)−f(a)b−a\dfrac{f(b)-f(a)}{b-a} is the slope of the secant line through the endpoints. MVT says some point strictly between aa and bb has a tangent line parallel to that secant. Rolle's Theorem is the special case of a horizontal secant (f(a)=f(b)f(a)=f(b)), giving a horizontal tangent.

Worked example. For f(x)=x2f(x)=x^2 on [1,4][1,4], the secant slope is f(4)−f(1)4−1=16−13=5\dfrac{f(4)-f(1)}{4-1} = \dfrac{16-1}{3} = 5. MVT guarantees some c∈(1,4)c\in(1,4) with f′(c)=2c=5f'(c)=2c=5, i.e. c=2.5c=2.5, which indeed lies in (1,4)(1,4).

4. Consequences of the MVT

Corollary 1 (zero derivative implies constant). If ff is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f′(x)=0f'(x)=0 for every x∈(a,b)x\in(a,b), then ff is constant on [a,b][a,b].

Proof. Let x1<x2x_1<x_2 be any two points of [a,b][a,b]. Apply MVT to ff on [x1,x2][x_1,x_2]: there is c∈(x1,x2)c\in(x_1,x_2) 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. So f(x2)=f(x1)f(x_2)=f(x_1) for every such pair, hence ff is constant. ■\blacksquare

Corollary 2 (equal derivatives differ by a constant). If f,gf,g are both continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f′(x)=g′(x)f'(x)=g'(x) for every x∈(a,b)x\in(a,b), then f(x)−g(x)f(x)-g(x) is constant on [a,b][a,b].

Proof. Apply Corollary 1 to h=f−gh=f-g: h′(x)=f′(x)−g′(x)=0h'(x)=f'(x)-g'(x)=0 everywhere on (a,b)(a,b), so hh is constant. ■\blacksquare

Corollary 3 (sign of f′f' controls monotonicity). If ff is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f′(x)>0f'(x)>0 for every x∈(a,b)x\in(a,b), then ff is strictly increasing on [a,b][a,b]. (Similarly f′(x)<0f'(x)<0 gives strictly decreasing, f′(x)≥0f'(x)\ge0 gives non-decreasing.)

Proof. Let x1<x2x_1<x_2 in [a,b][a,b]. MVT on [x1,x2][x_1,x_2] gives c∈(x1,x2)c\in(x_1,x_2) with f(x2)−f(x1)=f′(c)(x2−x1)f(x_2)-f(x_1)=f'(c)(x_2-x_1). Since f′(c)>0f'(c)>0 and x2−x1>0x_2-x_1>0, the right side is positive, so f(x2)>f(x1)f(x_2)>f(x_1). ■\blacksquare

Corollary 4 (bounded derivative gives a Lipschitz-type bound). If ff is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and ∣f′(x)∣≤K|f'(x)|\le K for every x∈(a,b)x\in(a,b), then ∣f(x2)−f(x1)∣≤K∣x2−x1∣|f(x_2)-f(x_1)|\le K|x_2-x_1| for all x1,x2∈[a,b]x_1,x_2\in[a,b].

Proof. For x1<x2x_1<x_2 in [a,b][a,b], MVT on [x1,x2][x_1,x_2] gives c∈(x1,x2)c\in(x_1,x_2) with f(x2)−f(x1)=f′(c)(x2−x1)f(x_2)-f(x_1)=f'(c)(x_2-x_1). Taking absolute values, ∣f(x2)−f(x1)∣=∣f′(c)∣ ∣x2−x1∣≤K∣x2−x1∣|f(x_2)-f(x_1)| = |f'(c)|\,|x_2-x_1| \le K|x_2-x_1|. ■\blacksquare

Worked example. Since f(x)=sin⁡xf(x)=\sin x has f′(x)=cos⁡xf'(x)=\cos x with ∣cos⁡x∣≤1|\cos x|\le1 everywhere, Corollary 4 gives ∣sin⁡b−sin⁡a∣≤∣b−a∣|\sin b - \sin a| \le |b-a| for all real a,ba,b — a clean inequality obtained with no trigonometric identity at all, purely from a bound on the derivative.

This is the theorem that justifies every "increasing/decreasing" argument you have ever made with a derivative. Without MVT, "f′>0f'>0 on an interval" and "ff is increasing on that interval" are two separate, unconnected facts; MVT is precisely the bridge between them, and it is why Chapter 6's curve-sketching methods are valid at all.

5. Cauchy's Mean Value Theorem

Theorem (Cauchy MVT). Let f,gf,g be continuous on [a,b][a,b] and differentiable on (a,b)(a,b), with g′(x)≠0g'(x)\ne0 for every x∈(a,b)x\in(a,b). Then there exists c∈(a,b)c\in(a,b) with

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

(Note g(b)≠g(a)g(b)\ne g(a) is guaranteed: if they were equal, Rolle's Theorem applied to gg would give some point with g′=0g'=0, contradicting the hypothesis.)

Proof. Define

h(x)=[f(b)−f(a)] g(x)−[g(b)−g(a)] f(x).h(x) = \big[f(b)-f(a)\big]\,g(x) - \big[g(b)-g(a)\big]\,f(x).

hh is continuous on [a,b][a,b] and differentiable on (a,b)(a,b). Direct computation gives

h(a)=f(b)g(a)−f(a)g(a)−g(b)f(a)+g(a)f(a)=f(b)g(a)−g(b)f(a),h(a) = f(b)g(a)-f(a)g(a) - g(b)f(a)+g(a)f(a) = f(b)g(a)-g(b)f(a), h(b)=f(b)g(b)−f(a)g(b)−g(b)f(b)+g(a)f(b)=g(a)f(b)−f(a)g(b),h(b) = f(b)g(b)-f(a)g(b) - g(b)f(b)+g(a)f(b) = g(a)f(b) - f(a)g(b),

and these are equal: h(a)=h(b)h(a)=h(b). Rolle's Theorem gives c∈(a,b)c\in(a,b) with h′(c)=0h'(c)=0, i.e.

[f(b)−f(a)] g′(c)−[g(b)−g(a)] f′(c)=0.[f(b)-f(a)]\,g'(c) - [g(b)-g(a)]\,f'(c) = 0.

Since g′(c)≠0g'(c)\ne0 and g(b)≠g(a)g(b)\ne g(a), dividing through gives f′(c)g′(c)=f(b)−f(a)g(b)−g(a)\dfrac{f'(c)}{g'(c)} = \dfrac{f(b)-f(a)}{g(b)-g(a)}. ■\blacksquare

Why this generalises Lagrange's MVT. Taking g(x)=xg(x)=x (so g′(x)=1≠0g'(x)=1\ne0 always, g(b)−g(a)=b−ag(b)-g(a)=b-a) recovers exactly the ordinary MVT. Cauchy's version is what makes L'Hopital's Rule provable in the next chapter: it relates the ratio of two functions' increments to the ratio of their derivatives at a single shared point cc, which an ordinary (single-function) MVT applied separately to ff and to gg cannot do, since the two separate applications would generally produce two different points c1≠c2c_1\ne c_2.

Common Exam Pitfalls

  • Forgetting the two different interval conditions. Continuity is required on the closed interval [a,b][a,b]; differentiability only on the open interval (a,b)(a,b) — endpoints need not be differentiable points of a larger domain.
  • Applying Rolle's Theorem without checking f(a)=f(b)f(a)=f(b). This is not automatic; verify it explicitly before invoking the theorem.
  • Misusing Fermat's theorem at an endpoint. f′(c)=0f'(c)=0 is only guaranteed at an interior local extremum; an extremum at aa or bb gives no such guarantee, as f(x)=xf(x)=x on [0,1][0,1] shows.
  • Treating MVT as giving a specific, computable cc in general. Like IVT and EVT, MVT is an existence theorem; the worked example with f(x)=x2f(x)=x^2 happened to allow solving for cc explicitly, but this is not guaranteed for every function.
  • Applying Corollary 1 (constant function) on a set that is not an interval. The proof genuinely needs [x1,x2]⊆[a,b][x_1,x_2]\subseteq[a,b] for every pair of points; on a domain with a gap (two disjoint intervals), f′=0f'=0 on each piece only forces ff to be constant on each piece separately, possibly with different constants.
  • Forgetting Corollary 4 requires a uniform bound KK on ∣f′∣|f'| across the whole interval, not just at one point. A derivative bounded at a single point gives no Lipschitz-type bound on the function's increments over an interval.
  • Confusing Cauchy's MVT with simply applying the ordinary MVT twice. Applying MVT to ff and separately to gg produces two generally different points c1,c2c_1,c_2; Cauchy's theorem is the stronger statement that a single cc works for both simultaneously, which is exactly the extra content needed for L'Hopital's Rule.

Summary

  • Fermat's theorem: at an interior local extremum where ff is differentiable, f′(c)=0f'(c)=0 — proved by comparing one-sided derivatives, which must be ≤0\le0 and ≥0\ge0 respectively.
  • Rolle's Theorem: ff continuous on [a,b][a,b], differentiable on (a,b)(a,b), f(a)=f(b)f(a)=f(b)   ⟹  \implies some c∈(a,b)c\in(a,b) has f′(c)=0f'(c)=0 — proved via EVT plus Fermat's theorem; every hypothesis is independently necessary.
  • MVT (Lagrange): under the same continuity/differentiability hypotheses, some c∈(a,b)c\in(a,b) has f′(c)=f(b)−f(a)b−af'(c)=\dfrac{f(b)-f(a)}{b-a} — proved by applying Rolle's Theorem to ff minus its secant line; geometrically, a tangent parallel to the secant.
  • Consequences: f′≡0f'\equiv0 on an interval   ⟹  \implies ff constant; f′≡g′f'\equiv g'   ⟹  \implies f−gf-g constant; f′>0f'>0 (resp. <0<0) on an interval   ⟹  \implies ff strictly increasing (resp. decreasing) — the rigorous justification for every monotonicity argument from a derivative's sign; ∣f′∣≤K|f'|\le K on an interval   ⟹  \implies ∣f(x2)−f(x1)∣≤K∣x2−x1∣|f(x_2)-f(x_1)|\le K|x_2-x_1|, a Lipschitz-type bound.
  • Cauchy's MVT: for f,gf,g continuous on [a,b][a,b], differentiable on (a,b)(a,b), g′≠0g'\ne0 on (a,b)(a,b), some single c∈(a,b)c\in(a,b) has f′(c)g′(c)=f(b)−f(a)g(b)−g(a)\dfrac{f'(c)}{g'(c)}=\dfrac{f(b)-f(a)}{g(b)-g(a)} — proved via Rolle's Theorem applied to a two-function auxiliary combination; reduces to Lagrange's MVT when g(x)=xg(x)=x, and is the theorem underlying L'Hopital's Rule.