Fix , and let be the union of all connected subsets containing . Their union is connected: a separation of the union would place on one side, and every connected member meeting that side would have to lie entirely there. The other side would be empty. By the defining equivalence relation this union is exactly the connected component of .
The closure of a connected set is connected as well. Indeed, if its closure had a separation into relatively open nonempty pieces, density would make both pieces meet the original set and give a separation of that connected set. Therefore is a connected subset containing , so maximality gives . The reverse inclusion is automatic. Every connected component is connected and closed.
The convention in this question counts a point whenever every open neighbourhood meets , without excluding the point itself. These are adherent points, whose set is the closure ; they differ from limit points under the convention that requires a different point of in each neighbourhood.
If is a closed set and , the open set is a neighbourhood of disjoint from . Thus every adherent point lies in . Conversely, if every adherent point lies in , each has an open neighbourhood disjoint from . Their union is , which is open. Hence is closed exactly when it contains all the points specified in the question.
The interior of a set and closure are
The neighbourhood description of the closure follows because failure to be adherent is equivalent to lying in an open set disjoint from .
For closure of a connected set, suppose were a separation into two nonempty relatively open sets. Their intersections with the connected subset would separate unless one intersection were empty. Say . Choose and an open set with and . Since , the set meets , contradicting . Thus the closure of a connected set is connected. The empty-set case holds directly.
A subset is connected if it cannot be written as , where are disjoint, nonempty sets open in the subspace topology on .
If were disconnected as , continuity would make and a disconnection of . Thus the continuous image of a connected space is connected.
For with the discrete topology, a nonconstant continuous gives the disconnection
Conversely, a disconnection defines a continuous nonconstant function by assigning on and on . Hence is connected exactly when every such is constant.
Finally suppose is connected but is a disconnection. The intersections and cannot both be nonempty, so, after interchanging , we have . For any , the relatively open neighbourhood of in is disjoint from , contradicting . Therefore the closure of a connected set is connected.