Is there a non-trivial solution to the functional equation $f(f(f(x)))=-x$ where $f$ is a continuous function defined on $\mathbb{R}$ ? Also, what about the general one $f^n(x)=-x$ where $f^n$ is $f$ composed with itself $n$ times and $n$ is odd.
In general, is there a theory about continuous solutions to $f^n(x)=g(x)$ where $g$ is a fixed continuous function. The only thing that I found was about the solutions of $f^2(x)=g(x)$, i.e, "square roots" in the sense of composition.
Thanks.
Edit : I forgot to mention that $n$ is supposed to be odd, sorry for the inconvenience.
