let $f(x)=x^2$, then $f(f(x))=x^4$, so $x^4$ is a continuous function from $\Bbb R$ to $\Bbb R$ which can be obtained as $f\circ f$ for a continuous $f\colon \Bbb R\to \Bbb R$. general example: for $f(x)=|x|^{\sqrt{d}}$, $d>0$, we have $(f\circ f)(x)=|x|^d$.
I wonder if it is possible to find for example continuous functions $f\colon \Bbb R\to \Bbb R$ such that
$f(f(x))=x^2+1$
$f(f(x))=x^3$
$f(f(x))=\sin x$
$f(f(x))=\arcsin x$
$f(f(x))=\ln x$
$f(f(x))=e^x$
Is it known?
I don't know which theory can be applied to such problem, I formulated these questions while walking with my dog :-)
Are there any general results or counterexamples?