Connectedness
Let be a topological space. A separation of is a pair of disjoint non-empty open sets whose union is is disconnected if it has a separation and connected otherwise, and a subset is connected if it is connected as a subspace. Equivalently, is connected if and only if the only subsets of that are both open and closed are and
A subset of is connected if and only if it is an interval. The rational numbers are disconnected, since and separate them, and a set with the discrete topology is connected only if it has at most one point. Connected sets have the following properties:
- the closure of a connected set is connected, as is any set between a connected set and its closure;
- the union of connected sets with a common point is connected;
- the product of finitely many connected spaces is connected;
- the continuous image of a connected set is connected.
The last property states that if is continuous and is connected then is connected. Since the connected subsets of are the intervals, a continuous real-valued function on a connected space takes every value between any two of its values, which extends the intermediate value theorem. Connectedness is a topological property, so an interval is not homeomorphic to a circle, which stays connected when a point is removed.
Let The connected component of is the union of all connected subsets of containing which is the largest connected set containing The connected components partition into closed sets, and is connected if and only if it has exactly one component. The components of are its single points.
A path in from to is a continuous function with and is path-connected if any two of its points are joined by a path, and the path component of is the set of points joined to by a path. A subset of that contains the line segment between any two of its points is path-connected by those segments, so balls, intervals and are path-connected, as are spheres and with a point removed when The continuous image of a path-connected set is path-connected.
A path-connected space is connected, since the image of each path is connected and the paths from a fixed point share that point. The converse is false: the topologist’s sine curve, the closure in of the graph of on is connected but no path joins the graph to the segment in its closure. An open connected subset of is path-connected, and any two of its points are joined by a path made of finitely many line segments, so the two notions agree for the open sets on which vector fields are defined.