A14 · Lesson 15 · The derivative and the mean value theorem
Somewhere, the instantaneous rate equals the average rate
If you drive 100 km in an hour, at some instant your speedometer read exactly 100 km/h. That everyday fact is the mean value theorem, and it's the bridge between a function's derivative and its actual changes. It's what turns a bound on the slope into a bound on the error: if a sensor's response never has slope steeper than L, an input uncertainty of Δ can never cause an output change bigger than LΔ. Every error estimate in A13 that mentioned came from this theorem or its extension, Taylor's theorem.
- The curve is on [a, b]. The dashed line is the secant from (a, a³) to (b, b³); its slope is the average rate of change.
- The mean value theorem promises a point c between a and b where the tangent is parallel to the secant. For it's (marked).
- Move a and b: c always stays inside the interval, though usually not at the middle.
Predict
A sensor's output y = f(x) has everywhere. If x is known to within 0.01, how far off can y be?
At most 0.04: by the mean value theorem for some c between, and . The theorem needs no formula for f, only a bound on its slope.
Name it
The derivative
when the limit exists. Differentiable implies continuous (the numerator must tend to 0); the reverse fails, as at 0 shows.
Fermat, Rolle and the mean value theorem
- Fermat: if f has a maximum or minimum at an interior point c and is differentiable there, .
- Rolle: if f is continuous on [a, b], differentiable inside, and f(a) = f(b), then for some c in (a, b). (By the extreme value theorem f has an extreme point inside, unless it's constant.)
- Mean value theorem: if f is continuous on [a, b] and differentiable inside, then for some c in (a, b),
(Apply Rolle to f minus its secant line.)
Consequences
- on an interval means f is constant there; means f is increasing.
- If , then : f is Lipschitz.
- Error propagation: an input error Δ causes an output error at most , which is the rigorous version of linearized error analysis.
- If has no zero on an interval, f has at most one root there (two roots would force a zero of f′ between them by Rolle).
Worked example
Find c in the mean value theorem for on [0, 2].
Show the solution
- Secant slope.
- Solve . gives inside (0, 2).
- Check with the general formula. It gives , the same.
Answer .
Worked example
A resistor's power is with R = 100 Ω and V between 4.9 and 5.1 V. Bound the error in P if V is off by 0.02 V.
Show the solution
- Differentiate.
- Its largest value on the range. At V = 5.1 V,
- Bound the error.
Answer the error in P is at most 2.04 mW.
Worked example
A sensor's output V(T) has a slope between 9 and 11 mV/K over its range. A reading changes by 50 mV. How much did the temperature change?
Show the solution
- Apply the mean value theorem. For some c between the two temperatures, with mV/K.
- Solve for ΔT.
- Bound it. It lies between and
- How tight that is. Without knowing where c is, that's as tight as the information allows, and it's guaranteed. A calibration that pins the slope more tightly narrows the range proportionally.
Answer the temperature changed by between 4.55 K and 5.56 K.
Check
Where's the mean value point c for on [2, 3]?
Check
Where's the mean value point c for on [0, 2]?
Check
A function has 0.5 everywhere. An input is off by at most 0.01. What's the bound on the output error?
Check
with R = 100 Ω and V at most 5.1 V. If V is off by 0.1 V, bound the error in P.
Write units the way you normally would: 1.5 mW, 1500 µW and 0.0015 W are the same answer.
Check
How much can change when x changes by 0.001?
Check
. How many real roots can it have?
Check
Put the steps of the proof of the mean value theorem in order.
- .
- So .
- Then g(a) = g(b) = 0, and g is continuous on [a, b] and differentiable inside.
- Let , f minus its secant line.
- By Rolle's theorem, for some c in (a, b).
Check
A sensor's slope stays between 9 and 11 mV/K. A reading changes by 100 mV.
(a)
What is the smallest temperature change consistent with that?
Write units the way you normally would: 1.5 K and 1500 mK are the same answer.
(b)
And the largest?
Check
Find the mean value point c.
Step 1
For on [0, b] (write b for the right end)?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
For on [a, b]?
Explain why
Why does a bound on a function's derivative give a bound on how much the function can change, and why is that useful for error analysis?
The mean value theorem says the change equals exactly, for some c between the two inputs. We don't know c, but if we know everywhere in that range, the change is at most . That turns the usual linearized estimate, "output error ≈ slope × input error," into a guaranteed bound, valid however large Δ is, as long as the slope bound covers the whole range. For a measurement or a computation, it means a worst-case error can be stated without knowing exactly where the true input was.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.