TITLE: Family of connected sets, proving union is connected
QUESTION [8 upvotes]: I am having some trouble trying to prove the following statement:$$$$
Let $(X,d)$ be a metric space and $\mathcal A$ a family of connected sets in $X$ such that for every pair of subsets $A,B \in \mathcal A$ there exist $A_0$,...,$A_n \in \mathcal A$ that satisfy $A_0=A$, $A_n=B$ and $A_i \cap A_{i+1} \neq \emptyset$ for every i=0,...,n-1. Prove that $\bigcup_{A \in \mathcal A}A$ is connected.
$$$$I've tried to prove it by the absurd: Suppose the union is disconnected, then there exist $U$ and $V$ nonempty disjoint open sets such that $\bigcup_{A \in \mathcal A}A=U \cup V$. Then, there is $A \in \bigcup_{A \in \mathcal A}A$ : $A \subset V$ and $A \cap V=\emptyset$. The same argument applies for $B \in \bigcup_{A \in \mathcal A}A$ with $B \subset U$ ($A$ and $B$ both nonempty). By hypothesis, $A=A_0$ and $B=A_n$. In this part I got stuck. I know I have to use the fact that the intersection of $A_i$ and $A_{i+1}$ is nonempty and that all the sets in $\mathcal A$ are connected, but I don't know where to use that.

REPLY [2 votes]: As in your setup, start from $\bigcup_{A\in\mathcal A}\subseteq U\cup V$ with $U,V$ open and disjoint. Each $A$ is connected, hence is either a subset of $U$ or of $V$. Assume $A\subseteq U$ for some $A$. Pick $B\in \mathcal A$ and a chain $A_i,\ldots, A_n$ as in the condition. 
By induction, $A_i\subseteq U$ for all $i$.
Indeed, this holds for $i=0$ and from $\emptyset \ne A_{i+1}\cap A_i\subseteq U$ we conclude that $A_{i+1}$ intersects $U$ and by connectedness is a subset of $U$.
Thus ultimately $B=A_n\subseteq U$.
Since $B$ was arbitrary, $\bigcup_{A\in\mathcal A}A\subseteq U$ and $V\cap \bigcup_{A\in\mathcal A}A=\emptyset$. Therefore $\bigcup_{A\in\mathcal A}A$ is connected.