Factor the cubic. The rational root theorem offers ±1,±2,±3,±6, and x=−1 works, since −1−4−1+6=0. Synthetic division by x+1 leaves x2−5x+6.
x3−4x2+x+6=(x+1)(x2−5x+6)=(x+1)(x−2)(x−3)
With x2−4=(x−2)(x+2), multiply across and cancel x−2, x+2, and x−3.
(x−2)(x+2)(x+1)(x−2)(x−3)⋅x−3x+2=x+1
The restrictions are x=2, x=−2, and x=3.