Given: $f: X → Y, x\in X$, and $f$ is continuous at $x$, $f$ is continuous on $X$.
Prove that $f$ is continuous on $X$ if and only if for each open subset $V$ of $Y$, $f^{-1}(V)$ is an open subset of $X$.
Given: $f: X → Y, x\in X$, and $f$ is continuous at $x$, $f$ is continuous on $X$.
Prove that $f$ is continuous on $X$ if and only if for each open subset $V$ of $Y$, $f^{-1}(V)$ is an open subset of $X$.