Newton Raphson
Newton Raphson
Figure 1. One step of Newton’s method. Starting with x0, the tangent line to the curve f(x) is
drawn. The intersection point with the x-axis is x1,the next approximation to the root.
From the geometric picture, we can developed an algebraic formula for
Newton’s method. The tangent line at x0 has slope given by the derivative
f′(x0). One point on the tangent is (x0, f(x0)). The point-slope formula for the
equation of a line is
So that looking for the intersection point of the tangent line with the x-axis is the
same as substituting y = 0 in the line:
f(x0)
x − x0 = −
f′(x0)
f(x0)
x = x0 −
f′(x0)
Solving for x gives an approximation for the root, which we call x1. Next, the entire
process is repeated, beginning with x1, to produce x2, and so on, yielding the
following iterative formula:
Newton’s method
x0 = initial guess
f(xi)
xi+1 = xi − For i = 0,1,2,3...
f′(xi)
xi3 + xi − 1 2xi3 + 1
xi+1 = xi − = 2
3xi + 1
2 3xi + 1
Iterating this formula from initial guess x0 = − 0.7 yields
2x03 + 1 2(−0.7)3 + 1
x1 = 2 = ≈ 0.1271
3x0 + 1 3(−0.7) + 1
2
2x13 + 1
x2 = 2 ≈ 0.9577
3x1 + 1
i xi ei = |xi-r| ei/e2i-1
0 -0.70000000 1.38232780
7 0.68232780 0.00000000
After only six steps, the root is known to eight correct digits. There is a bit more we
can say about the error and how fast it becomes small. Note in the table that once
convergence starts to take hold, the number of correct places in xi approximately
doubles on each iteration. This is characteristic of “quadratically convergent’’
methods, as we shall see next.
Quadratic convergence of Newton’s Method
The convergence in the previous example is qualitatively faster than the linear
convergence we have seen for the Bisection Method and Fixed-Point Iteration.
Let ei denote the error after step i of an iterative method. The iteration is
quadratically convergent if
ei+1
M = lim <∞
i→∞ ei2
where
f′′(r)
M=
2f′(r)
Proof. To prove local convergence, note that Newton’s Method is particular form
of Fixed-Point Iteration, where
f(x)
g(x) = x −
f′(x)
with derivative
(r − xi)2
f(r) = f(xi) + (r − xi)f′(xi) + f′′(ci)
2
Here ci is between xi and r. Because r is the root, we have
(r − xi)2
0 = f(xi) + (r − xi)f′(xi) + f′′(ci)
2
assuming that f′(xi) ≠ 0. With some rearranging, we can compare the next
iterate with the root:
f(xi) (r − xi)2 f′′(ci)
xi − −r =
f′(xi) 2 f′(xi)
f′′(ci)
xi+1 − r = ei2
2f′(xi)
f′′(ci)
ei+1 = ei2
2f′(xi)
In the previous equation, we have defined the error at step i to be ei = xi − r .
Since ci lies between r and xi, it converges to r just as xi does, and
ei+1 f′′(r)
lim =
i→∞ ei2 2f′(r)
the definition of quadratic convergence. The error formula can be viewed as:
ei+1 ≈ Mei2
m
xi
xi+1 = xi −
mxim−1
m−1
xi+1 = xi
m
Here the only root is r = 0, so defining ei = | xi − r | = xi yields
ei+1 = Sei
where S = (m − 1)/m
Example 01. Find the multiplicity of the root r = 0 of
f(x) = sin x + x 2 cos x − x 2 − x and estimate the number of steps of Newton’s
Method required to converge within six correct places (use x0 = 1).
(3)
2
< 0.5 × 10−6
log10(0.5) − 6
n> ≈ 35.78
log10(2/3)
See example 3 in EXCEL!
mf(xi)
xi+1 = xi −
f′(xi)
Example 2. Apply Newton’s method to f(x) = 4x 4 − 6x 2 − 11/4 with starting
guess x0 = 1/2.
11
4xi4 − 6xi2 − 4
xi+1 = xi −
16xi3 − 12xi