Let $f$ be a function $f:\mathbb{R}\to \mathbb{R}$ and $f(x)=x^2.$ Prove that $f$ is continuous on all of $\mathbb{R}$.
I tried this:
Let $\epsilon >0$ and assume $\mid x-x_0\mid < \delta$ for some $\delta$ and $\forall x_0 \in \mathbb{R}.$ Then $$\mid f(x)-f(x_0) \mid=\mid x^2-x_0^2 \mid=\mid x-x_0\mid \mid x+x_0\mid <\delta \mid x+x_0\mid$$
Since the last term depends on $\delta,$ I can reduce it to any $\epsilon.$ Hence, $f$ is continuous on $\mathbb{R}$.
Does this look right? I think it might fail because I don't think I can choose any old $\delta.$ Is there a way to find an exact $\delta$ that guarantee $\mid f(x)-f(x_0) \mid < \epsilon$?