Answer
$x^5-2x^4-1x^3+40x^2-14x+23-\frac{43}{x+2}$
Work Step by Step
Step 1. Use the given coefficients, set up the division as shown in the figure.
Step 2. Perform the synthetic division as shown.
Step 3. The answer is: $x^5-2x^4-1x^3+40x^2-14x+23-\frac{43}{x+2}$