Let $f: [0,1]\rightarrow\mathbb{R}$ be continuous. For $n\geq 1$, define $f_n(x)=f(x)x^n$ for all $x\in[0,1]$. Show that if $f(1)=0$, then the sequence $\{f_n\}$ is uniformly convergent.
Certainly it converges to $0$ point wise. I tried to show that $\forall\epsilon>$, there is some $n$ big enough such that $|f_n(x)|=|f(x)x^n|<\epsilon$.
Find some $\delta\in(0,1/2)$ such that $|f(x)|<\epsilon$ for all $x\in[1-\delta,1]$. Then by choosing $N$ large enough such that $(1-\delta)^{n}<\epsilon$ for all $n\geq N$, then \begin{align*} |f_{n}(x)|=|f(x)x^{n}|\leq\max_{x\in[0,1-\delta]}|f(x)x^{n}|+\max_{x\in[1-\delta,1]}|f(x)x^{n}|\leq M(1-\delta)^{n}+\epsilon<(M+1)\epsilon, \end{align*} here $M=\max_{x\in[0,1]}|f(x)|$.