The dividend is
.
The divisor is
.
Rewrite the expression in the long division form
.
Divide the first term of the dividend by the first term of the divisor
.
So, the first term of the quotient is
.
\
Multiply
by
and subtract.

Divide the first term of the last row by the first term of the divisor
.
So, the second term of the quotient is
.
Multiply
by
and subtract.

Divide the first term of the last row first term of the divisor
.
So, the third term of the quotient is
.
\
Multiply
by
and subtract.

Divide the first term of the last row by the first term of the divisor
.
So, the fourth term of the quotient is
.
\
Multiply
by
and subtract.

Divide the first term of the last row by the first term of the divisor
.
So, the fifth term of the quotient is
.
\
Multiply
by
and subtract.

Divide the first term of the last row by the first term of the divisor
.
So, the sixth term of the quotient is
.
\
Multiply
by
and subtract.

The remainder is the last entry in the last row.
\Therefore, the remainder
.
The number along the bottom row are the coefficients of the quotient.
\Thus,
.

.