100. The fundamental property of a continuous function.
It may perhaps be thought that the analysis of the idea of a continuous curve given in § 98 is not the simplest or most natural possible. Another method of analysing our idea of continuity is the following. Let and be two points on the graph of whose coordinates are , and , respectively. Draw any straight line which passes between and . Then common sense certainly declares that if the graph of is continuous it must cut .
If we consider this property as an intrinsic geometrical property of continuous curves it is clear that there is no real loss of generality in supposing to be parallel to the axis of . In this case the ordinates of and cannot be equal: let us suppose, for definiteness, that . And let be the line , where . Then to say that the graph of must cut is the same thing as to say that there is a value of between and for which .
We conclude then that a continuous function must possess the following property: if and , then there is a value of between and for which . In other words as varies from to , must assume at least once every value between and .
We shall now prove that if is a continuous function of in the sense defined in § 98 then it does in fact possess this property. There is a certain range of values of , to the right of , for which . For , and so is certainly less than if is numerically less than . But since is continuous for , this condition is certainly satisfied if is near enough to . Similarly there is a certain range of values, to the left of , for which .
Let us divide the values of between and into two classes , as follows:
(1) in the class we put all values of such that when and for all values of between and ;
(2) in the class we put all the other values of , i.e. all numbers such that either or there is a value of between and for which .
Then it is evident that these two classes satisfy all the conditions imposed upon the classes , of § 17, and so constitute a section of the real numbers. Let be the number corresponding to the section.
First suppose , so that belongs to the upper class: and let , say. Then and so for all values of less than , which contradicts the condition of continuity for .
Next suppose . Then, if is any number greater than , either or we can find a number between and such that . In either case we can find a number as near to as we please and such that the corresponding values of differ by more than . And this again contradicts the hypothesis that is continuous for .
Hence , and the theorem is established. It should be observed that we have proved more than is asserted explicitly in the theorem; we have proved in fact that is the least value of for which . It is not obvious, or indeed generally true, that there is a least among the values of for which a function assumes a given value, though this is true for continuous functions.
It is easy to see that the converse of the theorem just proved is not true. Thus such a function as the function whose graph is represented by Fig. 31 obviously assumes at least once every value between and : yet is discontinuous. Indeed it is not even true that must be continuous when it assumes each value once and once only. Thus let be defined as follows from to . If let ; if let ; and if let . The graph of the function is shown in Fig. 32; it includes the points , but not the points , . It is clear that, as varies from to , assumes once and once only every value between and ; but is discontinuous for and .

As a matter of fact, however, the curves which usually occur in elementary mathematics are composed of a finite number of pieces along which always varies in the same direction. It is easy to show that if always varies in the same direction, i.e. steadily increases or decreases, as varies from to , then the two notions of continuity are really equivalent, that if takes every value between and then it must be a continuous function in the sense of § 98. For let be any value of between and . As through values less than , tends to the limit (§ 95). Similarly as through values greater than , tends to the limit . The function will be continuous for if and only if But if either of these equations is untrue, say the first, then it is evident that never assumes any value which lies between and , which is contrary to our assumption. Thus must be continuous. The net result of this and the last section is consequently to show that our common-sense notion of what we mean by continuity is substantially accurate, and capable of precise statement in mathematical terms.
101.
In this and the following paragraphs we shall state and prove some general theorems concerning continuous functions.
Theorem 1. Suppose that is continuous for , and that is positive. Then we can determine a positive number such that is positive throughout the interval .
For, taking in the fundamental inequality of § 98, we can choose so that throughout , and then so that is positive. There is plainly a corresponding theorem referring to negative values of .
Theorem 2. If is continuous for , and vanishes for values of as near to as we please, or assumes, for values of as near to as we please, both positive and negative values, then .
This is an obvious corollary of Theorem 1. If is not zero, it must be positive or negative; and if it were, for example, positive, it would be positive for all values of sufficiently near to , which contradicts the hypotheses of the theorem.
102. The range of values of a continuous function.
Let us consider a function about which we shall only assume at present that it is defined for every value of in an interval .
The values assumed by for values of in form an aggregate to which we can apply the arguments of § 80, as we applied them in § 81 to the aggregate of values of a function of . If there is a number such that , for all values of in question, we say that is bounded above. In this case possesses an upper bound : no value of exceeds , but any number less than is exceeded by at least one value of . Similarly we define ‘bounded below’, ‘lower bound’, ‘bounded’, as applied to functions of a continuous variable .
Theorem 1. If is continuous throughout , then it is bounded in .
We can certainly determine an interval , extending to the right from , in which is bounded. For since is continuous for , we can, given any positive number however small, determine an interval throughout which lies between and ; and obviously is bounded in this interval.
Now divide the points of the interval into two classes , , putting in if is bounded in , and in if this is not the case. It follows from what precedes that certainly exists: what we propose to prove is that does not. Suppose that does exist, and let be the number corresponding to the section whose lower and upper classes are and . Since is continuous for , we can, however small may be, determine an interval throughout which Thus is bounded in . Now belongs to . Therefore is bounded in : and therefore it is bounded in the whole interval . But belongs to and so is not bounded in . This contradiction shows that does not exist. And so is bounded in the whole interval .
Theorem 2. If is continuous throughout , and and are its upper and lower bounds, then assumes the values and at least once each in the interval.
For, given any positive number , we can find a value of for which or . Hence is not bounded, and therefore, by Theorem 1, is not continuous. But is a continuous function, and so is continuous at any point at which its denominator does not vanish (Ex. XXXVII. 1). There must therefore be one point at which the denominator vanishes: at this point . Similarly it may be shown that there is a point at which .
The proof just given is somewhat subtle and indirect, and it may be well, in view of the great importance of the theorem, to indicate alternative lines of proof. It will however be convenient to postpone these for a moment.
Example XXXVIII
1. If except when , and when , then has neither an upper nor a lower bound in any interval which includes in its interior, as e.g. the interval .
2. If except when , and when , then has the lower bound , but no upper bound, in the interval .
3. Let except when , and when . Then is discontinuous for . In any interval the lower bound is and the upper bound , and each of these values is assumed by an infinity of times.
4. Let . This function is discontinuous for all integral values of . In the interval its lower bound is and its upper bound . It is equal to when or , but it is never equal to . Thus never assumes a value equal to its upper bound.
5. Let when is irrational, and when is a rational fraction . Then has the lower bound , but no upper bound, in any interval . But if when , then has neither an upper nor a lower bound in any interval.
103. The oscillation of a function in an interval.
Let be any function bounded throughout , and and its upper and lower bounds. We shall now use the notation , for , , in order to exhibit explicitly the dependence of and on and , and we shall write
This number , the difference between the upper and lower bounds of in , we shall call the oscillation of in . The simplest of the properties of the functions , , are as follows.
(1) If then is equal to the greater of and , and to the lesser of and .
(2) is an increasing, a decreasing, and an increasing function of .
(3) .
The first two theorems are almost immediate consequences of our definitions. Let be the greater of and , and let be any positive number. Then throughout and , and therefore throughout ; and somewhere in or in , and therefore somewhere in . Hence . The proposition concerning may be proved similarly. Thus (1) is proved, and (2) is an obvious corollary.
Suppose now that is the greater and the less of and , and that is the less and the greater of and . Then, since belongs to both intervals, is not greater than nor less than . Hence , whether these numbers correspond to the same one of the intervals and or not, and But and (3) follows.
104. Alternative proofs of Theorem 2 of § 102.
The most straightforward proof of Theorem 2 of § 102 is as follows. Let be any number of the interval . The function increases steadily with and never exceeds . We can therefore construct a section of the numbers by putting in or in according as or . Let be the number corresponding to the section. If , we have for all positive values of , and so by (1) of § 103. Hence assumes, for values of as near as we please to , values as near as we please to , and so, since is continuous, must be equal to .
If then . And if then , and so . In either case the argument may be completed as before.
The theorem may also be proved by the method of repeated bisection used in § 71. If is the upper bound of in an interval , and is divided into two equal parts, then it is possible to find a half in which the upper bound of is also . Proceeding as in § 71, we construct a sequence of intervals , , , … in each of which the upper bound of is . These intervals, as in § 71, converge to a point , and it is easily proved that the value of at this point is .