Solve the function from the composition [duplicate]

I have equations as follows $$f(f(x))=x^2+x$$ Then solve for $f(x)$. Can anyone give some hints about this question?