§17 Continuous Functions
Most of calculus is the study of continuous functions. In this chapter we study continuous and uniformly continuous functions.
Why this matters
Continuity is what lets limits pass through a function: if , then . The big theorems of the next section (maximum values, the Intermediate Value Theorem) and later of differentiation and integration all depend on it. As always, the vague idea (“the graph has no breaks”) has to be replaced by something precise enough to prove things with.
Recall the salient features of a function :
- the set on which is defined, called the domain of and written ;
- the assignment, rule or formula specifying the value of at each in .
We consider functions with that are real-valued, i.e. for all . Strictly, is the function and its value at . A function is often given just by its values; then the domain is understood to be the natural domain, the largest subset of on which the formula is a well-defined real-valued function. Thus “the function ” is shorthand for “the function given by with natural domain .” Similarly the natural domain of is , and that of is the set of not of the form , .
In keeping with the approach of this book, we define continuity in terms of sequences, and then show the definition is equivalent to the usual ε–δ definition.
Let be a real-valued function whose domain is a subset of . The function is continuous at in if, for every sequence in converging to , we have . If is continuous at each point of a set , then is continuous on . The function is continuous if it is continuous on .
Used in Exercise 17.10, Exercise 17.15, §18
My notes(saved)
Our definition says the values are close to when is close to . The next theorem says this another way: condition (1) is the ε–δ definition of continuity found in many calculus books.
Let be a real-valued function whose domain is a subset of . Then is continuous at in if and only if
Used in Exercise 17.9, Theorem 18.5
My notes(saved)
Proof
Suppose (1) holds, and let be a sequence in with . Let . By (1) there is such that and imply . Since , there is such that implies . Hence implies , which proves .
Now assume is continuous at but (1) fails. Then there is for which the implication
fails for every . In particular it fails for , for each : there is with and yet . Thus , but is impossible. So is not continuous at , contrary to assumption.
∎Intuitiontwo readings of the same idea
Definition 17.1 says that commutes with limits: for every sequence in the domain converging to . Condition (1) says that any output tolerance can be met by some input tolerance: to get within of , it is enough to take within of . In general depends on both and the point . When one works for every point at once, the function is uniformly continuous (§19).
Let for and for . At , choose the band half-width around . Is there a that keeps the graph inside the band for all ?
No works. Every interval around contains negative , where is a distance from . This is why is not continuous at .
Try it: the ε–δ game
Section titled “Try it: the ε–δ game”Your opponent picks ε, which sets the blue band around . You must answer with a δ so that the whole graph above the orange strip stays inside the band. For a continuous function you can always win; for Example 3 or the step function, once ε is small, no δ does.
Try it: defeat the ε
Section titled “Try it: defeat the ε”The game above lets you adjust ε and δ freely. Here the roles are fixed, as in the definition. The page plays the opponent: it announces an ε, you commit to a δ, and then it searches the interval for a point where . Survive all seven challenges and the function is behaving continuously at ; if the page keeps breaking you however small you make δ, you have found a discontinuity.
Try Thomae’s function at a rational and at an irrational point, and at and at . Notice that surviving seven rounds is not a proof: a proof must give a δ for every ε.
As the next example shows, the sequential definition is sometimes easier to work with than the ε–δ property. But it is important to get comfortable with ε–δ, partly because uniform continuity (§19) is more closely related to it.
Let for . Prove is continuous on (a) using the definition, and (b) using the ε–δ property of Theorem 17.2.
Solution
(a) Suppose . Then
where the second equality uses the limit Theorems 9.2–9.4. Hence is continuous at each .
(b) Let and . We want whenever is less than some . Observe
We need a bound for that does not depend on . If , say, then and hence . Thus
To make , it suffices to have and also . So put
The work above shows implies .
Intuitionthe “first restrict, then shrink” trick
Part (b) uses a technique that recurs constantly. The difference factors as times a factor that depends on . First restrict to to get a fixed bound on that factor, then shrink further so that the product is below . Taking to be the of the two requirements enforces both. Notice that this gets smaller as grows: the graph of gets steeper, so you must stay closer to .
Solution (a) is much easier because the careful analysis was already done in proving the limit theorems of §9.
Let for and . Its graph looks continuous; prove is continuous at .
Let . Clearly for all . We want this less than , so set . Then implies , so
Hence the ε–δ property holds and is continuous at . It would have been equally easy to show implies . This is also continuous at every other point of ; see Example 4.
Let for and . Show is discontinuous, i.e. not continuous, at .
It suffices to find a sequence converging to such that does not converge to . We arrange , i.e. : take , that is,
Then while .
Common pitfallone sequence is not enough to prove continuity
To show is discontinuous at , one bad sequence is enough, as in Example 3. To show is continuous, Definition 17.1 needs every sequence converging to ; checking a single convenient one proves nothing. For example, let for and . Along we get . But along we get for every . So is not continuous at .
Common pitfallcontinuity only makes sense at points of the domain
is continuous: it is continuous at every point of its domain, and is not in its domain. The graph has a break, but Definition 17.1 says nothing about points where is not defined. Whether can be extended continuously to is a different question, about limits of functions, taken up in §20.
Combining continuous functions
Section titled “Combining continuous functions”For a real-valued function and , is the function for , and is the function . For example, if for , then and , both for .
Let be a real-valued function with . If is continuous at in , then and , , are continuous at .
Used in Exercise 17.7, Exercise 17.8, Exercise 18.11
My notes(saved)
Proof
Let be a sequence in converging to . Since is continuous at , , and Theorem 9.2 gives . So is continuous at .
For we need . This follows from
(Exercise 3.5). In detail: given there is such that implies , so by (1) implies .
∎Real-valued functions and combine into new functions:
The function is the composition of and . Each new function is defined exactly where it makes sense: , , and have domain ; has domain ; and has domain . Note and , but in general .
These new functions are continuous if and are.
Let and be real-valued functions that are continuous at in . Then
- is continuous at ;
- is continuous at ;
- is continuous at if .
Used in Exercise 17.3, Exercise 17.5, Exercise 17.6, Exercise 17.12
My notes(saved)
Proof
We are given . Let be a sequence in converging to . Then and , and Theorem 9.3 gives
so is continuous at . Likewise Theorem 9.4 shows is continuous at .
For , assume and let be a sequence in converging to . Theorem 9.6 gives
∎If is continuous at and is continuous at , then the composite function is continuous at .
Used in Exercise 17.3, Exercise 17.7
My notes(saved)
Proof
We are given and . Let be a sequence in converging to . Since is continuous at , . Since converges to and is continuous at , also ; that is, .
∎Accept as known that polynomials and , , are continuous on . Then and are continuous on by Theorem 17.3; by 17.4(i); and by 17.4(ii). By 17.4(iii), is continuous wherever , i.e. at all not of the form , . Theorem 17.5 says and are continuous on ; for example with and . Several applications of Theorems 17.3–17.5 show and are continuous at all nonzero .
Let and be continuous at in . Prove is continuous at .
We could use Definition 17.1 or the ε–δ condition, but instead we illustrate a useful technique: reduce to results already established. Observe
since for all (check the cases and ). By 17.4(i), and are continuous at , so is by Theorem 17.3. Then and are continuous at by Theorem 17.3, and another application of 17.4(i) shows is continuous at .
Reading alongside Abbott
Abbott’s Sections 4.2 and 4.3 make the opposite choice from Ross: continuity is defined by the ε–δ condition, and the sequence version is proved as a theorem. Theorem 17.2 is exactly why the choice does not matter. Abbott opens Chapter 4 (Section 4.1) with two striking examples: the function that is on the rationals and on the irrationals, which is continuous nowhere, and a function that is continuous at every irrational and discontinuous at every rational. Both appear here as Exercises 17.13 and 17.14, and they are well worth working through with the sequence definition.
Practice: fill in the gaps
Section titled “Practice: fill in the gaps”An – proof where the clever part, the choice of , is left to you.
Fill in the gaps: x² is continuous at 3
This is the skeleton of the proof. In each gap choose the option that makes the argument work, then check.
- If , then , so .
- Given , let .
- If , then .
Practice: spot the error
Section titled “Practice: spot the error”Continuity is a statement about every sequence, which makes one tempting shortcut.
Spot the error: a sine that oscillates
One line of this argument is wrong. Press the button on the line you think is the mistake.
- Let for and . We show is continuous at .
- Take , so . Then for every .
- So , and therefore is continuous at .Definition 17.1 needs g(x_n) → g(0) for every sequence x_n → 0, and a single sequence proves nothing. Try x_n = 2 ⁄ (4n + 1): then g(x_n) = sin((4n + 1)π ⁄ 2) = 1 for every n, so g is not continuous at 0.
This is a standard pitfall. See Common mistakes: Proving “for all” with a single example.
Check your understanding
Section titled “Check your understanding”Take the quiz (3 questions)
Which is the ε–δ condition of Theorem 17.2 for continuity at ?
comes first and may depend on it. The second condition forces to be constant near , and the third holds for every bounded function.
Let for rational and for irrational . Where is continuous?
Every point is a limit of rationals and of irrationals. Along one sequence is constantly , along the other constantly , so Definition 17.1 fails everywhere.
Which result shows directly that is continuous, given that and are?
with and . Theorem 17.5 says a composite of continuous functions is continuous.
Exercises
Section titled “Exercises”Let for and for all .
- Give the domains of , , and .
- Find , , , , and .
- Are the functions and equal?
- Are and meaningful?
Solution
(a) , , , . (b) . (c) No. (d) is not; .
My attempt(saved)
Let for , for , and for all . Thus .
- Determine , , , . Be sure to specify their domains.
- Which of , , , , , is continuous?
Solution
All have domain . ; for and for . (b) and are continuous; the others jump at .
My attempt(saved)
Accept on faith that the following are continuous on their domains: , , , , for , and for ( any real number). Use these facts and the theorems of this section to prove the following functions are also continuous.
- for odd multiple of
- for
- for
- for
Solution
Throughout, the identity and constants are continuous, and sums, products, quotients (with nonzero denominator) and composites of continuous functions are continuous (Theorems 17.4 and 17.5).
- is a product of continuous functions, so is continuous, and it is at least . Composing with , which is continuous on , gives a continuous function on all of .
- is continuous. It is positive everywhere: it is nonnegative, and if it were then both and , contradicting . Composing with , continuous on , finishes it.
- is the composite of and .
- is the composite of and .
- is a quotient of continuous functions, and the denominator is nonzero off the odd multiples of .
- On the function is continuous (a quotient), so is a composite of continuous functions, and multiplying by keeps it continuous.
- Same as (f), using the product of and .
- is continuous for , so is too, and the product with is continuous on .
My attempt(saved)
Prove the function is continuous on its domain .
Hint
Apply Example 5 in §8.
Solution
Let and let be a sequence in with . We show .
Case . Given , choose so that for . Then , so .
Case . Multiplying and dividing by the conjugate,
Hence , and is continuous at every point of .
Used in §18
My attempt(saved)
- Prove that if , then is continuous on .
- Prove every polynomial is continuous on .
Hint
Induction on with Theorem 17.4(ii); then 17.3 and 17.4(i).
Solution
- Induct on . For , is continuous: if then . If is continuous, then is a product of continuous functions, hence continuous by Theorem 17.4(ii).
- A constant function is continuous (every sequence of values is constant). So each term is a product of continuous functions, and is a finite sum of them. Induction on the number of terms with Theorem 17.4(i) shows is continuous on .
Used in Exercise 17.6, Exercise 17.7, §18, Exercise 18.9
My attempt(saved)
A rational function is a function with polynomials; its domain is . Prove every rational function is continuous.
Hint
Use Exercise 17.5.
Solution
Let . By Exercise 17.5, and are continuous on . At any with , that is, any point of the domain of , Theorem 17.4(iii) says is continuous at . So is continuous at every point of its domain.
My attempt(saved)
- Observe that if , then is continuous by Exercise 17.5.
- Prove is a continuous function on .
- Use (a), (b) and Theorem 17.5 to give another proof of Theorem 17.3.
Solution
- is the product of the constant function and the identity, both continuous by Exercise 17.5 (take and the polynomial ).
- Let . The reverse triangle inequality gives , so .
- Let be continuous at . Then is the composite of with the continuous function from (b), so it is continuous at by Theorem 17.5. Likewise is the composite of with from (a).
My attempt(saved)
Let and be real-valued functions.
- Show .
- Show .
- Use (a) or (b) to prove that if and are continuous at , then is continuous at .
Solution
- If at a point, then there and . If , then and .
- Negating reverses order: the larger of is the negative of the smaller of . So , which is the claim.
- If are continuous at , then so are and , hence (Theorem 17.3) and the scalar multiples and , and finally their difference. By (a) that difference is .
My attempt(saved)
Prove each function is continuous at by verifying the ε–δ property of Theorem 17.2. (Try (a)–(c) in the widget above.)
- , ;
- , ;
- for and , ;
- , arbitrary.
Hint
(a) . (b) . (c) . (d) ; bound the second factor assuming .
Solution
In each part, fix and show the stated works.
- Take . If then , so and .
- Take . If and then .
- Take . If then when ; if the difference is .
- Put and . If , then , so , and .
My attempt(saved)
Prove the following functions are discontinuous at the indicated points, using either Definition 17.1 or the ε–δ property.
- for and for , ;
- for and , ;
- for , for , , . The function is the signum function; note for .
Hint
(a), (c): use . (b): use , where .
Solution
In each part we exhibit a sequence along which , which contradicts Definition 17.1.
- With we have for all , so .
- With we have and , so .
- With we have .
Used in Exercise 18.12
My attempt(saved)
Let be real-valued with . Prove is continuous at if and only if, for every monotonic sequence in converging to , .
Hint
Don’t forget Theorem 11.4.
Solution
() If is continuous at , then for every sequence in the domain converging to , in particular for monotonic ones.
() Suppose is not continuous at . Then there is a sequence in with but . So for some there are infinitely many with ; these form a subsequence that still converges to . By Theorem 11.4 this subsequence has a monotonic subsequence . It converges to and satisfies for all , so . That contradicts the hypothesis, so is continuous at .
My attempt(saved)
- Let be a continuous real-valued function with domain . Show that if for each rational in , then for all .
- Let and be continuous on with for each rational in . Prove for all .
Hint
(a) Every is a limit of rationals in (denseness, Theorem 4.7). (b) Apply (a) to .
Solution
- Let . For each choose a rational with , which is possible since the rationals are dense. Then and . By continuity, .
- The function is continuous on (Theorem 17.4) and vanishes at each rational point of . By (a), everywhere, so .
My attempt(saved)
- Let for rational and for irrational . Show is discontinuous at every in .
- Let for rational and for irrational . Show is continuous at and at no other point.
Solution
Both parts use that every real number is a limit of a sequence of rationals and also of a sequence of irrationals (density).
- Fix . Take rationals and irrationals . Then and for all , so and . These cannot both equal , so is discontinuous at .
- At : for all , so if then , and . Now let . If is rational, take irrationals : then . If is irrational, take rationals : then . Either way is discontinuous at .
My attempt(saved)
For each nonzero rational , write with integers having no common factors and , and define . Also define and for all . Thus for each integer, , etc. Show is continuous at each point of and discontinuous at each point of .
Hint
At an irrational , given , only finitely many rationals in have denominator ; choose to avoid them all.
Solution
Rational points. If then (it is , or at ). Choose irrationals ; then . So is discontinuous at .
Irrational points. Let be irrational, so , and let . Fix an integer . Let be the set of rationals in that can be written with a denominator . For each there are only finitely many integers with , so is finite. Since , the number is positive. Now let . If is irrational, . If is rational, then but , so its reduced denominator satisfies , and . In all cases , so is continuous at .
My attempt(saved)
Let be real-valued with . Show is continuous at in if and only if, for every sequence in converging to , we have .
Solution
() A sequence in is in particular a sequence in , so Definition 17.1 applies.
() Let be any sequence in with , and let . Let . If is finite, then for all large and we are done. Otherwise is a subsequence in converging to , so by hypothesis there is with for , . For we have exactly. Hence for all , and .
My attempt(saved)
The postage-stamp function is defined by for and for . So takes the value on , on , on , and so on: is the postage for the first ounce and for each additional ounce. Show is discontinuous at every positive integer. (Because postage rates tend to increase over time, and are actually functions.)
Solution
We assume (if then is constant and, of course, continuous). Fix an integer . Then . Let for ; then and , so . Therefore . So is discontinuous at .