Let $x \in \mathbb{R}$ and $n \in \mathbb{N}$. Let $f(x)$ be continous over the whole domain of $a<x<b$. Let the composition of functions $f^{(n)}(x) =f(f(...f(x)))$. Let $g(x)$ defined by
$$g(x)= \lim_{n \to \infty}f^{n}(x)$$
Is $g(x)$ continous? How can I proof that?
$g$ does not need to be continous; in fact $g$ is not necessarily well-defined. For a counterexample, take $a=-b=1$ and $f(x)=-x$; then $f^n(x)$ is alternatively $\pm x$ hence $\lim_{n \to \infty} f^n(x)$ does not exist for nonzero $x$.