Skip to content
Tutorials Center
My learning

Topics

Lesson 25 of 37 Β· Differentiation

The Mean Value Theorem

Prove Rolle's theorem and the Mean Value Theorem, then use them to show that zero derivative means constant, derivative sign gives monotonicity, and bound changes.

The Mean Value Theorem (MVT) is the workhorse of differential analysis. It links the average rate of change over an interval to the instantaneous rate at a point inside. Almost every result that says "properties of f' control properties of f" is a corollary.

Rolle's theorem

Theorem (Rolle). Let f be continuous on [a, b] and differentiable on (a, b), with f(a) = f(b). Then there is c ∈ (a, b) with f'(c) = 0.

Proof. By the Extreme Value Theorem, f attains a max M and a min m on [a, b]. If M = m, then f is constant and f' = 0 everywhere. Otherwise one of them differs from f(a) = f(b), so it is attained at an interior point c. At an interior maximum, difference quotients (f(c+h) - f(c))/h are ≀ 0 for h > 0 and β‰₯ 0 for h < 0. Since the limit exists, it must be both ≀ 0 and β‰₯ 0, so f'(c) = 0. The case of a minimum is the same. ∎

Notice that both continuity on the closed interval and differentiability on the open one are used.

The Mean Value Theorem

Theorem (MVT). If f is continuous on [a, b] and differentiable on (a, b), there is c ∈ (a, b) with

Text
f'(c) = ( f(b) - f(a) ) / ( b - a ).

Proof. Subtract the secant line: let h(x) = f(x) - f(a) - ((f(b) - f(a))/(b - a)) (x - a). Then h(a) = h(b) = 0, h is continuous on [a, b] and differentiable on (a, b). Rolle gives c with h'(c) = 0, i.e. f'(c) = (f(b) - f(a))/(b - a). ∎

Geometrically: somewhere between a and b the tangent is parallel to the secant.

Python Find the MVT point numerically

Press Run (or Ctrl + Enter) to see the result here.

Program input Β· what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Consequences

1. Zero derivative means constant. If f' = 0 on an interval, take two points x < y; MVT gives c with f(y) - f(x) = f'(c)(y - x) = 0. So f is constant. Consequently, two functions with the same derivative on an interval differ by a constant.

2. Sign of the derivative gives monotonicity. If f' β‰₯ 0 on an interval then for x < y, f(y) - f(x) = f'(c)(y - x) β‰₯ 0: f is increasing. If f' > 0, f is strictly increasing. Likewise for decreasing.

3. Lipschitz bounds. If |f'| ≀ K on an interval, then |f(y) - f(x)| ≀ K|y - x|. For example |sin y - sin x| ≀ |y - x|, which proves the claim used in uniform continuity.

4. Derivative limits. If f is continuous at a, differentiable nearby, and f'(x) β†’ L as x β†’ a, then f'(a) = L. Apply MVT to the quotient (f(x) - f(a))/(x - a) = f'(c_x) with c_x between a and x, so c_x β†’ a.

5. Cauchy's MVT. For f, g continuous on [a, b], differentiable inside, there is c with (f(b) - f(a)) g'(c) = (g(b) - g(a)) f'(c). It is the engine behind L'HΓ΄pital's rule.

Python Test the Lipschitz bound from the MVT

Press Run (or Ctrl + Enter) to see the result here.

Program input Β· what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The MVT needs differentiability at every interior point. For f(x) = |x| on [-1, 1], f(1) = f(-1) but f' is never 0: the theorem does not apply because f is not differentiable at 0.

Check your understanding

Quick check Β· 4 questions

of 4 answered You scored / 4 Β· perfect!

  1. 1. Rolle's theorem requires f(a) = f(b). What does it conclude?

    The max or min inside the interval is attained at an interior point, where the derivative must be 0.
  2. 2. If f'(x) is 0 on an interval, then:

    By the MVT, f(y) - f(x) = f'(c)(y - x) = 0 for any x < y.
  3. 3. If |f'(x)| is at most 3 everywhere, then |f(10) - f(4)| is at most:

    MVT gives |f(10) - f(4)| = |f'(c)| * 6, at most 18.
  4. 4. Why does the MVT fail to apply to |x| on [-1, 1]?

    The hypothesis needs differentiability on the whole open interval; |x| fails at 0.

Summary

  • Rolle: continuous on [a, b], differentiable inside, f(a) = f(b) gives f'(c) = 0 for some c.
  • MVT: f'(c) = (f(b) - f(a))/(b - a) for some interior c, proved by subtracting the secant.
  • Corollaries: zero derivative means constant; positive derivative means increasing; bounded derivative means Lipschitz.
  • All hypotheses matter; |x| is the standard counterexample.

Next: Taylor's Theorem with Remainder