I am attempting to solve the following question.
Q. Suppose a metric space $X$ contains a connected dense subset $A$. Show that $X$ is connected.
Here is my attempt at a solution:
A. Assume to the contrary that $X$ is not connected, that is, let $X=U \cup V$ where $U$ and $V$ are two disjoint, non-empty, open sets. Since $A$ is dense, we have that $cl(A)=U \cup V$ and since $X$ is a metric space, then $A \subseteq U \cup V$...
This is where I get stuck. I'd like to show that $A$ is not dense, but I'm not really sure where to go from here. Any help would be appreciated!
Start with $X=U\cup V$ with disjoint open sets $U,V$. Of course also $A\subseteq U\cup V$ and the connectedness of $A$ implies that one of $A\cap U$, $A\cap V$ is empty. Being dense, $A$ intersects every nonempty open set. Hence one of $U, V$ is empty.