I am trying to show that simple continuous functions satisfy topological definition of continuity
Recall given $(X, \mathcal{T}), (Y, \mathcal{J}), f$ is continuous if $f^{-1}(V) \in \mathcal{T}, \forall V \in \mathcal{J}$
Then given $f:\mathbb{R} \to \mathbb{R}$ equipped with the usual topology $\mathcal{T}$, we wish to show that $f(x) = x^2$ is continuous $\Leftrightarrow$ show that $f^{-1}(V)$ is open $\forall V \in \mathcal{T}$
Attempt:
Given $f: \mathbb{R} \to \mathbb{R}, x \mapsto x^2$
By $\epsilon-\delta$ definition of continuity, we know that $\forall x \in \mathbb{R}, \forall \epsilon > 0, \exists \delta > 0$, such that $\forall x_o \in \mathbb{R}$ whenever $x \in \mathcal{B}_{\delta}(x_o) \implies f(x) \in \mathcal{B}_{\epsilon}(f(x_o))$
Then given $x_o \in \mathbb{R}, \epsilon >0$, let $V = \mathcal{B}_{\epsilon}(f(x_o))$. Then $x \in f^{-1}(V) = f^{-1}(\mathcal{B}_{\epsilon}(f(x_o)))$
However, since $f$ satisfies $\epsilon-\delta$ version of continuity, $\exists \delta >0$ such that $x \in \mathcal{B}_{\delta}(x_o) \subseteq f^{-1}(V) = f^{-1}(\mathcal{B}_{\epsilon}(f(x_o)))$. This shows $f^{-1}(V)$ is open by definition of open set in $\mathbb{R}$.
End of proof.
can anyone check if this is correct? my main concern is that not all $V$ is of the form $\mathcal{B}_{\epsilon}(f(x_o))$...