Hexa Scholar

The mean value theorem: somewhere the slope equals the average

A gold clay hill with one hump on a navy base; a long wooden plank leans from the hill's left foot to a point high on its right side, and a shorter navy plank lies on the slope at the same angle.
A long plank across the hill, and a short one at the same tilt.

The question

On [−2, 2], the curve y = x³ − 3x goes from height −2 to height 2: an average slope of 1. Where is its slope exactly 1?

Move the tangent point yourself; the page marks every answer.

  1. 1 SeeFind where the tangent matches the chord.
  2. 2 TryPredict where the point sits.
  3. 3 ProveBuild the proof, line by line.
  4. 4 ApplyProblems to check yourself.
Before you start · 3 quick checks on slopes, derivatives and continuity, about 3 min

Two ideas before you start

2 ideas

A chord's slope is an average rate

Figure: the curve y = √x for x from 0 to 9 and the chord from (0, 0) to the point at x = b. It needs JavaScript.

Right end b

Chord slope: m = (√4 − √0)/(4 − 0) = 2/4 = 1/2

Here f(x) = √x on [0, b]. The chord is the straight segment between the two points of the graph above a = 0 and b. Its slope is the change in height divided by the change in x: the average rate of change of f over the interval.

Exact definition

Chord and average rate. Let \(a \lt b\) and let \(f\) be defined on \([a, b]\). The chord of \(f\) over \([a, b]\) is the segment from \((a, f(a))\) to \((b, f(b))\). Its slope

\[m = \frac{f(b) - f(a)}{b - a}\]

is the average rate of change of \(f\) over \([a, b]\).

A tangent can run parallel to the chord

Figure: the curve y = √x, its chord over [0, 4] and the tangent line at a point c. It needs JavaScript.

Tangent at c

Slopes: f′(c) = 1/(2√c) = 1 m = 1/2

At c = 1/4 the tangent slope 1 is larger than the chord slope 1/2: the lines are not parallel.

The derivative f′(c) is the slope of the tangent line at c. Same f(x) = √x, with the chord over [0, 4] fixed. Each tap moves the tangent point c; the dashed line is the tangent.

Exact definition

Derivative and tangent line. \(f\) is differentiable at \(c\) when the difference quotient

\[\frac{f(c + h) - f(c)}{h}\]

tends to a limit as \(h \to 0\). That limit is the derivative \(f'(c)\). Then the tangent line at \(c\) is \(y = f(c) + f'(c)(x - c)\). It is parallel to the chord over \([a, b]\) exactly when \(f'(c) = m\).

Fine print: names and scope

The theorem on this page is also called Lagrange's mean value theorem. Its special case with \(f(a) = f(b)\), a flat chord, is Rolle's theorem. A version for two functions at once (Cauchy's mean value theorem) is not treated here.

The theorem says that a point \(c\) exists. It gives no formula for \(c\), and \(c\) need not be unique.

1 See

Find where the tangent matches the chord

How the page decides

The ends \(a\) and \(b\) move on a grid of 0.1 and the point \(c\) on a grid of 0.01, so every height \(f(a)\), \(f(b)\), every chord slope \(m\) and every tangent slope \(f'(c)\) on this stage is shown exactly. The points where \(f'(c) = m\) are found from a formula, not read off the figure, and the distance from your \(c\) to them is compared with 0.03 in exact arithmetic. Only points strictly between \(a\) and \(b\) count. A summary of what the goals show opens after the four goals.

2 Try

Where in the interval is the point?

A prediction first. The explorer below it opens once it is answered.

The explorer and its goals open after you answer the prediction.

A bound from the theorem

3 Prove

Subtract the chord, then look at the top

Theorem (mean value theorem)

Assumptions. \(a \lt b\), and \(f\) is continuous on the closed interval \([a, b]\) and differentiable at every point of the open interval \((a, b)\).

Conclusion. There is a point \(c\) with \(a \lt c \lt b\) and

\[f'(c) = \frac{f(b) - f(a)}{b - a}.\]

Facts the proof uses.

  • The extreme value theorem: a function that is continuous on a closed, bounded interval \([a, b]\) takes a largest value there, at some point \(c\) of \([a, b]\). A refresher is below.
  • Limits keep non-strict inequalities: if \(q(h) \le 0\) for every small \(h \gt 0\) and \(q(h) \to L\) as \(h \to 0\) from the right, then \(L \le 0\). The same holds with \(\ge\) in place of \(\le\), and for \(h \lt 0\) with \(h \to 0\) from the left. See the lesson on the ε–δ definition of a limit.
  • The derivative of a linear function \(m(x - a)\) is the constant \(m\), and derivatives of a difference subtract.
Refresher: the extreme value theorem

Both conditions matter. On the open interval \((0, 1)\) the continuous function \(x\) has no largest value: it comes as close to 1 as you like but never reaches it. On \([0, \infty)\) it has none either. On a closed, bounded interval this cannot happen. The proof uses the completeness of the real numbers, as the proof of the intermediate value theorem does, and belongs to a later lesson on compactness; this page uses the statement only.

Let \(m = \frac{f(b) - f(a)}{b - a}\), and let \(g(x) = f(x) - f(a) - m(x - a)\), the height of the graph above the chord. Then \(g\) is continuous on \([a, b]\) and differentiable on \((a, b)\) with \(g'(x) = f'(x) - m\), and \(g(a) = 0\), \(g(b) = f(b) - f(a) - m(b - a) = 0\). So it is enough to find \(c\) in \((a, b)\) with \(g'(c) = 0\). If \(g\) is constant, every \(c\) in \((a, b)\) works. If \(g\) is not constant but never positive, use \(-f\) in place of \(f\): its chord slope is \(-m\) and its \(g\) is \(-g\), which is positive somewhere, and a point \(c\) with \((-f)'(c) = -m\) has \(f'(c) = m\). So from here on \(g(x_0) \gt 0\) for some \(x_0\) in \((a, b)\).

Each option is one step. Pick the one that is true for every \(f\), \(a\), \(b\) the theorem allows with \(g(x_0) \gt 0\), and for every point \(c\) where \(g\) is largest.

What else follows
  • Rolle's theorem. If also \(f(a) = f(b)\), then \(m = 0\), and the theorem gives a point \(c\) in \((a, b)\) with \(f'(c) = 0\).
  • Derivative and change. If \(f\) is differentiable on an interval, then for any two of its points \(x \lt y\) the theorem gives \(f(y) - f(x) = f'(c)(y - x)\) for some \(c\) between them. So \(f' = 0\) everywhere makes \(f\) constant, \(f' \gt 0\) everywhere makes \(f\) strictly increasing, and \(|f'| \le K\) everywhere gives \(|f(y) - f(x)| \le K|y - x|\).
  • Taylor's remainder. Written as \(f(b) = f(a) + f'(c)(b - a)\), the theorem is Taylor's theorem of degree 0 with the Lagrange remainder. Subtracting a parabola instead of the chord, and using Rolle's theorem twice, gives the next case, \(f(b) = f(a) + f'(a)(b - a) + \tfrac{1}{2}f''(\xi)(b - a)^2\) for some \(\xi\) in \((a, b)\), when \(f''\) exists on \((a, b)\) and \(f'\) is continuous on \([a, b]\). See Taylor polynomials and the order of a Taylor error.
  • Where the assumptions fail. \(|x|\) on an interval with \(a \lt 0 \lt b\) is continuous but has a corner at 0, and stage 1 found no point there. Continuity at the ends matters too: on \([0, 1]\), let \(f(x) = x\) for \(x \lt 1\) and \(f(1) = 0\). Then \(f(0) = f(1) = 0\), so the chord slope is 0, while \(f'(x) = 1\) at every point inside.
4 Apply

Problems

Each problem has hints and a full solution. Exact answers can be typed as a decimal or a fraction.

Key point When \(f\) is continuous on \([a, b]\) and differentiable inside, \(f(b) - f(a) = f'(c)(b - a)\) for some \(c\) in \((a, b)\). Use it to locate \(c\) when \(f'\) can be inverted, and to turn a bound on \(f'\) into a bound on \(f(b) - f(a)\) when \(c\) is unknown. Check the assumptions first: one corner or one jump inside can break the conclusion.
Level Intro Prerequisites continuity and the intermediate value theorem and derivatives; slopes and continuity (refreshed in Before you start) Time ~35 min

Related: the order of a Taylor error builds on the remainder form of this theorem; the ε–δ definition of a limit is the tool behind the one-sided limits in the proof.

Further reading