The Mean Value Theorem

The inequality and its applications

The mean value inequality

If ff is continuous on [a ; b][a \,;\, b], differentiable on ]a ; b[\left]a \,;\, b\right[, and if ∣f′(x)∣≤k\left\lvert f'(x) \right\rvert \leq k for every xx in ]a ; b[\left]a \,;\, b\right[, then

∣f(b)−f(a)∣≤k ∣b−a∣\left\lvert f(b) - f(a) \right\rvert \leq k\,\lvert b - a \rvert

The proof takes one line from the equality: ∣f(b)−f(a)∣=∣f′(c)∣∣b−a∣≤k∣b−a∣\left\lvert f(b) - f(a) \right\rvert = \left\lvert f'(c) \right\rvert \lvert b - a \rvert \leq k \lvert b - a \rvert.

Applied to every pair of points of an interval II, it says exactly that ff is kk-Lipschitz on II — the bridge to uniform continuity.

The monotonicity theorem, finally proved

The result we have been using since high school without proving it follows immediately from the mean value theorem. Let ff be differentiable on an interval II, and x<yx < y two points of II. There exists cc between xx and yy such that

f(y)−f(x)=f′(c) (y−x)f(y) - f(x) = f'(c)\,(y - x)

Since y−x>0y - x > 0, the sign of f(y)−f(x)f(y) - f(x) is that of f′(c)f'(c). We deduce all three statements at once:

Hypothesis on II Conclusion
f′≥0f' \geq 0 ff increasing
f′>0f' > 0 ff strictly increasing
f′=0f' = 0 ff constant

The last point assumes II is an interval: on R∖{0}\mathbb{R} \setminus \{0\}, the function equal to 00 on ]−∞ ; 0[\left]-\infty \,;\, 0\right[ and 11 on ]0 ; +∞[\left]0 \,;\, +\infty\right[ has zero derivative without being constant.

Numerical bounds

The inequality provides bounds without computing a single exact value.

Since ∣cos⁡t∣≤1\lvert \cos t \rvert \leq 1, we obtain for all real numbers xx and yy:

∣sin⁡x−sin⁡y∣≤∣x−y∣\left\lvert \sin x - \sin y \right\rvert \leq \lvert x - y \rvert

Likewise, on [0 ; +∞[[0 \,;\, +\infty\left[\right., the function x↦1+xx \mapsto \sqrt{1 + x} has derivative 121+x≤12\dfrac{1}{2\sqrt{1+x}} \leq \dfrac{1}{2}, hence the classic bound

1+x≤1+x2\sqrt{1 + x} \leq 1 + \frac{x}{2}

It is also the mean value inequality that bounds the error of numerical methods: a function whose derivative is bounded by kk cannot drift from its tabulated value faster than kk times the step.

Classic pitfall

Believing that the bound kk must be attained. The inequality remains true for any upper bound of ∣f′∣\lvert f' \rvert: the sharper it is, the better the estimate, but a crude upper bound never makes the statement false. On the other hand, a very real mistake is applying the inequality on an interval where f′f' is not bounded, such as x↦xx \mapsto \sqrt{x} near 00.