For each $n ∈ \Bbb N$, let $f_{n} (x) = \sqrt{\frac{1}{n^2} +x^2}. $ Show $(f_{n})^{\infty}_{n=0}$ converges uniformly on $\Bbb R$ to $f(x) = |x|$
I'm trying to find the $N$ such that for all $x \in \Bbb R$ and $n > N$, $$\Bigg|\sqrt{\frac{1}{n^2} +x^2} - |x|\Bigg| < \epsilon$$ but I'm struggling with proving convergence for all real $x$. I'v seen that for $x∈ [0,1]$, for $n$ greater than or equal to $1$, $$\Bigg|\sqrt{\frac{1}{n^2} +x^2} - |x|\Bigg|\leq \frac{1}{\sqrt{n}} $$ but I'm unsure of how to generalize. Any help is appreciated!
Note that$$\sqrt{x^2+\frac1{n^2}}-\lvert x\rvert=\frac{\frac1{n^2}}{\sqrt{x^2+\frac1{n^2}}+\lvert x\rvert}.$$Since the numerator is constant and the denominator is positive and increases to $\infty$ when $\lvert x\rvert\to\infty$, the maximum of $\sqrt{x^2+\frac1{n^2}}-\lvert x\rvert$ is attained when $x=0$. And that maximum is $\frac1n$. So$$(\forall x\in\mathbb{R}):\left\lvert\sqrt{x^2+\frac1{n^2}}-\lvert x\rvert\right\rvert\leqslant\frac1n,$$from which the uniform convergence follows.