Divide (3x^4-7x^3+6x^2-x-1)÷(x^2-x+2)