Jump to content

Mean value theorem – "Math for Non-Geeks"

From Wikibooks, open books for an open world

The mean value theorem is one of the central theorems of differential calculus. It states (roughly speaking) that the slope of the secant between two different points of a differentiable function somewhere between these two points is assumed to be a derivative. Thus, the mean value theorem links the secant slope with the derivative of a function. Global properties, which can be expressed using the secant slope, can thus be traced back to properties of the derivative using the mean value theorem. In the section on Lipschitz continuity we will examine a useful application. Others then follow in the chapters constant functions, derivative and local extrema and L'Hospital's rule. The main theorem of differential and integral calculus is also based on the mean value theorem.

Motivation

[edit | edit source]
Explanation of the mean value theorem (YouTube video (in German) from YouTube-Kanal "MJ Education")

We've already viewed at Rolle's theorem. To repeat: Rolle's theorem states that for each continuous function f:a,b]→ℝ, which is differentiable in (a,b) and for which f(a)=f(b) must give an argument ξ∈(a,b), which satisfies f′(ξ)=0:

Sketch of Rolle's theorem
Sketch of Rolle's theorem

How can we generalize this theorem for the case f(a)≠f(b)? Does the derivative f′(ξ) for a ξ∈(a,b) also have to have a certain value? First, it is noticeable that f′(ξ) does not necessarily have to be 0:

figure 1 about the mean-value theorem
figure 1 about the mean-value theorem


Let's reconsider what the situation was with the situation with Rolle's theorem. On the one hand, the slope of the tangent at the graph is f in (ξ,f(ξ)) equal to f′(ξ)=0. On the other hand, the slope of the secant through the two boundary points (a,f(a)) and (b,f(b)) from f equal to f(b)−f(a)b−a=0, since f(a)=f(b) and thus f(b)−f(a)=0. The secant between the points (a,f(a)) and (b,f(b)) and the tangent in the point (ξ,f(ξ)) are thus parallel:

figure 2 about mean-value theorem
figure 2 about mean-value theorem

Be more general f(a)≠f(b). Consider the secant slope f(b)−f(a)b−a between the points (a,f(a)) and (b,f(b)). This is unequal to zero and corresponds to the mean slope of f in the interval [a,b]. For example, if we consider the function as a position function of a car as a function of time, the average slope corresponds to the average speed v‾ of the car in the time from a to b.

If the car at the moment a drives faster than v‾ (meaning: The derivation f′(a) is greater than the secant slope f(b)−f(a)b−a) so there has to exist a moment b at which it has driven more slowly than v‾, otherwise it cannot reach the average speed v‾. During an acceleration or braking process, the car takes on all speeds between the starting and final speeds and does not simply jump from the starting to the final speed (here we assume that the speed function is continuous). As the car was sometimes faster and sometimes slower than v‾, there must exist a moment at which it has exactly the speed v‾. Analogously we can argue, if the car at the moment a drives more slowly than v‾. For our f function this means that there must actually be a ξ∈(a,b) with v‾=f′(ξ)=f(b)−f(a)b−a. This is the message of the mean value theorem.

Image 3 about the mean-value theorem
Image 3 about the mean-value theorem

So there seems to be a ξ∈(a,b) with f′(ξ)=f(b)−f(a)b−a. In the following we want to form this intuition into a theorem and prove it formally correctly. In our argumentation we have used, for example, that the derivation is continuous. Now the studied function does not have to be constantly differentiable. However, we will show in the proof that the mean value theorem is also fulfilled in this case.

Mean value theorem

[edit | edit source]
Illustration of the mean value theorem: Be f:[a,b]→ℝ a function that can be derived to (a,b). The secant of f between a and b is assumed being the tangent slope at least at one c∈(a,b).

The mean value theorem of differential calculus is a generalization of Rolle's theorem and reads as follows:

Theorem (Mittelwertsatz)

Be f:a,b]→ℝ a continuous function with a<b and differentiable on the open interval (a,b). Then there is a ξ∈(a,b) with f′(ξ)=f(b)−f(a)b−a.

Hint

The prerequisites for applying the mean value theorem correspond to those of the Rolle's theorem, only that f(a)=f(b) need not apply. The prerequisites required must apply for the same reasons as for the set of roles. Similarly, the mean value theorem only provides a statement of existence. The ξ with this property exists, but often cannot be determined explicitly in practice. Also, the ξ∈(a,b) has not to be unique. The following graphics show a function which assumes the secant slope at two points ξ1 and ξ2:

Example of a function that attains the secant slope between a and b as tangent slope at two different points.
Example of a function that attains the secant slope between a and b as tangent slope at two different points.

A special case are linear functions f(x)=mx+n for x∈[a,b] with m,n∈ℝ. In this case f′(x)=m=f(b)−f(a)b−a for all x∈(a,b). In other words: the secant slope is assumed to be the tangent slope everywhere:

Special case of the mean-value theorem
Special case of the mean-value theorem

Proof

[edit | edit source]
How to get to the proof? (Mean value theorem)

As already mentioned above, we want to prove the mean value theorem with the help of Rolle's theorem. To do this, we have to take the given function f:[a,b]→ℝ an auxiliary function H:[a,b]→ℝ so that we can apply Rolle's theorem to it. For this we need a function that is continuous at [a,b] and differentiable at (a,b) H. In addition, it should apply that H(a)=H(b). Then H′(ξ)=0 for ξ∈(a,b). If we can also choose the auxiliary function so that H′(x)=f′(x)−f(b)−f(a)b−a, the equation H′(ξ)=0 results from f′(ξ)−f(b)−f(a)b−a=0. This is equivalent to f′(ξ)=f(b)−f(a)b−a, the formula of the mean value theorem. The function

H:[a,b]→ℝ, H(x)=f(x)−f(b)−f(a)b−a(x−a)

has the desired properties. In particular

H(a)=f(a)−f(b)−f(a)b−a(a−a)=f(a)=f(b)−(f(b)−f(a))=f(b)−f(b)−f(a)b−a(b−a)=H(b)

The following graphics illustrate the relationship between the function f and the auxiliary function H:

Proof (Mean value theorem)

Be f:a,b]→ℝ a continuous function with a<b and (a,b) can be differentiated. A suitable auxiliary function H:[a,b]→ℝ is given by

H(x)=f(x)−f(b)−f(a)b−a(x−a)

H is differentiable at [a,b] and is continuous at (a,b), as firstly f fulfils these conditions by our assumption at the beginning and secondly H is a composition of f and the first degree polynomial f(b)−f(a)b−a(x−a). Furthermore

H(a)=f(a)−f(b)−f(a)b−a(a−a)=f(a)=f(b)−(f(b)−f(a))=f(b)−f(b)−f(a)b−a(b−a)=H(b)

According to Rolle's theorem there is a ξ∈(a,b) with 0=H′(ξ)=f′(ξ)−f(b)−f(a)b−a. A ξ∈(a,b) was found, which fulfils f′(ξ)=f(b)−f(a)b−a. Thus follows the claim of the mean value theorem.

Equivalence of mean value theorem and Rolle's theorem

[edit | edit source]

The mean value theorem and Rolle's theorem are actually equivalent. To show this, we have to deduce Rolle's theorem from the mean value theorem and prove the mean value theorem from Rolle's theorem. But we have already done the latter in the proof of this chapter, so that we only have to deduce Rolle's theorem from the mean value theorem.

Be f:a,b]→ℝ a continuous function with a<b and (a,b) is differentiable. f is therefore a function to which the mean value theorem can be applied. Furthermore, f(a)=f(b) applies, so that all prerequisites of the set of role are given. According to the mean value theorem there is now a ξ∈(a,b) with f′(ξ)=f(b)−f(a)b−a=0, because with f(a)=f(b) is f(a)−f(b)=0. So there is actually a ξ∈(a,b) with f′(ξ)=0, which is exactly the statement of Rolle's theorem. Thus, the mean value theorem and Rolle's theorem are equivalent.

Exercise

[edit | edit source]
Exercise (Exercise)

Let f:[0,1]→ℝ be any continuous function which can be differentiated on (0,1) with f(0)=0. Which value must the derivative function f′:[0,1]→ℝ take in any case?

Solution (Exercise)

Since all conditions of the mean value theorem are satisfied, it is applicable here. Therefore, a ξ∈(0,1) exists with f′(ξ)=f(1)−f(0)1−0=f(1). The derivation function must therefore always attain the value f(1).

Application: Proof of inequalities

[edit | edit source]

The mean value theorem can often be used to prove useful inequalities. The trick is to first apply the mean value theorem to an auxiliary function (often on one side of the inequality). Then we estimate the bounds to the expression f′(ξ) appropriately.

Exercise: Proof of an inequality

[edit | edit source]
Exercise (Proof of an inequality, using the mean value theorem)

Prove that the following inequality holds for all x>0:

1+x≤1+x2

Proof (Proof of an inequality, using the mean value theorem)

We choose as an auxiliary function

f:ℝ+→ℝ, f(t)=1+t

Let x∈ℝ+ be arbitrary. The function f is as a composition of continuous functions on [0,x], so it is continuous, and it is differentiable on (0,x). By the mean value theorem there is hence a ξ∈(0,x) with

f′(ξ)=f(x)−f(0)x−0=1+x−1x

Now we can estimate f′(ξ):

f′(ξ)=121+ξ≤ξ>012

Hence, we have the inequality:

1+x−1x=f′(ξ)≤12

This is equivalent to the claim

1+x≤1+x2

Logarithm inequalities

[edit | edit source]
For all x>1 , we have the inequality 1−1x<ln⁡(x)<x−1.
Exercise (Logarithm inequalities)

Show that the following inequality is fulfilled for all x>1, using the mean value theorem :

1−1x<ln⁡(x)<x−1

How to get to the proof? (Logarithm inequalities)

For the inequality ln⁡(x)<x−1 follows

ln⁡(x)<x−1⟺ln⁡(x)x−1<1⟺ln⁡(x)−ln⁡(1)x−1<1

The expression ln⁡(x)−ln⁡(1)x−1 corresponds to the difference quotient f(a)−f(b)a−b in the mean value theorem applied to the function ln⁡:[1,x]→ℝ. So there is a ξ∈(1,x) with ln′⁡(ξ)=ln⁡(x)−ln⁡(1)x−1. If we can estimate ln′⁡(ξ)<1, then we have reached our goal. Now ln′⁡(ξ)=1ξ and with 1ξ<1 for ξ>1 we can prove the inequality ln⁡(x)−ln⁡(1)x−1<1. Let us now look at the missing inequality 1−1x<ln⁡(x):

1−1x<ln⁡(x)⟺x−1x<ln⁡(x)⟺1x<ln⁡(x)x−1⟺1x<ln⁡(x)−ln⁡(1)x−1

Again the difference quotient ln⁡(x)−ln⁡(1)x−1 appears, which according to the mean value theorem, is equal to a derivative ln′⁡(ξ) for some ξ∈(1,x). Now ξ<x and thus we can prove the missing inequality 1x<1ξ=ln′⁡(ξ)=ln⁡(x)−ln⁡(1)x−1.

Proof (Logarithm inequalities)

Let x>1 be arbitrary. We define f:[1,x]→ℝ by f(t)=ln⁡(t). Then f is continuous on the complete domain of definition [1,x] and can be differentiated on (1,x). Thus, the mean value theorem is applicable. According to this, there exists a ξ∈(1,x) with

f′(ξ)=f(x)−f(1)x−1⟺ln′⁡(ξ)=ln⁡(x)−ln⁡(1)x−1⟺1ξ=ln⁡(x)x−1

Proof step: ln⁡(x)<x−1

Since ξ∈(1,x) there is

ln⁡(x)x−1=1ξ<ξ>111=1⟺ln⁡(x)<x−1

Proof step: ln⁡(x)>1−1x

Since ξ∈(1,x) there is

ln⁡(x)x−1=1ξ>ξ<x1x⟺ln⁡(x)>x−1x=1−1x

Hint

The inequality can be extended to all x>0 . For x=1 there is

1−11=0=ln⁡(1)=1−1

If now 0<y<1, there is a x>1 with y=1x. So we have

ln⁡(y)=ln⁡(1x)=−ln⁡(x)>−(1−1x)=1x−1=y−1

as well as

ln⁡(y)=ln⁡(1x)=−ln⁡(x)<−(x−1)=1−x=1−1y

We have used the two inequalities above to make our estimates. So for all x>0:

1−1x≤ln⁡(x)≤x−1

Application: Lipschitz continuity of differentiable functions

[edit | edit source]
Theorem (Lipschitz continuity of differentiable functions)

Let f:[a,b]→ℝ be continuous and differentiable on (a,b). Further the derivative function f′:(a,b)→ℝ is assumed to be bounded. Then with L=supx∈(a,b)|f′(x)| we have a Lipschitz constant L∈ℝ0+ so that |f(x)−f(y)|≤L|x−y| holds for all x,y∈[a,b]. That means, f is Lipschitz continuous. In particular, the statement holds if f can is continuously differentiable on [a,b].

Proof (Lipschitz continuity of differentiable functions)

Let x,y∈[a,b] be arbitrary with x<y. If we now restrict the domain of definition from f to [x,y], continuity and differentiability are preserved. The mean value theorem is applicable. So there is a ξ∈(x,y) with f′(ξ)=f(x)−f(y)x−y.

Since f′ is bounded, we have an L=supx∈(a,b)|f′(x)|. For this L∈ℝ0+, |f′(ξ)|≤L applies to all ξ∈(x,y). Thus |f(x)−f(y)||x−y|=|f′(ξ)|≤L. This is equivalent to the assertion.

If f is continuously differentiable on [a,b], the continuous derivative function has a maximum and a minimum. It is thus bounded, and the theorem can then also be applied to this function.

Visualization: Differentiable functions are Lipschitz continuous. The Lipschitz constant is given by the "maximum derivative value".
Example (Lipschitz continuity of sine and cosine)

sin⁡:ℝ→ℝ and cos⁡:ℝ→ℝ are continuous and differentiable on ℝ. Furthermore, their derivatives are bounded, since for all x∈ℝ:

|(sin⁡)′(x)|=|cos⁡(x)|≤1|(cos⁡)′(x)|=|sin⁡(x)|≤1

Thus, the two functions are Lipschitz continuous with Lipschitz constant L=1. In particular, for all x,y∈ℝ we have the estimates

|sin⁡(x)−sin⁡(y)|≤|x−y|

and

|cos⁡(x)−cos⁡(y)|≤|x−y|

Question: The inversion of the above theorem is: "Let f:[a,b]→ℝ be continuous and differentiable on (a,b). Further, let f be Lipschitz continuous. Then the derivative function f′:(a,b)→ℝ is bounded". Is this statement correct?

Yes, this statement is also true. Since f can be differentiated, the following limit value exists for each x~∈(a,b):

f′(x~)=limx→x~f(x)−f(x~)x−x~

Since f Lipschitz is continuous, there is an L>0 for all x,x~∈[a,b] with

|f(x)−f(x~)|≤L|x−x~|⟺|f(x~)−f(x)x~−x|≤L

With the continuity of the absolute function and the limit value theorems, we have

|f′(x~)|=|limx→x~f(x)−f(x~)x−x~|=limx→x~|f(x)−f(x~)x−x~|≤L

So f′ is bounded.

Practical example: Speed control with light

[edit | edit source]
A photoelectric sensor for speed measurement

Some people who got caught speeding have come into contact with the mean value theorem. At least if it was by a Photoelectric sensor. Imagine driving a car on a country road. The maximum permitted speed is vmax=100kmh or 60 mph. The distance covered by your car is given by the differentiable position function s, which depends on the time t. The derivative of the position function at the time t corresponds to the current speed, i.e. s′(t)=v(t). When measuring speed with light barriers, one passes through two light barriers which are placed at two fixed points s0 and s1. If you pass the two light barriers at the times t0 and t1, the average speed between these two measuring points is

v‾=s1−s0t1−t0=s(t1)−s(t0)t1−t0

Since the position function s:[t0,t1]→ℝ fulfils the conditions of the mean value theorem, there is a time t~∈(t0,t1) with

s′(t~)=v(t~)=s(t1)−s(t0)t1−t0=v‾

The average speed measured between the two barriers must therefore have been reached at least at one point of time. If now v‾>100+tol, where tol is a certain tolerance limit (usually 3%), you will get a speeding ticket! To avoid wrong measurements, in practice more than two light barriers are used and more than one measurement is carried out. But the principle remains the same. Another more recent technique for measuring speed is based on the Doppler effect and uses a Radar to determine speed.

Second mean value theorem

[edit | edit source]

There is another version of the mean value theorem, which is called the second or also generalized mean value theorem. Therefore, the "usual" mean value theorem is also called the "first mean value theorem". We will see that also the second mean value theorem follows from the Rolle's theorem. For the second version we need, besides our function f, another function g, which also fulfils the requirements of the mean value theorem. The second mean value theorem will be useful for deriving L'Hospital's rule.

Theorem and proof

[edit | edit source]
Theorem (Second mean value theorem)

Let f,g:[a,b]→ℝ be two continuous functions which can be differentiated on (a,b). Further, let g′(x)≠0 for all x∈(a,b). Then g(b)≠g(a) and there exists a ξ∈(a,b) with

f(b)−f(a)g(b)−g(a)=f′(ξ)g′(ξ)

Proof (Second mean value theorem)

If we have g(b)=g(a), then there is a ξ∈(a,b) with g′(ξ)=0 by Rolle's theorem. This contradicts the condition of the theorem that for all x∈(a,b) the inequality g′(x)≠0 applies and consequently g(b)≠g(a) must hold. In analogy to the auxiliary function from the proof of the mean value theorem, we choose here the auxiliary function

F:[a,b]→ℝ, F(x)=f(x)−f(b)−f(a)g(b)−g(a)(g(x)−g(a))

This function is continuous on [a,b] and differentiable on (a,b) as a composition of continuous or differentiable functions. Furthermore, F(a)=f(a)=F(b) applies. Thus, Rolle's theorem is applicable, and there is a ξ∈(a,b) with

F′(ξ)=f′(ξ)−f(b)−f(a)g(b)−g(a)g′(ξ)=0

This is equivalent to f(b)−f(a)g(b)−g(a)=f′(ξ)g′(ξ).

Counter-example: Second mean value theorem

[edit | edit source]
Exercise (Counter-example: Second mean value theorem)

Consider the polynomial functions

f:[0,1]→ℝ, f(x)=3x4−2x3−x2+1g:[0,1]→ℝ, g(x)=4x3−3x2−2x

Show that no ξ∈(0,1) exists with

f(1)−f(0)g(1)−g(0)=f′(ξ)g′(ξ)

How is this result compatible with the second version of the mean value theorem?

Solution (Counter-example: Second mean value theorem)

There is

f(1)−f(0)g(1)−g(0)=(3−2−1+1)−(0−0−0+1)(4−3−2)−(0−0−0)=0−1=0

On the other hand, for all ξ∈(0.1):

f′(ξ)g′(ξ)=12ξ3−6ξ2−2ξ12ξ2−6ξ−2=ξ(12ξ2−6ξ−2)12ξ2−6ξ−2=ξ≠0

Thus f(1)−f(0)g(1)−g(0)≠f′(ξ)g′(ξ) must hold for all ξ∈(0,1). Now, the condition g′(x)≠0 for all x∈(0.1) must be fulfilled for the second mean value theorem. The derivative g′ is continuous on [0,1] and the following inequalities hold:

g′(0)=0−0−2=−2<0

and

g′(1)=12−6−2=4>0)

By the Intermediate value theorem there is an x0∈(0,1) with g′(x0)=0. So the conditions of the second mean value theorem are not fulfilled and therefore it can not be applied here.

Remarks

[edit | edit source]

Remark 1: Obviously we get for g(x)=x the first mean value theorem from the second. But we have concluded the second one from Rolle's theorem. Since the first mean value theorem and Rolle's theorem are equivalent, the second mean value theorem also follows from the first. The two mean value theorems are therefore equivalent.

Remark 2: If we omit the precondition g′(x)≠0 for all x∈(a,b), the second mean value theorem still applies in the form

(f(b)−f(a))g′(ξ)=(g(b)−g(a))f′(ξ)

Question: Why does the second mean value theorem also apply in this more general form?

Assuming there is (at least) one x0∈(a,b) with g′(x0)=0. If, in addition, g(a)=g(b) applies, there is a ξ=x0∈(a,b) with g′(ξ)=0 by Rolle's theorem, and we get zero on both sides of the equation. If g(a)≠g(b) holds, the proof works in the same way as the one above with the auxiliary function f.

Overview. Implications of mean value theorems

[edit | edit source]

In the introduction, we already mentioned that several important results can be deduced from the mean value theorem.

  • We have proved Lipschitz continuity of differentiable functions with limited derivation. This allows to show Lipschitz continuity of numerous functions.
  • Another practical conclusion is the constant function theorem. This states that a function is constant if f′≡0 (the derivative is constantly zero). Thus, we can derive the identity theorem of differential calculus. It says that two functions with identical derivative differ only by one constant. It is an essential part of the fundamental theorem of calculus . A further consequence of the criterion for being constant is the characterisation of the exponential function via the differential equation f′=f.
  • Likewise, the mean value theorem serves for proving the monotonicity criterion for differentiable functions. This establishes a connection between the monotonicity of the function and the sign of the derivative function. More precisely, f is monotonically increasing (or decreasing) exactly when f′≥0 (or f′≤0). From this, one can derive a sufficient criterion for the existence of an extremum of a function at a point.
  • From the second mean value theorem, L'Hospital's rule can be concluded. With their help, numerous limit values of quotients of two functions can be calculated, computing certain derivatives.

The points listed are summarised in the following overview diagram:

diagram about the consequences of the mean value theorem
diagram about the consequences of the mean value theorem