Answer
$f(x)=x^3-5x^2+2x+8$
Work Step by Step
Using the Factor Theorem, if $x=a$ is a factor, then $(x-a)$ is a factor of $f(x)$.
Hence here $f(x)=(x+1)(x-2)(x-4)=(x+1)(x^2-2x-4x+8)=(x+1)(x^2-6x+8)=x^3-6x^2+8x+x^2-6x+8=x^3-5x^2+2x+8$
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.