Let $X$ and $Y$ be two topological spaces.
Prove that for any $A\subseteq X$, $f(\overline{A})\subseteq\overline{f(A)}$ , if and only if $f: X \to Y$ is continuous.
I am stuck on the converse. Suppose $f: X \to Y$ is continuous. Then for every closed set C in Y, $f^{-1}(C)$ is closed in X.
WTS for any $A\subseteq X$, $f(\overline{A})\subseteq\overline{f(A)}$.
Since $\overline{f(A)}$ is a closed set in Y, $f^{-1} \circ \overline{f(A)}$ = $ \overline{ f^{-1} \circ \overline{f(A)} }$
Also, $f(\overline{A}) \subseteq \overline{ f(\overline{A})}$