I attempted to solve the equation given in the title for the function;
$$f: \mathbb R_{++} \to\mathbb R_{++}; \quad f(x)=x^2(x+2)$$
I understand that the problem is equivalent to solving $f(f(x))=x$ but since this seemed like too much work, I had a look at the solution and it stated that;
$$ f^{-1}(x)=f(x) \Longrightarrow f(x)=x$$
I don't understand why this is the case. Can someone please explain this?
Thanks