LeoMath

Foundations of calculus · Section 3 of 5

Mean value theorem

The overall average rate of change is attained at some instant; Rolle → Lagrange, and why no hypothesis can be dropped.

about 8 min

Start from a problem

Problem

A car covers 200 km in two hours: average speed 100 km/h. Can you assert that at some instant the speedometer read exactly 100?

Intuition says yes: slower than 100 the whole way and you never reach 200 km; faster the whole way and you overshoot. Speed varies continuously, so it must pass through 100. But "intuition says yes" is not a proof. We need a theorem that connects "overall average" to "some single instant" precisely.

Observe

Fix the point x0 below and make h large: the secant joins two endpoints. The mean value theorem says the tangent somewhere in between is parallel to that secant. Try a few functions and hunt for that place.

Interactive experimentSecant becomes tangent
Function
f(x0+h)−f(x0)hsecant slope -0.0275tangent slope f′(x₀) 0.5403gap 0.5678

What did you observe?Play first, then answer. Read the explanation only after you have thought it through.

  1. 1.Shrink h from 2 to 0.01. How does the gap between secant and tangent slopes change? Does it shrink uniformly?
  2. 2.Choose x² and put x₀ at 0. How does the secant slope depend on h? Can you guess f′(0)?
  3. 3.Choose ln x and drag x₀ very close to 0. What happens to the tangent slope?
Conjecture

If f is "nice enough" on [a,b] (continuous, differentiable), there is ξ∈(a,b) with

f′(ξ)=f(b)−f(a)b−a.

Strategy for the proof: reduce to the special case of equal endpoint values, where all we need is an extremum.

Definition

"All we need is an extremum" requires saying what an extremum is. Here it is compared only with nearby values, not with the whole interval.

Definition 3.1Local extrema and stationary points

Let f be defined on a neighbourhood of x0. If there is δ>0 with f(x)≤f(x0) whenever |x−x0|<δ, then x0 is a local maximum of f; with ≥ instead of ≤ it is a local minimum. Both are called extrema. If f is differentiable at x0 and f′(x0)=0, then x0 is a stationary point of f.

The definition needs points of the domain on both sides of x0, so the endpoints of an interval are never extrema in this sense. That matters in the proof below.

Lemma 3.1Fermat's lemma

If x0 is an extremum of f and f is differentiable at x0, then f′(x0)=0.

Proof

Say x0 is a local maximum (for a minimum apply the same argument to −f). For 0<|h|<δ we have f(x0+h)≤f(x0), so

f(x0+h)−f(x0)h≤0 (h>0),f(x0+h)−f(x0)h≥0 (h<0).

Since f is differentiable at x0, both one-sided limits equal f′(x0); hence f′(x0)≤0 and f′(x0)≥0, that is, f′(x0)=0.

Common mistake

Fermat's lemma does not run backwards: a stationary point need not be an extremum. f(x)=x3 has derivative 0 at 0, yet it is below 0 on the left and above on the right, so 0 is no extremum. Also, an extremum may have no derivative at all, like |x| at 0. The lemma only says that a differentiable extremum is a stationary point.

Theorems and proofs

Theorem 3.2Rolle's theorem

Let f be continuous on [a,b], differentiable on (a,b), with f(a)=f(b). Then there is ξ∈(a,b) with f′(ξ)=0.

Proof

A continuous function on a closed interval attains a maximum M and a minimum m (extreme value theorem). If M=m, f is constant and any ξ works. Otherwise at least one of M,m differs from f(a)=f(b) and is attained at an interior point ξ∈(a,b); say f(ξ)=M. Since ξ is interior, the points near it lie in [a,b] and none has a value above M, so ξ is a local maximum. f is differentiable at ξ, so f′(ξ)=0 by Fermat's lemma.

The heart of this step: the extreme value lies inside, an interior extreme point is an extremum, and a differentiable extremum is a stationary point. Equal endpoint values guarantee that the extreme values are not found only at the endpoints.

Theorem 3.3Lagrange's mean value theorem

Let f be continuous on [a,b] and differentiable on (a,b). Then there is ξ∈(a,b) with

f′(ξ)=f(b)−f(a)b−a.
Proof

The secant through the endpoints is

ℓ(x)=f(a)+f(b)−f(a)b−a(x−a),

whose derivative is the constant average slope m=f(b)−f(a)b−a. Put g(x)=f(x)−ℓ(x). Then g is continuous on [a,b], differentiable on (a,b), and since the secant passes through both endpoints, g(a)=g(b)=0. Rolle gives ξ with g′(ξ)=0, i.e. f′(ξ)−m=0.

The chain: build the secant → subtract it → equal endpoints → Rolle → conclusion. The entire trick is "subtract the secant".

Which hypothesis cannot be dropped

Example 3.1Not differentiable: f(x) = |x|

On [−1,1] the secant slope is 0, but f′ takes only the values −1 and 1, and f is not differentiable at 0. No ξ satisfies the conclusion. Differentiability on the open interval cannot be dropped.

Example 3.2Discontinuous at an endpoint

Let f(x)=x for 0≤x<1 and f(1)=2. The secant slope is 2; the interior derivative is identically 1. Continuity at the endpoints cannot be dropped, even at a single point.

Common mistake

ξ exists, but the theorem says nothing about where it is, how many there are, or how to find it. Never treat ξ as a quantity you can solve for; the theorem's value lies in estimates: |f(b)−f(a)|≤max⁡|f′|⋅|b−a|.

Applications

ApplicationZero derivative means constant

If f′≡0 on an interval I, then for any a<b in I, f(b)−f(a)=f′(ξ)(b−a)=0. This corollary is used in part II of the fundamental theorem in The integral and in the uniqueness proof for y′=ky in What is an ODE. Without the mean value theorem both proofs are empty.

ApplicationMonotonicity test

f′>0 on (a,b) implies f is strictly increasing: for x1<x2, f(x2)−f(x1)=f′(ξ)(x2−x1)>0.

ApplicationTaylor's theorem

The Lagrange-remainder proof in Taylor expansion is Rolle's theorem applied n+1 times to a carefully built function.

Remark

The mean value theorem is the bridge from local information to global behaviour: knowing the derivative at every point controls the difference of function values between any two points. Nearly every statement of the form "a property of f′ implies a property of f" rests on it.

Exercises

0 of 2 done

1
For f(x)=x3 on [0,2], find ξ∈(0,2) with f′(ξ)=f(2)−f(0)2−0 (three decimals).

Decimals or fractions; anything within 0.0006 of the answer counts as correct.

2
For f(x)=|x| on [−1,1] the secant slope is 0, yet no point has derivative 0. Which hypothesis of the mean value theorem fails?
Answer to exercise 2

Discussion

Found a mistake, have a question or a suggestion? You can also write to 620026600@qq.com

No comments yet. Share your understanding, ask a question, or point out an error on this page.

Log in to join the discussion