Is there a series of functions $\sum (-1)^n u_n(x)$ that is convergent for Leibniz rule (alternating series test) in some interval but it is not uniformly convergent?
In particular the series must be (for using Leibniz rule)
- positive $(u_n(x) \geq 0)$
- decreasing $(u_{n+1}(x)\leq u_n(x))$
- such that $\lim_{n \to \infty} u_n(x)=0$
Edit: I refer to the following definition: a series of function is uniformly convergent in a subset $S$ if
$$\lim_{n \to \infty} \sup_{x \in S} |\sum_{n \geq 0} u_n(x) -\sum_{n=0}^{N} u_n(x)| =0$$
Let $$u_n(x)=\frac{x^n}{n}, \quad n\in\mathbb N.$$ Then $u_n: [0,1]\to\mathbb R$ is a decreasing sequence of non-negative functions.
Clearly $$ \sum_{n=1}^\infty u_n(1)=\sum_{n=1}^\infty\frac{1}{n}=\infty, $$ while $$ \sum_{n=0}^\infty (-1)^nu_n(x)=\sum_{n=0}^\infty \frac{(-1)^nx^n}{n}=-\log(1+x), \quad\text{for all $x\in [0,1]$.} $$ In fact, $$ \sum_{k=0}^n (-1)^ku_k(x)=-\log(1+x)-\frac{(-1)^{n+1}\xi^{n+1}}{n+1}, \quad \text{for some $\xi\in (0,x)$}, $$ and thus $$ \bigg|\sum_{k=0}^n (-1)^ku_k(x)+\log(1+x)\,\bigg|\le\frac{1}{n+1}, \quad \text{for all $x\in [0,1]$}, $$ i.e., the series $\,\sum (-1)^nu_n\,$ converges uniformly in $[0,1]$.
Note. That the advantage of this example is that $[0,1]$ is compact.