I am trying to prove that if $X$ is a connected subset of a metric space $M$, then $\bar{X}$ is connected as well, that is, the closure of $X$ is connected.
My proof:
I will do a proof by contradiction. Suppose that $\bar{X}$ is disconnected. Then, there exist open set $U,V \subset \bar{X}$ which are relatively open in $X$, non empty and disjoint. Now, $U' = U \cap X$ and $V' = V \cap X$ are relatively open in $X$. Now, I was told by my book that to obtain the contradiction, we would like to show that $U', V'$ are both non-empty. I do not understand why showing $U', V'$ are both non-empty will lead to a contradiction. Anyone know? Thank you!