✖

Dividing a polynomial by a polynomial

Dividing polynomials, also called algebraic division, is not a trivial operation, and it is used fairly often when simplifying polynomials and expressions.

First example

Dividing polynomials is quite a hard task, at least compared with the earlier operations. However, the method is very similar to ordinary long division. We will show the whole algorithm through examples. Let’s start with a simple one:

(4x3+8x2)/(2x2)

We assume that both polynomials are written in descending order and fully simplified – that is, we have already collected any like terms. This is not essential for the algorithm, but it makes the working easier. In the first step we divide the first term of the first polynomial by the first term of the second polynomial (here the second polynomial has only one term, so its first term is the whole polynomial). That is, we work out

4x3/(2x2)=42x3−2=2x

Dividing these basic terms is the reverse of multiplying them, so there should be no surprises. Since this is the first step, we write it into the original expression that we want to work out:

(4x3+8x2)/(2x2)=2x

and carry on with the second step. We multiply our partial result by the second polynomial, the one we are dividing by.

2x⋅(2x2)=4x3

We subtract this from the whole first polynomial, writing it under the first polynomial like this:

(4x3+8x2)/(2x2)=2x−(4x3)―8x2

Now what is left under the line is a new expression, and we apply the same method to it as to the original polynomial. We divide it by the first term of the second polynomial.

8x2/(2x2)=4

We add this to the previous partial result:

(4x3+8x2)/(2x2)=2x+4

Then we multiply the whole second polynomial by 4 again

(2x2)⋅4=8x2

and subtract it from what was left under the line.

(4x3+8x2)/(2x2)=2x+4−(4x3)―8x2−(8x2)―0

After subtracting we are left with zero, so the algorithm ends here. The right-hand side is the result of the division. To check it, we multiply the resulting polynomial by the second polynomial, and we must get the first polynomial.

(2x2)⋅(2x+4)=4x3+8x2

Second example

Let’s change the question only slightly and work out

(4x3+8x2+7)/(2x2).

The working goes exactly as in the previous example, except that after each subtraction the result has an extra 7. In brief, it goes like this:

(4x3+8x2+7)/(2x2)=2x+4−(4x3)―8x2+7−(8x2)―7

The method has not changed, there is just an extra 7. At this point we cannot divide the new remainder (the 7) by the second polynomial to get a nice result. We simply write the result as 7 over the polynomial and add it to the partial result.

(4x3+8x2+7)/(2x2)=2x+4+72x2−(4x3)―8x2+7−(8x2)―7

When we multiply back by the second polynomial, we get 7

(2x2)⋅72x2=7

and so the subtraction gives zero.

(4x3+8x2+7)/(2x2)=2x+4+72x2−(4x3)―8x2+7−(8x2)―7−7―0

The algorithm ends here, as we have reached zero.

Third example

Let’s add another term to the second polynomial.

(6x7+19x4+7)/(3x3+5)

In the first step we divide the first term of the first polynomial by the first term of the second, as in the previous examples.

6x7/3x3=2x4

In the next step we multiply this partial result by the whole second polynomial and subtract it from the first.

(3x3+5)⋅2x4=6x7+10x4

We write it out neatly under the whole question.

(6x7+19x4+7)/(3x3+5)=2x4−(6x7+10x4)―9x4+7

We continue by dividing the first term of the new polynomial by the first term of the second polynomial.

9x4/3x3=3x

We multiply by the whole second polynomial:

(3x3+5)⋅3x=9x4+15x

We write it out and subtract:

(6x7+19x4+7)/(3x3+5)=2x4+3x−(6x7+10x4)―9x4+7−(9x4+15x)―−15x+7

This cannot sensibly be divided any further, so we simply add the fraction made from the remainder and the second polynomial.

(6x7+19x4+7)/(3x3+5)=2x4+3x+−15x+73x3+5

If we multiplied back and subtracted once more, we would get zero straight away, as in the last example. Let’s check the answer. Before a full check, we can try a quick test: substitute a simple value, such as zero, into the expressions. Substituting zero into the result of the division, we get

0+0+0+70+5=75.

Substituting zero into the expression we are dividing, we get

(0+0+7)/(0+5)=75.

If our working is correct, both values must give the same result, and as we can see, they are equal. This does not guarantee that the answer is fully correct, as we would have to test every possible value of x, but it can quickly reveal a mistake. Let’s try the same with 1. Substituting into the result gives:

2+3+−15+73+5=5−88=4.

Substituting into the original expression gives

(6+19+7)/(3+5)=328=4.

That looks promising, but for final confirmation we need to carry out the whole multiplication.

(3x3+5)⋅(2x4+3x+−15x+73x3+5)=(3x3+5)⋅2x4+(3x3+5)⋅3x+(−15x+7)=6x7+10x4+9x4+15x−15x+7=6x7+19x4+7

Chapters: Polynomials, Dividing a polynomial by a polynomial, Root of a polynomial, Factorising polynomials