Connectedness in Metric Spaces
Connectedness in Metric Spaces
Connectedness formalizes the idea that a space is “joined together” and cannot be separated into two independent pieces. A related but distinct idea, path connectedness, concerns whether points can be joined by continuous paths; connectedness is developed first.
Disconnected and Connected Metric Spaces
Let X be a metric space.
Disconnected spaces
The space X is disconnected if it can be written as a disjoint union
where:
U and V are open subsets of X,
U∩V=∅,
U=∅ and V=∅.
In this situation, the sets U and V are said to disconnect X.
A space is disconnected when it can be separated into two nonempty, disjoint open pieces.
Connected spaces
The space X is connected if it is not disconnected. Equivalently, whenever
with U and V disjoint and open, at least one of U or V must be empty.
The definition uses open sets in the metric space itself. When considering a subspace, “open” means open in the subspace topology, which may differ from being open in the surrounding space.
Example of a disconnected subset of R
Consider
Relative to X, both [0,1] and [2,3] are open subsets of X, even though neither is open in R. They satisfy
Both sets are nonempty, so they disconnect X. Hence X is disconnected.
Equivalent Characterizations of Connectedness
For a metric space X, the following three statements are equivalent:
X is connected.
Every continuous function f:X→{0,1} is constant.
The only subsets of X that are both open and closed are ∅ and X.
A set that is both open and closed is called clopen.
The two-point space {0,1} can be viewed either as:
the subset {0,1}⊆R with the usual metric, or
a two-point space with the discrete metric.
These descriptions give the same topology and metric behavior.
Connectedness implies constant {0,1}-valued functions
Suppose that X is connected and that
is continuous.
The singleton sets {0} and {1} are open in {0,1}. By continuity, their inverse images are open in X:
These two inverse images satisfy:
They are disjoint because no point can map to both 0 and 1.
Their union is all of X because every point maps to either 0 or 1.
Thus, they form a decomposition of X into disjoint open sets:
Since X is connected, one of these sets must be empty.
If f−1({0})=∅, then every point maps to 1.
If f−1({1})=∅, then every point maps to 0.
Therefore, f is constant.
Constant {0,1}-valued functions imply only trivial clopen sets
Suppose every continuous function from X to {0,1} is constant. Let A⊆X be both open and closed.
Since A is closed, its complement X∖A is open. Define the indicator-type function
This function is continuous because:
f−1({1})=A, which is open;
f−1({0})=X∖A, which is open;
the only other open subsets of {0,1} are ∅ and {0,1}, whose inverse images are automatically open.
By assumption, f must be constant.
If f≡1, then A=X.
If f≡0, then A=∅.
Thus, the only clopen subsets of X are ∅ and X.
Only trivial clopen sets imply connectedness
Suppose the only clopen subsets of X are ∅ and X. Assume, for contradiction, that X is disconnected. Then
where U and V are disjoint, nonempty, open sets.
Since V=X∖U, the complement of U is open. Therefore, U is both open and closed. By assumption,
Either possibility contradicts the fact that both U and V are nonempty. Hence X cannot be disconnected.
Therefore, X is connected.
Connectedness of Subspaces
Let Y be a subspace of a metric space X. The connectedness of Y can be characterized using open subsets of X rather than open subsets defined intrinsically in Y.
The open subsets of Y are exactly the sets of the form
where U is open in X.
Subspace connectedness criterion
The subspace Y is connected if and only if the following condition holds:
Whenever U,V⊆X are open and satisfy
and
then either
Why this criterion works
The sets U∩Y and V∩Y are open in Y.
They are disjoint precisely when
They cover Y precisely when
Thus, U∩Y and V∩Y would disconnect Y if both were nonempty. The condition
is equivalent to saying that one of U∩Y or V∩Y is empty. Therefore, no disconnection exists.
Basic Properties of Connected Sets
The Sunflower Lemma
Let {Ai}i∈I be a collection of connected subsets of a metric space X. Suppose that all the sets have at least one common point:
Then their union is connected:
is connected.
The common point acts like the center of a sunflower, with the connected sets forming overlapping “petals.”
Proof using {0,1}-valued functions
Let
and suppose that
is continuous.
Choose a point
Take any point x∈A. Since x belongs to the union, there is some index i such that x∈Ai.
The restriction
is continuous. Because Ai is connected, this restriction is constant. Both x and x0 belong to Ai, so
Since x was arbitrary, f is constant on all of A. Therefore, A is connected.
A union of connected sets with a common point is connected.
Sets Between a Connected Set and Its Closure
Suppose A is connected and
Then B is connected. In particular, the closure A of a connected set is connected.
Proof
Use the subspace connectedness criterion. Let U,V be open subsets of the surrounding metric space X such that
and
Since A⊆B, it follows that
and
Because A is connected, the subspace criterion implies that either
Assume without loss of generality that
Since U∩V∩A=∅ and A⊆U, no point of A can belong to V. Therefore,
The set V is open, so X∖V is closed. Since A⊆X∖V, taking closures gives
Because B⊆A,
But also B⊆U∪V. The only way both statements can hold is if
Thus, either B⊆U or, by the symmetric argument, B⊆V. Therefore, B is connected.
Continuous Images of Connected Sets
Let X and Y be metric spaces. If X is connected and
is continuous, then the image f(X) is connected.
Proof
It is enough to replace Y by f(X) and assume that f is surjective. Suppose, for contradiction, that Y=f(X) is disconnected. Then there are disjoint, nonempty open subsets U,V⊆Y such that
Their inverse images under f are open in X:
They are disjoint because U and V are disjoint, and they cover X because U∪V=Y:
Since X is connected, one of the inverse images must be empty. Suppose
Because f is surjective, every point of Y has a preimage. If U contained a point, that point would have a preimage in f−1(U), contradicting the fact that this inverse image is empty. Hence U=∅, contrary to the assumption that U is nonempty.
Therefore, Y=f(X) is connected.
Continuous maps cannot pull a connected space apart into disconnected pieces.
Connected Components
For each point x∈X, consider all connected subsets of X that contain x. Their union is connected by the Sunflower Lemma because every one of these sets contains x.
This union is the unique maximal connected subset of X containing $x.
Definition
The connected component containing x, denoted by Γ(x), is the union of all connected subsets of X containing x.
Thus:
Γ(x) is connected;
x∈Γ(x);
every connected subset containing x is contained in Γ(x);
Γ(x) is maximal among connected subsets containing x.
Connected components partition the space
For any x,y∈X, the components Γ(x) and Γ(y) are either disjoint or equal.
Suppose they intersect. Choose
Both Γ(x) and Γ(y) are connected, and they have the common point a. By the Sunflower Lemma,
is connected.
This union contains x, so by the maximality of Γ(x),
Hence,
By symmetry,
Therefore,
Consequently, connected components form a partition of X: every point belongs to exactly one connected component.
Connectedness and components
The space X is connected if and only if it has exactly one connected component.
If X is connected, then the maximal connected subset containing every point is X itself.
If X has only one connected component, that component must be all of X, so X is connected.
Connected Subsets of the Real Line
The connected subsets of R can be completely classified.
The interval property
A subset E⊆R has the interval property if whenever x,y∈E and x<y, every point between them also belongs to E:
Equivalently, if two points belong to E, then the entire closed interval joining them belongs to $E.
The main result is:
A subset of R is connected if and only if it has the interval property.
A second result shows that:
A subset of R has the interval property if and only if it is an interval.
Therefore:
The connected subsets of R are precisely the intervals.
Intervals may be:
bounded or unbounded;
open, closed, or half-open at either endpoint.
Examples include:
and unbounded intervals such as
Connectedness Implies the Interval Property
Suppose E⊆R is connected. The goal is to show that E has the interval property.
Take x,y∈E with x<y. If x=y, there is nothing to prove. Suppose, for contradiction, that some point c satisfies
Define open subsets of R by
These sets satisfy:
U∩V=∅;
E⊆U∪V, because c∈/E;
E⊆U, because y∈E and y∈/U;
E⊆V, because x∈E and x∈/V.
Thus, U and V disconnect the subspace E, contradicting the assumption that E is connected.
Therefore, no point can lie between two points of E without also belonging to E. Hence,
So E has the interval property.
The Interval Property Implies Connectedness
Now suppose that E⊆R has the interval property. The goal is to prove that E is connected.
Assume, for contradiction, that E is disconnected. By the subspace criterion, there exist open subsets U,V⊆R such that
but neither E⊆U nor E⊆V.
Therefore, choose points
Since U∩V∩E=∅, the points x and y are distinct. Relabel them if necessary so that
Because E has the interval property,
Define
The set S is:
nonempty, since x∈S;
bounded above by y.
Therefore, S has a supremum. Let
Since [x,y]⊆E⊆U∪V, the point c belongs to either U or V.
Case 1: c∈U
Since y∈V and U∩V∩E=∅, c=y. Because U is open, there exists ε>0 such that points slightly larger than c remain in U. In particular, for sufficiently small ε,
This means that points such as
belong to S. But they are greater than c, contradicting the fact that c is an upper bound for S.
Case 2: c∈V
Since x∈U, we have c=x. Because V is open, there exists ε>0 such that points slightly smaller than c remain in V. Thus,
This interval is disjoint from S. Therefore, every point of S is at most c−ε, meaning that c−ε would be an upper bound for S smaller than c.
This contradicts the fact that c is the least upper bound of S.
Both cases lead to contradictions. Therefore, E cannot be disconnected, so E is connected.
Thus,
The Interval Property Characterizes Intervals
It remains to show that a subset of R has the interval property if and only if it is an interval.
The reverse direction is immediate: if E is an interval and x,y∈E, then all points between x and y also belong to E.
The more substantial direction begins with a set E having the interval property.
Infimum and supremum notation
To handle bounded and unbounded sets uniformly, define:
infE=−∞ if E is unbounded below;
supE=+∞ if E is unbounded above.
Let
The goal is to establish
with the understanding that intervals involving ±∞ represent half-lines. For example:
[0,∞) means all real numbers greater than or equal to 0;
(−∞,1] means all real numbers less than or equal to 1.
The easy inclusion
By the definitions of infimum and supremum,
Every element of E is at least c and at most C, allowing for infinite endpoints.
The key inclusion
Take any point
The fact that z>c=infE means that z cannot be a lower bound for E. Therefore, there exists some x∈E such that
Similarly, the fact that z<C=supE means that z cannot be an upper bound for E. Therefore, there exists some y∈E such that
Thus,
Since E has the interval property,
Because z∈[x,y], it follows that z∈E.
Since every z∈(c,C) belongs to E,
Therefore,
The set E must consist of the open interval (c,C) together with either or both of its endpoints. This gives exactly the possible forms of an interval:
(c,C);
[c,C);
(c,C];
[c,C];
with analogous possibilities when one or both endpoints are infinite.
Hence, every subset of R with the interval property is an interval.
Classification Theorem for Connected Subsets of R
Combining the preceding results gives the complete classification:
Thus, the connected subsets of the real line are exactly the intervals, including:
open intervals;
closed intervals;
half-open intervals;
left- or right-infinite intervals;
all of R;
single-point sets.
A single-point set is connected because it cannot be divided into two nonempty disjoint subsets.
The Intermediate Value Theorem and Connectedness
The Intermediate Value Theorem follows naturally from connectedness.
Let
be continuous.
The closed interval [a,b] is an interval, so it is connected. Continuous maps preserve connectedness, so the image
is connected.
Because f([a,b]) is a connected subset of R, it is an interval. Therefore, whenever a real number c lies between f(a) and f(b),
Consequently, there exists some x∈[a,b] such that
This is precisely the Intermediate Value Theorem.
The Intermediate Value Theorem is a consequence of two facts: intervals are connected, and continuous functions preserve connectedness.

Ask anything
We've read this whole study set, so questions about it get the best answers.