Denote by $D$ the set of all continuous, increasing functions $f: \mathbb{R} \to [0, \infty)$ such that $\lim \limits_{x \to - \infty} f(x) = 0 $ and $\lim \limits_{x \to + \infty} f(x) = 1 $. If $f_n,f \in D$ for all $n \geq 1$ and $f_n \to f$ pointwisely on $\mathbb{R}$, prove that $f_n \to f$ uniformly on $\mathbb{R}$.
My take on it:
NTS: $f_n\to f$ uniformly on $\mathbb{R}$ if $M_n = \sup|f_n(x) - f(x)|$ exists for all sufficiently large n, and $\lim\limits_{n \to \infty} M_n = 0, x \in \mathbb{R}$.
$\lim\limits_{x \to \infty} f(x) = 1$ $\iff$ $\forall \epsilon > 0$ given $\exists M \gt0$ such that $|f(x) - 1| \lt \epsilon$,
$\lim\limits_{x \to - \infty}f(x) = 0 \iff \forall \epsilon \gt 0$ given $\exists M \gt 0$ such that $|f(x)| \lt \epsilon$
$f_n \to f$ pointwisely in $\mathbb{R} \iff \lim\limits_{n\to\infty}f_n(x)=f(x)$ $\forall x \in \mathbb{R}$.
$\forall \epsilon \gt 0, \exists M \gt0$ such that $|f_n(x) - f(x)|\lt\epsilon$ $\forall n \geq M, \forall x \in \mathbb{R}$
$\implies \lim\limits_{n \to \infty}|f_n(x)-f(x)|=0$
$\implies \lim\limits_{n \to \infty}\sup{|f_n(x)-f(x)|:x\in\mathbb{R}} = 0$.
If someone can please help me and let me know if I am going in the right direction and how to proceed forward.
Thanks in advance.
No, the last step does not work: pointwise convergence does not imply uniform convergence. You are not using the increasing property of such functions.
Hint. Use the second theorem given HERE on the compact set $[-R,R]$ (it is a variant of Dini's Theorem) and use the assumption about the limits at $\pm\infty$ in order to have the uniform convergence also on the complement of $[-R,R]$.