Watch on Instagram

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.

Posted · About a 1 minute watch, 4 minute read · Take the quiz

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]

  1. The ends are (0, 0) and (4, 16).
  2. Average slope: rise 16, run 4, so (16 − 0) / (4 − 0) = 4.
  3. The derivative is f′(x) = 2x. Set it equal to the average slope: 2c = 4, so c = 2.
  4. Check: c = 2 is 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

  1. Check the conditions: continuous on [a, b], differentiable on (a, b).
  2. Work out the average slope [f(b) − f(a)] / (b − a).
  3. Find f′(x) and solve f′(c) = that average slope.
  4. Keep only the values of c that are strictly between a and b.

Try it yourself

  1. f(x) = x³ on [0, 3]. Find the average slope, then the c the mean value theorem promises.
  2. f(x) = |x| − 1 on [−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| − 1 on [−1, 1], can fail it.
  • The theorem says at least one such c exists. 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.

1What does the mean value theorem promise for a smooth curve between x = a and x = b?
2What is the average slope of f(x) = x² from x = 0 to x = 4?
3For f(x) = x² on [0, 4], where is the tangent parallel to the secant line?
4Why doesn't the mean value theorem apply to f(x) = |x| − 1 on [−1, 1]?

Sources

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

All Calculus lessons