The chord
Take a smooth arc from x = a to x = b and join its two ends with a straight line, the chord. Its gradient is the rise over the run, : the average rate at which f changes from a to b.
For from 0 to 4, the ends are (0, 0) and (4, 4), so the chord has gradient (4 − 0) ÷ (4 − 0) = 1.
A tangent parallel to the chord
Slide a line parallel to the chord across the arc. At the ends the arc may be steeper or shallower than the chord, but somewhere in between the sliding line just touches the arc, and there it is a tangent with the chord's gradient.
That is the mean value theorem: if f is continuous on [a, b] and differentiable on (a, b), then there is at least one c with a < c < b where . The instantaneous rate at c equals the average rate over the whole interval.
For on [0, 4], the derivative is , and setting equal to the chord gradient 1 gives c = 2, strictly between 0 and 4. The tangent at (2, 1) is y = x − 1, parallel to the chord y = x.
The arc from (0, 0) to (4, 4), the chord y = x joining its ends, and the tangent y = x − 1 at c = 2. Both lines have gradient 1.
Finding c
To find c, work out the chord gradient, set f'(c) equal to it, solve, and keep only the solutions strictly between a and b.
Take on [0, 2]. The ends are f(0) = 0 and f(2) = 8 − 2 = 6, so the chord gradient is (6 − 0) ÷ 2 = 3. The derivative is , and gives , so . Only the positive value, about 1.154701, lies in (0, 2). Check: .
On [−2, 2] the same function has f(−2) = −6 and f(2) = 6, so the chord gradient is 12 ÷ 4 = 3 again, and now both and lie inside. The theorem promises at least one c; there can be more.
Take on [1, 9]. The chord gradient is . The derivative is , and gives , so c = 4, inside (1, 9).
The curve on [−2, 2], with the chord from (−2, −6) to (2, 6), gradient 3, drawn softer. The tangents at and both have gradient 3, parallel to the chord.
Both conditions are needed
Continuous on [a, b] means the arc is drawn without lifting the pen, ends included. Differentiable on (a, b) means it has a tangent at every point strictly between; the ends may be corners.
Drop differentiability and the theorem fails. y = |x| on [−1, 1] is continuous, and both ends are at height 1, so the chord is flat. But the gradient is −1 everywhere left of 0 and 1 everywhere right of it, and at 0 there is a corner with no tangent at all. No tangent is flat.
Drop continuity and it fails too. Let f(x) = x for and f(1) = 0. The ends are both at height 0, so the chord is flat, but every tangent between has gradient 1. The jump at x = 1 is what breaks it.
The curve y = |x| on [−1, 1] and its flat chord at height 1. Every tangent has gradient −1 or 1, and the corner at the origin has none.
Rolle's theorem
When f(a) = f(b), the chord is flat and its gradient is 0, so the theorem promises a c strictly inside with f'(c) = 0: a level tangent. This special case is Rolle's theorem.
For on [−1, 1], both ends are at height 0. The derivative 2x is 0 at c = 0, inside (−1, 1), where the curve has its lowest point, (0, −1), and its tangent is the level line y = −1.
What it is used for
The theorem is mostly used to reason about a function from its derivative. If f'(x) = 0 at every point of an interval, then for any two points a and b in it, f(b) − f(a) = f'(c)(b − a) = 0, so f is constant there. If f'(x) > 0 throughout, then f(b) − f(a) is positive whenever b > a, so f is increasing. That second fact is the next lesson's test for increasing and decreasing functions.
The usual mistakes
Giving the rise or the run as the rate. With f(1) = 2 and f(5) = 14, the rise is 12 and the run is 4; the chord gradient, and so f'(c), is 12 ÷ 4 = 3.
Giving the chord gradient as c. For on [0, 4] the chord gradient is 4, and c is where f' reaches it: 2c = 4, so c = 2.
Taking c at an end. f'(4) = 8 for on [0, 4] is the gradient at the right-hand end; the theorem's c lies strictly inside.
Reading the theorem as "the rate equals the average all the way". It names at least one instant, no more.
Two speed cameras
In the application below, two cameras 12 km apart time a van at 8 minutes, an average of 90 km/h. The theorem says that at some instant the van was doing exactly that speed, and setting the derivative of its distance equal to the average finds the minute.
Worked example: Two Average-Speed Cameras on a Motorway: the Instant a Van Was Doing Exactly the Average
Question Two cameras stand 12 km apart on a motorway. A van passes the first and reaches the second 8 minutes later. Its distance past the first camera is s = m + 0.0625m2 km, where m is the number of minutes since it passed. (a) Find the van's average speed between the cameras, in kilometers per hour. (b) The mean value theorem says that at some instant between the cameras the van was traveling at exactly that speed. Find that instant.
1.Check the two ends. At m = 0 the van is at the first camera, s = 0; at m = 8, s = 8 + 0.0625 × 64 = 8 + 4 = 12 km, the second camera.
The van is at the first camera when m = 0 and at the second when m = 8, where s = 8 + 4 = 12 km. 2.(a) The average speed is the distance divided by the time: 128 = 1.5 km a minute. In an hour that is 1.5 × 60 = 90, so the average speed is 90 km/h.
(a) The chord joining the two cameras has gradient 128 = 1.5 km a minute, which is 90 km/h. 3.The distance is a smooth function of the time, so the mean value theorem applies: somewhere strictly between the cameras the derivative equals the gradient of the chord, and that gradient is the average of 1.5 km a minute.
The distance is smooth, so the mean value theorem promises an instant where the tangent is parallel to that chord. 4.Differentiate for the speed at any instant: dsdm = 1 + 0.125m km a minute.
The speed at any instant is dsdm = 1 + 0.125m km a minute. 5.Set that equal to the average: 1 + 0.125m = 1.5, so 0.125m = 0.5 and m = 4.
Setting that equal to the average, 1 + 0.125m = 1.5, gives m = 4, and the tangent there is drawn parallel to the chord. 6.(b) Four minutes after the first camera the van was traveling at exactly 1.5 km a minute, which is 90 km/h. Check: it passed the first camera at 1 km a minute (60 km/h) and the second at 2 km a minute (120 km/h), so it went through 1.5 on the way.
(b) After 4 minutes the van was traveling at exactly 90 km/h: 60 km/h at the first camera, 120 at the second.
Answer: (a) 90 km/h, which is 1.5 km a minute; (b) 4 minutes after the first camera
Common mistakes
- Dividing 12 by 8 and calling the answer 1.5 km/h. The time is in minutes, so 1.5 is kilometers a minute; it must be multiplied by 60 to give the 90 km/h the two cameras report.
- Reading the theorem as saying the van held that speed all the way. It names one instant only: this van was traveling at 60 km/h as it passed the first camera and 120 km/h at the second, and matched 90 km/h exactly once, after 4 minutes.