Let $X$ be Hausdorff and $A \subset X$. Let $r:X \to A$ be a retraction. Show that $A$ is closed.
Let $x \in X \setminus A$ and let $a=r(x) \in A$, then as $X$ is Hausdorff there exists disjoint neighborhoods $U_x$ and $U_a$ respectively. Now I need to show that I can find an open set around $x$ that's disjoint from $A$ to finish the proof. I don't have the intuition on how to do this. Since the retraction is continuous I have the preimages at my disposal, but I don't know how to use them. Here is a bad sketch I tried to come up of the situation. I have a feeling that it's misleading me.
what sort of preimages I could consider?
