6.5 Continuity
Very informally, a continuous function is one whose graph can be drawn without lifting the pen of the page. Intuitively this means that a small change in the input of the function leads to a small change to the output. To write a rigorous definition, we will use what we have learned from sequences.
Definition 6.7.
Let , then is continuous at if is continuous at if
(6.3) |
We say is continuous if is continuous at all .
What this means is that for a fixed point and any value of we choose, we can find a such that when the inputs of the function are -close, the outputs of the function are -close. If this is true for all points in the functions domain, then we call the whole function continuous. When we are doing a proof of continuity, we must first fix , then , then we may choose similarly to the way we chose when proving convergence of a sequence. Let’s do an example.
Example 6.3.
Let be given by .
Claim: is continuous.
Let , let , choose .
Consider with , then
(6.4) | ||||
(6.5) | ||||
(6.6) | ||||
(6.7) |
Since the value of was arbitrary, is continuous.
6.5.1 Sequential Definition of Continuity
Just like when proving the convergence of a sequence, when we are first constructing a proof of continuity the value of is unknown until the proof is complete. Once the value is known, we go back and place it at the start so that the proof works. It turns out that there is a very strong link between the continuous functions and convergent sequences that we will now prove.
Theorem 6.1 (Sequential Definition of Continuity)
Let , let , then the following are equivalent:
-
(i)
is continuous at .
-
(ii)
If is a sequence in with limit , then the sequence in has limit .
Proof.
(Proof that (i)(ii)): Suppose is continuous at , is a sequence in with limit .
Let , since is continuous at , such that .
Now, since , such that , therefore .
(Proof that (ii)(i)): Suppose by way of contradiction that (ii) is true, but (i) is false. So such that where (negation of continuity).
Choose such that the above is satisfied, then for , let and such that but .
Thus , but since is fixed, which is a contradiction of our assumptions that (ii) is true, hence must be continuous at .
∎
What this theorem is telling us is that we now have two equivalent definitions of continuity; the definition which we defined originally and the sequential definition, “ such that we have ”. Which one we will want to use depends on the situation. Let’s look at an example where using the sequential definition makes proving continuity much easier.
Example 6.4.
Let be given by . Claim: is continuous.
Using definition of continuity:
Let , let , choose .
Consider such that , then
(6.8) | ||||
(6.9) | ||||
(6.10) | ||||
(6.11) | ||||
(6.12) | ||||
(provided so ) | ||||
(provided ) |
Using the sequential definition of continuity:
Let , let be a sequence in such that . Then
(by theorem 4.4) |
Therefore is continuous.
Here are a couple of examples proving discontinuity using the sequential definition.
Example 6.5.
Let be given by Claim: is discontinuous at .
Let with . Since , . But , so cannot be continuous at .
Example 6.6.
Let be given by Claim: is continuous only at .
6.5.2 Operations on Continuous Functions
In these styles of proof, the arguments can often be greatly simplified by breaking down the given function into smaller building blocks and using previous results. Recall that this was one of the main benefits of the comparison test for proving the convergence of a series. In order to use this technique, we need to know if the continuity of functions is preserved under the operations we can do with them. Thankfully, they are.
Theorem 6.2
Let , , two functions continuous at , .
-
(i)
is continuous at .
-
(ii)
is continuous at .
-
(iii)
is continuous at .
-
(iv)
is continuous at .
-
(v)
Similarly for .
-
(vi)
is continuous at .
-
(vii)
If , is continuous at .
Proof.
-
(i)
Using the definition:
Let , since is continuous at , so that . Similarly for , .
Now choose , then(6.13) (6.14) (6.15) (6.16) (6.17) Using the sequential definition:
Consider a sequence in with limit . Since and are continuous at , and .
Then . -
•
(ii), (iii), (vi), and (vii) follow similarly.
-
•
To prove (iv) and (v), note that
(6.18) then use the results of (i), (iii), and (vi).
∎
A notable consequence of this theorem is that since defined by is a continuous function (the proof is trivial), any polynomial is a continuous function.
Theorem 6.3
Let , with , continuous at , continuous at . Then the composition is continuous at .
Proof.
Let with limit . Since is continuous at , . Since is continuous at ,
(6.19) |
∎
6.5.3 The Intermediate Value Theorem
We will now move onto the meat of this chapter, some intuitive but nonetheless very important results about continuous functions which will be very important when we get into more advanced topics.
Definition 6.8.
A function is bounded if such that
(6.20) |
The first theorem we will see is so simple that it is not clear why we need to prove it. It states that a continuous function on a closed interval is bounded and has a maximum and minimum value. As we will see after proving the theorem, there are discontinuous functions which satisfy these properties but there are also many which don’t.
Theorem 6.4 (Extreme Value Theorem)
Given two real numbers with , let be a continuous function. Then
-
(i)
is bounded.
-
(ii)
attains a maximum, i.e. such that .
-
(iii)
attains a minimum, i.e. such that .
Proof.
-
(i)
Assume by way of contradiction that is not bounded. Then let be a sequence in such that we have .
is a bounded sequence (all the terms are contained within an interval), so by the Bolzano-Weierstrass theorem (4.8), there exists a convergent subsequence with limit .
Then since is continuous, , hence is a bounded sequence by theorem 4.3, but this is a contradiction since , so must be bounded. -
(ii)
Let . exists since all bounded sets in have suprema and we know the set is bounded by (i).
By definition of , such that , which implies that as (however, is by no means necessarily convergent, so we are not done yet).
By the Bolzano-Weierstrass theorem (4.8), there exists a convergent subequence with limit , and since is continuous, .
Therefore since is a subsequence of , .
The proof of (iii) follows similarly from (ii). ∎
The next theorem is the most important result for continuous functions. It cements the intuitive notion that continuous functions have no gaps or jumps. The proof uses the completeness property of the real numbers, which ensures that there are no infinitesimal gaps in the function.
Theorem 6.5 (Intermediate Value Theorem)
Let be an interval, a continuous function. Let with and let lie between and (i.e. or ). Then such that
(6.21) |
Proof.
Assume without meaningful loss of generality that . Let (since , ). Let .
Claim: .
-
(i)
, so is not an upper bound for . Hence such that . Then as and therefore since is continuous .
Since , , therefore . -
(ii)
It can be shown similarly that , so .
Note that since , . ∎
It should be noted that although it may seem as if this theorem may be taken to be the definition of a continuous function, the converse of the theorem is not true.
Example 6.7.
Let be continuous. Then has a fixed point ( such that ).
Proof. Let be given by . Note that by theorem 6.2, is continuous on . Also note that
(6.22) | ||||
(6.23) |
So . If or , then or are fixed points. Therefore, assume that , and hence by the intermediate value theorem (6.5), so that , i.e. , so is a fixed point.
Corollary 6.5.1
Let be an interval, a continuous function. Then the range of , , is either an interval or a single point.
Proof.
Suppose there are two or more distinct points in , let . By the intermediate value theorem (6.5), such that , hence is an interval. ∎