Do there exist functions $f,g : R → R$ such that $f (g(x)) = x^2$ and $g( f (x)) = x^3 \text{ , }\forall x ∈ R$.
Simply applying $g$ on both sides of equation $1$ and $f$ on equation $2$ respectively, we get
$g(x)^3=g(x^2)$ and $f(x)^2=f(x^3)$.
It does seem like there aren't functions that satisfy this. But how do i prove that? Incase there are such functions, what should be the next step now? Pluggin in $0$ or $1$ would give a lot of cases and it doesn't really seem like the right approach. In an exam i might maybe bash through all of them systematically if i cant find a better alternative, but for now please help :).