I just did it in my head....but you can (again) use the Quadratic formula to fin the values of x
x=−b±√b2−4ac2a
x=−1±√12−4(1)(−2)2(1) x = -1/2 +- (sqrt9)/2 = -1/2+- 3/2 = -2 or 1
so the roots are -2 or 1 x+2 or x-1 so (x+2)(x-1)=0 results in x=-2 or 1