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.
Let be continuous at every , and let . Then there is an , such that
PROOF. Let be the set of all such that and Then is in , so that is not empty. Also, is an upper bound for Therefore has a least upper bound In the case of the function graphed below, is as indicated:
Now either , or We show that by showing that the other two are impossible.
First of all, suppose Let Then we can find a such that whenever , we have Now we must have , since Therefore is positive, and if we set , , 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 is greater than and is in But was an upper bound for This is a contradiction, and therefore Here we have used only the property that is an upper bound for
Now suppose We shall show that this is impossible by the fact that is the least upper bound for Clearly, Let Then , and we can find a such that whenever , then , 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 between and are in , and since no values of are in , no values of are in If , then is an upper bound for , and This contradicts the fact that was the **least** upper bound. Therefore is impossible, and we must have This completes the proof.
Let be continuous for all Then has a maximum on , i.e., there is a number , such that whenever
PROOF. Let be the set of all in the interval 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 are in :
Since is an upper bound for has a least upper bound unless is empty. But if is empty, then is not in ; i.e., for every x' > a, we have f(x') \le f(a); this is simply the case where is a maximum for , and in this case we are done. Thus there remains the case where is not empty, and therefore has a least upper bound We shall prove that is a maximum for on , as in the diagram.
First we claim that is not in If , this is clear, since there is no x' of the interval such that x' > b \cdot Thus we may assume If were in , we could find x' > x_0 such that f(x') > f(x) whenever In particular, f(x') > f(x_0) \cdot Then we could find a 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 at We may also assume Then consider For all such that , we have f(x) < f(x'), or is in and is greater than This contradicts the fact that is an upper bound for Therefore is not in
Now let be any point of the interval We shall show Suppose first that If , there is a such that f(x') < f(x) whenever |x' - x_0| < \delta, as before. By the fact that is the least upper bound, there is a number in such that Consequently there is an such that f(x_2) > f(x') whenever a \le x' \le x_1 \cdot Either there is such an with or there is not. If we do have one with , then , and so f(x) > f(x') whenever a \le x' \le x_0, or is in But this is impossible. Therefore we may assume Then if , let ; if , let In either case, f(x_3) > f(x') whenever a \le x' \le x_0, so is in , a contradiction. Thus we must conclude that we must not have , and therefore that whenever
Finally, we show that when and that Then there is an interval |x' - x_0| < \delta where f(x') < f(x) \cdot But there is a point of such that Therefore there is an such that f(x_2) > f(x'') whenever a \le x'' < x_1; in particular, Therefore , or , and we have But we have shown that this is impossible. Therefore is a maximum for , and the theorem is proved.
EXERCISE
Let be continuous for Let be the set of all , such that for some M, f(x') \le M whenever a \le x' \le x \cdot Prove that has a least upper bound, and that this least upper bound is Note also that is in , therefore that the values of have an upper bound for Let be their least upper bound. If for some , then it is clear that is a maximum for If for all of the interval, the function is continuous for , therefore has an upper bound by the above. Show that this is impossible, and thus give another proof that has a maximum for