© 2026 NeckPinch · www.neckpinch.com · All rights reserved.
Course 2Book 2B: Spaces, Functions and ChangeChapter 4
Connectedness
Connected and path-connected sets, and the intermediate value theorem in general.
Read with Tao, Analysis II, chapter "Continuous functions on metric spaces", section "Continuity and connectedness". Skim the optional section "Topological spaces"; Book 7A does it properly.
Compactness (2B.3 Compactness) says a space is "small" in a precise sense. Connectedness says it is "in one piece". The idea is simple enough to state in a sentence, and it is the source of the intermediate value theorem, which in 2A.9 Continuous Functions seemed to depend on special properties of the real line. Here it is reborn as a statement about any connected space: a continuous real-valued function on a connected space can't skip values.
Connectedness is also the first topological invariant in the guidebook: a property that survives any continuous deformation with a continuous inverse. Counting the pieces left over after removing a point is already enough to prove that a line and a plane are different spaces. That kind of argument, finding a quantity that can't change under deformation, is how topology tells spaces apart, and it leads to the fundamental group (7A.4 The Fundamental Group) and to the Poincaré conjecture itself (7A.9 The Poincaré Conjecture, Precisely). It is a shorter chapter than the last three, because the ideas are simpler, but they are used constantly.
By the end of this chapter you will be able to:
- prove that a set is connected or disconnected, and that the connected subsets of are exactly the intervals;
- use the general intermediate value theorem, and the "open and closed" argument that underlies it;
- prove that path-connected sets are connected, and explain why the converse fails;
- find the connected components of a space, and explain how a power grid splits into islands;
- use connectedness to show that two spaces are not homeomorphic.
A grid that falls apart
On the afternoon of 14 August 2003, a cascade of transmission-line failures that began in northern Ohio left an estimated 50 million people in the north-eastern United States and Ontario without power, and took 61,800 megawatts of electric load off the system. The joint U.S.–Canada task force that investigated it published its final report in April 2004, and that report describes the end of the cascade in the language of this chapter.
A power grid is a network: generators and loads at the nodes, transmission lines on the edges. As lines tripped, the network was cut. In the report's words, the entire north-eastern United States and eastern Ontario "became a large electrical island separated from the rest of the Eastern Interconnection". Inside an island, generation and demand must balance on their own, and this island had been importing power. It became unstable within seconds, and further trips broke it into several smaller islands. Most of those blacked out. Two survived because their own generation roughly matched their own demand: one made of most of New England together with the Maritime Provinces of Canada, and one made of western New York and a small part of Ontario.
Mathematically, each island is a connected component of what remained of the network. Grid control systems track these components, because the moment a network splits, each piece becomes a separate system with its own balance to keep.
The point of the example is that "being in one piece" is not a vague idea. It is computable, it can change abruptly when connections are cut, and it governs what happens next. The rest of the chapter makes it precise for metric spaces, where the pieces need not be finite.
Connected spaces
A space should count as disconnected if it splits into two parts, neither of which comes arbitrarily close to the other. "Doesn't come close" is said precisely by openness.
A metric space is disconnected if for two disjoint, non-empty, open sets and . Otherwise it is connected. A subset is connected if it is connected with the restricted metric.
If as in the definition, then is also closed. So is connected exactly when its only subsets that are both open and closed (clopen) are and . This reformulation is the one used in proofs.
For a subset , openness is relative to (2B.1 Metric Spaces). The set is disconnected: and are both open in , though not in .
A subset of is connected if and only if it is an interval: whenever it contains , it contains every between them.
Proof. Not an interval ⇒ disconnected. If with and , then and are disjoint, non-empty, open in , and cover .
An interval is connected. Suppose an interval were the union of disjoint non-empty sets , both open and closed in . Pick and ; say (otherwise swap the names). Let , which exists by the least upper bound property and lies in . Since is closed in , . So , hence . Since is open in , it contains for some , and those points are in for small , contradicting the choice of as the supremum.
Look at where completeness entered: the supremum . Over the same proof fails, and indeed is disconnected: and split it into two open pieces.
The intermediate value theorem, reborn
If is connected and is continuous, then is connected.
Proof. If with disjoint, non-empty and open in , then and are disjoint, non-empty and open in (preimages of open sets under a continuous map are open, 2B.3 Compactness), and they cover .
Let be connected and continuous. If takes the values and , it takes every value between them.
Proof. is a connected subset of , hence an interval (Theorem 4.2).
On this is the IVT of 2A.9 Continuous Functions. The new version works on any connected space. A continuous temperature on the surface of the Earth, which is connected, takes every value between the coldest and the hottest. And a continuous function on a connected space with values in must be constant, because its image is an interval of integers containing no non-integers between its points. This last remark is a tool used everywhere: to prove that an integer-valued quantity (a degree, a winding number, a count of solutions) can't change under continuous deformation, show it is continuous (7A.7 Smooth Topology).
The open-and-closed argument
The proof of Theorem 4.2 has a pattern that generalises into a method of proof.
To prove that a statement holds for every in a connected space , let and show three things: is non-empty, is open, and is closed. Then is a non-empty clopen subset of a connected space, so .
The method turns a global statement into three local ones: one example, stability under small perturbations (openness), and stability under limits (closedness). It is how one proves that a differential equation has a solution for all times in an interval (2B.10 Ordinary Differential Equations), how estimates are propagated along a Ricci flow ("the set of times at which the bound holds is open and closed", 11A.4 Maximum Principles under Ricci Flow), and, as the continuity method of PDE, how equations are solved by deforming an easy one into a hard one (6A.7 Nonlinear Parabolic Equations). Exercise 4.18 is a rehearsal.
Path-connected spaces
A more intuitive notion is that any two points can be joined by a continuous path.
A path in from to is a continuous map with and . is path-connected if every two points of are joined by a path.
Proof. Suppose with disjoint, non-empty and open. Pick , and a path from to . Then splits into two disjoint non-empty open sets, contradicting Theorem 4.2.
Path-connected spaces are everywhere. A convex subset of , one that contains the segment between any two of its points, is path-connected by straight lines: balls of every metric of 2B.1 Metric Spaces are convex. Spheres () are path-connected along great circles. with a point removed is path-connected if : go around the missing point.
The converse of Proposition 4.6 is false, and the standard counterexample is worth seeing once.
Let , the graph of , and let , the graph together with the segment it oscillates against (Figure 4.1). Then is connected but not path-connected.
Connected. is the continuous image of the interval , so it is connected. is the closure of in (every point of the segment is a limit of points of ), and the closure of a connected set is connected (Exercise 4.13).
Not path-connected. Suppose were a path in from to . Let ; then by continuity, and for . For every , the IVT says that takes every value in on the interval , so takes both values and there. These times come arbitrarily close to . Then is not continuous at , a contradiction.
For open sets of , which is the case that matters most in analysis, the two notions coincide, and the proof is another use of the open-and-closed argument.
A connected open subset of is path-connected. In fact any two points of can be joined by a polygonal path in .
Proof. Fix and let be the set of points of that can be joined to by a polygonal path in . Then . If , some ball lies in , and every point of the ball is joined to by a segment in the ball. So if , the whole ball is in ( is open); and if , none of the ball is in ( is open). Hence is clopen in and non-empty, so .
A connected open subset of is called a domain, and PDE is mostly done on domains or on connected manifolds. The reason is the open-and-closed argument again: for instance, a function with zero gradient on a domain is constant (2B.8 Calculus in Several Variables), but on a disconnected open set it need only be constant on each piece.
Connected components
If a space is not connected, it is natural to break it into maximal connected pieces.
If is a family of connected subsets of that all contain a common point , then is connected.
Proof. Let and suppose with disjoint and open in , and say . Each is connected and , so one of these is empty; since , it is . Hence .
The connected component of a point is the union of all connected subsets of that contain . By Proposition 4.9 it is connected, and it is the largest connected set containing .
Two components are either equal or disjoint (if they shared a point, their union would be connected and larger). So the components partition , and "lies in the same component as" is an equivalence relation in the sense of 2A.2 Sets, Functions and Equivalence. Components are closed, because the closure of a connected set is connected (Exercise 4.13). They need not be open: each point of is its own component.
For a finite network, the same definitions reduce to the familiar ones for graphs: draw each node as a point and each edge as a segment, and the connected components of the resulting space are exactly the groups of nodes that can reach each other along edges. Finding them is a basic algorithm: start at a node, visit every neighbour, every neighbour's neighbour, and so on, until nothing new is found. That is the open-and-closed argument run by a computer.
To count cells in a microscope image, image-analysis software first thresholds the image: each pixel is marked "cell" or "background". It then labels the connected components of the cell pixels, two cell pixels being neighbours if they touch (either along an edge only, or also at corners, a choice the user makes). Each component is counted as one object, and its pixel count gives its area. The standard algorithm, called flood fill or connected-component labelling, is the graph search described above. Its weak point is also topological: two touching cells form one component and are counted once, which is why such software offers ways to split blobs that are probably two objects.
Connectedness as an invariant
A homeomorphism between metric spaces and is a continuous bijection whose inverse is also continuous. If one exists, and are homeomorphic.
Homeomorphic spaces are the same "up to continuous deformation". The open interval is homeomorphic to (by ), a square to a disc, and the surface of a cube to a sphere. A homeomorphism carries open sets to open sets, so it carries connected sets to connected sets, compact to compact, and components to components. Properties preserved by every homeomorphism are called topological.
Completeness is not topological: is complete, is not, and they are homeomorphic. Completeness depends on the metric, not just on which sets are open. Compactness and connectedness, by contrast, can both be defined using only open sets (by covers, 2B.3 Compactness, and by clopen sets, above), and so they are topological.
Proof. Suppose were a homeomorphism. Removing the point from leaves two components, and . Then restricts to a homeomorphism from to . But minus a point is path-connected, hence connected, while minus a point is not. A homeomorphism can't change the number of components.
The same trick shows that a circle is not homeomorphic to an interval (removing an interior point disconnects the interval but not the circle), and that the letter X is not homeomorphic to the letter T (Exercise 4.15). But it can't distinguish from : both stay connected after removing a point. To tell those apart, one needs a finer invariant. Removing a point from the plane leaves a hole that a loop can wind around and can't be pulled off; removing a point from leaves a hole that every loop can slip past. The fundamental group (7A.4 The Fundamental Group) turns that difference into algebra.
The fundamental group measures whether loops in a space can be shrunk to a point. A space in which every loop can be shrunk is simply connected. The 3-sphere is simply connected, and the Poincaré conjecture (7A.9 The Poincaré Conjecture, Precisely) asks whether it is the only closed 3-manifold that is. Perelman's proof uses connectedness at every level. Ricci flow with surgery cuts a manifold along thin necks, and each cut can split a component in two, exactly as the soap film of 2B.3 Compactness did. Keeping track of the components through all the surgeries is how the proof recovers the original manifold's prime decomposition (10A.3 The Prime Decomposition, 12B.4 Surgery). And the final step shows that for a simply connected manifold, every component eventually becomes extinct (12C.1 Reading Off the Topology).
Topological spaces, briefly
Tao's optional section defines a topological space: a set with a collection of subsets, called open, that contains and and is closed under arbitrary unions and finite intersections (2B.1 Metric Spaces). Continuity, compactness (by covers) and connectedness all make sense there, with the definitions of this chapter. What is lost is everything that depends on a metric: Cauchy sequences, completeness, uniform continuity, and (in general) the sequential description of compactness and closure. Book 7A develops topological spaces properly (7A.1 Topological Spaces and Quotients, 7A.2 Compactness and Compactification). Every space in Books 2B to 6A has a metric, so it is safe to skim the section now.
A space is connected if it has no clopen subsets besides itself and the empty set. The connected subsets of are the intervals, continuous images of connected spaces are connected, and so the intermediate value theorem holds for continuous real functions on any connected space. Path-connected spaces are connected; the topologist's sine curve shows the converse fails, but for open subsets of the two agree. Every space is partitioned into connected components, which are what a power grid splits into when it islands. Connectedness and compactness are topological, completeness is not, and counting components after removing a point already shows that the line and the plane are different. 2B.5 Uniform Convergence and Arzelà–Ascoli returns to analysis: sequences of functions, and when their limits can be trusted.
Exercises
(a) Show that if is connected and , then is connected. In particular the closure of a connected set is connected. (b) Show that if and are connected and , then is connected.
Hint
For (a), if with disjoint and open in , then lies in one of them, say . Show that can't contain a point of .
Solution
(a) and is connected, so , say. If , then (open in ) contains for some ; since , this ball meets , so , a contradiction. So . (b) Pick . is connected by (a), and it shares the point with , so is connected by Proposition 4.9.
Find the connected components of: (a) ; (b) ; (c) ; (d) minus the origin; (e) .
Solution
(a) One: the two axes meet at the origin. (b) Four open half-axes. (c) Two branches of the hyperbola, in the first and third quadrants. (d) Four open rays. (e) Each point is its own component: any subset with two points is split by an irrational between them.
Treat capital letters as unions of line segments in the plane. Show that X, T and O are pairwise not homeomorphic, by counting the components left after removing a single, well-chosen point. (A homeomorphism sends the removed point to some point, and the count must match for every point.)
Solution
Removing the crossing point of X leaves components; no point of T leaves more than , and no point of O leaves more than . So X is homeomorphic to neither. Removing the junction of T leaves components, while removing any point of O leaves . So T and O are not homeomorphic.
Show that the set of invertible matrices, as a subset of , is disconnected. (Use the determinant and Corollary 4.4.) It has exactly two components, the matrices with positive and with negative determinant; you may take that on trust. This is the root of orientation: a basis of can be continuously deformed into another, through bases, only if the change-of-basis matrix has positive determinant (8A.8 Differential Forms and Stokes’ Theorem).
Solution
is a polynomial in the entries, hence continuous, and on it never takes the value . If were connected, its image under would be an interval containing (the identity) and (a reflection), hence . So and are disjoint non-empty open sets covering .
Let be continuous. Show that has a fixed point, by applying Corollary 4.4 to . Then explain why the same argument says nothing about continuous maps of the closed disc to itself. (Brouwer's theorem says such maps also have fixed points; the proof needs the topology of 7A.7 Smooth Topology.)
Let be continuously differentiable, with and for all , where . Show that for all . Do it by letting and proving that is non-empty, closed, and open in . For openness, use the bound on to prove the better bound there. This "bootstrap" is how bounds on curvature are propagated along a Ricci flow: assume a bound on a time interval, use it to prove a strictly better bound, and conclude that the interval can be extended.
Solution
. is closed: if and , then for every (since for some ), and at by continuity. is open in : if , then on we have , so by the mean value theorem. Since and is continuous, on for some , so . As is connected, , and the argument just given shows for all .
© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.