Example of Horner's Scheme
To find a root of p(x) = 4x4-2x2+3x+1, we apply Newton's method
with initial guess x0 = -2.
|
x1 = (-2) - |
p(-2)

p¢(-2)
| |
|
So we need to compute p(-2) and p¢(-2).
Horner's scheme
First write the polynomial in nested multiplication form:
|
p(x) = 1+ x(3+x(-2+x( 0+x(4)))). |
|
Note: p(x) does not have a cubic term but we still need that in
the nested multiplication form.
The coefficients for p(x) are:
|
a4 = 4, a3 = 0, a2 = -2, a1 = 3, a0 = 1 |
|
Applying Horner's scheme with x = -2:
| | | | | |
a3+ x b4 = 0+ (-2)(4) = -8 |
| | | |
a2+ x b3 = -2+(-2)(-8) = 14 |
| | | | | | |
|
Hence
Remark :
|
p(x) = (x- (-2)) Q(x) + p(-2) |
|
with
Note: Q(x) is not the derivative of p(x). Only that the value
of Q(-2) matches the value of p¢(-2).
To evaluate p¢(-2), write Q(x) in nested multiplication form:
|
Q(x) = -25+x(14+x(-8+x(4))). |
|
Applying Horner's scheme now to Q(x) with x = -2:
| | | | | |
b3+ x c3 = -8+ (-2)(4) = -16 |
| | | |
b2+ x c2 = 14+(-2)(-16) = 46 |
| | | |
|
Hence
|
p¢(-2) = Q(-2) = c0 = -117 |
|
Thus the next guess in the Newton's method is
|
x1 = -2 - |
51

-117
|
= - |
61

39
|
= -1.564102564 |
|

File translated from
TEX
by
TTH,
version 2.67.
On 8 May 2000, 14:19.