Let $X$ and $Y$ be topological spaces; let $f:X\to Y$. Then the following are equivalent:
(1) $f$ is continuous
(2) for every subset $A$ of $X$, one has $f(\overline{A}) \subseteq \overline{f(A)}$.
(3) for every closed set $B$ of $Y$, the set $f^{-1}(B)$ is closed in $X$.
(4) for each $x\in X$ and every neighbourhood $V$ of $f(x)$, there is a neighbourhood $U$ of $x$ such that $f(U)\subseteq V$.
Now there are lots of way to prove this theorem, like $(1)\Rightarrow (2)\Rightarrow (3)\Rightarrow (4) \Rightarrow (1)$, I think this is the least number of implication needed to prove this theorem(Note I’m not saying it is the most easiest way to do it) and $(1)\Leftrightarrow (2)$, $(1) \Leftrightarrow (3)$, $(1)\Leftrightarrow (4)$, this is maybe the most number of implication needed to prove this theorem. You would agree proof of this $(1)\Leftrightarrow (3)$ is trivial/easy and $(1)\Leftrightarrow (4)$ is decent exercise. We have already show $(1)\Rightarrow (2)$. How do we show $(2)\Rightarrow (1)$?
Can we use the similar approach as in the proof of $(2)\Rightarrow (3)$? i.e. let $V\in \mathcal{T}_{Y}$. We need to show $X-f^{-1} (V)$ is closed in $X$. Put $A= X-f^{-1} (V)$. Let $x\in \overline{A}$. So $f(x)\in f(\overline{A})\subseteq \overline{f(A)}$. $f(A) \supseteq f(X) - V= Y- V$. Thus $Y-V \subseteq \overline{f(A)} $. Here I’m stuck.