Graphical Application of Horner's Method
Graphical Application of Horner's Method
This Demonstration shows Horner's method for calculating the value of a polynomial at a given value of .
P(x)
x
Horner's method reduces the number of multiplications and results in greater numerical stability by potentially avoiding the subtraction of large numbers. It is based on successive factorization to eliminate powers of greater than 1.
x
Suppose ; then the method rewrites .
P(x)=++⋯+
a
n
n
x
a
n-
1
n-1
x
a
0
P(x)=((x+)x+⋯)x+
a
n
a
n-1
a
0
To compute , you calculate the numbers , , …, , , :
P(u)
b
n-1
b
n-2
b
1
b
0
b
-1
b
n-1
a
n
b
n-2
b
n-1
a
n-1
…,
b
0
b
1
a
1
b
-1
b
0
a
0
Then .
P(u)=
b
-1
Factor out from to get =++⋯++=Q(x)+.
x-u
P(x)
P(x)
x-u
b
n-1
n-1
x
b
n-2
n-2
x
b
0
b
-1
x-u
b
-1
x-u
You can select the degree of the polynomial ; the value ; and the number of steps in which is replaced by . The table shows the new coefficients after each step.
n=1,2,3
u
x
u
To carry out Horner's method graphically, put the points , , … , on the axis, where =++⋯+.
A
0
A
2
A
n
y
A
k
a
0
a
1
a
k
The ordinates of the blue points are calculated by a formula given for the second point from the top:
A
n-2
a
n
a
n-1
a
n-2
Suppose that the ordinates of the blue points are , ..., ; then the green points have ordinates ,..., , .
B
1
B
n
B
2
B
n
A
n
The following equalities hold:
B
n
A
n-1
A
n
B
n-1
A
n-2
B
n
…,
B
k
A
k-1
B
k+1
A
k-1
A
k-1
B
k+1
…,
B
2
A
1
B
3
B
1
A
0
B
2
Finally, using induction, =P(x).
B
1