I wanted to know if there's anything wrong with my proof below.
$f(x)=x^2$ and let $c$ be an arbitrary constant.
$\mathbf1.$ First, $0<|x-c|<\delta$
Now, $|x^2-c^2|=|x+c||x-c|\le(|x|+|c|)|x-c|<\epsilon\Rightarrow|x-c|<{\epsilon\over|x|+|c|}\le{\epsilon\over|x|}\Rightarrow|x-c|<{\epsilon\over|x|}$
So we have $\delta={\epsilon\over|x|}$ that satisfies the necessary condition: if $0<|x-c|<\delta$ then $|f(x)-f(c)|=|x^2-c^2|<\epsilon$
$c$ was arbitrary, so we can see that $f(x)$ is continuous, except not necessarily at $x=0$.
We need to make sure that $f(x)=x^2$ is continuous at $x=0$, since in the previous section, we can't have $|x|=0$.
$\mathbf2.$ For $x=0$,
$0<|x-0|<\delta\Rightarrow|x|<\delta$ , and
$|x^2-0|=|x^2|=(|x|)^2<\epsilon\Rightarrow|x|<\sqrt\epsilon$
So we have $\delta=\sqrt\epsilon$ , and thus we can see that $f(x)=x^2$ is continuous at $x=0$ as well.
From conclusions drawn at the end of $\mathbf1$ and $\mathbf2$, we have shown that $f(x)$ is continuous on $x\in\mathbb R$
I just started learning about $\epsilon-\delta$. If you spot any error(s), please let me know how to correct them. Thanks!
First error: $0<|x-c|<\delta$. You wrote that $c$ is “an arbitrary constant”. But what is $x$? And what is $\delta$?
Second error: you write that $(|x|+|c|)|x-c|<\epsilon$. What is $\epsilon$?