# Connected space

In topology and related branches of mathematics, a connected space is a topological space which cannot be written as the disjoint union of two or more nonempty spaces. Connectedness is one of the principal topological properties that is used to distinguish topological spaces. A stronger notion is that of a path-connected space, which is a space where any two points can be joined by a path.

It is usually easy to think about what is not connected. A simple example would be a space consisting of two rectangles, each of which is a space and not adjoined to the other. The space is not connected since two rectangles are disjoin. Another good example is a space with an annulus removed. The space is not connected since you cannot connect two points, one inside the annulus and the other outside; hence the term "connect".

Also, in a sense, a connected space is a generalization of an interval on the real number line, just as a topological space is, so to speak, an attempt to generalize an interval.

## Formal definition

A topological space X is said to be disconnected if it is the union of two disjoint nonempty open sets. Otherwise, X is said to be connected. A subset of a topological space is said to be connected if it is connected under its subspace topology. Some authors specifically exclude the empty set with its unique topology as a connected space, but this encyclopedia does not follow that practice.

For a topological space X the following conditions are equivalent:

1. X is connected.
2. X cannot be divided into two disjoint nonempty closed sets (This follows since the complement of an open set is closed).
3. The only sets which are both open and closed (clopen sets) are X and the empty set.
4. The only sets with empty boundary are X and the empty set.
5. X cannot be written as the union of two nonempty separated sets.

The maximal nonempty connected subsets of any topological space are called the connected components of the space. The components form a partition of the space (that is, they are disjoint and their union is the whole space). Every component is a closed subset of the original space. The components in general need not be open: the components of the rational numbers, for instance, are the one-point sets. A space in which all components are one-point sets is called totally disconnected. A space X is totally disconnected iff, for any two elements x and y of X, there exist disjoint open neighborhoods U of x and V of y such that X is the union of U and V.

## Path connectedness

The space X is said to be path-connected if for any two points x and y in X there exists a continuous function f from the unit interval [0,1] to X with f(0) = x and f(1) = y. (This function is called a path from x to y.)

Every path-connected space is connected. Example of connected spaces that are not path-connected include the extended long line L* and the topologist's sine curve.

However, subsets of the real line R are connected if and only if they are path-connected; these subsets are the intervals of R. Also, open subsets of Rn or Cn are connected if and only if they are path-connected. Additionally, connectedness and path-connectedness are the same for finite topological spaces.

A space X is said to be arc-connected if any two distinct points can be joined by an arc, that is a path f which is a homeomorphism between the unit interval [0,1] and its image f([0,1]). It can be shown any Hausdorff space which is path-connected is also arc-connected. An example of a space which is path-connected but not arc-connected is provided by adding a second copy 0' of 0 to the nonnegative real numbers [0,∞). One endows this set with a partial order by specifying that 0'<a for any positive number a, but leaving 0 and 0' incomparable. One then endows this set with the order topology, that is one takes the open intervals (a,b)={x | a<x<b} and the half-open intervals [0,a)={x | 0≤x<a}, [0',a)={x | 0'≤x<a} as a base for the topology. The resulting space is a T1 space but not a Hausdorff space. Clearly 0 and 0' can be connected by a path but not by an arc in this space.

## Local connectedness

A topological space is said to be locally connected if it has a base of connected sets. It can be shown that a space X is locally connected if and only if every component of every open set of X is open. The topologist's sine curve shown above is an example of a connected space that is not locally connected.

Similarly, a topological space is said to be locally path-connected if it has a base of path-connected sets. An open subset of a locally path-connected space is connected if and only if it is path-connected. This generalizes the earlier statement about Rn and Cn, each of which is locally path-connected. More generally, any topological manifold is locally path-connected.

## Theorems

• Main theorem: Let X and Y be topological spaces and let f : XY be a continuous function. If X is connected (resp. path-connected) then the image f(X) is connected (resp. path-connected). The intermediate value theorem can be considered as a special case of this result.
• If $\displaystyle \{A_1, A_2,\ldots\}$ is a family of connected subsets of a topological space X such that $\displaystyle A_i \cap A_{i+1}$ is nonempty for all i, then $\displaystyle \cup A_i$ is also connected.
• If $\displaystyle \{A_\alpha\}$ is a nonempty family of connected subsets of a topological space X such that $\displaystyle \cap A_\alpha$ is nonempty, then $\displaystyle \cup A_\alpha$ is also connected.
• Every path-connected space is connected.
• Every locally path-connected space is locally connected.
• A locally path-connected space is path-connected iff it is connected.
• The connected components of a space are disjoint unions of the path-connected components.
• The components of a locally connected space are open (and closed).
• The closure of a connected subset is connected.
• Every quotient of a connected (resp. path-connected) space is connected (resp. path-connected).
• Every product of a family of connected (resp. path-connected) spaces is connected (resp. path-connected).
• Every open subset of a locally connected (resp. locally path-connected) space is locally connected (resp. locally path-connected).
• Every manifold is locally path-connected.