I know the most common proof of $\lim_{x\rightarrow c}x^2=c^2$. But I wonder if my alternative proof is valid and correct. Here's my proof.
Let $\varepsilon>0$, want to find a $\delta>0$ such that $\forall x\in\mathbb{R},0<|x-c|<\delta\Rightarrow |x^2-c^2|<\varepsilon$
For the convenience for observation, suppose that $0<|x-c|<\square$, we want to find out which $\square$ is ok, and then know what $\delta$ to pick. Since $|x^2-c^2|<\varepsilon\Leftrightarrow |x+c||x-c|<\varepsilon$ and
\begin{alignat*}{3} &0<|x-c|<\square\\ \Longleftrightarrow &c-\square<x<c+\square&(except\ x=c)\\ \Longleftrightarrow &2c-\square<x+c<2c+\square\qquad&(except\ x=c)\\ \Longrightarrow &|x+c|< |2c|+\square \end{alignat*}
So we see that if we want $|x+c||x-c|<(|2c|+\square)\square<\varepsilon$ to be true, we need to solve a positive solution of the quadratic inequality $\square^2+|2c|\square-\varepsilon<0$, by the relationship between roots and coefficient, we know $\square^2+|2c|\square-\varepsilon=0$ has exactly one positive and one negative root. Hence the solution of the prior inequality is $(-c-\sqrt{c^2+\varepsilon},-c+\sqrt{c^2+\varepsilon})$, where the right endpoint is positive. Thus, we pick $\delta=-c+\sqrt{c^2+\varepsilon}$ to complete the proof.