Factor out x-1.
... (x-1)(1 + x) = 3(x-1)
... (x-1)(x +1 -3) = 0 . . . . subtract the right side
... (x -1)(x -2) = 0 . . . . . . simplify
... x = 1 . . . or . . . x = 2 . . . . use the zero-product rule*
_____
* A product is only zero when one or more of its factors is zero.