Definition 5.1. A function is continuous if for every open set , the preimage is open in .
Notice that this definition depends only on the topology of . Continuous functions are the "right" notion of functions between topological spaces.
Lemma 5.2. If , then:
Exercise 5.3. Let . Is it always true that ? Is it always true that ?
Theorem 5.4. is continuous if and only if for all and regions containing , there exists a region containing such that .
Lemma 5.5. If , then:
Exercise 5.6. Show that is not always true by providing a counterexample.
Theorem 5.7. Let be continuous and suppose that is a limit point of . Then is a limit point of or .
Definition 5.8. A set is connected if it cannot be written as the union of two separated sets. (See Definition 3.23 for what it means for two sets to be separated.)
Theorem 5.9. Every region is connected.
Theorem 5.10 (Intermediate Value Theorem). Suppose that is a connected subset of and is continuous. Then is connected.
In ordinary calculus textbooks, the intermediate value theorem is often stated as follows. Assuming that the real numbers are a valid model for the continuum, it says that if is continuous and , then for every point between and , there exists such that and .
Exercise 5.11. Derive the usual formulation of the intermediate value theorem from Theorem 5.10.
think the opposite: uncontinuous situatiion
Theorem 5.12. Suppose that is a compact subset of the continuum and is continuous. Then is also compact.
Corollary 5.13 (Extreme Value Theorem). If is nonempty, closed, and bounded and is continuous, then has a first and last point.
Exercise 5.14. Prove the usual version of the extreme value theorem: if is continuous and , then there exists a point such that for all . Similarly, there exists a point such that for all .
Before moving on, there is a potentially tricky issue that should be discussed. Often, a function is not defined on all of the continuum. For example, the function is only defined on the set of nonzero real numbers. So far, we have only defined continuity for functions defined on all of . It turns out that the definition of continuity that we have given in terms of open sets only works if the domain of the function is open.
Exercise 5.15. Find a function that appears to be continuous (in the "not lifting your pencil" sense), but for which there exists an open set such that is not open.
To remedy this, we follow Theorem 5.4 in making the following definition of continuity for functions defined on subsets :
Definition 5.16 (General Definition of Continuity). Let be a subset of the continuum and let be a function defined on . We say that is continuous if for all and regions containing , there exists a region containing such that .
Exercise 5.17. Discuss whether or not the theorems on this sheet remain true for a function whose domain is not but instead some subset , provided that we use Definition 5.16 for continuity.