Showing $f_n$ does not converge uniformly

If we let $f_n(x)=\frac{x^2+nx}{n}$ for $x\in \mathbb{R}$. I have proved that $f_n$ converges pointwise to $f(x)=x$

Now I am trying to prove that $f_n$ does not converge uniformly on $\mathbb{R}$

$$|f_n(x)-f(x) | = \sup\left|\frac{x^2+nx}{n}-x\right| = \sup \left|\frac {x^2}{n}\right|\rightarrow0$$

• The problem in your last step is that $$\sup_{x\in\Bbb R}\frac{x^2}n$$ is not finite so its limit when $\;n\to\infty\;$ isn't zero, as needed to have uniform convergence. – DonAntonio Feb 16 '17 at 23:16
• so this solution and logic is incorrect? – user284 Feb 16 '17 at 23:17
• @DonAntonio how is limit not 0? – user284 Feb 16 '17 at 23:24
• Before taking the limit you must have the supremum, which is.... There you go!! – DonAntonio Feb 16 '17 at 23:28
• @DonAntonio looking at the answer that has been provided, does my comment to this answer make sense? – user284 Feb 16 '17 at 23:30

Let $\epsilon=1$. Then, for any $n$, we select $x=\sqrt{n}$ and find that
$$\left|\frac{x^2+nx}{n}-x\right|=\left|\frac{x^2}{n}\right|\ge 1$$
• @user284 In your question you put some strange things, like "...using the fact that $\;x^2\rightarrow\sqrt n\;$ " (??), and then some $\;x_n\;$ ...(?). I think the above answer is what you need in the spirit of what you wanted. +1 – DonAntonio Feb 16 '17 at 23:33
• @user284 This is precisely the negation of uniform convergence for $x\in\mathbb{R}$. – Mark Viola Feb 16 '17 at 23:41