Math Bytes · Calculus · Episode 15 · Analyzing functions
The mean value theorem
If a curve is smooth between two points, somewhere its slope equals the average slope, the slope of the line joining the ends. For f(x) = x² on [0, 4], the average slope is 4, and f′(x) = 2x equals 4 at x = 2, where the tangent runs parallel to that line.
The car trip
Drive 200 km in 2 hours. Your average speed is 200 km ÷ 2 h = 100 km/h.
Could you have stayed under 100 km/h the whole time? No: then you'd cover less than 200 km in 2 hours. Over 100 the whole time? No: then you'd cover more. So you were sometimes at or below 100 and sometimes at or above it, and because your speed changes smoothly, at some moment the speedometer read exactly 100.
The theorem
The mean value theorem (MVT) says the same thing about any smooth curve.
If f is continuous on [a, b] and differentiable on (a, b), then there is at least one number c between a and b with
f′(c) = [f(b) − f(a)] / (b − a)
The right side is the average slope (the average rate of change): rise over run for the straight line joining (a, f(a)) and (b, f(b)). That line is called the secant line. The left side is the slope of the tangent line at c. So the theorem says: somewhere, the tangent runs parallel to the secant.
A worked example: f(x) = x² on [0, 4]
- The ends are
(0, 0)and(4, 16). - Average slope: rise 16, run 4, so
(16 − 0) / (4 − 0) = 4. - The derivative is
f′(x) = 2x. Set it equal to the average slope:2c = 4, soc = 2. - Check:
c = 2is inside(0, 4). ✓
At (2, 4) the tangent line has slope 4, the same as the secant, so the two lines are parallel.
How to use it
- Check the conditions: continuous on
[a, b], differentiable on(a, b). - Work out the average slope
[f(b) − f(a)] / (b − a). - Find
f′(x)and solvef′(c) =that average slope. - Keep only the values of
cthat are strictly betweenaandb.
Try it yourself
f(x) = x³on[0, 3]. Find the average slope, then thecthe mean value theorem promises.f(x) = |x| − 1on[−1, 1]. Does the mean value theorem apply? Is there a point where the slope equals the average slope?
(Answers: 1. The average slope is (27 − 0) / (3 − 0) = 9. f′(x) = 3x², so 3c² = 9, c² = 3, and c = √3 ≈ 1.73, which is inside (0, 3). 2. The average slope is (0 − 0) / (1 − (−1)) = 0, but the slope of |x| − 1 is −1 on the left and 1 on the right, never 0. The theorem doesn't apply because the graph has a corner at x = 0, where it isn't differentiable.)
Good to know
- "Smooth between two points" is shorthand for the two conditions: continuous on
[a, b]and differentiable on(a, b). A curve with a corner, like|x| − 1on[−1, 1], can fail it. - The theorem says at least one such
cexists. There can be more than one, and the theorem doesn't tell you where it is; you solve for it. - The car example assumes the car moves forward the whole time, so speed equals velocity, and that its position changes smoothly. The moment of exactly 100 may happen more than once.
- Kilometers per hour is just the example: 100 miles an hour works the same way.
Answer to the comment question
f(x) = x² from x = 2 to x = 8. At what x does the slope equal the average slope? x = 5. The ends are (2, 4) and (8, 64), so the average slope is (64 − 4) / (8 − 2) = 60 / 6 = 10. The derivative is f′(x) = 2x, and 2c = 10 gives c = 5, which is inside (2, 8). (For x² the point always lands at the midpoint of the interval, a nice pattern, but not true for every function.)
Test your knowledge
Quick quiz: The mean value theorem
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- OpenStax, "Calculus Volume 1, 4.4 The Mean Value Theorem": statement and conditions; the |x| − 1 counterexample
- College Board, "AP Calculus AB and BC Course and Exam Description": Unit 5, Analytical Applications of Differentiation (using the mean value theorem)
- Wolfram MathWorld, "Mean-Value Theorem": the theorem's statement
- MIT OpenCourseWare, "18.01 Single Variable Calculus (Fall 2006)": lecture notes on the mean value theorem
Video transcript
If you averaged 100 kilometers an hour, were you ever going exactly 100?
Drive 200 kilometers in 2 hours. You can't be under 100 the whole time, or over it, so you hit exactly 100.
The mean value theorem: if a curve is smooth between two points, somewhere its slope equals the average slope.
That's the slope of the line joining the ends.
Try f(x) = x² from 0 to 4. Rise 16, run 4: average slope 4.
The derivative, 2x, equals 4 at x = 2. There, the tangent runs parallel to that line.
Your turn. Same f(x), from 2 to 8. At what x does the slope match the average? Comment your answer below!
That's your byte.
More from Calculus
- Calculus EP12Optimization
- Calculus EP13Increasing, decreasing, max and min
- Calculus EP17Riemann sums
- Calculus EP18The fundamental theorem of calculus