I want to show that $f_n(x)=\frac{x^2}{x^2+n}$ does not converge uniformly on $\mathbb{R}$, but it converges uniformly on any bounded subset $E\subseteq \mathbb{R}$.
First, note that $\displaystyle \lim_{n\rightarrow \infty} \frac{x^2}{x^2+n}=\lim_{n\rightarrow \infty} \frac{x^2/n}{x^2/n+1}=0$, so $f_n \rightarrow 0$ pointwise.
However, $f_n(\sqrt{n})=\frac{n}{2n}=\frac{1}{2},$ and thus, for any $\epsilon \in (0, 1/2)$, $\,$ $\displaystyle\sup_{x\in \mathbb{R}} |f_n(x)|\geq 1/2$, so $f_n$ cannot converge uniformly to $0$.
I am having trouble showing that $f_n$ converges uniformly on any bounded subset subset $E\subseteq \mathbb{R}$. If I take the derivative of $f_n$ I obtain
$f_n'(x)=\frac{2x(x^2+n)-x^2(2x)}{(x^2+n)^2}=\frac{2xn}{(x^2+n)^2}$. The derivative equals zero when $x=0$, but negative for any $x<0$ and positive for any $x>0$. This means that $f_n$ is decreasing for all $x<0$ and increasing for all $x>0$. How can this mean it converges uniformly to zero? Help! Thank you!!