Key idea of this section
f′(a) = lim (h → 0) (f(a + h) − f(a))/h Mean value theorem: f(b) − f(a) = f′(c)(b − a) for some c ∈ (a, b)
The derivative and Carathéodory's formulation
Let f be defined on an open interval containing a. f is differentiable at a if the limit of the difference quotient (f(a + h) − f(a))/h as h → 0 exists; the limit is f′(a). An equivalent formulation, due to Carathéodory, is often more convenient in proofs: f is differentiable at a iff there is a function φ, continuous at a, with
f(x) − f(a) = φ(x)(x − a) for all x near a,
and then f′(a) = φ(a). (Define φ(x) as the difference quotient for x ≠ a and φ(a) = f′(a).) It shows at once that differentiability implies continuity, since f(x) − f(a) = φ(x)(x − a) → φ(a)·0 = 0.
Theorem 5.1 (Chain rule). If f is differentiable at a and g is differentiable at f(a), then g ∘ f is differentiable at a and (g ∘ f)′(a) = g′(f(a)) f′(a).
Proof. Write f(x) − f(a) = φ(x)(x − a) and g(y) − g(f(a)) = ψ(y)(y − f(a)) with φ continuous at a and ψ continuous at f(a). Then g(f(x)) − g(f(a)) = ψ(f(x)) φ(x)(x − a). The function x ↦ ψ(f(x))φ(x) is continuous at a, with value ψ(f(a))φ(a) = g′(f(a))f′(a). ∎
The naive proof, which multiplies and divides by f(x) − f(a), fails when f(x) = f(a) for x arbitrarily close to a; Carathéodory's form avoids the problem.
Rolle and the mean value theorem
Lemma 5.2 (Fermat). If f has a local maximum or minimum at an interior point c and f′(c) exists, then f′(c) = 0.
Proof. At a local maximum, the difference quotient is ≤ 0 for h > 0 and ≥ 0 for h < 0; the limit must be both. ∎
Theorem 5.3 (Rolle). If f is continuous on [a, b], differentiable on (a, b), and f(a) = f(b), then f′(c) = 0 for some c ∈ (a, b).
Proof. By the extreme value theorem f attains a maximum and a minimum on [a, b]. If both occur at endpoints, f is constant and any c works. Otherwise one occurs at an interior point c, and Fermat's lemma gives f′(c) = 0. ∎
Theorem 5.4 (Mean value theorem). If f is continuous on [a, b] and differentiable on (a, b), then f(b) − f(a) = f′(c)(b − a) for some c ∈ (a, b).
Proof. Apply Rolle to g(x) = f(x) − f(a) − ((f(b) − f(a))/(b − a))(x − a), which vanishes at both endpoints. ∎
Theorem 5.5 (Cauchy mean value theorem). If f, g are continuous on [a, b] and differentiable on (a, b), there is c ∈ (a, b) with (f(b) − f(a)) g′(c) = (g(b) − g(a)) f′(c).
Proof. Apply Rolle to h(x) = (f(b) − f(a))g(x) − (g(b) − g(a))f(x), for which h(a) = h(b). ∎
Consequences of the mean value theorem
The mean value theorem converts information about f′ into information about f. If f′ = 0 on an interval, f is constant there. If f′ > 0 on an interval, f is strictly increasing there. If |f′| ≤ K on an interval, f is K-Lipschitz there. For example, |sin x − sin y| = |cos c||x − y| ≤ |x − y| for all real x, y. The hypothesis "on an interval" is essential: f(x) = 1/x has f′ < 0 on its domain but is not decreasing on ℝ \ {0}.
Theorem 5.6 (L'Hôpital's rule). Suppose f, g are differentiable on (a, b), g′ ≠ 0 there, f(x) → 0 and g(x) → 0 as x → a⁺, and f′(x)/g′(x) → L. Then f(x)/g(x) → L as x → a⁺.
Proof. Extend f and g by 0 at a. For x ∈ (a, b), the Cauchy mean value theorem on [a, x] gives cₓ ∈ (a, x) with f(x)/g(x) = f′(cₓ)/g′(cₓ). As x → a⁺, cₓ → a⁺ and the right side tends to L. (Note g(x) ≠ 0, since otherwise Rolle would give a zero of g′.) ∎
Derivatives need not be continuous, yet have the intermediate value property
Let f(x) = x² sin(1/x) for x ≠ 0 and f(0) = 0. Then f′(0) = lim h sin(1/h) = 0, while for x ≠ 0,
f′(x) = 2x sin(1/x) − cos(1/x),
which has no limit as x → 0. So f is differentiable everywhere, but f′ is discontinuous at 0. Nevertheless derivatives cannot have jump discontinuities:
Theorem 5.7 (Darboux, 1875). If f is differentiable on [a, b] and f′(a) < y < f′(b), then f′(c) = y for some c ∈ (a, b).
Proof. Let g(x) = f(x) − yx, so g′(a) < 0 < g′(b). The continuous function g attains a minimum on [a, b]. Since g′(a) < 0, g takes values smaller than g(a) just to the right of a; since g′(b) > 0, g takes values smaller than g(b) just to the left of b. So the minimum is at an interior point c, and g′(c) = 0 by Fermat's lemma. ∎
Consequently a function like sign(x) is not the derivative of anything on an interval containing 0. At the other extreme, Weierstrass showed in 1872 that a continuous function can fail to be differentiable at every single point; we construct such functions in Lesson 10.
Exercise
- (a)Find the number c given by the mean value theorem for f(x) = x³ on [0, 3].
- (b)Prove that eˣ > 1 + x for all x ≠ 0 using the mean value theorem.
- (c)Compute lim (x → 0) (x − sin x)/x³.
Show solution
Answers: (a) (27 − 0)/3 = 9 = 3c², so c = √3 ≈ 1.732. (b) For x > 0, eˣ − 1 = ec x with 0 < c < x, so ec > 1 gives eˣ − 1 > x; for x < 0, eˣ − 1 = ec x with x < c < 0, and ec < 1 with x < 0 gives ec x > x. (c) Applying L'Hôpital three times: (1 − cos x)/(3x²), then sin x/(6x), then cos x/6 → 1/6.