University of Palestine Gaza Strip Civil Engineering College Numerical Analysis CIVL 3309 Dr. Suhail Lubbad
University of Palestine Gaza Strip Civil Engineering College Numerical Analysis CIVL 3309 Dr. Suhail Lubbad
Gaza Strip
2
The Newton-Raphson open method
3
Start:
Initial guess at the root is xi
Draw the tangent at the point ( xi, f(xi) ),
The intersection of this tangent line with the x-axis is
the improved estimate of the root.
4
Derivation and geometrical interpretation
f (x i )
x i'1=x i− Newton Raphson Formula
f ' (x i ) 5
What about error computation?
6
From
Taylor-expansion-based derivation of Newton-Raphson Formula
Box 6.2
−f ' '(x r ) 2
Et , i'1= Et , i
2f '(x r )
7
True root value: 0.56714329
8
Example 6.5:
Determine the positive root of f(x)= x10 – 1 using Newton-Raphson
method and an initial guess of x=0.5
Troubled cases
A special case: multiple roots
A special case: When f'' =0 near the root
A special case: f' =0 near the root
9
Iteration 1
The new approximate Root 1=5.0000000e-01−(−9.9902344e-01)/(1.9531250e-02)=5.1650000e+01
∣
The True Error E t =
1
TrueRoot∣
TrueRoot−Root 1
∣
×100 %=
1.0000000e+00−(5.1650000e+01)
1.0000000e+00 ∣×100 %=5.0650000e+03 %
Iteration 2
The new approximate Root 2=5.1650000e+01−(1.3511490e+17)/(2.6159710e+16)=4.6485000e+01
∣
The True Error E t =
2
TrueRoot∣
TrueRoot−Root 2
∣
×100 %=
1.0000000e+00 ∣
1.0000000e+00−(4.6485000e+01)
×100 %=4.5485000e+03 %
Iteration 3
The new approximate Root 3=4.6485000e+01−(4.7111654e+16)/(1.0134808e+16)=4.1836500e+01
∣
The True Error E t =
3
TrueRoot∣
TrueRoot−Root 3
∣
×100 %=
1.0000000e+00 ∣
1.0000000e+00−(4.1836500e+01)
×100 %=4.0836500e+03 %
Iteration 4
The new approximate Root 4 =4.1836500e+01−(1.6426818e+16 )/(3.9264322e+15)=3.7652850e+01
∣
The True Error E t =
4
TrueRoot∣
TrueRoot−Root 4
∣
×100 %=
1.0000000e+00 ∣
1.0000000e+00−(3.7652850e+01)
×100 %=3.6652850e+03 %
Iteration 5
The new approximate Root 5=3.7652850e+01−(5.7276773e+15)/(1.5211803e+15)=3.3887565e+01
∣
The True Error E t =
5
TrueRoot∣
TrueRoot−Root 5
∣
×100 %=
1.0000000e+00 ∣
1.0000000e+00−(3.3887565e+01)
×100 %=3.2887565e+03 %
Iteration 7
The new approximate Root 7=3.0498809e+01−(6.9635184e+14)/(2.2832100e+14)=2.7448928e+01
Iteration 8
The new approximate Root 8=2.7448928e+01−(2.4280288e+14 )/(8.8456233e+13)=2.4704035e+01
Iteration 9
The new approximate Root 9=2.4704035e+01−(8.4660128e+13)/(3.4269757e+13)=2.2233631e+01
Iteration 10
The new approximate Root 10=2.2233631e+01−(2.9519161e+13)/(1.3276806e+13)=2.0010268e+01
13
(a) Troubles with an inflection point [that is, f ′′(x) = 0] in the vicinity of a root. iterations
beginning at x0 progressively diverge from the root.
14
16
BONUS CREDITS
17