The theorem about the limit of composition of two real functions $f$ and $g$ is proved here. But it is required that the two limits (of $f$ and $g$) both exist.
I can't understand how to deal with the case in which the limit of $f$ does not exists. In particular I would like to know if the following is correct.
Consider $f(x)$ and $g(x)$ (real functions).
If I find out that $\lim_{x \to x_0} f(x)$ does not exists, can I conclude that $\lim_{x\to x_0 }g(f(x))$ does not exist?
Under what conditions is this correct?