Division of a polynomial by a binomial according to the Horner scheme

Let us consider a special case of the division of polynomials – the division of a polynomial by a binomial of the form x - b0. The division algorithm for this case is called Horner's scheme or the abbreviated method of dividing a polynomial by a binomial. Let it be required to divide a polynomial
Division of a polynomial by a binomial by the binomial b(x) = x - b0, b(x)=x-b0, that is, it is required to represent the polynomial a(x) in the form
a(x)=b(x)*c(x) + r(x), where the degree of the quotient c(x) is equal to n-1, and the degree of the remainder r(x) is equal to 0. Let
Division of a polynomial by a binomial That is Division of a polynomial by a binomial We multiply x-b0 and c(x), add it to r0 and equate the coefficients of the polynomials with the same powers of x on the left and right sides of the equality:
a0=c1,
a1=c2 - c1*b0,
...
an-2=cn-1 - cn-2*b0,
an-1=cn - cn-1*b0,
an=r0 - cn*b0,

From these equalities we obtain recurrent formulas for determining the values ​​of ci and the remainder r0.
c1=a0,
c2=a1 + c1*b0,
...
cn-1=an-2 + cn-2*b0,
cn=an-1 + cn-1*b0,
r0=a0 + cn*b0.

For the convenience of calculations using these formulas, a table is created that is filled in from left to right.
The first line contains the coefficients of the dividend in descending order of powers of x and the number b0.
The second line contains the corresponding values of expressions i*b0 (the first number is 0, since c0=0).
The numbers in the first row are added to the numbers in the second row and written to the third row. As a result, in the third row we get the coefficients of the quotient, and the last number is the remainder.

Division of a polynomial using Horner's scheme

We fill in this table in this order:

First, we fill in the first line. Under the first number of the first line we write 0.

We add the numbers in the first column, and the result will be the first number in the third row.

Then the first number of the third row c1 is multiplied by the last number of the first row b0, the result is written to the second place of the second row.

We add up the numbers of the second column and get the second number of the third row c2.

We multiply this number again by the last number of the first row b0, and write the result in third place in the second row.

We add up the numbers in the third column and get the third number in the third row, and so on.

Although the explanation looks rather cumbersome, it is very simple and convenient to perform division using Horner's scheme. Let's consider the application of Horner's scheme using examples.

Calculators for solving examples and problems in mathematics

The best math apps for schoolchildren and their parents, students and teachers. More detailed ...


Example 1.
Divide the polynomial x4 - 3x3 - 3x2 + 7x + 6 by the binomial x-3 using Horner's scheme.
Solution.
The dividend a(x)=x4 - 3x3 - 3x2 + 7x + 6, b0=3. In accordance with Horner's scheme, we fill in the table

Division of a polynomial using Horner's scheme - example
Thus, the remainder r (the last number in the third row) is zero. This means that the polynomial x4 - 3x3 - 3x2 + 7x + 6 is completely divisible by x - 3. Quotient (x)=1*x3 + 0*x2 - 3x - 2.
Answer: x4 - 3x3 - 3x2 + 7x + 6=(x3 - 3x - 2)*(x - 3).

Example 2.
Divide the polynomial 2x5 + 5x4 - 4x3 + 612 by the binomial x + 4 using Horner's scheme.
Solution.
The dividend a(x)= 2x5 + 5x4 - 4x3 + 612, b0=-4. In accordance with Horner's scheme, we fill in the table

Division of a polynomial using Horner's scheme - example
The remainder r = 100 - this is the last number in the third row. The quotient (x)=2*x4 - 3*x3 - 8*x2 - 32*x + 128.
Answer: 2x5 + 5x4 - 4x3 + 612 = (2x4 - 3x3 - 8x2 - 32x + 128)*(x + 4) + 100.


The division of a polynomial a(x) by a binomial of the form b1x - b0 is easily reduced to the case of division by x - b0.
Let a(x) = (b1x - b0)*c(x) + r0, we transform this expression as follows:

Division of a polynomial by a binomial
An analysis of the last expression shows that the remainder of a(x) divided by b1x - b0 is the same as the remainder of a(x) divided by x - b0/b1, and the coefficients of the quotient c(x) are obtained from the coefficients of the quotient from division by x - b0/b1 by dividing them by b1.

Example 3.
Divide the polynomial x3 - 6x2 + 5x + 2 by the binomial 2x + 1 using Horner's scheme.
Solution.
Since 2x + 1=2(x + 1/2), using Horner's scheme we will divide the original polynomial by x+1/2, then divide the resulting coefficients of the quotient by 2.

Division of a polynomial by a binomial
The remainder r0 = -17/8. The coefficients of the quotient are obtained by dividing the coefficients in the third row of the table by 2. Thus, the quotient of dividing the original polynomial by 2x + 1

Quotient of a polynomial divided by a binomial
Answer: Division of a polynomial by a binomial

Example 4.
Divide the polynomial x5 - x3 + 2x - 1 by the binomial 3 - 2x using Horner's scheme.
Solution.
Since 3 - 2x = - 2(x - 3/2), using Horner's scheme we will divide the original polynomial by x - 3/2, then we divide the obtained quotient coefficients by -2.

Divide a polynomial by a binomial
The remainder r0 = 199/32. The coefficients of the quotient are obtained by dividing the coefficients in the third row of the table by -2. Thus, the quotient of dividing the original polynomial by 3 - 2x
Quotient of a polynomial divided by a binomial
Answer: Division of a polynomial by a binomial

Using the Horner's scheme to decompose a polynomial by powers of a binomial


Let us consider another application of Horner's scheme – decomposition of a polynomial by powers of a binomial. For any polynomial Division of a polynomial by a binomial where a0 ≠ 0, n ≥ 1, and for any number b0 we can write the decomposition of a(x) by powers x - b0:
Decompose a polynomial into powers of a binomial As can be seen from this formula, in order to calculate pn, it is necessary to divide the polynomial a(x) by x - b0 and find the remainder r = pn. In the quotient, we get the polynomial

Decompose a polynomial into powers of a binomial
Now, to calculate pn-1, you need to divide the polynomial d1 (x) by x - b0 and find the remainder r=pn-1. In the quotient we get the polynomial

Decompose a polynomial into powers of a binomial
Then we continue dividing until the quotient is a number. The remainder obtained in the last step will be equal to p1, and the quotient dn=p0.
At each step, division by x-b0 will be carried out using Horner's scheme. It is very convenient to write down the calculation results in one common table. Let's consider the corresponding example.

Example 5.
Decompose the polynomial 2x4 + x3 - 5x + 3 by the powers of the binomial x + 1.
Solution.
We will perform all calculations by sequentially filling in the table according to the algorithm. Decompose a polynomial into powers of a binomial
Thus, we obtain that the remainder of the division of the original polynomial by x+1 is 9, the coefficients of the quotient are 2,-7,9,-10.

Answer: 2x4 + x3 - 5x + 3 = 2(x + 1)4 - 7(x + 1)3 + 9(x + 1)2 - 10(x + 1) + 9.

Calculating the value of a polynomial at a given point using Horner's scheme


Another problem that can be solved using Horner's scheme is calculating the value of a polynomial at a given point. Let the polynomial a(x) be divisible by the binomial x-b0 with remainder r0. That is

Decompose a polynomial into powers of a binomial
If we substitute the value x=b0 into this equality, we get a(b0)=r0. Thus, we have proved Bezout's theorem.

Bezout's theorem. If x0 is an arbitrary number, then dividing the polynomial a(x) by the binomial x-x0 results in a remainder equal to the value of the polynomial for x=x0, that is r0= a(x0).

Thus, using Horner's scheme, one can find the value of a polynomial for a given value x=x0 as the remainder of dividing this polynomial by the binomial x-x0. Sometimes this is much easier to do than substituting x0 into the original polynomial.

Bezout's theorem has a very important consequence.

Consequence. A number x0 is a root of a polynomial a(x) if and only if the polynomial a(x) is divisible by the binomial x-x0.

This consequenc allows us to check whether a number x0 is a root of a polynomial by calculating the remainder of the division of the polynomial by the binomial x-x0.

Example 6.
Calculate the value of a polynomial 2x6 + 6x5 + x4 - 4x3 + 3x2 - x - 1 at x=-3.
Solution.
Calculating the value of a polynomial at x=-3 is equivalent to finding the remainder when dividing this polynomial by x+3. To do this, we will use Horner's scheme
Calculate the value of the polynomial
The remainder r (this is the last number in the third line) is 218.
The quotient (x)=2x5 + x3 - 7x2 + 24x - 73.
2x6 + 6x5 + x4 - 4x3 + 3x2 - x - 1=(2x5 + x3 - 7x2 + 24x - 73)*(x+3)+218.
Answer: 218.

RNG - Random Number Generator app
Related Sites & Topics:
Copyright © 2025 Intemodino Group s.r.o.
All rights reserved
Menu