Can you give me an example of a sequence which converges uniformly on $[0,L]$ $L>0$ but not on $[0,\infty]$
I thought about $g_n(x)= \frac{nx^2}{n^3+x^2}$ Since $x \to \infty => g_n \to n$
And $\lim_{n \to \infty}g_n = 0 $ but when $x \to \infty$ And $\lim_{n \to \infty}g_n = \infty $
Which Makes the function $G(x)= \lim_{n \to \infty} g_n$ discontinuous.
Therefore $g_n$ can't be uniformly bounded on $[0, \infty]$
What do you think? I believe I'm making a wrong approach but just wanted to share so I can spot some mistakes, thanks!
1)In your example,
$g_n$ converges point wise to $0$ on every $[0,L]$ where $L \gt 0$. But the sequence $g_n(n) = \frac {n^3}{n^3 + n^2} \to 1.$ Hence $g_n$ is not uniformly convergent on $[0,\infty)$. Also $\sup \{|g_n(x)-0| : 0 \le x \lt L\}= \sup \{ |\frac {nx^2}{n^3 + x^2}| : 0 \le x \lt L\} \le \sup\{ |(\frac xn)^2| : 0 \le x \lt L\}= \frac {L^2}{n^2} \to 0$ Hence $g_n$ is uniformly convergent on $[0,L]$ for $L \gt 0$.
2)As another example, take $g_n(x)=\frac {x}{x+n}$ on $[0,\infty)$.
Then $g_n(x) \to 0$ pointwise for all $x \in [0, \infty)$.
But since $g_n(n) \to \frac 12$, $g_n$ is not uniformly continuous on $[0,\infty)$.
Now take any $L \gt 0$,
Then $\sup \{|g_n(x)-0| : 0 \le x \lt L\} \le \frac {L}{n} \to 0$.
Hence $g_n$ is uniformly convergent on $[0,L]$ for any $L \gt 0$.