Given:
First, we rewrite this equation in the standard form of a quadratic equation:
x2 = x + 2
=> x2 – x – 2 = 0
On splitting the middle term –x as x – 2x, we get:
x2 + x – 2x – 2 = 0
=> x(x + 1) – 2(x + 1) = 0
=> (x + 1) (x – 2) = 0
We know that if the product of two numbers is zero then at least one of them must be zero.
Thus, x + 1 = 0 or x – 2 = 0
=> x = –1 or x = 2
Therefore, the solution of the given equation is x = –1,2.