Definition 5.1. A function f:C⟶Cf: C \longrightarrow C is continuous if for every open set U⊂CU \subset C, the preimage f−1(U)={x∈C∣f(x)∈U}f^{-1}(U) = \{x \in C \mid f(x) \in U\} is open in CC.

Notice that this definition depends only on the topology of CC. Continuous functions are the "right" notion of functions between topological spaces.

Lemma 5.2. If X,Y⊂CX, Y \subset C, then:

f−1(X∪Y)=f−1(X)∪f−1(Y)andf−1(X∩Y)=f−1(X)∩f−1(Y).f^{-1}(X \cup Y) = f^{-1}(X) \cup f^{-1}(Y) \quad \text{and} \quad f^{-1}(X \cap Y) = f^{-1}(X) \cap f^{-1}(Y).

Exercise 5.3. Let X⊂CX \subset C. Is it always true that f(f−1(X))=Xf(f^{-1}(X)) = X? Is it always true that f−1(f(X))=Xf^{-1}(f(X)) = X?

Theorem 5.4. f:C⟶Cf: C \longrightarrow C is continuous if and only if for all x∈Cx \in C and regions RR containing f(x)f(x), there exists a region SS containing xx such that f(S)⊂Rf(S) \subset R.

Lemma 5.5. If X,Y⊂CX, Y \subset C, then:

f(X∩Y)⊂f(X)∩f(Y).f(X \cap Y) \subset f(X) \cap f(Y).

Exercise 5.6. Show that f(X∩Y)=f(X)∩f(Y)f(X \cap Y) = f(X) \cap f(Y) is not always true by providing a counterexample.

Theorem 5.7. Let f:C⟶Cf: C \longrightarrow C be continuous and suppose that xx is a limit point of A⊂CA \subset C. Then f(x)f(x) is a limit point of f(A)f(A) or f(x)∈f(A)f(x) \in f(A).

Definition 5.8. A set X⊂CX \subset C is connected if it cannot be written as the union X=A∪BX = A \cup B of two separated sets. (See Definition 3.23 for what it means for two sets A,B⊂CA, B \subset C to be separated.)

Theorem 5.9. Every region R⊂CR \subset C is connected.

Theorem 5.10 (Intermediate Value Theorem). Suppose that X⊂CX \subset C is a connected subset of CC and f:C⟶Cf: C \longrightarrow C is continuous. Then f(X)f(X) is connected.

In ordinary calculus textbooks, the intermediate value theorem is often stated as follows. Assuming that the real numbers R\mathbb{R} are a valid model for the continuum, it says that if f:R⟶Rf: \mathbb{R} \longrightarrow \mathbb{R} is continuous and a<ba < b, then for every point pp between f(a)f(a) and f(b)f(b), there exists cc such that a<c<ba < c < b and f(c)=pf(c) = p.

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 X⊂CX \subset C is a compact subset of the continuum and f:C⟶Cf: C \longrightarrow C is continuous. Then f(X)f(X) is also compact.

Corollary 5.13 (Extreme Value Theorem). If X⊂CX \subset C is nonempty, closed, and bounded and f:C⟶Cf: C \longrightarrow C is continuous, then f(X)f(X) has a first and last point.

Exercise 5.14. Prove the usual version of the extreme value theorem: if f:R⟶Rf: \mathbb{R} \longrightarrow \mathbb{R} is continuous and a<ba < b, then there exists a point c∈[a,b]c \in [a,b] such that f(c)≥f(x)f(c) \geq f(x) for all x∈[a,b]x \in [a,b]. Similarly, there exists a point d∈[a,b]d \in [a,b] such that f(d)≤f(x)f(d) \leq f(x) for all x∈[a,b]x \in [a,b].

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 f(x)=1/xf(x) = 1/x is only defined on the set of nonzero real numbers. So far, we have only defined continuity for functions defined on all of CC. 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 ff is open.

Exercise 5.15. Find a function f:[0,1]⟶Rf: [0,1] \longrightarrow \mathbb{R} that appears to be continuous (in the "not lifting your pencil" sense), but for which there exists an open set U⊂RU \subset \mathbb{R} such that f−1(U)f^{-1}(U) is not open.

f:[0,1]→1f:[0,1]\to 1

To remedy this, we follow Theorem 5.4 in making the following definition of continuity for functions defined on subsets A⊂CA \subset C:

Definition 5.16 (General Definition of Continuity). Let A⊂CA \subset C be a subset of the continuum and let f:A⟶Cf: A \longrightarrow C be a function defined on AA. We say that ff is continuous if for all x∈Ax \in A and regions RR containing f(x)f(x), there exists a region SS containing xx such that f(S∩A)⊂Rf(S \cap A) \subset R.

Exercise 5.17. Discuss whether or not the theorems on this sheet remain true for a function ff whose domain is not CC but instead some subset A⊂CA \subset C, provided that we use Definition 5.16 for continuity.