Solve by using the quadratic formula.

x^2=5x+2

x^2 - 5x - 2 cannot be factored.

-2 can only be product of -1 and 2 or 1 and - 2. Neither will sum to get -5.