Consider the sequence of functions $$f_n:[0,1]\longrightarrow \mathbb{R},\qquad f_n:=(-1)^n(1-x)x^n,\qquad n\geq 0.$$
Show that the series $f(x):=\sum_{n=0}^{\infty}f_n(x)$ converges to $f$ uniformly on $[0,1]$.
I'm having trouble with the proof and looking for help, thanks :)
Using the summation formula of geometric sums, the partial sums are $$ \sum_{k=0}^nf_k(x)=\frac{1-x}{1+x}(1-(-x)^{n+1}). $$ Considering the cases $0\leq x<1$ and $x=1$ separately, we see that this converges pointwise to
So the remainder is $$ R_n(x)=f(x)-\sum_{k=0}^nf_k(x)=\frac{1-x}{1+x}\left(1-(1-(-x)^{n+1})\right)=\frac{(1-x)(-x)^{n+1}}{1+x}. $$ An easy study of the derivative of the nonnegative function $g_n(x):=(1-x)x^{n+1}$ on $[0,1]$ shows that its maximum is attained for $x=\frac{n+1}{n+2}=1-\frac{1}{n+2}$. Hence $$ \sup_{[0,1]}\;|R_n(x)|\leq g_n\left(1-\frac{1}{n+2}\right)=\frac{1}{n+2}\left(1-\frac{1}{n+2}\right)^{n+1}\leq \frac{1}{n+2}. $$ It follows that $$ \lim_{n\rightarrow +\infty}\;\; \sup_{[0,1]}\;|R_n(x)|=0 $$ that is, the series converges uniformly to $f$ on $[0,1]$.