Home page for accesible maths 3 Differentiation

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

3.3 The mean-value theorem and applications

Consider the following graph:

Is there a point x0 such that the slope of the curve is the same as the red (dashed) curve connecting (a,f⁢(a)) with (b,f(b)? It seems so, and there is in fact a general theorem about this:

Theorem 3.3.1 (Mean-value theorem).

Let f:[a,b]→R be a continuous function which is differentiable on (a,b). Then there is a point x0∈(a,b) such that

f′⁢(x0)=f⁢(b)-f⁢(a)b-a.
Proof.

Let us first try to “normalise” the function in order to be in a more convenient form. We define

ϕ:[a,b]→ℝ,ϕ⁢(x)=f⁢(x)-f⁢(a)-f⁢(b)-f⁢(a)b-a⁢(x-a).

It is continuous, and moreover differentiable on (a,b) with ϕ⁢(a)=ϕ⁢(b)=0. We have to show that there is x0∈(a,b) such that f′⁢(x0)=f⁢(b)-f⁢(a)b-a, which is equivalent to showing that

ϕ′⁢(x0)=f′⁢(x0)-f⁢(b)-f⁢(a)b-a=0.

Now if ϕ≡0 then ϕ′≡0 and any number in (a,b) may be chosen for x0. Let us therefore suppose that ϕ≢0. We recall from MATH113 that a continuous function on a compact interval attains its infimum and supremum. Let x0∈[a,b] be a point such that

ϕ⁢(x0)=supx∈[a,b]⁡ϕ⁢(x)

if this number is positive. Otherwise, let x0 be such that

ϕ⁢(x0)=infx∈[a,b]⁡ϕ⁢(x),

in which case ϕ⁢(x0)<0. Notice that since ϕ≢0, we cannot have both supx∈[a,b]⁡ϕ⁢(x) and infx∈[a,b]⁡ϕ⁢(x) equal to 0, so ϕ⁢(x0)≠0. Since ϕ⁢(a)=ϕ⁢(b)=0 we know that x0≠a,b, so x0∈(a,b). Then x0 satisfies the condition of a local extremum of ϕ in Definition 3.2.3 (any δ>0 does the job), namely a local maximum (or local minimum if we chose x0 as the point where ϕ attains its infimum). Therefore ϕ′⁢(x0)=0 by Proposition 3.2.4, which concludes the proof. ∎

Key idea of proof.

normalise f and then study properties of local extrema, supremum and infimum on compact intervals

Corollary 3.3.2.

Suppose f:[a,b]→R is a continuous function which is differentiable on (a,b).

  • (i)

    If f′⁢(x)≥0 (f′⁢(x)>0), for all x∈(a,b), then f is increasing (strictly increasing) on [a,b].

  • (i⁢i)

    If f′⁢(x)≤0 (f′⁢(x)<0), for all x∈(a,b), then f is decreasing (strictly decreasing) on [a,b].

  • (i⁢i⁢i)

    If f′⁢(x)=0, for all x∈(a,b), then f is constant, i.e., there is λ∈ℝ such that f⁢(x)=λ, for all x∈I.

  • (i⁢v)

    If there is M>0 such that |f′⁢(x)|⩽M, for all x∈(a,b), then |f⁢(x2)-f⁢(x1)|⩽M⁢|x2-x1|, for all x1,x2∈[a,b].

Proof.

(i) and (ii), see Exercise A4.2.

(iii) We prove this by contraposition. Suppose f is not constant. Then there must be x1,x2∈I with x1<x2 and f⁢(x1)≠f⁢(x2). By the mean-value theorem there is x0∈I such x1<x0<x2 and f′⁢(x0)=f⁢(x2)-f⁢(x1)x2-x1, which is nonzero, so f′≢0.

(iv) Given x1<x2, the mean-value theorem yields x0∈(x1,x2) such that

|f⁢(x2)-f⁢(x1)|=|x2-x1|⋅|f′⁢(x0)|.

But by assumption, |f′⁢(x)|≤M for all x∈(a,b), so we get

|f⁢(x2)-f⁢(x1)|=|x2-x1|⋅|f′⁢(x0)|≤|x2-x1|⋅M.

The constant M is independent of the explicit choice of x1,x2∈(a,b). ∎

Exercise L.

How does property (iv) relate to uniform continuity?

Example 3.3.3.
  • (1)

    Let f:[a,b]→ℝ be continuous, and differentiable on (a,b), with f′⁢(x)≠1 for all x∈(a,b). Let us show that there is at most one number x∈[a,b] such that f⁢(x)=x.

    To this end, suppose there were two such numbers x1 and x2, with a⩽x1<x2⩽b. Then, by the mean-value theorem, there exists a point x0∈(x1,x2) such that

    f′⁢(x0)=f⁢(x2)-f⁢(x1)x2-x1=x2-x1x2-x1=1,

    contradicting the fact that f′⁢(x)≠1 for all x∈(a,b).

  • (2)

    Let f:[a,b]→ℝ be differentiable and such that f′⁢(x)=λ⁢f⁢(x) for all x∈[a,b], where λ∈ℝ is some constant. Let us show that f⁢(x)=c⁢eλ⁢x for some constant c. Let g:[a,b]→ℝ be defined by g⁢(x)=e-λ⁢x⁡f⁢(x). By the product rule, g is also differentiable on (a,b) with derivative

    g′⁢(x)=-λ⁢e-λ⁢x⁡f⁢(x)+e-λ⁢x⁡f′⁢(x)=e-λ⁢x⁡(-λ⁢f⁢(x)+λ⁢f⁢(x))=0,

    so g⁢(x)=c for all x, where c is a constant, by Corollary 3.3.2(iii). Hence f⁢(x)=c⁢eλ⁢x, for all x∈[a,b].

  • (3)

    Let f:ℝ→ℝ be defined by f⁢(x)=2⁢x3-3⁢x2-12⁢x, which is clearly differentiable. Let us find the greatest and least values of f on [-2,4]. How many solutions are there in this interval of the equation f⁢(x)=1? Note first that f′⁢(x)=6⁢x2-6⁢x-12=6⁢(x2-x-2)=6⁢(x+1)⁢(x-2). Hence f has a local minimum at 2 and a local maximum at -1, and Corollary 3.3.2 shows that f is increasing on [2,∞) and on (-∞,-1], whereas f is decreasing on [-1,2]. In short:

    x -2 -1 2 4
    f⁢(x) -4 7 -20 32

    By the intermediate-value theorem, there is a solution of f⁢(x)=1 in the interval (-2,-1), another in (-1,2) and yet another in (2,4). In each interval there is only one solution, since f′⁢(x)≠0 on the open interval in question (so is strictly monotonic). Hence there are precisely three solutions in [-2,4].