Let $A$ and $B$ be disjoint closed subsets of a metric space $(X,d)$. Give a direct proof for the existence of disjoint open subsets $U_a$ and $U_b$ of $X$ such that $A \subset U_a$ and $B \subset U_b$.
My approach: I found this problem a bit trivial, but maybe I was wrong. Since $A$ and $B$ are disjoint closed subsets, there must exist a set of points $\left\{x_1,...,x_n\right\}$ that do not belong to both $A$ and $B$. Take $U_a = A\cup \left\{x_1, x_2, x_3\right\}$ and $U_b = B\cup \left\{x_4,x_5,...x_n\right\}$ such that for each $x_i$ in $U_a$ or $U_b$, exist some $\epsilon>0$ that contains the open ball $B_{\epsilon}(x_i)$. So $U_a$ and $U_b$ are open and disjoint (Q.E.D)
Counterexample: the graph of $f(x)=1/x$ for $x>0$ and the line $x=0$ in $\mathbb R^2$.
– Ian Coley Oct 01 '14 at 17:06