This is for homework and I am wondering if my argument is correct.
Let $f :X \to Y$ be a continuous function. Show that $f({\overline{E}}) \subseteq \overline{f(E)}$ for any subset $E\subseteq X$. Give an example to show that the inclusion could be proper.\ If $E$ is closed then clearly the above is true. Instead suppose that $E$ is not closed. WTS for an arbitrary $y\in f(\overline{E})$, $y\in \overline{f(E)}$. Since $f$ is continuous $f(\overline{E})$ is closed. Suppose that $y\in f(\overline{E})^o$ (the interior of $f(\overline{E})$). Then $y\in f(E)$ and therefore also $y\in\overline{f(E)}$. Therefore $f(\overline{E}) \subseteq \overline{f(E)}$. Suppose that $y\in f(\overline{E})'$ (the set of limit points of $f(\overline{E})$). Then for some $x\in \overline{E}, f(x) = y$. This then means that for some $x\in E', f(x) = y\in f(E)'$ since $f$ is continuous. Therefore $y\in \overline{f(E)}$, and thus $f(\overline{E}) \subseteq \overline{f(E)}$.\
Any critiques would be greatly appreciated.