The mean value theorem: somewhere the slope equals the average
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 SeeFind where the tangent matches the chord.
- 2 TryPredict where the point sits.
- 3 ProveBuild the proof, line by line.
- 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 ideasA 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.
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.
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.
Find where the tangent matches the chord
- Set the ends a and b of the interval with their sliders, in steps of 0.1. The solid segment is the chord from a to b.
- Move the point c in steps of 0.01. The dashed line is the tangent at c.
- Press Check c. A mark counts when c is within 0.03 of a point where the tangent slope equals the chord slope. Then the page marks every such point.
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.
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.
Explorer: the point c and its place t
Choose a function and an interval \([a, b]\). The table lists every point \(c\) in \((a, b)\) with \(f'(c) = m\), and its place \(t = (c - a)/(b - a)\) in the interval: \(t = 0\) at \(a\), \(t = 1/2\) at the midpoint, \(t = 1\) at \(b\).
| Point | c | t | Side |
|---|
Goals
\(x^2\). Here \(m = \frac{b^2 - a^2}{b - a} = a + b\) and \(f'(c) = 2c\), so \(c = \frac{a + b}{2}\) on every interval: \(t = \tfrac{1}{2}\).
\(x^3\). Here \(m = \frac{b^3 - a^3}{b - a} = a^2 + ab + b^2\) and \(f'(c) = 3c^2\), so the points are \(c = \pm\sqrt{(a^2 + ab + b^2)/3}\), those of them that lie in \((a, b)\). Since
\[\begin{aligned} &4(a^2 + ab + b^2) - 3(a + b)^2 \\ &\quad = (a - b)^2 \gt 0, \end{aligned}\]\(c^2\) is larger than the square of the midpoint, so the point with \(+\) lies right of the midpoint and the point with \(-\) left of it: never at the midpoint. The curve \(x^3 - 3x\) of stage 1 has exactly the same points, because the term \(-3x\) lowers \(f'(c)\) and \(m\) by the same 3.
\(e^x\). Here \(c = \ln\frac{e^b - e^a}{b - a}\). With \(h = b - a\), the place is
\[t = \frac{1}{h}\ln\frac{e^h - 1}{h},\]which depends only on the length \(h\). It is above \(\tfrac{1}{2}\) for every \(h \gt 0\), because \(\frac{e^h - 1}{h} \gt e^{h/2}\) is the same as \(e^{h/2} - e^{-h/2} \gt h\). For short intervals \(t\) is close to \(\tfrac{1}{2} + \tfrac{h}{24}\): over a short interval \(e^x\) is close to its Taylor polynomial of degree 2, a parabola, and a parabola has its point at the midpoint.
A bound from the theorem
Subtract the chord, then look at the top
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.
- 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.
Problems
Each problem has hints and a full solution. Exact answers can be typed as a decimal or a fraction.
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
- M. Spivak, Calculus, chapter 11, “Significance of the Derivative,” on Rolle's theorem, the mean value theorem and its consequences.
- S. Abbott, Understanding Analysis, section 5.3, “The Mean Value Theorems.”
- W. Rudin, Principles of Mathematical Analysis, chapter 5, “Differentiation,” on mean value theorems.