Answer
$f(x)=(x+2)^2(x-3)(x+1)$
Work Step by Step
Step 1. Use the given coefficients of the polynomial to set up a division as shown in the figure.
Step 2. Perform a synthetic division twice and find the quotient as $x^2-2x-3$.
Step 3. Factor the quotient to get $(x-3)(x+1)$ thus $f(x)=(x+2)^2(x-3)(x+1)$