Chapter VI · Derivatives and integrals

The mean value theorem

§§126–127 40 min

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”.

Why this matters

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 ϕ′\phi' give bounds on how much ϕ\phi can change, a positive ϕ′\phi' gives an increasing ϕ\phi, and (§127) a zero ϕ′\phi' gives a constant ϕ\phi. 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))A = (a, \phi(a)) and B=(b,ϕ(b))B = (b, \phi(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 aa and bb 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.

Explore Find the tangent parallel to the chord

Try this. Drag the ends of the chord along the curve x3−3x+1x^3 - 3x + 1. Watch where the points cc with a parallel tangent appear. Then switch on “Try my own cc” and hunt for one by hand.

f(x)=x3−3x+1f(x) = x^3-3x+1, on [−1.8, 1.2][-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)=f(b)−f(a)b−af'(c) = \dfrac{f(b)-f(a)}{b-a} for some cc in (a,b)(a,b).
Chord slope f(b)−f(a)b−a=−0.48\dfrac{f(b)-f(a)}{b-a} = -0.48.
2 points with the required tangent: c=−0.9165, 0.9165c = -0.9165,\ 0.9165.
What to notice

However you place AA and BB, at least one cc 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 cc.

Precise statements

Theorem The mean value theorem Hardy: §126

If ϕ\phi is continuous on the closed interval [a,b][a, b] and differentiable in the open interval (a,b)(a, b), then there is a ξ\xi with a<ξ<ba < \xi < b such that

ϕ(b)−ϕ(a)=(b−a) ϕ′(ξ).\phi(b) - \phi(a) = (b - a)\,\phi'(\xi).

Writing ξ=a+θ(b−a)\xi = a + \theta(b - a) with 0<θ<10 < \theta < 1, and b=a+hb = a + h, gives the form in which the theorem is most often quoted:

ϕ(a+h)−ϕ(a)=h ϕ′(a+θh),0<θ<1.\phi(a + h) - \phi(a) = h\,\phi'(a + \theta h), \qquad 0 < \theta < 1.

The number θ\theta depends on aa and hh, and in general we know nothing about it except that it lies between 00 and 11. Notice, as Hardy stresses, that we have not assumed ϕ′\phi' to be continuous.

Theorem Zero derivative means constant Hardy: §127

If ϕ′(x)=0\phi'(x) = 0 for every xx in an interval, then ϕ\phi is constant in that interval. Consequently, if ϕ′(x)=ψ′(x)\phi'(x) = \psi'(x) throughout an interval, then ϕ−ψ\phi - \psi is constant there.

Corollary Monotonicity and bounds from the derivative Hardy: Examples XLVII, 4

Let ϕ\phi be continuous on [a,b][a, b] and differentiable in (a,b)(a, b).

  • If ϕ′>0\phi' > 0 in (a,b)(a, b), ϕ\phi is strictly increasing on [a,b][a, b]; if ϕ′≥0\phi' \ge 0, it is increasing in the weaker sense (x1<x2⇒ϕ(x1)≤ϕ(x2)x_1 < x_2 \Rightarrow \phi(x_1) \le \phi(x_2)).
  • If ∣ϕ′(x)∣≤M|\phi'(x)| \le M in (a,b)(a, b), then ∣ϕ(x2)−ϕ(x1)∣≤M∣x2−x1∣|\phi(x_2) - \phi(x_1)| \le M|x_2 - x_1| for all x1,x2x_1, x_2 in [a,b][a, b].
Corollary A derivative has no simple discontinuity Hardy: §125; Examples XLVII, 5

If ϕ′\phi' exists in an interval around 00, and ϕ′(x)→α\phi'(x) \to \alpha as x→+0x \to +0, then α=ϕ′(0)\alpha = \phi'(0). Similarly from the left. So if both one-sided limits of ϕ′\phi' exist at a point, they are equal to each other and to the value of ϕ′\phi' there: ϕ′\phi' 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.

Explore Rolle’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)\phi(x) = x(x-1)(x-2) on [0,0.5][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\dfrac{\phi(b) - \phi(a)}{b - a} = 0.75. Tangent parallel to the chord at ξ=0.2362\xi = 0.2362, that is θ=(ξ−a)/(b−a)=0.472\theta = (\xi - a)/(b - a) = 0.472.
The gap vanishes at both ends, so by Rolle its derivative ϕ′(x)−(chord slope)\phi'(x) - \text{(chord slope)} vanishes in between: at the largest or smallest gap.
What to notice

The gap is 00 at both ends, so Rolle’s theorem applies to it. At its largest (or smallest) value its derivative is 00, and there the tangent to the curve is parallel to the chord. For Hardy’s cubic on [0,12][0, \tfrac12] (Examples XLVII, 3) the point is ξ=1−1621≈0.236\xi = 1 - \tfrac16\sqrt{21} \approx 0.236.

Proof The mean value theorem
Strategy

Subtract from ϕ\phi the linear function whose graph is the chord. The difference vanishes at aa and bb, so Rolle’s theorem gives a point where its derivative vanishes; and its derivative is ϕ′\phi' minus the chord slope.

Define the gap

Let m={ϕ(b)−ϕ(a)}/(b−a)m = \{\phi(b) - \phi(a)\}/(b - a) and g(x)=ϕ(x)−ϕ(a)−m(x−a)g(x) = \phi(x) - \phi(a) - m(x - a). Geometrically, g(x)g(x) is the height of the curve above the chord at xx (Examples XLVII, 1).

Check Rolle’s hypotheses

gg is continuous on [a,b][a, b] and differentiable in (a,b)(a, b), being ϕ\phi minus a linear function. g(a)=0g(a) = 0, and g(b)=ϕ(b)−ϕ(a)−m(b−a)=0g(b) = \phi(b) - \phi(a) - m(b - a) = 0.

Apply Rolle

There is ξ\xi in (a,b)(a, b) with g′(ξ)=0g'(\xi) = 0. But g′(x)=ϕ′(x)−mg'(x) = \phi'(x) - m, so ϕ′(ξ)=m\phi'(\xi) = m, which is the theorem.

Proof Zero derivative means constant
Strategy

Apply the mean value theorem to any two points of the interval.

Two arbitrary points

Let x1<x2x_1 < x_2 be any two points of the interval. ϕ\phi is differentiable, hence continuous, on [x1,x2][x_1, x_2].

Apply the theorem

ϕ(x2)−ϕ(x1)=(x2−x1)ϕ′(ξ)=0\phi(x_2) - \phi(x_1) = (x_2 - x_1)\phi'(\xi) = 0 for some ξ\xi between them. So ϕ(x1)=ϕ(x2)\phi(x_1) = \phi(x_2), and as the points were arbitrary, ϕ\phi is constant.

Equal derivatives

If ϕ′=ψ′\phi' = \psi', then (ϕ−ψ)′=0(\phi - \psi)' = 0, so ϕ−ψ\phi - \psi 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 00 for x<0x < 0 and 11 for x>0x > 0 has derivative 00 wherever it is defined, but it is not constant: its domain is not an interval. Hardy’s pair [x][x] and 1−(sin⁡πx)/(sin⁡πx)1 - (\sin\pi x)/(\sin\pi 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.

Proof No simple discontinuity (Examples XLVII, 5)
Strategy

Compare two ways of computing the chord slope from 00 to a small x>0x > 0. By definition it tends to ϕ′(0)\phi'(0); by the mean value theorem it equals ϕ′(ξ)\phi'(\xi) for some ξ\xi between 00 and xx, and that tends to α\alpha.

Mean value theorem on [0,x][0, x]

For small x>0x > 0, ϕ(x)−ϕ(0)x=ϕ′(ξx)\dfrac{\phi(x) - \phi(0)}{x} = \phi'(\xi_x) with 0<ξx<x0 < \xi_x < x.

Let x→+0x \to +0

The left side tends to ϕ′(0)\phi'(0) by the definition of the derivative. On the right, ξx→+0\xi_x \to +0, so ϕ′(ξx)→α\phi'(\xi_x) \to \alpha, by the hypothesis on ϕ′\phi'.

Conclude

Hence α=ϕ′(0)\alpha = \phi'(0). In particular ϕ′\phi' cannot jump at 00: if both one-sided limits exist, both equal ϕ′(0)\phi'(0). Note that this argument says nothing when ϕ′(x)\phi'(x) has no limit as x→+0x \to +0, which is the case of x2sin⁡(1/x)x^2\sin(1/x).

Worked examples and exercises

Exercise ●○○ Hardy: Examples XLVII, 2

Verify the mean value theorem for ϕ(x)=x2\phi(x) = x^2 and for ϕ(x)=x3\phi(x) = x^3 on [a,b][a, b].

Hint
For x3x^3 you must show that ξ2=13(a2+ab+b2)\xi^2 = \tfrac13(a^2 + ab + b^2) has a root ξ\xi between aa and bb.

Solution

For x2x^2: (b2−a2)/(b−a)=a+b=2ξ(b^2 - a^2)/(b - a) = a + b = 2\xi gives ξ=12(a+b)\xi = \tfrac12(a + b), the midpoint, so θ=12\theta = \tfrac12 always.

For x3x^3: (b3−a3)/(b−a)=a2+ab+b2=3ξ2(b^3 - a^3)/(b - a) = a^2 + ab + b^2 = 3\xi^2. Suppose first 0≤a<b0 \le a < b. Then a2<13(a2+ab+b2)<b2a^2 < \tfrac13(a^2 + ab + b^2) < b^2, because a2+ab+b2a^2 + ab + b^2 lies strictly between 3a23a^2 and 3b23b^2. So ξ=13(a2+ab+b2)\xi = \sqrt{\tfrac13(a^2 + ab + b^2)} lies strictly between aa and bb. The case a<b≤0a < b \le 0 is the same with signs changed. If a<0<ba < 0 < b, the root ξ\xi on the side of the larger of ∣a∣|a|, ∣b∣|b| works: for instance, if ∣a∣≤b|a| \le b then 13(a2+ab+b2)≤13(b2+0+b2)<b2\tfrac13(a^2 + ab + b^2) \le \tfrac13(b^2 + 0 + b^2) < b^2, since ab≤0ab \le 0, so 0<ξ<b0 < \xi < b.

Exercise ●○○ Hardy: Examples XLVII, 3

Find the ξ\xi of the mean value theorem for ϕ(x)=x(x−1)(x−2)\phi(x) = x(x - 1)(x - 2), a=0a = 0, b=12b = \tfrac12.

Solution

ϕ(0)=0\phi(0) = 0 and ϕ(12)=12⋅(−12)(−32)=38\phi(\tfrac12) = \tfrac12 \cdot (-\tfrac12)(-\tfrac32) = \tfrac38, so the chord slope is 34\tfrac34. Since ϕ′(x)=3x2−6x+2\phi'(x) = 3x^2 - 6x + 2, we need 3ξ2−6ξ+2=343\xi^2 - 6\xi + 2 = \tfrac34, that is, 12ξ2−24ξ+5=012\xi^2 - 24\xi + 5 = 0, so ξ=1±1621\xi = 1 \pm \tfrac16\sqrt{21}. Only ξ=1−1621≈0.236\xi = 1 - \tfrac16\sqrt{21} \approx 0.236 lies in (0,12)(0, \tfrac12). Here θ=2ξ≈0.472\theta = 2\xi \approx 0.472.

Exercise A Lipschitz bound ●○○ Hardy: §126

Show that ∣sin⁡b−sin⁡a∣≤∣b−a∣|\sin b - \sin a| \le |b - a| for all real aa, bb, and that ∣1+x−1∣≤12x|\sqrt{1 + x} - 1| \le \tfrac12 x for x≥0x \ge 0.

Solution

By the mean value theorem, sin⁡b−sin⁡a=(b−a)cos⁡ξ\sin b - \sin a = (b - a)\cos\xi for some ξ\xi, and ∣cos⁡ξ∣≤1|\cos\xi| \le 1. For the second, 1+x−1=x⋅121+ξ\sqrt{1 + x} - 1 = x \cdot \dfrac{1}{2\sqrt{1 + \xi}} with 0<ξ<x0 < \xi < x (when x>0x > 0), and 121+ξ<12\dfrac{1}{2\sqrt{1 + \xi}} < \tfrac12. So 0≤1+x−1≤12x0 \le \sqrt{1 + x} - 1 \le \tfrac12 x, with equality only at x=0x = 0.

Exercise ●●○ Hardy: Examples XLVII, 7

Prove that if a0n+1+a1n+⋯+an−12+an=0\dfrac{a_0}{n + 1} + \dfrac{a_1}{n} + \dots + \dfrac{a_{n-1}}{2} + a_n = 0, then a0xn+a1xn−1+⋯+an−1x+an=0a_0x^n + a_1x^{n-1} + \dots + a_{n-1}x + a_n = 0 has at least one root between 00 and 11.

Hint
Find a polynomial FF whose derivative is the given polynomial, with F(0)=0F(0) = 0. What is F(1)F(1)?

Solution

Let F(x)=a0xn+1n+1+a1xnn+⋯+an−1x22+anxF(x) = \dfrac{a_0x^{n+1}}{n + 1} + \dfrac{a_1x^n}{n} + \dots + \dfrac{a_{n-1}x^2}{2} + a_nx. Then F′(x)=a0xn+a1xn−1+⋯+anF'(x) = a_0x^n + a_1x^{n-1} + \dots + a_n, F(0)=0F(0) = 0, and F(1)F(1) is the given sum, which is 00. By Rolle’s theorem, F′(ξ)=0F'(\xi) = 0 for some ξ\xi in (0,1)(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\phi' \ge 0 in (a,b)(a, b) then ϕ\phi is increasing in the weaker sense on [a,b][a, b]. Is it then necessarily strictly increasing?

Solution

For a≤x1<x2≤ba \le x_1 < x_2 \le b, ϕ(x2)−ϕ(x1)=(x2−x1)ϕ′(ξ)\phi(x_2) - \phi(x_1) = (x_2 - x_1)\phi'(\xi) with x1<ξ<x2x_1 < \xi < x_2, so ξ\xi lies in (a,b)(a, b). If ϕ′>0\phi' > 0 this is positive; if ϕ′≥0\phi' \ge 0 it is ≥0\ge 0. This is much shorter than the proof in §122.

With only ϕ′≥0\phi' \ge 0, ϕ\phi need not be strictly increasing: a constant has ϕ′=0\phi' = 0. But if ϕ′≥0\phi' \ge 0 and ϕ′\phi' vanishes only at isolated points (as with x−sin⁡xx - \sin x), then ϕ\phi is strictly increasing, because it cannot be constant on any interval: on such an interval ϕ′\phi' would vanish everywhere.

Check yourself

Check yourself Enter a number

For ϕ(x)=x3\phi(x) = x^3 on [0,3][0, 3], what is the ξ\xi of the mean value theorem? (Give a decimal.)

Why

The chord slope is (27−0)/3=9(27 - 0)/3 = 9, and 3ξ2=93\xi^2 = 9 gives ξ=3≈1.732\xi = \sqrt3 \approx 1.732, which lies in (0,3)(0, 3). Note that it is not the midpoint 1.51.5: the midpoint works for quadratics only.

Check yourself True or false?

If ϕ′(x)=0\phi'(x) = 0 for every xx at which ϕ\phi is defined, then ϕ\phi is constant.

Why

False, unless the domain is an interval. ϕ(x)=sgn⁡x\phi(x) = \operatorname{sgn} x for x≠0x \ne 0 has ϕ′=0\phi' = 0 wherever it is defined, but takes the values −1-1 and 11. The proof applies the mean value theorem on [x1,x2][x_1, x_2], which must lie inside the domain.

Check yourself Choose one

In ϕ(a+h)−ϕ(a)=hϕ′(a+θh)\phi(a + h) - \phi(a) = h\phi'(a + \theta h), what do we know about θ\theta in general?

Why

θ=12\theta = \tfrac12 for every quadratic, which is a special property. For x3x^3 on [0,3][0, 3], θ=3/3\theta = \sqrt3/3; for other intervals it changes. There can be several admissible θ\theta (try sin⁡x\sin x on a long interval in the widget), and the theorem only asserts that at least one exists.

Check yourself True or false?

There is no function ϕ\phi, differentiable on (−1,1)(-1, 1), with ϕ′(x)=−1\phi'(x) = -1 for x<0x < 0 and ϕ′(x)=1\phi'(x) = 1 for x>0x > 0.

Why

True. By the corollary on simple discontinuities, ϕ′(0)\phi'(0) would have to equal both one-sided limits, −1-1 and 11. The obvious candidate ∣x∣|x| has exactly these one-sided derivatives, but it is not differentiable at 00, 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][a, b] and differentiable in (a,b)(a, b) ⇒ ϕ(b)−ϕ(a)=(b−a)ϕ′(ξ)\phi(b) - \phi(a) = (b - a)\phi'(\xi) for some ξ\xi in (a,b)(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)\phi(a + h) - \phi(a) = h\phi'(a + \theta h) with 0<θ<10 < \theta < 1; θ\theta is unknown in general.
  • Consequences: ϕ′=0\phi' = 0 on an interval ⇒ ϕ\phi constant; equal derivatives ⇒ functions differ by a constant; ϕ′>0\phi' > 0 ⇒ increasing; ∣ϕ′∣≤M|\phi'| \le M ⇒ ∣Δϕ∣≤M∣Δx∣|\Delta\phi| \le M|\Delta x|.
  • A derivative cannot have a jump: if ϕ′(x)→α\phi'(x) \to \alpha as x→+0x \to +0, then α=ϕ′(0)\alpha = \phi'(0).