Professional Documents
Culture Documents
Iterative Methods For Solving Linear Systems of Equations
Iterative Methods For Solving Linear Systems of Equations
Systems of Equations
(part of the course given for the 2 grade at BGU, ME)
nd
Iterative Methods
An iterative technique to solve Ax=b starts with an initial
(k )
approximation x (0) and generates a sequence x k 0
First we convert the system Ax=b into an equivalent
form x Tx c
( k 1)
aij x j bi
j 1
j i
xi( k ) , i 1, 2,...., n
aii
Algorithm: Jacobi Iterative Method
The Jacobi Method: x=Tx+c Form
a11 a12 a1n
a a22 a2n
21
A . . .
. . .
an1 an 2 ann
A DLU
The Jacobi Method: x=Tx+c Form
(cont)
and the equation Ax=b can
A DLU be transformed into
D L U x b
Dx L U x b
x D1 L U x D 1b
Finally
TD 1
L U c D 1b
The Gauss-Seidel Iterative Method
(k )
The idea of GS is to compute x using most recently
:calculated values. In our example
1 ( k 1) 1 3
x1( k ) x2 x3( k 1)
10 5 5
1 (k ) 1 3 25
x2( k ) x1 x3( k 1) - x4( k 1)
11 11 11 11
1 1 1 11
x3( k ) - x1( k ) x2( k ) x4( k 1)
5 10 10 10
3 1 15
x4( k ) - x2( k ) x3( k )
8 8 8
( 0)
Starting iterations with x (0, 0, 0, 0) , we obtain
The Gauss-Seidel Iterative Method
a a x
i 1 n
(k ) ( k 1)
ij j
x ij j bi
j 1 j i 1
xi( k ) , i 1, 2,...., n
aii
(k ) ( k 1)
Gauss-Seidel in x Tx c form (the Fixed
Point)
Ax (D L U)x b
D L x Ux b
D L x (k ) Ux(k 1) b
Finally x ( k ) D L 1 U x ( k 1) D L 1 b
T c
Algorithm: Gauss-Seidel Iterative Method
The Successive Over-Relaxation Method (SOR)
x (k )
i x i
(k )
(1 - ) x( k 1)
i
(k )
where xi denotes a GS iterate and ω is the
extrapolation factor. The idea is to choose a value of ω
that will accelerate the rate of convergence.
0 1 under-relaxation
1 2 over-relaxation
SOR: Example
4 x1 3 x 2 24
3 x1 4 x 2 x3 30 Solution: x=(3, 4, -5)
x 2 4 x3 24