© 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.
In this chapter · 8 sections
- 4.1A grid that falls apart
- 4.2Connected spaces
- 4.2.1The intermediate value theorem, reborn
- 4.2.2What the intermediate value theorem can do
- 4.2.3The open-and-closed argument
- 4.3Path-connected spaces
- 4.3.1Paths in spaces of matrices
- 4.4Connected components
- 4.5Connectedness as an invariant
- 4.6Topological spaces, briefly
- 4.7History
- 4.8Exercises
- ↗Free resources
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.12 The Poincaré Conjecture, Precisely). The ideas are simpler than those of the last three chapters, but they are used constantly, and the intermediate value theorem in particular turns out to prove far more than it seems to: two opposite points of the equator with the same temperature, one straight cut that halves two pancakes, and the fact that no curve can fill a square without crossing itself.
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, glue paths with the pasting lemma, and explain why the converse fails;
- show that products of connected spaces are connected, and that every open subset of is a countable disjoint union of open intervals;
- 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 .
It helps to say the definition without the word "open". Call two sets and separated if neither contains a point of the closure of the other: no point of is a limit of points of , and vice versa. Then a space is disconnected exactly when it is the union of two non-empty separated sets. (If with and open, disjoint and non-empty, then and are also closed, so each is its own closure and misses the other. Conversely, if with and separated, then the closure of in misses , so it is itself, and is closed; likewise , and each is the complement of the other, so both are open.)
The reformulation shows what the definition is testing. The pieces and are disjoint, but they are not separated, because , a point of the second, is a limit of points of the first; and their union is connected. The pieces and are separated, because the point where they would touch belongs to neither; and their union is disconnected. Being disjoint is not enough to fall apart. The pieces must not even touch in the limit.
Connectedness is not about how a set is drawn but about whether it can be split into separated pieces. A set can look like two pieces and be connected, as the topologist's sine curve below does, because one piece touches the other in the limit. And a set can look like one solid piece and be totally disconnected, as the rationals and the Cantor set below are, because holes too small to see run through it everywhere. When in doubt, look for a continuous function to that takes both values, or prove that none exists.
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.1 Metric Spaces), 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.8 Smooth Topology).
What the intermediate value theorem can do
The theorem looks modest, but applied to the right function on the right connected space it proves things that do not look like the intermediate value theorem at all. The trick, every time, is to find a continuous real function whose zeros are the thing we want, and to show that it takes both signs.
At any moment there are two diametrically opposite points on the equator with exactly the same temperature (assuming, as a model, that temperature varies continuously).
Parametrise the equator by the angle , write for the temperature, and let
the difference between a point and its opposite. Then is continuous, and . So either , and we are done, or and have opposite signs, and the intermediate value theorem on gives a with .
The key was the symmetry , which forces a sign change without knowing anything about the weather. The two-dimensional version, that at any moment there are two antipodal points on the whole Earth with the same temperature and the same pressure, is the Borsuk–Ulam theorem (Karol Borsuk, 1933). It needs a map to , where "takes both signs" means nothing, and its proof needs the topology of Book 7A.
One region. Let be a bounded region in the plane and a direction. The line moves across the plane as increases, and the area of the part of on the side is a continuous function of : moving the line by changes the area by at most times the width of . For very negative , ; for very positive , is the whole area. So some has equal to half the area. Every region can be cut in half by a straight line in any prescribed direction.
Two regions. Now let and be two bounded connected open regions, two pancakes on a plate. For each direction , let be the line perpendicular to that halves , with pointing to its "positive" side; because is connected and open, the halving line is unique, and one checks that it moves continuously with . Let
Turning the direction through gives the same line with its sides swapped, so , and exactly as before has a zero. A single straight cut halves both pancakes. This is the two-dimensional case of the ham sandwich theorem, which in three dimensions says that one plane can halve a piece of bread, a slice of ham and a piece of cheese at once.
The same pattern solves an old puzzle. A walker climbs a mountain path one day, from dawn to dusk, and comes down by the same path the next day, at whatever varying speeds they like. Is there a point of the path that they pass at the same time of day on both days? Let and be the distances along the path at time on the two days. The difference is negative at dawn and positive at dusk, so it vanishes at some moment. (Picture both journeys on the same day: two walkers, one going up and one coming down, must meet.)
The circle. is the image of the connected interval under a continuous map, so it is connected by Theorem 4.3. The same works for any curve that is the continuous image of an interval.
Products. If and are connected, so is (Proposition 4.18 below). So , closed boxes, and the cylinder are connected.
Not connected: a hyperbola. is disconnected: the continuous function takes the values and on it, but never , so by Corollary 4.4 it can't be connected.
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 .
Here is the simplest instance, used constantly.
Let be connected and a function to any set that is locally constant: every point has a ball on which is constant. Then is constant.
Proof. Fix and let . It contains . It is open: if , is constant on some ball around , with value , so the ball lies in . Its complement is open by the same argument: if , then takes the value on a ball around , which therefore misses . So is clopen and nonempty, and .
A continuous function with values in is locally constant (take in the definition of continuity: nearby values differ by less than , so they are equal), which gives the integer-valued statement above a second proof.
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.7 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.8 Nonlinear Parabolic Equations). Exercise 4.34 is a rehearsal.
Why openness is usually the hard part. In the three steps of the method, they are rarely equally difficult. Non-emptiness is a starting point, often trivial: the equation at time zero, or an easy case. Closedness is a statement about limits, and usually follows from continuity, because the property is typically an equation or a non-strict inequality, and those survive limits. Openness is the real content: it says that if the property holds at one point, it survives a small change. That is a perturbation statement, and the standard tool for perturbation statements is the inverse function theorem (2B.9 The Inverse and Implicit Function Theorems): if you can solve an equation and its linearisation is invertible, you can still solve it after a small change. The continuity method of PDE pairs the two in exactly this way. Openness comes from the implicit function theorem on a space of functions, and closedness comes from a-priori estimates, bounds on solutions that hold however far along the deformation one has gone, which let a limit of solutions be a solution. Shing-Tung Yau's solution of the Calabi conjecture, announced in 1976, is the famous example, and the difficulty was all in the estimates.
A bootstrap is an open-and-closed argument. The rehearsal at the end of this chapter has a shape worth naming now, because it recurs constantly in geometric analysis. To prove a bound for all times, assume a weaker bound on an interval, use it to prove the stronger bound there, and conclude that the set of times where the weaker bound holds is open as well as closed. The gap between and is what makes openness work: a strict improvement leaves room for continuity to carry the weaker bound a little further.
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.
Paths can be joined end to end, and the proof that the result is a path is a small lemma used again for homotopies in 7A.4 The Fundamental Group.
If is a path from to and a path from to , then
is a path from to .
Proof. The two formulas agree at , where both give , so is well defined. It is continuous at every , because near such a it is given by one formula, a composition of continuous maps. At : given , continuity of each formula at gives (for ) and (for ) with when on the corresponding side. Then works on both sides.
So " and are joined by a path in " is an equivalence relation: reflexive (the constant path), symmetric (run a path backwards, ), and transitive (paste). Its classes are the path components of . Each path component is path-connected, hence connected, so it lies inside a single connected component.
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.10 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.26).
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.
The proof of Proposition 4.13 used only one property of open subsets of : every point has a small neighbourhood that is path-connected (a ball). That property has a name, because manifolds have it too.
A metric space is locally path-connected if every point has arbitrarily small path-connected neighbourhoods: for each and each there is an open set , with , that is path-connected.
In a locally path-connected space, the path components are open, and they coincide with the connected components. In particular, a connected, locally path-connected space is path-connected.
Proof. Let be a path component and . Some path-connected open contains ; every point of is joined to by a path in , so . Hence is open. The complement of is a union of other path components, each open, so is also closed. A path component is connected, and it is clopen, so it is a connected component: inside the connected component containing it, is non-empty and clopen, so .
Every manifold is locally path-connected, since every point has a neighbourhood homeomorphic to a ball of (7A.3 Manifolds and Surfaces, 8A.1 Smooth Structures). So for manifolds, connected and path-connected mean the same thing, and the topologist's sine curve, which is not locally path-connected at the points of its segment, is the kind of space a manifold can never be.
Paths in spaces of matrices
Paths make sense in any metric space, including spaces of matrices, and there they answer questions about deforming one linear map into another. Exercise Exercise 4.29 shows that the invertible matrices fall into at least two pieces, by the sign of the determinant. Here is the proof that there are exactly two.
The set of real matrices with positive determinant is path-connected. Hence has exactly two components, and .
Proof. Step 1: the rotations are path-connected. By the normal form of orthogonal matrices from linear algebra, every is, in a suitable orthonormal basis, block diagonal with rotation blocks and diagonal entries , with an even number of 's since . Pair the 's into blocks, each a rotation by . Then replacing every angle by , for from to , gives a path of rotations from to .
Step 2: straighten the rest. Gram–Schmidt applied to the columns of writes with orthogonal and upper triangular with positive diagonal entries (the QR decomposition). Since and , , so . The upper triangular matrices with positive diagonal form a convex set, so stays inside it, and is a path in from to . Follow it by a path from to in , by step 1, and paste (Lemma 4.11).
Step 3: the negative part. Multiplying by a fixed reflection is a homeomorphism from onto , so the latter is path-connected too. The two sets are separated by the sign of , so they are the components.
Read physically, the proposition says that two bases of space can be deformed into each other, through bases, exactly when they have the same handedness. A left glove can be turned into any other left glove by moving and stretching, but never into a right glove, however it is twisted, without passing through a flattened, degenerate state. That is what orientation is (8A.8 Differential Forms and Stokes’ Theorem), and the two components of are the two orientations. The same argument with complex matrices has no sign to preserve, and indeed is connected.
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 .
If and are connected, then is connected (with any of the product metrics of 2B.3 Compactness).
Proof. Each horizontal slice is the image of under the continuous map , so it is connected; likewise each vertical slice . Fix and . For each , the set is a union of two connected sets sharing the point , so it is connected by Proposition 4.17. All the contain , and their union is (any lies in ). By Proposition 4.17 again, is connected.
The connected component of a point is the union of all connected subsets of that contain . By Proposition 4.17 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.26). They need not be open: each point of is its own component.
A space in which every component is a single point is totally disconnected. The rationals are one example, and they are full of holes. Here is a more surprising one, a complete and even compact space that is still totally disconnected.
Start with . Remove the open middle third to get ; remove the open middle thirds of those two intervals to get , four intervals of length ; and so on. The Cantor set is . It is closed, as an intersection of closed sets, and bounded, so it is compact (2B.3 Compactness); it is non-empty, containing , and every endpoint ever created. In base , it consists exactly of the numbers in that can be written using only the digits and , and since such digit strings are in bijection with the binary strings (replace each by ), is uncountable (2A.8 Infinite Sets).
Yet every component of is a single point. Take in . Choose with ; the intervals of have length , so and lie in different intervals of , with a removed gap between them. A number in that gap is not in , and and split into two open pieces separating from . So no connected subset of contains two points.
The Cantor set is compact, uncountable and has no isolated points, and still it is dust. It shows that "in one piece" and "large" are independent properties. It also has total length zero, since the removed intervals have total length , a fact that returns when length is made precise in 3A.2 Lebesgue Measure.
For open subsets of , though, components are open, and on the line that gives a complete description of every open set.
Every open subset of is a union of countably many pairwise disjoint open intervals (some possibly unbounded), namely its connected components.
Proof. Let be a component of . It is a connected subset of , so it is an interval (Theorem 4.2). It is open: if , some interval lies in ; it is connected and contains , so it lies in the component of , which is . An open interval-shaped subset of is an open interval. Distinct components are disjoint, and each contains a rational number (density, 2A.4 The Real Numbers). Choosing one rational in each, by a rule such as the first rational of a fixed listing of that lies in it (2A.8 Infinite Sets), gives an injection from the set of components into . So there are countably many.
This gives every open subset of a natural length: the sum of the lengths of its component intervals. Lebesgue measure (3A.2 Lebesgue Measure) measures sets by covering them with countably many intervals or boxes, and for an open subset of the line the theorem says the best such cover is the set's own components. In there is no such simple description (components of open sets can have any shape), which is one reason measure in higher dimensions is built from boxes.
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.
There is a second way to count components of a network, by linear algebra, and it is the open-and-closed argument once more, in disguise.
Let be a finite graph with vertices , and define, for a function on the vertices,
where is the graph Laplacian: is the number of edges at , if is an edge, and otherwise. Then the number of connected components of equals the dimension of the kernel of , which is the number of eigenvalues of equal to .
Proof. is symmetric with , so exactly when . (If then minimises the non-negative quadratic form, so its gradient vanishes.) And exactly when across every edge, that is, when is locally constant. As in Proposition 4.8, a locally constant function is constant on each component, and conversely any function constant on each component is locally constant. So the kernel consists of the functions constant on each component, and the indicator functions of the components form a basis of it.
The quantity is a discrete version of the energy that the heat equation decreases (2B.7 Fourier Series and the First Heat Equation), and is a discrete version of . The smallest eigenvalue of is , with the constants as eigenvectors. The proposition says that the second eigenvalue is positive exactly when the graph is connected, and Miroslav Fiedler (1973) proposed it as a measure of how well connected a graph is, its algebraic connectivity: a graph with a small second eigenvalue is nearly disconnected, with a bottleneck that few edges cross. On a connected graph the heat flow smooths every initial temperature towards the average, and the second eigenvalue is the rate, exactly as was the rate for the ring in 2B.7 Fourier Series and the First Heat Equation. Spectral clustering, a standard method in data analysis, splits a data set into groups by computing the eigenvectors for the smallest eigenvalues of such a Laplacian and cutting where they change sign, finding the near-components that the proposition sees exactly in the disconnected case.
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.28). 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.
In 1890 Giuseppe Peano constructed a continuous map from onto the square , a space-filling curve. So continuous images do not respect dimension: an interval can be continuously spread over a square.
But no such curve can be one-to-one. Suppose were a continuous bijection. Since is compact, would be a homeomorphism (2B.3 Compactness, exercise on continuous bijections from compact spaces). Remove the point , which disconnects the interval into and ; then would restrict to a homeomorphism from this disconnected set onto the square minus one point, which is path-connected (go around the missing point) and hence connected. That is impossible. So every space-filling curve passes through some points of the square more than once.
The argument combines the two previous chapters: compactness supplies the continuity of the inverse for free, and connectedness supplies the invariant. Showing that and are not homeomorphic for all , not only for , needs the deeper invariants of Book 7A; it was first proved by L. E. J. Brouwer in 1911.
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.12 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.5 The Prime Decomposition, 12B.9 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.
History
The intermediate value theorem is older than the notion of connectedness by almost a century. Bernard Bolzano proved it in 1817, in a paper whose purpose was to show that the theorem needed a proof at all, rather than an appeal to geometric intuition; his argument used what we would now call the completeness of the real line. Georg Cantor, in 1883, called a set of points connected if any two of its points could be joined by a finite chain of points of the set with arbitrarily small gaps, a definition that works well for compact sets but calls the rationals connected. The modern definition, by splitting into two disjoint open pieces, took shape in the first years of the twentieth century and was made standard by Felix Hausdorff's Grundzüge der Mengenlehre (1914), the book that also named metric spaces (2B.1 Metric Spaces). The topologist's sine curve and similar examples were found as the definitions were being tested, to show that the intuitive notion of being in one piece splits into several inequivalent precise ones.
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.17.
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.8 Smooth Topology.)
Solution
is continuous on the connected space , with and . Its image is an interval containing a non-negative and a non-positive number, so it contains . For the disc, takes values in , not , and the intermediate value theorem has no meaning there: a connected subset of can contain points on "both sides" of the origin without containing it (a circle around the origin). A different invariant, the degree of a map, is needed.
Show that every continuous function that takes only rational values is constant.
Solution
is connected, so it is an interval. An interval with two different points contains an irrational between them (2A.4 The Real Numbers). So the interval is a single point, and is constant.
Show that removing one point from the circle leaves a connected set, and removing two points leaves a disconnected one. Deduce that is not homeomorphic to any interval of .
Solution
minus the point at angle is the image of the interval under , so it is connected. Removing points at angles leaves two arcs, the images of and , each open in what remains, disjoint and nonempty. An interval with more than one point has a non-endpoint whose removal disconnects it, and removing a point from never does; a homeomorphism would carry one situation to the other.
Let , the plane with a closed half-line removed. Is path-connected? What about minus the whole -axis? Find explicit paths, or a continuous function that proves disconnectedness.
Solution
is path-connected: it is star-shaped about , meaning the segment from to any point of stays in (a segment from can only meet the removed half-line at a point with if its far end is on that half-line). Any two points are joined through by pasting two segments. The plane minus the -axis is disconnected: the continuous function is positive on part of it, negative on part, and never .
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 .
Free resources for this chapter
Chosen for what this chapter covers, and all free to read or watch. Links checked Nov 6, 2026.
Read
- Reference Connected spaceWikipediaConnected and path-connected spaces, with the topologist’s sine curve.
- Notes Notes C: Connected Spaces, Compact SpacesMIT OpenCourseWare 18.901 Introduction to Topology (Fall 2004)Connectedness and its invariance under continuous maps.
Watch 3 lectures and talks
- Video Lecture 14: Connected Sets, Cantor SetsFrancis Su, Real Analysis lectures (Harvey Mudd College, 2010)Connected sets, the connected subsets of ℝ, and the Cantor set as a totally disconnected example.
- Video Topology Lecture 18: ConnectednessMarius Furter, Topology lecturesConnectedness in topological spaces, its behaviour under maps, products and quotients, and why the connected subsets of ℝ are exactly the intervals (from 50:50).
- Video Topology Lecture 19: Path-ConnectednessMarius Furter, Topology lecturesPath-connectedness implies connectedness, and a connected space that is not path-connected (from 37:28).
© 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.