Somewhere between a and b the tangent is parallel to the chord. The proof is Rolle’s theorem applied to the gap between curve and chord, and the consequences include “zero derivative means constant”.
Rolle’s theorem needs equal end values. The mean value theorem of §126 removes that restriction, and it becomes the most used theorem of the differential calculus. It turns information about the derivative into information about the function: bounds on ϕ′ give bounds on how much ϕ can change, a positive ϕ′ gives an increasing ϕ, and (§127) a zero ϕ′ gives a constant ϕ. That last fact is the foundation of integration: it is why an integral is determined up to an added constant.
The idea
Join the points A=(a,ϕ(a)) and B=(b,ϕ(b)) of a smooth curve by a chord. Slide a line parallel to the chord across the curve. Where it last touches the curve, it is a tangent. So somewhere between a and b the tangent is parallel to the chord: the instantaneous slope equals the average slope. In dynamics: if you travel 120 km in 2 hours, then at some instant your speed was exactly 60 km/h.
ExploreFind the tangent parallel to the chord
Try this.Drag the ends of the chord along the curve x3−3x+1. Watch where the points c with a parallel tangent appear. Then switch on “Try my own c” and hunt for one by hand.
f(x)=x3−3x+1, on [−1.8,1.2]
xy
y = f(x)
chord (drag its ends)
tangent at c, parallel to the chord
Mean value theorem: under the same smoothness hypotheses, f′(c)=b−af(b)−f(a) for some c in (a,b).
Chord slope b−af(b)−f(a)=−0.48.
2 points with the required tangent: c=−0.9165,0.9165.
What to notice
However you place A and B, at least one c appears between them, sometimes two. Rolle’s theorem is the special case of a horizontal chord. The theorem promises existence, not uniqueness, and gives no formula for c.
Precise statements
TheoremThe mean value theoremHardy: §126
If ϕ is continuous on the closed interval [a,b] and differentiable in the open interval (a,b), then there is a ξ with a<ξ<b such that
ϕ(b)−ϕ(a)=(b−a)ϕ′(ξ).
Writing ξ=a+θ(b−a) with 0<θ<1, and b=a+h, gives the form in which the theorem is most often quoted:
ϕ(a+h)−ϕ(a)=hϕ′(a+θh),0<θ<1.
The number θ depends on a and h, and in general we know nothing about it except that it lies between 0 and 1. Notice, as Hardy stresses, that we have not assumed ϕ′ to be continuous.
TheoremZero derivative means constantHardy: §127
If ϕ′(x)=0 for every x in an interval, then ϕ is constant in that interval. Consequently, if ϕ′(x)=ψ′(x) throughout an interval, then ϕ−ψ is constant there.
CorollaryMonotonicity and bounds from the derivativeHardy: Examples XLVII, 4
Let ϕ be continuous on [a,b] and differentiable in (a,b).
If ϕ′>0 in (a,b), ϕ is strictly increasing on [a,b]; if ϕ′≥0, it is increasing in the weaker sense (x1<x2⇒ϕ(x1)≤ϕ(x2)).
If ∣ϕ′(x)∣≤M in (a,b), then ∣ϕ(x2)−ϕ(x1)∣≤M∣x2−x1∣ for all x1,x2 in [a,b].
CorollaryA derivative has no simple discontinuityHardy: §125; Examples XLVII, 5
If ϕ′ exists in an interval around 0, and ϕ′(x)→α as x→+0, then α=ϕ′(0). Similarly from the left. So if both one-sided limits of ϕ′ exist at a point, they are equal to each other and to the value of ϕ′ there: ϕ′ is continuous at that point.
Proofs
The proof tilts the picture until the chord is horizontal, and then applies Rolle. Algebraically, “tilting” means subtracting the chord.
ExploreRolle’s theorem applied to the gap
Try this.The lower plot is the height of the curve above the chord. Move the end points and watch where the gap is largest or smallest.
ϕ(x)=x(x−1)(x−2) on [0,0.5]
xφ
xgap
y = φ(x)
chord AB
tangent at ξ, parallel to AB
gap: curve minus chord
Chord slope b−aϕ(b)−ϕ(a)=0.75. Tangent parallel to the chord at ξ=0.2362, that is θ=(ξ−a)/(b−a)=0.472.
The gap vanishes at both ends, so by Rolle its derivative ϕ′(x)−(chord slope) vanishes in between: at the largest or smallest gap.
What to notice
The gap is 0 at both ends, so Rolle’s theorem applies to it. At its largest (or smallest) value its derivative is 0, and there the tangent to the curve is parallel to the chord. For Hardy’s cubic on [0,21] (Examples XLVII, 3) the point is ξ=1−6121≈0.236.
ProofThe mean value theorem
Strategy
Subtract from ϕ the linear function whose graph is the chord. The difference vanishes at a and b, so Rolle’s theorem gives a point where its derivative vanishes; and its derivative is ϕ′ minus the chord slope.
Define the gap
Let m={ϕ(b)−ϕ(a)}/(b−a) and g(x)=ϕ(x)−ϕ(a)−m(x−a). Geometrically, g(x) is the height of the curve above the chord at x (Examples XLVII, 1).
Check Rolle’s hypotheses
g is continuous on [a,b] and differentiable in (a,b), being ϕ minus a linear function. g(a)=0, and g(b)=ϕ(b)−ϕ(a)−m(b−a)=0.
Apply Rolle
There is ξ in (a,b) with g′(ξ)=0. But g′(x)=ϕ′(x)−m, so ϕ′(ξ)=m, which is the theorem.
∎
ProofZero derivative means constant
Strategy
Apply the mean value theorem to any two points of the interval.
Two arbitrary points
Let x1<x2 be any two points of the interval. ϕ is differentiable, hence continuous, on [x1,x2].
Apply the theorem
ϕ(x2)−ϕ(x1)=(x2−x1)ϕ′(ξ)=0 for some ξ between them. So ϕ(x1)=ϕ(x2), and as the points were arbitrary, ϕ is constant.
Equal derivatives
If ϕ′=ψ′, then (ϕ−ψ)′=0, so ϕ−ψ is constant. This is why “the” integral of a function is determined only up to an additive constant (§130).
∎
The word interval matters. The function equal to 0 for x<0 and 1 for x>0 has derivative 0 wherever it is defined, but it is not constant: its domain is not an interval. Hardy’s pair [x] and 1−(sinπx)/(sinπx) from §113 have the same derivative wherever both are defined, yet they do not differ by a constant. On each interval between consecutive integers, however, they do.
ProofNo simple discontinuity (Examples XLVII, 5)
Strategy
Compare two ways of computing the chord slope from 0 to a small x>0. By definition it tends to ϕ′(0); by the mean value theorem it equals ϕ′(ξ) for some ξ between 0 and x, and that tends to α.
Mean value theorem on [0,x]
For small x>0, xϕ(x)−ϕ(0)=ϕ′(ξx) with 0<ξx<x.
Let x→+0
The left side tends to ϕ′(0) by the definition of the derivative. On the right, ξx→+0, so ϕ′(ξx)→α, by the hypothesis on ϕ′.
Conclude
Hence α=ϕ′(0). In particular ϕ′ cannot jump at 0: if both one-sided limits exist, both equal ϕ′(0). Note that this argument says nothing when ϕ′(x) has no limit as x→+0, which is the case of x2sin(1/x).
∎
Worked examples and exercises
Exercise●○○Hardy: Examples XLVII, 2
Verify the mean value theorem for ϕ(x)=x2 and for ϕ(x)=x3 on [a,b].
Hint
For x3 you must show that ξ2=31(a2+ab+b2) has a root ξ between a and b.
Solution
For x2: (b2−a2)/(b−a)=a+b=2ξ gives ξ=21(a+b), the midpoint, so θ=21 always.
For x3: (b3−a3)/(b−a)=a2+ab+b2=3ξ2. Suppose first 0≤a<b. Then a2<31(a2+ab+b2)<b2, because a2+ab+b2 lies strictly between 3a2 and 3b2. So ξ=31(a2+ab+b2) lies strictly between a and b. The case a<b≤0 is the same with signs changed. If a<0<b, the root ξ on the side of the larger of ∣a∣, ∣b∣ works: for instance, if ∣a∣≤b then 31(a2+ab+b2)≤31(b2+0+b2)<b2, since ab≤0, so 0<ξ<b.
Exercise●○○Hardy: Examples XLVII, 3
Find the ξ of the mean value theorem for ϕ(x)=x(x−1)(x−2), a=0, b=21.
Solution
ϕ(0)=0 and ϕ(21)=21⋅(−21)(−23)=83, so the chord slope is 43. Since ϕ′(x)=3x2−6x+2, we need 3ξ2−6ξ+2=43, that is, 12ξ2−24ξ+5=0, so ξ=1±6121. Only ξ=1−6121≈0.236 lies in (0,21). Here θ=2ξ≈0.472.
ExerciseA Lipschitz bound●○○Hardy: §126
Show that ∣sinb−sina∣≤∣b−a∣ for all real a, b, and that ∣1+x−1∣≤21x for x≥0.
Solution
By the mean value theorem, sinb−sina=(b−a)cosξ for some ξ, and ∣cosξ∣≤1. For the second, 1+x−1=x⋅21+ξ1 with 0<ξ<x (when x>0), and 21+ξ1<21. So 0≤1+x−1≤21x, with equality only at x=0.
Exercise●●○Hardy: Examples XLVII, 7
Prove that if n+1a0+na1+⋯+2an−1+an=0, then a0xn+a1xn−1+⋯+an−1x+an=0 has at least one root between 0 and 1.
Hint
Find a polynomial F whose derivative is the given polynomial, with F(0)=0. What is F(1)?
Solution
Let F(x)=n+1a0xn+1+na1xn+⋯+2an−1x2+anx. Then F′(x)=a0xn+a1xn−1+⋯+an, F(0)=0, and F(1) is the given sum, which is 0. By Rolle’s theorem, F′(ξ)=0 for some ξ in (0,1). The idea, to recognise the hypothesis as a statement about an antiderivative, is used again and again.
Exercise●●○Hardy: Examples XLVII, 4
Prove Cor. 1 of §122 by the mean value theorem, and show that if ϕ′≥0 in (a,b) then ϕ is increasing in the weaker sense on [a,b]. Is it then necessarily strictly increasing?
Solution
For a≤x1<x2≤b, ϕ(x2)−ϕ(x1)=(x2−x1)ϕ′(ξ) with x1<ξ<x2, so ξ lies in (a,b). If ϕ′>0 this is positive; if ϕ′≥0 it is ≥0. This is much shorter than the proof in §122.
With only ϕ′≥0, ϕ need not be strictly increasing: a constant has ϕ′=0. But if ϕ′≥0 and ϕ′ vanishes only at isolated points (as with x−sinx), then ϕis strictly increasing, because it cannot be constant on any interval: on such an interval ϕ′ would vanish everywhere.
Check yourself
Check yourselfEnter a number
For ϕ(x)=x3 on [0,3], what is the ξ of the mean value theorem? (Give a decimal.)
Why
The chord slope is (27−0)/3=9, and 3ξ2=9 gives ξ=3≈1.732, which lies in (0,3). Note that it is not the midpoint 1.5: the midpoint works for quadratics only.
Check yourselfTrue or false?
If ϕ′(x)=0 for every x at which ϕ is defined, then ϕ is constant.
Why
False, unless the domain is an interval. ϕ(x)=sgnx for x=0 has ϕ′=0 wherever it is defined, but takes the values −1 and 1. The proof applies the mean value theorem on [x1,x2], which must lie inside the domain.
Check yourselfChoose one
In ϕ(a+h)−ϕ(a)=hϕ′(a+θh), what do we know about θ in general?
Why
θ=21 for every quadratic, which is a special property. For x3 on [0,3], θ=3/3; for other intervals it changes. There can be several admissible θ (try sinx on a long interval in the widget), and the theorem only asserts that at least one exists.
Check yourselfTrue or false?
There is no function ϕ, differentiable on (−1,1), with ϕ′(x)=−1 for x<0 and ϕ′(x)=1 for x>0.
Why
True. By the corollary on simple discontinuities, ϕ′(0) would have to equal both one-sided limits, −1 and 1. The obvious candidate ∣x∣ has exactly these one-sided derivatives, but it is not differentiable at 0, which illustrates the point.
Hardy’s language
It should be observed again that it has not been assumed that φ′(x) is continuous.
— G. H. Hardy, §126
Summary
Summary
Mean value theorem: continuous on [a,b] and differentiable in (a,b) ⇒ ϕ(b)−ϕ(a)=(b−a)ϕ′(ξ) for some ξ in (a,b).
Proof: apply Rolle to the gap between the curve and the chord. The parallel tangent is where the gap is extreme.
Equivalently ϕ(a+h)−ϕ(a)=hϕ′(a+θh) with 0<θ<1; θ is unknown in general.
Consequences: ϕ′=0 on an interval ⇒ ϕ constant; equal derivatives ⇒ functions differ by a constant; ϕ′>0 ⇒ increasing; ∣ϕ′∣≤M ⇒ ∣Δϕ∣≤M∣Δx∣.
A derivative cannot have a jump: if ϕ′(x)→α as x→+0, then α=ϕ′(0).