Find all continuous functions $f:\mathbb R^{+}\to\mathbb R^{+}$ such that $f(x)^2=f(x^2)$ for all positive reals $x$.
If $f$ is a constant function, then $f(x)=1$. If $f$ is non-constant, I'm suspecting the only solutions are of the form $f(x)=x^k$, where $k$ is a constant, but I have no idea how to prove this. Thanks in advance.