[Math] How to show that $f(x) = x^2$ is continuous using topological definition

continuityepsilon-deltageneral-topologyproof-verificationproof-writing

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))$…

Best Answer

Open intervals $(a,b), a < b$ form a base for the topology of $\mathbb{R}$.

What is $f^{-1}[(a,b)] = \left\{x \in \mathbb{R}: x^2 \in (a,b) \right\}$?

If $b \le 0$, then no square is in $(a,b)$ so then $f^{-1}[(a,b)] = \emptyset$, which is open. So assume $b > 0$. Then $x^2 < b$ iff $x \in (-\sqrt{b},\sqrt{b})$. If $a < 0$, the $a$ does not impose an extra condition, as all $x^2 \ge 0 > a$ in that case, so

$f^{-1}[(a,b)] = (-\sqrt{b},\sqrt{b})$ if $b > 0, a < 0$, which is an open interval in $\mathbb{R}$ so open.

Otherwise we also need $x^2 > a \ge 0$, so $x < -\sqrt{a}$ or $x > \sqrt{a}$ respectively.

So then $f^{-1}[(a,b)] = (-\sqrt{b}, -\sqrt{a}) \cup (\sqrt{a},\sqrt{b})$ if $b > a \ge 0$, which is open as the union of two open intervals.

This covers all cases, so $f^{-1}[(a,b)]$ is open for all intervals.

Now if $O$ is open, we can write $O = \bigcup_{i \in I} (a_i,b_i)$, for some family of open intervals $(a_i,b_i), i \in I$, as the intervals form a base. But then

$$f^{-1}[O] = f^{-1}[\bigcup_{i \in I} (a_i,b_i)] = \bigcup_{i \in I} f^{-1}[(a_i,b_i)]$$

by standard properties of $f^{-1}$ and the last set is open as unions of open sets are open, and we have shown that the inverse images of the base sets are open.