9.4 Connectedness 259
So f is continuous at x. Similarly, if x ∈ V , there is some ball B
r
(x) contained in
V ; and thus |x − y| < r implies that
|f(y) − f(x)| = | − 1 −(−1)| = 0 < ε.
This accounts for every point in [a, b], and therefore f is a continuous function.
Thus we have constructed a continuous function on [a, b] with range equal to
{−1, 1}. This contradicts the Intermediate Value Theorem. So our assumption that
[a, b] is not connected must be wrong. Therefore, the interval is connected. ¥
To obtain a useful criterion for connectedness, we need to know that it is a
property that is preserved by continuous functions. This is readily established using
the topological form of continuity based on open sets.
9.4.4. THEOREM. The continuous image of a connected set is connected.
PROOF. This theorem is equivalent to the contrapositive statement: If the image of
a continuous function is not connected, then the domain is not connected. To prove
this, suppose that f is a continuous function from a metric space (X, ρ) into (Y, σ)
such that the range f(X) is not connected. Then there are disjoint open sets U and
V in Y such that f(X) ∩U and f(S) ∩V are both nonempty, and f (X) ⊂ U ∪V .
Let S = f
−1
(U) and T = f
−1
(V ). By Theorem 9.1.7, the inverse image of an
open set is open; and thus both S and T are open. Since U and V are disjoint and
cover f(X), each x ∈ X has either f(x) ∈ U or f(x) ∈ V but not both. Therefore,
S and T are disjoint and cover X. Finally, since U ∩ f (X) is nonempty, it follows
that S ∩X is also nonempty; and likewise, T ∩X is not empty. This shows that X
is not connected, as required. ¥
9.4.5. EXAMPLE. In Section 5.6, we defined a path in R
n
. Similarly, we define
a path in any metric space as a continuous image of a closed interval. A path is
connected because a closed interval is connected. In particular, if f is a continuous
function of [a, b] into R
n
, the graph G(f) = {(x, f(x)) : a ≤ x ≤ b} is connected.
9.4.6. DEFINITION. A subset S of a metric space X is said to be path con-
nected if for each pair of points x and y in S, there is a path in S connecting x to y,
meaning that there is a continuous function f from [0, 1] into S such that f(0) = x
and f(1) = y.
9.4.7. COROLLARY. Every path connected set is connected.
PROOF. Let S be a path connected set, and suppose to the contrary that it is not
connected. Then there are disjoint open sets U and V such that
S ⊂ U ∪ V and S ∩ U 6= ∅ 6= S ∩ V.
Pick points u ∈ S ∩ U and v ∈ S ∩ V . Since S is path connected, there is a path
P connecting u to v in S. It follows that P ⊂ U ∪ V . And P ∩ U contains u and