Solve the equation of the form f(f(x))=xf(f(x))=xf(f(x))=x, given that f(x)=x2+2x−4f(x)=x^{2}+2x-4f(x)=x2+2x−4.