TITLE: Show that $f(x)=x^2$ is continuous at $a=2$ using the $\delta-\epsilon$ definition of continuity.
QUESTION [6 upvotes]: So we want to find a $\delta>0$
  such that for all $2-\delta<x<2+\delta$
 , we will have $4-\epsilon<x^{2}<4+\epsilon$ for all $\epsilon>0$
 . If we can find a way to express $\delta$  as a function $\delta (\epsilon)$,  $\delta:\mathbb{R}_+ \to \mathbb{R}_+ $ then we will have solved the problem. But I can't see how to relate $\epsilon$ to $\delta$ in this case.
My initial reaction is write $(2-\delta)^2<x^2<(2+\delta)^2$, this makes the two inequalities look related, but I am not sure where to go from here.

REPLY [4 votes]: Another approach would be to obtain two estimates one for $|x-2|$ and another for $|x + 2|$.
For instance, we want to find $\delta$ such that if $|x - 2 | < \delta \implies |x^2 - 4 | < \epsilon$.
First, suppose $|x - 2 | < 1$, and now using the triangle inequality
$$ | x + 2 | = |x + 4 - 2| \leq |x -2| + 4 < 5 $$
$$ \therefore |x^2 - 4| = |x-2||x+2| < 5 \delta. $$
To make the above estimate less that your $\epsilon$, it should be obvious that we msut choose $ \delta' = \frac{\epsilon}{5}$. But we already took $\delta = 1$ to obtain the bound for $|x + 2 |$. Therefore, $\delta = \min\{1, \delta'\}$.