Beruflich Dokumente
Kultur Dokumente
MAT 295
Chapter 11
Newtons
Method
At the end of this chapter, students should be able to:
11.1 Introduction
In Chapter 10, the bisection method of solving non-linear equations has been
discussed. Based on the given examples it can be concluded that if the
existence of a root is guaranteed then the method will always converge to the
required root. Nevertheless one of the disadvantages is that the convergence
rate is slow.
Is there a method which has a better convergence rate? One of the favourite
numerical methods of solving non-linear equation is known as the Newtons
method or the Newton-Raphson. This method is attributed to Sir Isaac
Newton (1643-1727) and Joseph Raphson (1648-1715). If the bisection
method applies a vertical line to do its approximation, Newtons method on
the other hand will make the use of a tangent line at a point.
147
MAT 295
Geometric Derivation
Let us consider a differentiable function f (x )
y f (x )
L0
Actual
root r
x
x2
x1
x0
Figure 11.1
If the procedure is then repeated by finding the line L1 tangent to the graph
of f at (x1, f ( x1)) , the x-intercept of L1 (say x 2 ) provides an even closer
approximation to r than x1 . The procedure is repeated again and again,
until an approximation of sufficiently high accuracy is obtained.
148
MAT 295
y f (x )
Ln
Ln1
Actual
root r
xn1
xn
Figure 11.2
Since the slope of line Ln tangent to the graph of y f (x ) at (xn , f ( xn )) is
given by the derivative f ' ( xn ) , the equation for Ln can be written as:
y f ( xn ) f ' ( xn )x xn
(1)
x xn
f ( xn )
f ' ( xn ) ;
f ' (xn ) 0
xn 1 xn
f ( xn )
f ' ( xn )
f ' (xn ) 0
Algebraic Derivation
Another possibility is to derive the Newtons method is based upon the Taylor
polynomial. Suppose that the function
f (x )
is twice continuously
xn - r
(r - x n ) 2
f " ( )
2
(1)
(r - x n ) 2
f()
2
xn - r
MAT 295
xn - r
r xn
f ( xn )
f ' ( xn )
f(xn )
f ' (xn )
Example 1
For the equation
iterations to estimate the root given x0 1.4. What can be said about the
accuracy of the estimated value (root)?
Solution
1
2 x
sinx
150
f ( x ) x - cosx
MAT 295
f ( x0 )
f ' ( x0 )
1.013
1.408
0.681
x1 1.4
f ' (x)
1
2 x
sinx
x
0
1
2
1.4
0.681
0.642
1.013
0.048
0.000
1.408
1.235
1.223
Newton
0.681
0.642
0.642
Example 2
The solution of the equation e x 2 x is known to exists between 0 and
1. Estimate the root to 2 decimal places using Newtons method.
Solution
ex 2 x
ex x 2 0
f (x) ex x 2
MAT 295
f (0.5) 0.149
f ' (0.5) 2.649
f ( x0 )
f ' ( x0 )
0.149
2.649
0.444
0.5
f (x) ex x 2
x
0.5
0.4439
f ' (x) ex 1
0.149
0.003
2.649
2.559
Newton
0.444
0.443
Solution
Given
h( x ) x 3 x 1
h' ( x ) 3 x 2 1
Let x0 1 , then
x1 x0
1
f ( x0 )
f ' ( x0 )
1
2
1.5
x
-1
-1.5
-1.348
-1.325
f (x )
f ' (x)
1
-0.875
-0.101
-0.001
2
5.750
4.451
4.267
Newton
-1.5
-1.348
-1.325
-1.325
152
MAT 295
Example 4
Determine the formula for Newtons method to approximate 3 a .
Solution
x3 a
3
x a 0
then f ( x ) x 3 a
f ' ( x ) 3x 2
Identify initial value
xn
f ( xn ) xn 3 a
f ' ( xn ) 3 xn 2
Warm up exercise
Let x 3 - 2x - 5 0 where 2 r 3 .
(i)
(ii)
(iii)
(iv)
(v)
(vi)
153
MAT 295
Exercise 11
1.
2.
Determine the first four approximations of the actual root of the equation
x3
3.
1
0 in the interval [0, 1], using the Newtons method.
2
Use Newtons method to find the point in the right half-plane where the graphs
of f ( x ) 2x 3 and g( x ) 5x 1 intersects.
4.
5.
6.
(a) sin x x 3 1 0 ;
[-2, 0]
(b) x ln x 3 0 ;
[4, 5]
2 , 2
(d) 2x tan x ;
[0, 3]
7.
8.
9.
10.
11.
12.
13.
154