14 Continuity
Highlights of this Chapter: we formalize the concept of continuity, one of the foundational definitions in the analysis of functions. We provide an equivalent definition built out of sequences, and use it to prove ‘continuity analogs’ of the limit theorems. Finally, we prove that continuous functions are determined by their values on a dense set, an oft-useful result allowing one to reduce various arguments to considerations about rational numbers.
What does continuity mean? In pre-calculus classes, we often first hear something like “you can draw the graph without picking up your pencil”. This is a good guide to start with for a formal definition: its clearly capturing some property that is easy to check by visual inspection! But it’s not precise: terms like “you” and “pencil”, as well as modal phrases like “can draw” are nowhere to be found in the axioms of ordered fields! How can we say the same thing, using words we have access to?
First, a function is an input-output machine, so we should rephrase things in terms of inputs and outputs. When a graph makes a jump (where you’d have to pick up your pencil), the output changes a lot even when the input barely does. Thus, not having to pick up your pencil means you change the input by a little bit, the output changes by a little bit.
This is totally something we can make precise! A good start is by giving names to things: we want to say for any change in the input smaller than some
Definition 14.1 (
A function is continuous on a set
14.1 Using the Definition
This definition looks a lot like the sequence definition, at least in terms of the order of the quantifiers. And this is a good thing for us, who are now experts at the sequence definition!
Example 14.1 Any constant function
Example 14.2 The function
This generalizes directly to functions like
Exercise 14.1 Show that linear functions
Exercise 14.2 Prove that the function
Like any definition, its good after seeing a few examples to also turn and look at non-examples:
Example 14.3 The step function
Thus, a function with a jump in it is discontinuous right at the jump, as we expect. This shows its possible for a function to be discontinuous at a single point, but things can get much stranger!
Example 14.4 The characteristic function of the rational numbers is discontinuous everywhere.
We saw above a function that is discontinuous at a single point, and then one that is discontinuous everywhere. What’s harder to imagine, is a function that is continuous at a single point. Try thinking about what this might mean!
Exercise 14.3 Show that the following function is continuous at
While the
Exercise 14.4 Prove that
To avoid having to do such hard work on a regular basis, we will seek to broaden our theoretical toolkit.
14.2 Continuity With Sequences
We spent a lot of time working with sequences so far, so it would be nice if we could leverage some of that knowledge as more than just analogy. And indeed we can! In this section, we introduce an alternative definition of continuity, and prove that it is equivalent to our original.
Definition 14.2 (Continuity) Let
Thus, we can think of continuity as the condition that allows us to “pull the limit inside of
Example 14.5 The function
Proof. Let
Theorem 14.1 (Equivalence of Continuity Definitions) Let
This theorem is an equivalence of definitions or an if-and-only-if result, so the proof requires two parts: first we show that continuity implies sequence continuity, and then we show the converse.
Proof (Continuity Implies Sequence Continuity). Let
But since
Putting this all together, this is just the definition of convergence for the sequence
Proof (Sequence Continuity Implies Continuity). Here we prove the contrapositive: that if
If
For example, if we let
Thus, we’ve shown by example that our function is not sequence continuous at
When working with this definition of continuity, its important to remember that we need to check
Exercise 14.5 The function
Its useful to have two definitions, as often one will be easier to use than the other. Below we will see many examples where sequence continuity is easier to apply, but here’s an example where
Proposition 14.1 Let
Proof. Let
And thus
If
14.3 Analogs of the Limit Theorems
Beause we have an equivalent characterization of continuity in terms of sequence convergence, and we have many theorems about this, we can use our characterization to rephrase these as results about continuity.
Proposition 14.2 (Continuity of Multiples) If
Proof. Let
Theorem 14.2 (Continuity of Field Operations) Let
Proof. Let
One of the most important operations for functions is that of composition: if
Theorem 14.3 (Continuity of Compositions) Let
Proof. Let
Exercise 14.6 Let
Give an example of an
Theorem 14.4 (Continuity of Roots) The function
Proof. Actually we already proved this, before we had the terminology! Re-read ?exr-limit-of-root: it shows that if
The same is true for
14.4 Useful Examples
Because continuity is going to be a big part of our course, its good to have a couple examples of functions we already know to be continuous. The ones below are particularly useful:
Exercise 14.7 (Continuity of Polynomials) Prove that every polynomial is a continuous function on the entire real line. Hint: induction on the degree of the polynomial!
Exercise 14.8 (Continuity of Rational Functions) A rational function is a quotient of polynomials
Exercise 14.9 If
Hint: either use the reverse triangle inequality (?exr-reverse-triangle-inequality) or use that its a composition
Exercise 14.10 (Continuity of Max and Min) Prove that for any two numbers
Use this, together with the limit theorems on field operations and continuity to prove that for any two continuous functions
Putting all this together, we already can build many examples of continuous functions! For example,
Exercise 14.11 Prove carefully that the above function is continuous at every
14.5 Continuity and the Rationals
Before closing the introductory chapter on continuity, we turn to one important theoretical tool: the density of the rationals. Because every real number is the limit of a sequence of rationals, and continuous functions are determined by limits, it seems that continuous functions are rather constrained by their value on the rationals. This is indeed true, and will prove quite useful: we prove it in two steps below.
Proposition 14.3 If
Proof. Let
Corollary 14.1 Let
Proof. Since
This has a the pretty significant consequence that if we have a function and we know it is continuous, then being able to calculate its values at the rational numbers is good enough to completely determine the function on the real line. In particular, this can be used to prove various uniqueness results: you can show a certain function is uniquely defined if you can prove that its definition implies (1) continuity and (2) determines the rational points (or more generally, the values on a dense set).
Exercise 14.12 Let
- Every real number is the limit of some sequence
of points in . - If
is continuous on all points of , then is the zero function. - If
are two continuous functions with for , then they are the same function.
We will use this property in understanding exponential functions (where their value at rational numbers are determined by powers and roots) and trigonometric functions (whose values on certain dyadic multiples of