A1415 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 max⁡|f′′| came from this theorem or its extension, Taylor's theorem.

  • The curve is x3 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 x3 it's c=(a2+ab+b2)/3 (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 |f′(x)|≤4 everywhere. If x is known to within 0.01, how far off can y be?

Name it

The derivative

f′(a)=limh→0⁡f(a+h)−f(a)h

when the limit exists. Differentiable implies continuous (the numerator must tend to 0); the reverse fails, as |x| 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, f′(c)=0.
  • Rolle: if f is continuous on [a, b], differentiable inside, and f(a) = f(b), then f′(c)=0 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),
f(b)−f(a)=f′(c)(b−a)

(Apply Rolle to f minus its secant line.)

Consequences

  • f′=0 on an interval means f is constant there; f′>0 means f is increasing.
  • If |f′|≤L, then |f(x)−f(y)|≤L|x−y|: f is Lipschitz.
  • Error propagation: an input error Δ causes an output error at most max⁡|f′|⋅|Δ|, which is the rigorous version of linearized error analysis.
  • If f′ 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 x3 on [0, 2].

Show the solution
  1. Secant slope. f(2)−f(0)2=8−02=4
  2. Solve f′(c)=4. 3c2=4 gives c=23=1.155 inside (0, 2).
  3. Check with the general formula. It gives (0+0+4)/3, the same.

Answer c=23=1.155.

Worked example

A resistor's power is P=V2/R 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
  1. Differentiate. dPdV=2VR
  2. Its largest value on the range. At V = 5.1 V, 2×5.1100=0.102W/V
  3. Bound the error. |ΔP|≤0.102×0.02W=2.04mW

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
  1. Apply the mean value theorem. For some c between the two temperatures, ΔV=V′(c)ΔT with 9≤V′(c)≤11 mV/K.
  2. Solve for ΔT. ΔT=ΔVV′(c)
  3. Bound it. It lies between 5011=4.55K and 509=5.56K
  4. 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 x2 on [2, 3]?

Check

Where's the mean value point c for x3 on [0, 2]?

Check

A function has |f′|≤ 0.5 everywhere. An input is off by at most 0.01. What's the bound on the output error?

Check

P=V2/R 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 sin⁡(7x) change when x changes by 0.001?

Check

f(x)=x5+3x−c. How many real roots can it have?

Check

Put the steps of the proof of the mean value theorem in order.

  1. g′(c)=f′(c)−f(b)−f(a)b−a.
  2. So f′(c)=f(b)−f(a)b−a.
  3. Then g(a) = g(b) = 0, and g is continuous on [a, b] and differentiable inside.
  4. Let g(x)=f(x)−[f(a)+f(b)−f(a)b−a(x−a)], f minus its secant line.
  5. By Rolle's theorem, g′(c)=0 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 ex 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°.

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?

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.