The correct option is B (x-1) (x+1) (x-2) (x+3)
Let f(x)=x4+x3−7x2−x+6
the factors of constant term in f(x) are ±1,±2,±3 and ±6
Now,
f(1)=1+1−7−1+6=8−8=0
⇒(x−1) is a factor of f(x)
f(−1)=1−1−7+1+6=8−8=0
⇒x+1 is a factor of f(x)
f(2)=24+23−7×22−2+6
=16+8−28−2+6=0
⇒x+2 is a factor of f(x)
f(−2)=(−2)4+(−2)3−7(−2)2−(−2)+6
=16−8−28+2+6=−12≠0
⇒x+2 is not a factor of f(x)
f(3)=(−3)4+(−3)3−7(−3)2−(−3)+6
81−27−63+3+6=90−90=0
⇒x+3 is a factor of f(x)
Since f(x) is a polynomial of degree 4. So it cannot have more than 4 linear factors
Thus, the factors of f(x) are (x−1),(x+1),
(x−2) and (x+3).
Let f(x)=k(x−1)(x+1)(x−2)(x+3)
⇒x4+x3−7x2−x+6
=k(x−1)(x+1)(x−2)(x+3)
Putting x=0 on both sides, we get
6=k(−1)(1)(−2)(3)⇒6=6k⇒k=1
Substituting k=1 in (i), We get
x4+x3−7x2−x+6=(x−1)(x+1)(x−2)(x+3)