Theorems on Continuous Functions

Now let us supply proofs for the two theorems on continuous functions which we have used without proof. The use of the axiom of continuity in proving these should be noted carefully.

Theorem 1. Intermediate value theorem

Let f ( x ) be continuous at every x , a x b , and let f ( a ) y 0 f ( b ) . Then there is an x 0 , a x 0 b , such that f ( x 0 ) = y 0

PROOF. Let S be the set of all x such that a x b and f ( x ) y 0 Then a is in S , so that S is not empty. Also, b is an upper bound for S Therefore S has a least upper bound x 0 In the case of the function graphed below, x 0 is as indicated:

TikZ figure

Now either f ( x 0 ) < y 0 , f ( x 0 ) > y 0 , or f ( x 0 ) = y 0 We show that f ( x 0 ) = y 0 by showing that the other two are impossible.

First of all, suppose f ( x 0 ) < y 0 Let ϵ = y 0 f ( x 0 ) > 0 Then we can find a δ > 0 such that whenever | x x 0 | < δ , we have | f ( x ) f ( x 0 ) | < ϵ Now we must have x 0 b , since f ( b ) y 0 Therefore h = Min ( b x 0 , δ 2 ) is positive, and if we set x = x 0 + h , | x x 0 | < δ , and

\begin{aligned} f(x) - f(x_0) &\le |f(x) - f(x_0)| < \epsilon \\ &= y_0 - f(x_0), \quad \text{or} \quad f(x) < y_0. \end{aligned}

Thus x = x 0 + h is greater than x 0 and is in S But x 0 was an upper bound for S This is a contradiction, and therefore f ( x 0 ) y 0 Here we have used only the property that x 0 is an upper bound for S

Now suppose f ( x 0 ) > y 0 We shall show that this is impossible by the fact that x 0 is the least upper bound for S Clearly, x 0 a Let ϵ = f ( x 0 ) y 0 Then ϵ > 0 , and we can find a δ > 0 such that whenever | x x 0 | < δ , then | f ( x 0 ) f ( x ) | < ϵ , so

\begin{aligned} f(x_0) - f(x) &\le |f(x_0) - f(x)| < \epsilon = f(x_0) - y_0, \\ -f(x) &< -y_0, \quad \text{or} \quad f(x) > y_0. \end{aligned}

Therefore no values of x between x 0 δ 2 and x 0 are in S , and since no values of x x 0 are in S , no values of x x 0 δ 2 are in S If h = Min ( x 0 a , δ 2 ) , then x 0 h is an upper bound for S , and x 0 h < x 0 This contradicts the fact that x 0 was the **least** upper bound. Therefore f ( x 0 ) > y 0 is impossible, and we must have f ( x 0 ) = y 0 This completes the proof.

Theorem 2

Let f ( x ) be continuous for all x , a x b Then f ( x ) has a maximum on a x b , i.e., there is a number x 0 , a x 0 b , such that f ( x ) f ( x 0 ) whenever a x b

PROOF. Let S be the set of all x in the interval a x b such that for some x' > x, f(x') > f(x'') whenever a \le x'' \le x \cdot In the diagram below, all points to the left of, and not including x 0 are in S :

TikZ figure

Since b is an upper bound for S , S has a least upper bound unless S is empty. But if S is empty, then a is not in S ; i.e., for every x' > a, we have f(x') \le f(a); this is simply the case where a is a maximum for f ( x ) , and in this case we are done. Thus there remains the case where S is not empty, and therefore has a least upper bound x 0 We shall prove that x 0 is a maximum for f ( x ) on a x b , as in the diagram.

First we claim that x 0 is not in S If x 0 = b , this is clear, since there is no x' of the interval such that x' > b \cdot Thus we may assume x 0 b If x 0 were in S , we could find x' > x_0 such that f(x') > f(x) whenever a x x 0 In particular, f(x') > f(x_0) \cdot Then we could find a δ > 0 such that whenever |x - x_0| < \delta, f(x) - f(x_0) < f(x') - f(x_0), or f(x) < f(x'), by using \epsilon = f(x') - f(x_0) in the continuity of f ( x ) at x 0 We may also assume δ < b x 0 Then consider x 0 + δ 2 For all x such that a x x 0 + δ 2 , we have f(x) < f(x'), or x 0 + δ 2 is in S and is greater than x 0 This contradicts the fact that x 0 is an upper bound for S Therefore x 0 is not in S

Now let x be any point of the interval a x b We shall show f ( x ) f ( x 0 ) Suppose first that x > x 0 If f ( x ) > f ( x 0 ) , there is a δ > 0 such that f(x') < f(x) whenever |x' - x_0| < \delta, as before. By the fact that x 0 is the least upper bound, there is a number x 1 in S such that x 0 x 1 < δ Consequently there is an x 2 > x 1 such that f(x_2) > f(x') whenever a \le x' \le x_1 \cdot Either there is such an x 2 with | x 2 x 0 | < δ or there is not. If we do have one with | x 2 x 0 | < δ , then f ( x ) > f ( x 2 ) , and so f(x) > f(x') whenever a \le x' \le x_0, or x 0 is in S But this is impossible. Therefore we may assume x 2 x 0 + δ Then if f ( x ) f ( x 2 ) , let x 3 = x ; if f ( x ) < f ( x 2 ) , let x 3 = x 2 In either case, f(x_3) > f(x') whenever a \le x' \le x_0, so x 0 is in S , a contradiction. Thus we must conclude that we must not have f ( x ) > f ( x 0 ) , and therefore that f ( x ) f ( x 0 ) whenever x x 0

Finally, we show that f ( x ) f ( x 0 ) when a x < x 0 and that f ( x ) > f ( x 0 ) Then there is an interval |x' - x_0| < \delta where f(x') < f(x) \cdot But there is a point x 1 of S such that x 1 > x 0 δ Therefore there is an x 2 > x 1 such that f(x_2) > f(x'') whenever a \le x'' < x_1; in particular, f ( x 2 ) > f ( x ) Therefore x 2 x 0 + δ , or x 2 > x 0 , and we have f ( x 2 ) > f ( x ) > f ( x 0 ) But we have shown that this is impossible. Therefore f ( x ) f ( x 0 ) , x 0 is a maximum for f ( x ) , and the theorem is proved.

EXERCISE

Exercise 1.

Let f ( x ) be continuous for a x b Let S be the set of all x , a x b , such that for some M, f(x') \le M whenever a \le x' \le x \cdot Prove that S has a least upper bound, and that this least upper bound is b Note also that b is in S , therefore that the values of f ( x ) have an upper bound for a x b Let N be their least upper bound. If f ( x 0 ) = N for some x 0 , then it is clear that x 0 is a maximum for f ( x ) If f ( x ) < N for all x of the interval, the function 1 N f ( x ) is continuous for a x b , therefore has an upper bound B by the above. Show that this is impossible, and thus give another proof that f ( x ) has a maximum for a x b