If $f_n,g_n: [0,1] \to [0,1]$ continuous $\forall n \in \mathbb{N}$ and converge uniformly prove that $f_n \circ g_n \xrightarrow{u.c} f\circ g$

functional-analysisfunctionsreal-analysisuniform-convergence

Assume that $f_n,g_n$ converge uniformly to $f,g$ and $[0,1]\subseteq (\mathbb{R},|\cdot|)$. My work so far:
From the initial assumption we get that $|f_n(x)|\leq 1$ and $|g_n(x)|\leq 1$ $\forall n \in \mathbb{N}$. Since $f_n\xrightarrow{u.c} f$ and $g_n\xrightarrow{u.c} g$ there exists $n_0 \in \mathbb{N}$ such that

if $n\geq n_0 \Rightarrow |f_n(x)-f(x)|<\epsilon/2$ and $|g_n(x)-g(x)|<\epsilon/2 \ \forall x\in [0,1]$.

Now if $n\geq n_0$ we notice that:
\begin{align*}
|f_n\circ g_n(x) -f\circ g(x)|&=|f_n\
z g_n(x)-f_n\circ g(x)+ f_n\circ g(x)-f\circ g(x)| \\
&\leq |f_n \circ g_n(x)-f_n\circ g(x)|+|f_n\circ g(x)-f\circ g(x)|
\end{align*}

Can someone help me proceed? Is it safe to say that its part of the last sum is $<\frac{\epsilon}{2}$ and why so?

Thanks in advance

Best Answer

Instead of inserting $\pm f_n\circ g(x)$ in the middle, insert $\pm f\circ g_n(x):$

Since $f_n\xrightarrow{u.c} f$ there exists $n_0 \in \mathbb{N}$ such that

if $n\geq n_0$ then $|f_n(x)-f(x)|<\epsilon/2\ \forall x\in [0,1]$

and therefore, $$\begin{align} |f_n\circ g_n(x) -f\circ g(x)|&=|f_n\circ g_n(x)-f\circ g_n(x)+ f\circ g_n(x)-f\circ g(x)| \\ &\leq |f_n\circ g_n(x)-f\circ g_n(x)|+|f\circ g_n(x)-f\circ g(x)| \\ &\le\epsilon/2+|f\circ g_n(x)-f\circ g(x)|. \end{align}$$

Now, $f$ is continuous (as a uniform limit of continuous functions), hence uniformly continuous (since $[0,1]$ is compact), so you may choose $\eta>0$ such that $$\forall u,v\in[0,1]\quad(|u-v|\le\eta\implies|f(u)-f(v)|\le\epsilon/2),$$ and then, using that $g_n\xrightarrow{u.c} g,$ choose $n_1\ge n_0$ such that

if $n\geq n_1$ then $|g_n(x)-g(x)|<\eta,\ \forall x\in [0,1]$.

For every $n\ge n_1$ and every $x\in[0,1],$ you thus get $$|f\circ g_n(x)-f\circ g(x)|<\epsilon/2$$ and you are done.

Note that the continuity of the $g_n$'s was not used.