Prove that $f(x)= x^2$ is continuous using $(\varepsilon,\delta)$.
I need to show that $|f(x)-f(y)| = |x^2-y^2| < \varepsilon$ whenever $|x-y|< \delta$. Now $$|x^2-y^2|=|x-y||x+y| \leqslant |x+y|\delta$$
If I assume that $\delta =1$ I have that $|x-y|<1 \implies -1<x-y<1 \implies -1+2y<x+y<1+2y$ so $$|x^2-y^2|\leqslant (1+2y)\delta.$$ So letting $\varepsilon>0$ and pick $\delta = \frac{\varepsilon}{1+2y}$ I have that $$|f(x)-f(y)|=|x^2-y^²|=|x-y||x+y| <(1+2y)\delta = (1+2y)\frac{\varepsilon}{1+2y} = \varepsilon.$$
My question is that how can I make the assumption that $\delta = 1$? This doesn't seem intuitive to me at all. It seems that often times when doing $(\varepsilon, \delta)$ I have to manipulate $\delta$ to control some leftover term. Same thing with proving for example that $\lim_{x\to2} x^2 = 4$. I have $$|x^2-4|=|x-2||x+2|$$ and would have to do pretty much same thing here to control $|x+2|$.