I have $2$ questions regarding the following limit law:
Suppose that $\lim_{x \to a}g(x)$ exists and is equal to $l$, and that $f$ is continuous at $l$. Then, $\lim_{x \to a}f\bigl(g(x)\bigr)$ exists, and $$ \DeclareMathOperator{\epsilon}{\varepsilon} \lim_{x \to a}f\bigl(g(x)\bigr)=f(l)=f\left(\lim_{x \to a}g(x)\right) \, . $$
My questions are:
- Have I stated this limit law correctly?
- How do you prove this limit law?
Here is my attempted proof:
Let $\epsilon>0$. We wish to find a $\delta>0$ such that, for all $x$,
If $0<|x-a|<\delta$, then $|f(g(x))-f(l)|<\epsilon$.
We are given that $f$ is continuous at $l$, i.e. that there exists a $\delta'>0$ such that, for all $y$,
If $|y-l|<\delta'$, then $|f(y)-f(l)|<\epsilon$.
We are also given that $\lim_{x \to a}g(x)=l$, meaning that there is a $\delta>0$ such that
If $0<|x-a|<\delta$, then $|g(x)-l|<\delta'$
Since $g(x)$ is a number $y$ satisfying $|y-l|<\delta'$, we get that $|f(g(x))-f(l)|<\epsilon$. Hence, if $0<|x-a|<\delta$, then $|f(g(x))-f(l)|$, and so $\lim_{x \to a}f(g(x))=f(l)=f\left(\lim_{x \to a}g(x)\right)$, completing the proof.