Let $f,g:\mathbb{R}\to\mathbb{R}$ and $a,L \in \mathbb{R}$
If $\lim\limits_{x \to a} f(x)=L $ and $\lim\limits_{x \to L} g(x)=M$
Then
$\lim\limits_{x \to a} g(f(x))=M$?
My proof:
Since $\lim\limits_{x \to a} f(x)=L $,
Let $\epsilon>0$,there exists a $\delta_1>0$ s.t $|x-a|<\delta_1\Rightarrow |f(x)-L|<\epsilon$
And $\lim\limits_{x \to L} g(x)=M$,
Let $\epsilon>0$,there exists a $\delta_2>0$ s.t $|x-L|<\delta_2\Rightarrow |g(x)-L|<\epsilon$
Let $\delta:=min\{\delta_1,\delta_2\}$
For all $\epsilon>0$ there exists a $\delta>0$ such that $|x-a|<\delta\Rightarrow|g(f(x))-M|<\epsilon$
Is my proof true or not?