I am studying continuity and in the textbook I follow is given an example with function $x^2$ to be continuous at $x_0=3$. This is how it is explained in the textbook:
Some arithmetic converts this to $$|x^2-9|= |x − 3| |x + 3| \,\,.$$ If we insist that $|x − 3| < \frac{\varepsilon}{M}$, where M is bigger than any value of $|x + 3|$, then we will have
$$|x^2-9| < \varepsilon $$
exactly as we need. But just how big might $|x + 3|$ be? If we remember that we are interested only in values of $x$ close to $3$ (not huge values of $x$), then this is not too big. For example, if $x$ stays inside $(2, 4)$, then $|x + 3| < 7$. These are enough computations to allow us to write up a proof. Let $\varepsilon > 0$. Let $\delta = \frac{\varepsilon}{7}$ or $\delta = 1$, whichever is smaller (i.e., $\delta$ = min{$\frac{\varepsilon}{7}, 1$}). Then if $|x − 3| < \delta$ it follows that $|x + 3| = |x − 3 + 6| ≤ |x − 3| + 6 < 7$ and hence that
$$|x^2-9| = |x − 3| |x + 3| < 7 |x − 3| < 7(\varepsilon/7) = \varepsilon.$$
The thing I don't understand is: why is the assumption made that $x$ stays in the interval $(2,4)$? What if $x$ does not stay in this interval? Will the choice of $\delta$ as $\min\{\frac{\epsilon}{7},1\}$ still work?