Question:
Prove $\lim\limits_{x\to 1} \frac{x^2}{x^2 + 1} = \frac12$ using $\delta$-$\varepsilon$ method.
Source:
I recently came across this post and I am a beginner in understanding $\delta$-$\varepsilon$ proofs. I searched on Google to learn about proving limits using the definition and carefully reviewed several illustrative examples.
Now, in order to ensure my comprehension, I am presenting my solution below and kindly requesting assistance in identifying any mistakes I may have made.
Proof:
Definition: The limit $\lim\limits_{x\to a} f(x) = L$ if for all $\varepsilon > 0$ there exists $\delta > 0$ such that $|f(x) - L| < \varepsilon $ when $0 < |x - a| < \delta$. i.e. we need to prove that, \begin{align} &\left|\frac{x^2}{x^2 + 1} - \frac12\right| < \varepsilon\ {\text{when}} \ 0 < |x-1| < \delta .\\ {\text{or}}& \ \left|\frac{2x^2 -x^2 - 1 }{2(x^2 + 1)} \right| < \varepsilon\ {\text{when}} \ 0 < |x-1| < \delta .\\ {\text{or}}& \ \left|\frac{x^2 - 1 }{2(x^2 + 1)} \right| < \varepsilon\ {\text{when}} \ 0 < |x-1| < \delta .\\ {\text{or}}& \ \left|\frac{(x+1)(x-1)}{(x^2 + 1)} \right| < 2\varepsilon\ {\text{when}} \ 0 < |x-1| < \delta .\\ {\text{or}} &\ \frac{(x+1)}{(x^2 + 1)}|x-1| < 2\varepsilon\ {\text{when}} \ 0 < |x-1| < \delta .\\ \end{align}
We know that $\dfrac{(x+1)}{(x^2 + 1)} \le 1$.
So we just have to show that, $|x-1| < 2\varepsilon $ when $0 < |x- 1| < \delta$ which is true when $\delta = 2 \varepsilon$.
Thus the limit is proved.
In one of the answer by @NinadMunshi in the above linked post, they chose $\delta = \varepsilon$. Does that mean my work is wrong?