Answer
$$x^2-3x+10-\frac{30}{x+2}$$
Work Step by Step
Dividing the two polynomials using long division, we find:
$$\frac{x^3-x^2+4x-10}{x+2} \\ x^2+\frac{-3x^2+4x-10}{x+2} \\ x^2-3x+\frac{10x-10}{x+2} \\ x^2-3x+10+\frac{-30}{x+2} \\ x^2-3x+10-\frac{30}{x+2}$$