Factor the polynomial p(x)=x^4-x^3-6x^2+4x+8

any integer roots will be factors of 8. Try a few to see that

p(x) = (x-2)^2 (x+1)(x+2)