Suppose i have two functions $g(x)=\frac{1}{x}$ and $f(x) = \ln x$ and i need to calculate the limit $\lim_{x\to \infty}(g\circ f)(x)$
By composition of limits i can get $\lim_{x\to \infty}f(x)=\infty$, so i will write:
$\lim_{x\to \infty}(g\circ f)(x) = \lim_{x\to \lim_{x\to \infty}f(x)}g\left(f(x)\right) = \lim_{x\to 0}g\left(f(x)\right) = 0$
The result is correct, but i dont know if in general, the following proposition is true or not:
$\lim_{x\to c}g\left(f(x)\right)$ can be calculated as $\lim_{x\to\left[\lim_{x\to c}f(x)\right]}g\left(f(x)\right)$ if $\lim_{x\to c}f(x)$ is $\pm \infty$ or a finite value.