Lecture Notes 5
Lecture Notes 5
1 n
xi [bi
aii
j 1, j i
aij x j ] ; i 1, 2,3,..., n
1 n
i aij x j ] , i 1, 2,..., n
(2) (1)
• This iterative procedure
xi is[bcontinued
aii j 1, j i
1 n
xi ( k 1)
[bi aij x j ( k ) ] , i 1, 2,..., n k 1, 2,...
aii j 1, j i
• Until
xi ( k 1) xi ( k )
( k 1)
s i 1, 2,3...
xi
1
x1(3) (1 0.333 2 4.5714) 1.5619
5
1
x2 (3) (2 2 (0.2) 3 4.5714) 2.6857
6
1
x3(3) (32 2 ( 0.2) 0.333) 4.5810
7
No of iteration x1 x2 x3
1 0 0 0
2 -0.2000 0.3333 4.5714
3 1.5619 2.6857 4.5810
4 1.0952 2.1032 3.7415
5 0.8760 1.8390 3.9580
. . . .
. . . .
. . . .
11 0.9998 1.9997 3.9991
1 i 1 n
xi ( k 1)
[bi aij x j ( k 1)
aij x j ( k ) ] , i 1, 2,..., n k 1, 2,...
aii j 1 j i 1
1
x3(2) (32 2 (0.2) 0.4) 4.5714
7
No of iteration x1 x2 x3
1 0 0 0
2 -0.2000 0.4 4.5714
3 1.5586 2.1029 3.8286
4 0.9109 1.9440 4.0335
5 1.0246 2.0085 3.9918
6 0.9950 1.9975 4.0018
7 1.0012 2.0005 3.9996
8 0.9997 1.9999 4.0001
f1 f f
f1 ( x1 , x2 ,..., xn ) f1 ( x1 , x2 ,..., xn ) ( x1 x1 ) 1 ( x2 x2 ) ... 1 ( xn xn )
x1 x2 xn
.
.
f n f n f n
f n ( x1 , x2 ,..., xn ) f1 ( x1 , x2 ,..., xn ) ( x1 x1 ) ( x2 x2 ) ... ( xn xn )
x1 x2 xn
(1) (1)
f1 f1 f 2 f
x1 1.5 1 6 x1 x2 2 1 6 (1.5) (3.5)
x2 x2 x2 x2
• First Iteration
f1 f1
x x1 f1
x2 6.5 1.5 x1(1) 2.5
1 36.75 32.5 (1) 1.625
f 2 f 2 x2
x x f
1 x2 2 2
x1(1) 0.536
x2 (1) 0.6561
x1(2) x1(1) x1(1) 1.5 0.536 2.036
x2 (2) x2 (1) x2 (1) 3.5 0.6561 2.8439
CENG 202: NUMERICAL ANALYSIS, DR. SEMIH ERHAN
Newton-Raphson Method for System
of Nonlinear Equations
• Second Iteration
f1 f1
x x f
x2 1 1 6.9159 2.0360 x1(2) 0.0645
1 24.2633 35.7411 (2) 4.7560
f 2 f 2 x2
x x f
1 x2 2 2
x1(2) 0.0373
x2 (2) 0.1584