Skip to content

Connectedness

In this lesson you’ll define connectedness through separations, identify the connected subsets of R\mathbb{R}, learn that continuous images of connected sets are connected, and use that to prove the intermediate value theorem in one line.

A separation of XX is a pair of nonempty disjoint open sets U,VU,V with UV=XU\cup V = X.

XX is connected if no separation exists. Otherwise it is disconnected.

The definition is stated negatively, which is normal here: connectedness is the absence of a way to split the space.

Two equivalent formulations, both useful:

  • XX is connected iff its only clopen subsets are \varnothing and XX.
  • XX is connected iff every continuous map X{0,1}X\to\{0,1\}, with {0,1}\{0,1\} discrete, is constant.

The second is the slickest for proofs. If the space cannot be split then a two-valued continuous function has nowhere to put the split, so it must be constant.

For a subset AXA\subseteq X, connectedness is taken in the subspace topology. This is why {0}(1,2)\{0\}\cup(1,2) is disconnected even though {0}\{0\} is not open in R\mathbb{R}: it is open in the subspace.

A subset of R\mathbb{R} is connected if and only if it is an interval, where the term includes rays, single points, \varnothing, and R\mathbb{R} itself.

This is the base case everything else builds on, and it is exactly where completeness of R\mathbb{R} enters topology. The proof that intervals are connected uses the supremum, and the statement is false over Q\mathbb{Q}: the set {xQ:x2<2}\{x\in\mathbb{Q} : x^2<2\} and its complement in Q\mathbb{Q} separate Q\mathbb{Q}, so Q\mathbb{Q} is totally disconnected.

The figure decomposes several subsets by merging intervals wherever there is no gap. The instructive pair is the third and fourth rows: (0,1](1,3)(0,1]\cup(1,3) is a single component because the point 1 is present to bridge them, while (0,1)(1,3)(0,1)\cup(1,3) has two because it is missing. One point decides it.

A connected component is a maximal connected subset.

Components partition the space, each one is closed, and they are open too when there are finitely many or when the space is nice enough. The number of components is a topological invariant, and it is usually the first one to try.

At the opposite end:

XX is totally disconnected if every component is a single point.

Examples: Q\mathbb{Q}, the irrationals, any discrete space, and the Cantor set. The Cantor set is the interesting one - compact, uncountable, and totally disconnected all at once.

Continuous images. If f:XYf:X\to Y is continuous and XX is connected, then f(X)f(X) is connected.

Proof. If f(X)=UVf(X) = U\sqcup V were a separation, then f1(U)f^{-1}(U) and f1(V)f^{-1}(V) would be nonempty, open, disjoint, and cover XX - a separation of XX. ∎

This is the workhorse. It says connectedness is preserved by continuous maps, which immediately makes it a topological invariant and gives the next result for free.

Intermediate value theorem. If f:[a,b]Rf:[a,b]\to\mathbb{R} is continuous and yy lies between f(a)f(a) and f(b)f(b), then f(c)=yf(c)=y for some c[a,b]c\in[a,b].

Proof. [a,b][a,b] is connected, so f([a,b])f([a,b]) is a connected subset of R\mathbb{R}, hence an interval. An interval containing f(a)f(a) and f(b)f(b) contains everything between them, so it contains yy. ∎

That is the whole proof. Compare the real-analysis version, which needs a bisection argument or a supremum construction. The topological proof is shorter because it uses the right invariant.

Unions. A union of connected sets sharing a common point is connected. More generally, if any two of them intersect pairwise through a chain, the union is connected.

Closure. If AA is connected then Aˉ\bar A is connected. Anything between AA and Aˉ\bar A is connected too.

Products. A product of connected spaces is connected. So Rn\mathbb{R}^n, the torus, and the cylinder are all connected.

Connectedness is emphatically not inherited by subspaces. R\mathbb{R} is connected and R{0}\mathbb{R}\setminus\{0\} is not. This is what makes cut-point arguments work: if XYX\cong Y then removing corresponding points must leave homeomorphic - hence equally connected - spaces.

That single observation distinguishes [0,1][0,1] from S1S^1, distinguishes R\mathbb{R} from R2\mathbb{R}^2 (removing a point disconnects the line and not the plane), and distinguishes a letter Y from a letter I.

Example 1: Show {0}(1,2)\{0\}\cup(1,2) is disconnected.

Solution. In the subspace topology, {0}=(12,12)A\{0\} = (-\frac12,\frac12)\cap A is open, and (1,2)=(12,3)A(1,2) = (\frac12,3)\cap A is open. They are nonempty, disjoint, and cover AA.

Answer: a separation exists, so disconnected. ∎

Openness is relative to the subspace, which is what makes this work even though {0}\{0\} is not open in R\mathbb{R}.

Example 2: Show (0,1](1,3)(0,1]\cup(1,3) is connected.

Solution. The union is simply (0,3)(0,3), an interval, hence connected.

Contrast (0,1)(1,3)(0,1)\cup(1,3), which is (0,3){1}(0,3)\setminus\{1\}. The two pieces are each open in the subspace and separate it, so it has two components. ∎

Example 3: Prove the intermediate value theorem.

Solution. Suppose f:[a,b]Rf:[a,b]\to\mathbb{R} is continuous and yy lies between f(a)f(a) and f(b)f(b).

[a,b][a,b] is an interval, hence connected. Continuous images of connected sets are connected, so f([a,b])f([a,b]) is a connected subset of R\mathbb{R}, hence an interval.

An interval containing both f(a)f(a) and f(b)f(b) contains yy, so y=f(c)y=f(c) for some cc. ∎

Example 4: Show Q\mathbb{Q} is totally disconnected.

Solution. Take any two rationals p<qp<q and pick an irrational α\alpha between them. Then

U={xQ:x<α},V={xQ:x>α}U = \{x\in\mathbb{Q}: x<\alpha\}, \qquad V = \{x\in\mathbb{Q}: x>\alpha\}

are open in Q\mathbb{Q}, disjoint, nonempty, and cover Q\mathbb{Q} since no rational equals α\alpha.

So no subset with two points can be connected, meaning every component is a single point.

Answer: totally disconnected. ∎

The irrationals do the cutting. This is exactly the failure of completeness showing up as a topological property.

Example 5: Show R≇R2\mathbb{R}\not\cong\mathbb{R}^2.

Solution. Removing any point from R\mathbb{R} leaves two components. Removing any point from R2\mathbb{R}^2 leaves a connected space, since any two remaining points can be joined by a path going around the puncture.

A homeomorphism would have to preserve this behaviour.

R≇R2\mathbb{R}\not\cong\mathbb{R}^2

For general mnm\ne n, proving Rm≇Rn\mathbb{R}^m\not\cong\mathbb{R}^n needs more machinery, and homology is the standard tool.

Example 6: Show a continuous map from a connected space to a discrete space is constant.

Solution. Let f:XDf:X\to D be continuous with XX connected and DD discrete, and suppose ff takes two values d1d2d_1\ne d_2.

Every subset of DD is open, so U=f1({d1})U = f^{-1}(\{d_1\}) and V=f1(D{d1})V = f^{-1}(D\setminus\{d_1\}) are open, nonempty, disjoint, and cover XX - a separation.

contradiction, so f is constant\text{contradiction, so } f \text{ is constant}

This is the criterion in its most usable form, and it is how connectedness is applied in practice.

Example 7: Show the topologist’s sine curve is connected.

Solution. Let S={(x,sin(1/x)):0<x1}S = \{(x,\sin(1/x)) : 0<x\le1\} and T=S({0}×[1,1])T = S\cup(\{0\}\times[-1,1]).

SS is a continuous image of the connected interval (0,1](0,1], so SS is connected. Every point of the added segment is a limit point of SS, because sin(1/x)\sin(1/x) oscillates through every value in [1,1][-1,1] infinitely often as x0+x\to0^+. Hence TSˉT\subseteq\bar S.

Since anything between a connected set and its closure is connected,

T is connectedT \text{ is connected}

But TT is not path-connected, which is the subject of the next lesson and the reason both notions are needed.

Network reliability. Whether a communication network stays connected after failures is exactly a components question, and the components after a cut are the surviving sub-networks. Minimum cut algorithms compute how fragile the connection is.

Image segmentation. Connected component labelling is a standard first pass in computer vision, identifying distinct objects in a binary image. The 4-connected and 8-connected conventions are two different topologies on the pixel grid.

Robot motion planning. Two configurations are reachable from each other precisely when they lie in the same path component of the free configuration space. If the space is disconnected, no amount of clever planning helps.

Circuit analysis. A circuit’s connected components are its independent sub-circuits, and netlist tools compute them to detect floating nodes and unconnected pins.

Materials and percolation. Whether a porous material conducts is a question about whether a connected path spans it, and the percolation threshold is where the giant component appears.

Root-finding. Every bisection method is the intermediate value theorem in action, so every numerical solver that brackets a root is relying on connectedness of the interval.

What does it mean for X to be connected?
Which subsets of ℝ are connected?
Why is (0,1] ∪ (1,3) connected while (0,1) ∪ (1,3) is not?
What happens to connectedness under a continuous map?
How does connectedness prove the intermediate value theorem?
Why is ℚ totally disconnected?
Which of these is a valid criterion for connectedness?
Why does removing a point distinguish ℝ from ℝ²?