An example of uniform convergence on compact sets but not uniform convergence?

997 Views Asked by At

As the title suggests, I want to find an example where a sequence of continuous functions $\{f_n\}$ converges uniformly on compact sets to a continuous function $f$, and yet the convergence is not uniform over the whole domain. Thank you in advance!

2

There are 2 best solutions below

0
On

$x^n$ on $[0,1)$: the compact subsets are contained in $[0,r]$ for some $r<1$.

Other examples are power series with infinite radius of convergence.

0
On

Take $f_n:(0,1)\to \mathbb R$, with $f(x)=x^n$.