Let $f_n:[0, +\infty)\rightarrow \mathbb{R}$, $f_n(x)=xe^{-nx}$.
Show that $(f_n)_n$ converges pointwise and calculate $$f(x):=\lim_{n\rightarrow +\infty}f_n(x)\ \ \ \forall x\in [0,+\infty)$$ Does $f_n$ converge also uniformly to $f$ on $[0, +\infty)$ ?
$$$$
I have done the following:
We have that \begin{equation*}f(x)=\lim_{n\rightarrow +\infty}f_n(x)=\lim_{n\rightarrow +\infty}xe^{-nx}=0 \text{ since } x\geq 0\end{equation*} So the sequence of functions converges pointwise on $[0, +\infty)$ to $0$.
Is that the way to show that $(f_n)_n$ converges pointwise? Or do we have to prove that in an otherway because after that question it is asked to calculate the limit?
As for the uniform convergence:
Let $\epsilon> 0$ arbitrary.
It holds that $\displaystyle{\lim_{y\rightarrow +\infty}ye^{-y}=0}$.
So there is a $M>0$ such that $0<ye^{-y}<\epsilon$ for all $y>M$.
For each $n\in \mathbb{N}$ with $n>M$ we get $\frac{1}{n}<\frac{1}{M}$.
We have that \begin{equation*}|f_n(x)|=\left |xe^{-nx}\right |=\left |\frac{1}{n}\cdot nxe^{-nx}\right |=\left |\frac{1}{n}\right |\cdot \left |nxe^{-nx}\right |\ \overset{y:=nx}{=}\ \left |\frac{1}{n}\right |\cdot \left |ye^{-y}\right |<\frac{1}{M}\cdot \epsilon\end{equation*} So we get also uniform convergence on $[0, +\infty)$ to $0$.
Is everythig correct?
Or do we not need to use $\displaystyle{\lim_{y\rightarrow +\infty}ye^{-y}=0}$ ?