§18 Properties of Continuous Functions
Why this matters
This section proves the facts that calculus uses without comment: a continuous function on a closed interval has a largest and a smallest value, it takes every value in between, and a strictly increasing continuous function has a continuous inverse (which is how , and later are obtained). Each proof leans on completeness, through Bolzano–Weierstrass or a supremum.
A real-valued function is bounded if is a bounded set, i.e. if there is a real number such that for all .
Let be a continuous real-valued function on a closed interval . Then is a bounded function. Moreover, assumes its maximum and minimum values on : there exist in such that for all .
Used in Exercise 18.1, Exercise 18.2
My notes(saved)
Proof
Assume is not bounded on . Then to each there corresponds with . By the Bolzano–Weierstrass Theorem 11.5, has a subsequence converging to some real , which also lies in (Exercise 8.9). Since is continuous at , ; but also , a contradiction. So is bounded.
Now let , which is finite by the first paragraph. For each there is with , so . By Bolzano–Weierstrass, a subsequence converges to some . Since is continuous at , . Since is a subsequence of , Theorem 11.3 gives , so : assumes its maximum at .
The last paragraph applies to , so assumes its maximum at some . It follows easily that assumes its minimum at (Exercise 18.1).
∎Theorem 18.1 is used all the time, at least implicitly, in calculus max–min problems: it is taken for granted that a continuous function on a closed interval actually attains a maximum and a minimum. If the domain is not a closed interval, be careful (Exercise 18.3).
Theorem 18.1 is false for open intervals. For example, is continuous but unbounded on , and is continuous and bounded on but has no maximum value there.
Intuitionwhat each hypothesis prevents
A maximum can fail to exist in three ways, and each hypothesis of Theorem 18.1 blocks one of them:
- Not closed: the top is approached at a missing endpoint, like on .
- Not bounded: the function keeps rising forever, like on .
- Not continuous: the value at the top is “wrong”. On , let for and . Its supremum is , but it is never attained.
In the proof, closed and bounded is what lets Bolzano–Weierstrass produce a limit point that stays inside , and continuity is what transfers that limit to the values of .
Try it: break a hypothesis of the Extreme Value Theorem
Section titled “Try it: break a hypothesis of the Extreme Value Theorem”Pick a scenario and drag the probe along the graph, trying to reach the top. When all hypotheses hold the probe can reach the maximum. Drop one (closed, bounded, continuous) and the supremum slips away.
The Intermediate Value Theorem
Section titled “The Intermediate Value Theorem”Let , considered only on the rational numbers in . Then , and is continuous. Must have a zero in this set?
The only candidate is , which is not rational. The Intermediate Value Theorem needs the domain to be an interval of real numbers, and its proof uses completeness.
If is a continuous real-valued function on an interval , then has the intermediate value property on : whenever , , and lies between and (i.e. or ), there exists at least one in such that .
Used in §17
My notes(saved)
Proof
Assume ; the other case is similar. Let . Since , is nonempty, so is a number in . For each , is not an upper bound for , so there is with . Thus and, since for all ,
Let . Since , . Each lies in but not in , so for all . Therefore , and with (1), .
∎Intuition
The proof picks , the supremum of the points where is still below : roughly, the last moment before reaches for good. Approaching from the left gives , approaching from the right gives , and continuity forbids a jump in between.
Common pitfallwhat the theorem needs
- The domain must be an interval. on is continuous, with , yet it is never .
- It needs completeness. Over , the function is negative at and positive at but has no rational root. The proof breaks down at “ is a number”.
- It promises existence only. There may be many solutions, and the theorem does not say where they are. Bisection, below, is one way to find one.
Try it: break a hypothesis of the Intermediate Value Theorem
Section titled “Try it: break a hypothesis of the Intermediate Value Theorem”Choose a value between and . With all hypotheses in place the graph must cross the orange line. Drop continuity (a jump or an asymptote) or the interval (a gap in the domain) and the graph can pass over it without touching it.
Bisection starts with an interval of length and halves it each step. After steps, about how long is the interval that still contains a solution?
The length is , about . Each step buys a bit of accuracy at a steady rate: roughly three decimal digits every ten steps.
Try it: hunting for the crossing by bisection
Section titled “Try it: hunting for the crossing by bisection”The proof finds the crossing as a supremum. A practical way to locate it is bisection: if changes sign on , check the midpoint and keep whichever half still has a sign change. Each step halves the interval, and the Intermediate Value Theorem guarantees a solution in every interval along the way.
If is a continuous real-valued function on an interval , then the set is also an interval or a single point.
Used in Theorem 18.4, Exercise 18.11
My notes(saved)
Proof
The set has the property
If , such a set is an interval. In fact we show
so is an interval with endpoints and , which may or may not belong to and may or may not be finite. To prove (2), take . Then there are with , so by (1).
∎Let be a continuous function mapping into , i.e. and for all . Show has a fixed point: a point with .
The graph of lies in the unit square, and the assertion is that it crosses the line , which is almost obvious. A rigorous proof uses a little trick. Consider , also continuous on . Since and , the Intermediate Value Theorem gives for some . Then .
Show that if and , then has a positive th root.
The function is continuous (Exercise 17.5). There is with : if let , and if let . Thus , and the Intermediate Value Theorem gives for some . So and is an th root of .
Inverse functions
Section titled “Inverse functions”Look more closely at from Example 2. It is strictly increasing on :
So is one-to-one and each nonnegative has exactly one nonnegative th root, which makes the notation unambiguous. In fact is the inverse function of : for and for . Since is continuous, is continuous on by the next theorem. (For this is Exercise 17.4.)
Let be a continuous strictly increasing function on an interval . Then is an interval by Corollary 18.3, and is a function with domain . The function is continuous and strictly increasing on .
Used in Exercise 18.11
My notes(saved)
Proof
is easily shown to be strictly increasing. Since maps onto , the next theorem shows is continuous.
∎Intuition
A strictly increasing function can only be discontinuous by jumping, and a jump leaves a gap in its range. If the range is a whole interval there are no gaps, so there are no jumps. That is the content of Theorem 18.5, and Theorem 18.4 applies it to .
Let be a strictly increasing function on an interval such that is an interval . Then is continuous on .
Used in Exercise 18.11
My notes(saved)
Proof
Consider , and assume is not an endpoint of (tiny changes are needed otherwise). Then is not an endpoint of , so there is with .
Let . Since we only need the ε–δ property of Theorem 17.2 for small ε, we may assume . Then there are with and . Clearly . If , then , so , i.e. . Put . Then implies , hence .
∎Theorem 18.5 is a partial converse to the Intermediate Value Theorem: a strictly increasing function with the intermediate value property is continuous. However, Exercise 18.12 shows a function can have the intermediate value property without being continuous.
Let be a one-to-one continuous function on an interval . Then is strictly increasing ( implies ) or strictly decreasing ( implies ).
My notes(saved)
Proof
First we show
If not, then, say, . Choose with . By the Intermediate Value Theorem applied to and to , there are and with , contradicting that is one-to-one.
Now choose any in and suppose, say, . We show is strictly increasing on . By (1),
In particular,
Consider any in . If , then by (2) and (3). If , then by (2), so by (1) . Finally, if , then , so by (1) .
∎Reading alongside Abbott
Abbott’s Section 4.4 proves the maximum–minimum theorem by showing that a continuous function maps compact sets to compact sets, and that a compact subset of contains its supremum and infimum. Theorem 18.1’s proof is the same argument written out for with sequences. Section 4.5 gives two proofs of the Intermediate Value Theorem: one through a supremum, as in Theorem 18.2, and one through repeated halving and the nested interval property, which is the bisection widget above made rigorous. Abbott also presents the theorem as an instance of a more general fact, that continuous functions map connected sets to connected sets. Ross returns to that viewpoint in §22.
Practice: put the proof in order
Section titled “Practice: put the proof in order”The Intermediate Value Theorem comes from taking the supremum of the set where is still below . Arrange the argument.
Put the proof in order: Intermediate Value Theorem (Theorem 18.2)
These are the steps of the proof, shuffled. Use the buttons to move each step into place, then check.
- Assume . (If instead , apply the argument to and .) Let .
- First case, to be ruled out: . Then , and continuity keeps on a short interval to the right of , which puts points of beyond . That contradicts being an upper bound.
- Second case, to be ruled out: . Then , and continuity keeps on some interval , so is a smaller upper bound of . That contradicts being the least one.
- So . Since , the point is neither nor , so .
Practice: fill in the gaps
Section titled “Practice: fill in the gaps”The first half of Theorem 18.1: a continuous function on is bounded. The gaps are the points where the argument uses completeness and closedness.
Fill in the gaps: Continuous on [a, b] implies bounded (Theorem 18.1)
This is the skeleton of the proof. In each gap choose the option that makes the argument work, then check.
- Suppose is continuous on but not bounded. Then for each there is with .
- The sequence lies in , so it is bounded. By some subsequence converges, say to .
- Since for all , the limit satisfies , so is in the domain of .
- By continuity at , . But is unbounded. This contradiction proves that is bounded.
Practice: spot the error
Section titled “Practice: spot the error”The Intermediate Value Theorem is stated for an interval. Find where this argument forgets that.
Spot the error: a function that changes sign
One line of this argument is wrong. Press the button on the line you think is the mistake.
- Let on its domain . This function is continuous at every point of its domain.
- We have .
- By the Intermediate Value Theorem there is between and with .Theorem 18.2 needs f to be continuous on an interval [a, b], and the domain here has a hole at 0. Indeed 1/x is never 0. The first two lines are fine; the hypothesis is what fails.
This is a standard pitfall. See Common mistakes: The Intermediate Value Theorem without an interval, or over ℚ.
Check your understanding
Section titled “Check your understanding”Take the quiz (3 questions)
is continuous on but unbounded. Why doesn’t Theorem 18.1 apply?
Theorem 18.1 needs a closed interval . Near the missing endpoint , grows without bound.
Let . What does the Intermediate Value Theorem tell you?
is continuous and changes sign on , so Theorem 18.2 gives a root in between. It doesn’t say where; the bisection widget above narrows it down.
Can a continuous one-to-one function on have , and ?
The values go up then down. In fact the Intermediate Value Theorem would give a point in with value and another in with value , so couldn’t be one-to-one.
Exercises
Section titled “Exercises”Let be as in Theorem 18.1. Show that if assumes its maximum at , then assumes its minimum at .
Solution
Saying assumes its maximum at means for all . Multiplying by reverses the inequality: for all . So assumes its minimum at .
Used in Theorem 18.1
My attempt(saved)
Reread the proof of Theorem 18.1 with replaced by . Where does it break down? Discuss.
Solution
The limit of the Bolzano–Weierstrass subsequence lies in but may be an endpoint, which is not in , so continuity at cannot be used.
My attempt(saved)
Use calculus to find the maximum and minimum of on .
Solution
. Candidates: , , , and as . The minimum is (at and ); there is no maximum, since is not attained on .
My attempt(saved)
Let and suppose there is a sequence in converging to a number . Show there exists an unbounded continuous function on .
Hint
Try .
Solution
Define on . Since , the denominator never vanishes, so is a quotient of continuous functions with nonzero denominator and is continuous on . It is unbounded: given , because and we can pick with , and then .
My attempt(saved)
- Let and be continuous on with and . Prove for at least one in .
- Show Example 1 can be viewed as a special case of part (a).
Hint
Apply the Intermediate Value Theorem to .
Solution
- Let , continuous on , with . If or take or . Otherwise , and the Intermediate Value Theorem with gives with , i.e. .
- Take , . Since maps into , and , so (a) yields with .
My attempt(saved)
Prove for some in . (Find it numerically in the widget above.)
Solution
Let , continuous on . Then and . By the Intermediate Value Theorem there is with , that is, .
My attempt(saved)
Prove for some in .
Solution
Let , continuous on as a product of continuous functions. Since , the Intermediate Value Theorem gives with .
My attempt(saved)
Suppose is a real-valued continuous function on and for some . Prove there exists between and such that .
Solution
Since , the numbers and are nonzero with opposite signs, so lies between them, and . Apply the Intermediate Value Theorem to on the interval with endpoints and , with . It gives strictly between and with .
Used in Exercise 18.9
My attempt(saved)
Prove that a polynomial function of odd degree has at least one real root.
Hint
It may help to consider first the case of a cubic, with . For large the leading term dominates, so takes both signs.
Solution
Let with odd and . Replacing by if necessary (same roots) we may assume . Let and , so and . For , Hence . Because is odd, , so . Now is continuous (Exercise 17.5), and by Exercise 18.8 (or the Intermediate Value Theorem) has a root in .
My attempt(saved)
Suppose is continuous on and . Prove there exist in such that and .
Hint
Consider on ; note .
Solution
Define on ; it is continuous and If , take , . Otherwise and have opposite signs, so by the Intermediate Value Theorem for some . In either case there is with ; put . Then and .
My attempt(saved)
- Show that if is strictly increasing on an interval , then is strictly decreasing on .
- State and prove Theorems 18.4 and 18.5 for strictly decreasing functions.
Solution
-
If in then , so . Thus is strictly decreasing.
-
Theorem 18.4 for decreasing . Let be continuous and strictly decreasing on . By Corollary 18.3, is an interval. Put : it is continuous and strictly increasing on by (a) and Theorem 17.3, so is continuous and strictly increasing on by Theorem 18.4. Since for , the inverse is a composite of the continuous map and , hence continuous. It is strictly decreasing: gives , so .
Theorem 18.5 for decreasing . Let be strictly decreasing on an interval with an interval. Then is strictly increasing on and is an interval, so is continuous by Theorem 18.5. Thus is continuous by Theorem 17.3.
My attempt(saved)
Let for and .
- Observe that is discontinuous at by Exercise 17.10(b).
- Show has the intermediate value property on .
Hint
For (b), if an interval contains (and ), then on the nonzero side takes every value in .
Solution
-
This is Exercise 17.10(b).
-
Note everywhere. Let and let lie between and ; then .
If , then is continuous on (a composite of continuous functions), and the Intermediate Value Theorem applies.
If , then contains an interval or for some . Take the first case (the second is symmetric, using ). As runs over , runs over , which contains a closed interval of length , say . On that interval is continuous and takes both the values and (a full period), so by the Intermediate Value Theorem it takes the value at some . Then and .