Question 414374
(x^(2)-x-1)/(x^(3)-2x-1)

Set up the polynomials to be divided.  If there is not a term for every exponent, insert one with a value of 0.
<D>x^(3)+0x^(2)-2x-1,x^(2)-x-1, <d>

The final answer is the quotient plus the remainder over the divisor.
(x^(2)-x-1)/(x^(3)-2x-1)