Zum Inhalt springen

Intermediate value theorem

Aus Wikibooks

The intermediate value theorem says that every continuous function f:[a,b]→ℝ attains every value between f(a) and f(b) at least once. Continuous functions reach every intermediate value between f(a) and f(b) (if there are no holes in the domain between a and b). So the intermediate value theorem can be used to determine the existence of functional values.

Motivation

[Bearbeiten]
Intermediate value theorem:: Intuition and practical application (in German)

Let f:[a,b]→ℝ be an arbitrary continuous function. At the point a, it has the functional value f(a) and at the point b it has the functional value f(b). Let us assume that f(a)≤f(b). Furthermore, let s be an arbitrary value between f(a) and f(b), meaning f(a)≤s≤f(b):

The function values f(a) and f(b) at the points a and b, as well as the intermediate value s
The function values f(a) and f(b) at the points a and b, as well as the intermediate value s

By our current perception, continuous functions don't have any jumps in their domain. Since f is defined on the entire interval [a,b] and its domain is connected, the graph binds the points (a,f(a)) and (b,f(b)) without jumps. If we bind f(a) and f(b) without "taking our pencil off the paper," at some point we must cross the line y=s. So there is at least one point of intersection between the line y=s and the graph of f:

The graph of f must intersect the line y=s at least once. There, one has f(x)=s
The graph of f must intersect the line y=s at least once. There, one has f(x)=s

For the x-values x~ of the points of intersection it holds f(x~)=s. The intermediate value s is therefore attained once by the function f. We have intuitively seen that continuous functions attain all values between any two functional values at least once, provided the domain doesn't contain any gaps between the two arguments.

The Intermediate Value Theorem

[Bearbeiten]
Explanation and definition of the intermediate value theorem. (YouTube video (in German) by the channel Quatematik)

Theorem (Intermediate Value Theorem)

Let f:[a,b]→ℝ be a continuous function with a,b∈ℝ and a<b. Let s be some value between the two functional values f(a) and f(b). This means it holds f(a)≤s≤f(b) or f(b)≤s≤f(a). Then there exists at least one real number x∈[a,b] with f(x)=s. The intermediate value s is attained at least once by the function f.

Bolzano's Root Theorem

[Bearbeiten]

For the proof of the intermediate value theorem, it suffices to prove this for the special case s=0. This special case is also called "Bolzano's Root Theorem."

Theorem (Bolzano's Root Theorem)

Let h:[a,b]→ℝ be a continuous function with a,b∈ℝ and a<b. Furthermore let zero be an intermediate value of h(a) and h(b), meaning h(a)≤0≤h(b) or h(a)≥0≥h(b). Then h has at least one root. This means, there exists at least one argument x~∈[a,b] such that h(x~)=0.

Why is it sufficient to only consider this special case? Let's take a function f:[a,b]→ℝ and a value s∈ℝ between the functional values f(a) and f(b). By the intermediate value theorem, we have to find a x~∈[a,b] with f(x~)=s. Now it holds:

f(x~)=s⟺f(x~)−s=0

Therefore f(x~)=s if and only if f(x~)−s=0. Now we will define the helping function h:[a,b]→ℝ with h(x)=f(x)−s. As we've already determined, the equation h(x~)=0 is satisfied precisely in the case f(x~)=s. So if we find a root of h, then the function f also attains the value s.

Now the function h fulfills all of the requirements to use Bolzano's Root Theorem. It's a function of the form [a,b]→ℝ with the closed interval [a,b] as its domain. As a concatenation of continuous functions, the function h is continuous. In the case f(a)≤s≤f(b) it holds:

f(a)≤s⟺f(a)−s≤0⟺h(a)≤0f(b)≥s⟺f(b)−s≥0⟺h(b)≥0

Using f(a)≤s≤f(b) we can deduce the chain of inequalities h(a)≤0≤h(b). Now if we consider the case f(a)≥s≥f(b):

f(a)≥s⟺f(a)−s≥0⟺h(a)≥0f(b)≤s⟺f(b)−s≤0⟺h(b)≤0

Altogether we can concude that zero is an intermediate value of h(a) and h(b). Therefore h satisfies the requirements for Bolzano's Root Theorem. By this root theorem there exists a x~∈[a,b] with h(x~)=0. For this x~ it holds f(x~)=s. This shows that the general intermediate value theorem can be easily deduced from Bolzano's root theorem. So now we must only prove Bolzano's theorem.

Proof of Bolzano's Root Theorem

[Bearbeiten]

Proof (Bolzano's Root Theorem)

Let h:[a,b]→ℝ be a continuous function with h(a)≤0≤h(b) or h(a)≥0≥h(b). In the following we will consider the case h(a)≤0≤h(b). The other case h(a)≥0≥h(b) can be proved similarly. We have to find a root of h. This can be shown by finding a fitting sequence of nested intervals (this means that any interval in the sequence is a subset of the preceding interval in the sequence). As a starting interval we choose [a1,b1]=[a,b], so a1=a and b1=b. Namely, we know that the desired root must lie in the interval [a,b].

For h(a1)=0 or h(b1)=0 we already have found a root at x=a1 or x=b1, respectively. In this case, we are already finished. In the case h(a1)<0 and h(b1)>0, we reduced the size of our interval. For this purpose we consider the midpoint a1+b12 of the starting interval. If the value of h at this point is equal to zero, then we've found a root and we are finished.

If h(a1+b12)≠0, then we choose another interval which must contain a root. Let us assume that h(a1+b12)>0. Then we get the following image:

Illustration: if the function value is positive in the middle.
Illustration: if the function value is positive in the middle.

We can see that the graph must cross the x-axis from a1 to a1+b12. Since h is a continuous function and can't have any jumps, and since this interval doesn't contain any gaps, there must be a root of h in this interval. Since both functional values h(a1+b12) and h(b1) are positive, we can't say whether this root lies in a1+b12 to b1. For this reason we choose a second interval [a2,b2]=[a1,a1+b12].

If h(a1+b12) is less than zero, the graph of h has to undergo a change in sign in the second interval from a1+b12 to h(b1). Correspondingly, a zero should lie in this interval and in this case we choose [a1+b12,b1] as the second interval [a2,b2]:

Illustration: if the function value is negative in the middle.
Illustration: if the function value is negative in the middle.

Altogether we determine [a2,b2] in the following way:

[a2,b2]={[a1,a1+b12];h(a1+b12)>0[a1+b12,b1];h(a1+b12)<0

We keep repeating this process: in the n-th step we calculate the midpoint an+bn2 of the interval [an,bn]. If h attains the value 0 here, we are finished and can return an+bn2 as a root. Otherwise we choose a new interval [an+1,bn+1] using the following definition:

[an+1,bn+1]={[an,an+bn2];h(an+bn2)>0[an+bn2,bn];h(an+bn2)<0
The following animation shows the first four steps of the interval nesting:
The proof of the Bolzano theorem using nested intervals.
The proof of the Bolzano theorem using nested intervals.

By this procedure we obtain either the desired root after a certain iteration n or we get a sequence of intervals ([an,bn])n∈ℕ. By this method of choosing the sequence elements, the sequence (an)n∈ℕ is monotone increasing and the sequence (bn)n∈ℕ is monotone falling. Since every sequential element lies in the interval [a,b], the sequences are both bounded. Then we can use Monotoniekriterium für Folgen to conclude that both sequences converge. Note that the length of each interval is cut in half at each iteration, meaning:

limn→∞(bn−an)=limn→∞12⋅(bn−1−an−1)=limn→∞12⋅12⋅(bn−2−an−2)⋮=limn→∞12n⋅(b1−a1)=0

From here it follows limn→∞an=limn→∞bn. For this reason, the sequences of lower and upper interval limits converge to the same value c∈[a;b]. Furthermore, by our construction, it holds that h(an)<0 and h(bn)>0 for all n∈ℕ. For this reason it holds for the limits: limn→∞h(an)≤0 and limn→∞h(bn)≥0. Because h is continuous, it holds

limn→∞h(an)=h(limn→∞an)=h(c)=h(limn→∞bn)=limn→∞h(bn)

From the above line we can conclude h(c)≤0 and h(c)≥0, and therefore h(c)=0 must hold. In this case we've also found a root of the function h.

Corollaries of the Intermediate Value Theorem

[Bearbeiten]

Continuous functions map intervals to intervals

[Bearbeiten]

With the help of the intermediate value theorem we can prove that continuous functions map intervals to intervals.

Theorem (Corollary of the Intermediate Value Theorem)

Let I⊆ℝ be an interval and f:I→ℝ a continuous function. Then f(I) is also an interval.

Proof (Corollary of the Intermediate Value Theorem)

We set A=inf⁡f(I) and B=sup⁡f(I). We also allow A=−∞ (if f(I) is bounded from below) and B=∞ (if f(I) is bounded from above). We now take some real number y with A<y<B. From the definition of the infimum and the fact that A<y we get that there exists some a∈I with f(a)<y. Similarly there exists some b∈I with y<f(b). Altogether we have f(a)<y<f(b).

So y is an intermediate value of two functional values of f. Since f is continuous, the intermediate value theorem guarantees us the existence of some x∈I with f(x)=y. Since y∈(A,B) was arbitrary, it holds (A,B)⊆f(I). Now A or B could be elements of f(I). Therefore f(I) must be one of the following four intervals:

f(I)={[A,B]A and B are attained by f[A,B)A is attained by f , but not B(A,B]B is attained by f , but not A(A,B)A and B are not attained by f

We see that f(I) is an interval.

Range of Power Functions

[Bearbeiten]

Example (Range of power functions x↦xk)

The power functions f:ℝ→ℝ with f(x)=xk for k∈ℕ are continuous. Furthermore it holds

limx→∞f(x)=limx→∞xk=∞

Damit ist sup⁡f(ℝ)=∞. Außerdem ist

limx→−∞f(x)=limx→−∞xk={∞ for even k−∞ for odd k

For odd k it holds inf⁡f(ℝ)=−∞. For even k it holds inf⁡f(ℝ)=0, since for all x∈ℝ it holds f(x)=xk≥0 and zero is attained as a value because f(0)=0k=0. The by the intermediate value theorem we have

f(ℝ)={ℝ0+=[0,∞) for even kℝ=(−∞,∞) for odd k

Range of the Exponential Function

[Bearbeiten]

Example (Range of the exponential function)

The exponential function exp⁡:ℝ→ℝ is continuous. Also it holds exp⁡(x)>0 for all x∈ℝ. It holds limx→−∞exp⁡(x)=0 and limx→∞exp⁡(x)=∞. Then inf⁡exp⁡(ℝ)=0 and sup⁡exp⁡(ℝ)=∞. Since neither 0 nor ∞ are attained by the exponential function, the intermediate value theorem says

exp⁡(ℝ)=ℝ+=(0,∞)

Exercise (Domain of the Generalized Exponential Function)

For a∈ℝ∖{1} ,

expa:ℝ→ℝ, expa(x)=ax=exp⁡(xln⁡(a))

defines the generalized exponential function. Show: expa(ℝ)=ℝ+.

Tip: Differentiate between the cases a>1 and 0<a<1.

Solution (Domain of the Generalized Exponential Function)

Since exp and x↦x⋅ln⁡(a) are continuous on ℝ, it holds that expa is also continuous (as the concatenation of continuous functions) on all of ℝ. Further, expa(x)>0, since exp⁡(x)>0.

Fall 1: a>1

Here it holds ln⁡a>0, and therefore limx→∞xln⁡a=∞ holds. From here it follows limx→∞expa(x)=limx→∞exp⁡(xln⁡a)=∞. On the other hand, limx→−∞xln⁡a=−∞, and therefore limx→−∞expa(x)=limx→−∞exp⁡(xln⁡a)=0. Altogether this case yields expa(ℝ)=(0,∞)=ℝ+.

Fall 2: 0<a<1

Here it holds ln⁡a<0, and therefore limx→∞xln⁡a=−∞. We then can conclude limx→∞expa(x)=limx→∞exp⁡(xln⁡a)=0. On the other hand it holds limx→−∞xln⁡a=∞, and therefore limx→−∞expa(x)=limx→−∞exp⁡(xln⁡a)=∞. So it also holds in this case expa(ℝ)=(0,∞)=ℝ+.

Exercise: Fixed-point theorem

[Bearbeiten]

Proof of a Fixed-point Theorem

[Bearbeiten]

In the following exercise we will prove a fixed-point theorem. Fixed points are arguments x of a function f that satisfy the equation f(x)=x. In a sentence: fixed points are those points not changed by a function transformation. Fixed point theorems are therefore theorems, that prove the existence of fixed points in certain situations. For mathematics, such theorems are important because sometimes we can reduce the problem of proving the existence of a certain object to proving the existence of a fixed point. For example, the argument x is a root of the function f:ℝ→ℝ, if and only if the function g:ℝ→ℝ with the ordering g(x)=x−f(x) has a fixed point. Using the existence of a fixed point of the function g, we can prove the existence of a root for f. In the following exercise we are going to prove a kind of intermediate value theorem:

Exercise (Fixed point theorem)

Let f:[a,b]→[a,b] be a continuous function. Show that f has at least one fixed point. Fixed points are points x∈[a,b] with f(x)=x.

How to get to the proof? (Fixed point theorem)

By rearranging the equation f(x)=x we obtain f(x)−x=0. Therefore x is a fixed point of f if and only if x is a root of the function h(x)=f(x)−x. So let us define a helping function h:[a,b]→ℝ with h(x)=f(x)−x. As you might have guessed, we can use Bolzano's Root Theorem here to prove the existence of a root. For that we have to prove that h satisfies all the assumptions of the theorem:

  • h is continuous
  • Zero is an intermediate value of h(a) and h(b).

h is continuous as the concatenation of continuous functions and we can also prove that h(b)≤0≤h(a) holds. The root theorem guarantees us the existence of the limit.

Proof (Fixed point theorem)

Let f:[a,b]→[a,b] be a continuous function. We define the helping function h:[a,b]→ℝ:x↦h(x)=f(x)−x. For this function it holds:

  • h is continuous on [a,b] as the difference of the continuous functions f and id:[a,b]→[a,b]:x↦x.
  • It holds h(b)≤0≤h(a) because:
    • h(a)=f(a)⏟∈[a,b]−a≥0
    • h(b)=f(b)⏟∈[a,b]−b≤0.

Therefore h fulfills the assumptions of the root theorem. Then there exists some x~∈[a,b] with h(x~)=f(x~)−x~=0. This means f(x~)=x~. In other words, f has a fixed point.

Assumptions of the Fixed Point Theorem

[Bearbeiten]

In the fixed point theorem above, the continuity is a necessary condition of the proven theorem. If we leave this condition out, we can find a function g:[a,b]→[a,b] for which this theorem is no longer true. This will be shown in the following exercise:

Exercise (Fixed Point Theorem)

Find a function g:[0,1]→[0,1] with g(x)≠x for all x∈[0,1].

Proof (Fixed Point Theorem)

For example, the function

g:[0,1]→[0,1]:x↦g(x)={1 für 0≤x≤12,0 für 12<x≤1

doesn't have a fixed point. This is shown in the following graph of the function g. Namely, there is not point of intersection of the graph of g with the graph of the identity function id:[0,1]→[0,1], x↦x:

Graph of the function g and of the identity function f
Graph of the function g and of the identity function f

Exercise: Roots and Range of Polynomials

[Bearbeiten]

Roots of Polynomials

[Bearbeiten]

The following exercise exemplifies a special case of the fundamental theorem of algebra. This theorem says that a non-constant polynomial

p(z)=anzn+an−1zn−1+…+a1z+a0

with complex coefficients a0,a1,…,an−1,an has at least one complex root. In the real case this claim does not hold in general. A polynomial with real coefficients need not necessarily have real roots. A polyomial function without real roots could be, for example, p(x)=x2+1. For certain polynomials, we can still prove the existence of a root:

Exercise (Roots of Polynomials)

Let

p:ℝ→ℝ, p(x)=anxn+an−1xn−1+…+a1x+a0

be a polynomial function with a0,a1,…,an−1,an∈ℝ and an≠0. If n, meaning if the degree of p is odd, then p has at least one (real) root.

Summary of proof (Roots of Polynomials)

We will prove the exercise with the help of the root theorem. For that, we need to find two real numbersx1,x2∈ℝ with p(x1)≤0≤p(x2) or p(x1)≥0≥p(x2). This is a consequence of limx→∞p(x)=∞ and limx→−∞p(x)=−∞, which we can show by using a clever rewriting of p for the case an>0. We will now thoroughly investigate the case an>0. The case an<0 can be handles similarly.

Solution (Roots of Polynomials)

We will demonstrate the proof for an>0. The case an<0 is similar. For x≠0 we can factor out xn to obtain:

p(x)=xn(an+an−1x−1+…+a1x−n+1+a0x−n)

The expression an+an−1x−1+…+a1x−n+1+a0x−n in the parentheses converges for x→±∞ to an. This holds since the terms x−1,…,x−n converge for x→±∞ to 0. Since n is odd, it holds:

limx→∞p(x)=limx→∞xn⏟→∞(an+an−1x−1+…+a1x−n+1+a0x−n⏟→an>0)=∞

und

limx→−∞p(x)=limx→−∞xn⏟→−∞(an+an−1x−1+…+a1x−n+1+a0x−n⏟→an>0)=−∞

However, there must exist x1,x2∈ℝ with p(x1)≤0≤p(x2). Further, for k=0,…n, the polynomial p is continuous as the composition of continuous functions x↦xk. Using Bolzano's root theorem, we can conclude the existence of some x0∈ℝ with p(x0)=0. Then the polynomial function as at least one root.

Range of Polynomials

[Bearbeiten]

Exercise (Range of Polynomials)

Let

p:ℝ→ℝ, p(x)=anxn+an−1xn−1+…+a1x+a0

be a polynomial function with a0,a1,…,an−1,an∈ℝ and an≠0, and n odd. Show p(ℝ)=ℝ.

Solution (Range of Polynomials)

Fall 1: an>0

For x≠0 it holds:

limx→∞p(x)=limx→∞xn⏟→∞(an+an−1x−1+…+a1x−n+1+a0x−n⏟→an>0)=∞

and

limx→−∞p(x)=limx→−∞xn⏟→−∞(an+an−1x−1+…+a1x−n+1+a0x−n⏟→an>0)=−∞

Since p is continuous, it follows p(ℝ)=ℝ.

Fall 2: an<0

Similar to the first case.

Exercise: The existence of n-th order Roots

[Bearbeiten]

The intermediate value theorem also offers a possibility to check the existence of n-th order roots. In the chapter "Wurzel reeller Zahlen“ we have already proven this using the concept of nested intervals. Now we will see an alternative proof that uses the intermediate value theorem. Just a reminder: the n-th order root αn for some positive number α is a real number x with xn=α.

Exercise (Existence of n-th order Root)

Let n∈ℕ. Show that for all α>0 there exists a positive number x with xn=α.

Solution (Existence of n-th order Root)

It is the case that xn=α if and only if xn−α=0. The desired number x must therefore be e a positive zero of the polynomial p:ℝ→ℝ with p(x)=xn−α. First we observe that p, be a polynomial, is continuous on all. ℝ. Therefore p is also continuous on the interval [0,α+1]. Furthermore it holds

p(0)=0n−α=−α<0

as well as

p(1+α)=(1+α)n−α↓ Bernoulli Inequality≥1+nα−α=1+(n−1)⏟≥0α≥1

Therefore p(0)<0<p(1+α). By the intermediate value theorem, p has at least one zero in the interval (0,1+α). Because all numbers in (0,1+α) are positive, the zero must also be positive. Furthermore, the zero satisfies the equality xn=α.

Exercise: Solving an Equation

[Bearbeiten]

Both the intermediate value and root theorems can be used to justify the existence of a solution of a given equation. The equation is used to build a continuous function, on which we can apply either the root theorem or the intermediate value theorem.

Exercise (Solution to an Equation)

Show there exists only one x∈ℝ with cos⁡x=x.

Solution (Solution to an Equation)

Functions f(x)=cos⁡x and g(x)=x

Proof step: Show the equation has a solution

We will use the helping function

h:ℝ→ℝ, h(x)=x−cos⁡x

It is continuous since it is the difference of the two continuous functions x↦x and x↦cos⁡x. Furthermore it holds

h(0)=0−cos⁡0=−1<0

as well as

h(π2)=π2−cos⁡(π2)=π2>0

By the root theorem, there exists some x~∈ℝ with h(x~)=x~−cos⁡x~=0. For this x~ it then holds cos⁡x~=x~. This solves our equation.

Proof step: Show there exists exactly one solution

We will examine four cases:

Fall 1: x≤−π2

We have x≤−π2<−1≤cos⁡(x). Therefore there exists no x with cos⁡x=x.

Fall 2: −π2<x≤0

We have x≤0<cos⁡x. So there can be no x satisfying cos⁡x=x.

Fall 3: 0<x<π2

We've already proven above that there exists some x with cos⁡x=x. Since x↦x is strictly monotone increasing and x↦cos⁡x is strictly monotone falling on 0<x<π2, there can not exist some further x such that cos⁡x=x.

Fall 4: π2≤x

We have cos⁡x≤1<π2≤x. So there can not exist any x such that cos⁡x=x.

From both steps in the proof we can conclude that there exists exactly one x∈ℝ with cos⁡x=x.