Chapter 3 The Iterative Solving Method For Linear System of Equations
Chapter 3 The Iterative Solving Method For Linear System of Equations
24/6/19 1
For any initial value x(0) , the iterative formula creates a series
{x(k)} . If
lim x (k )
x
k
We have x Bx f
Thus, x* is the solution of system Ax=b.
24/6/19 2
Note. When the matrix A of linear system is sparse, we often
use iterative methods to solve the linear system. Because you only
need compute those nonzero entries on this case, the computation
complexity can be reduced largely. On the contrary, using direct
method, for example, GEM, the sparse matrix may be become a dense
matrix and the computation will be increased largely.
Note.Because lim x ( k ) x
k
lim || x ( k ) x || 0
k
|| x ( k 1)
x (k )
||
24/6/19 3
§2 Several Iterative Methods
Eg. 3.1 Using the iterative method, Solve the system
8 x1 3 x2 2 x3 20
4 x1 11x2 x3 33
6 x 3 x 12 x 36
1 2 3
8
( k 1) 1
2x ( 4 x 1
(k )
x 3 33)
(k )
k 0,1, 2,
11
( k 1) 1
x
3 ( 6 x 1
(k )
3 x 2 36)
(k )
12
Let x(0)=(0,0,0)T , we obtain the series {x(k)}
k 0 1 2 3 4 5 6 7 8 9
x1 0 2.5000 2.8750 3.1364 3.0240 3.0003 2.9938 2.9990 3.0002 3.0001
a x
j 1
ij j bi i 1, 2, , n
24/6/19 6
Further we obtain the iterative formula
i 1 n
1
x ( k 1)
i (bi aij x j aij x j )
(k ) (k )
aii j 1 j i 1
i 1, 2, , n; k 0, 1, 2,
24/6/19 7
A L D U and Ax b , namely,
(L D U )x b Dx ( L U ) x b
Becaus e aii 0,t he mat r i x D i s nons i ngul ar . Thus
x D 1 ( L U ) x D 1b
We can write Jacobi’formula in matrix form as
(k 1)
x BJ x (k )
fJ
0 aa1211
a
a1311
a1 n1
a11 a111n
a
here aa2221 0 aa2223 aa222n1 a22
a2 n
1
BJ D ( L U ) , f J D 1b
aan1 a
annn2
ann1
0
nn ann
24/6/19 8
2.2 Gauss-Seidel’s Formula
( k 1)
x
In the Eg. 1, when we compute 2 , we need use the
value x1 . At the time, we have got the value x1( k 1), if we use
(k )
( k 1)
x
the value 1 to compute x2( k 1), we will get a more accurate
result. Similarly, when we want to compute xi( k 1) , we have
(k )
gotten new x p (i >p≥1). Using the way, we can get a new
algorithm, that is, Gauss-Seidel’s method.
Eg. 2 Solve the Eg.1 using Gauss-Seidel’s iterative formula
and then compare its result with that of Jacobi’s formula.
Solution.
1 ( k 1)
x 1 (3 x (k )
2 2 x3 20)
(k )
8
( k 1) 1 ( k 1)
x2 ( 4 x1 x3 33) k 0,1, 2, ,
(k )
11
( k 1) 1 ( k 1) ( k 1)
24/6/19 x
3 ( 6 x1 3 x 2 36) 9
12
Using Gauss-Seidel’s method, we get the series {x(k)} as follows
k 0 1 2 3 4 5 6
x1 0 2.5000 2.9773 3.0098 2.9998 2.9999 3.0000
x2 0 2.0909 2.0289 1.9968 1.9997 2.0001 2.0000
x3 0 1.2273 1.0041 0.9959 1.0002 1.0001 1.0000
i 1, 2, , n; k 0,1, 2,
24/6/19 10
A L D U and Ax b, so
(L D U)x=b Dx Lx Ux b
Dx ( k 1) Lx ( k 1) Ux ( k ) b
( D L) x ( k 1) Ux ( k ) b
x ( k 1) ( D L) 1Ux ( k ) ( D L) 1 b
We can give the Gauss-Seidel’s iterative formula in matrix form
x ( k 1) Bs x ( k ) f s
1 1
wher e Bs ( D L) U , f s ( D L) b
can be written as
1 i 1 n
x ( k 1)
x (k )
bi aij x j aij x (jk )
( k 1)
i i
aii
j 1 j i
1 i 1 n
(k )
denote x bi aij x j aij x j
( k 1) ( k 1)
(k )
i x i x (k )
i
aii j 1 j i
24/6/19 13
then
1 i 1 n
(k )
xi( k 1) xi( k ) xi( k ) bi aij x j aij x j
( k 1)
xi
(k )
aii j 1 j i
We add a parameter , we have
xi( k 1) xi( k ) xi( k )
i 1 n
bi aij x aij x
( k 1)
x (k )
i j
(k )
j
aii j 1 j i
i 1 n
(1 )x bi aij x a x
( k 1)
(k )
i j ij
(k )
j
aii j 1 j i 1
We call the formula SOR method. In particular, when =1,
the SOR becomes the Gauss-Seidel’ method.
24/6/19 14
SOR in matrix form
Dx ( k 1) (1 ) Dx ( k ) (b Lx ( k 1) Ux ( k ) )
( D L) x ( k 1) [(1 ) D U ]x ( k ) b
So, we have
x ( k 1) B x ( k ) f
wher e B ( D L) 1[(1 ) D U ]
f ( D L) 1 b
Eg. 3 Solve the follwing system using Gauss-Seidel’s method
and SOR with ω=1.45
4 x1 2 x2 x3 0
2 x1 4 x2 2 x3 2
x 2 x 3x 3
24/6/19
1 2 3
15
Solution. Let x(0)=(1,1,1)T and precision
|| x ( k 1) x ( k ) || max | xi( k 1) xi( k ) | 107
1i n
24/6/19 16
§3 Convergence Analysis for Iterative Methods
24/6/19 17
Theorem. Assume the iterative formula x ( k 1) Bx ( k ) f
is convergent, then
Theorem 3.1 For any initial vector x(0) and vector f , the
1)
x ( kby
series {x(k)} created Bx ( k ) f are convergent iff
ρ(B)<1.
Proof. It1) is
Sufficient
obviouscondition.
by the previous Theorem.
2)Necessary condition.
24/6/19 18
( k 1)
Thus x x B( x
* (k )
x )
*
24/6/19 19
Theorem 3.2 If ||B||<1 , the series {x(k)} created by x(k+1)=Bx(k)+f
converge to the exact x* and the following inequations hold
|| B ||
(1) || x (k )
x || || x ( k ) x ( k 1) ||
1 || B ||
|| B ||k
(2) || x (k )
x || || x (1) x ( 0) ||
1 || B ||
24/6/19 20
Eg. 3.4 Decide whether Jacobi’s method and Gauss-Seidel’s
method in the Eg 3.1 and 3.2 are convergent or not.
8 3 2
A 4 11 1
6 3 12 3 2
0
8 8
4 1
Solution. 1 BJ D 1 ( L U ) 0 .
11 11
6
3
0
12 12
5 5 9 9
|| BJ || max{ , , } 1
8 11 12 12
24/6/19 21
Solution. 2 3
2
0 8 8
3 2
BS ( D L ) 1U 0
22 11
27 7
0
176 88
5 7 41 5
|| BS || max{ , , } 1
8 22 176 8
Solution. 0 0
1
3
BJ D 1 ( L U ) 74 0 12
0 3 0
7 10 1 10
|| BJ ||1 max{ , , } 1
4 3 2 3
1 9
|| BJ || max{ , , 3} 3 1
3 4
11 11
|
Otherwise, JB I | 3
( BJ ) 1
12 12
So, Jacobi’s method is convergent.
24/6/19 23
Definition 3.2If A=(aij)n×n satisfies
n
| aii | |aij | i 1, 2, , n
j 1
j i
We say A is 3.3If
Definition strictlyA=(a
diagonal dominant.
ij)n×n satisfies
n
| aii | |aij | i 1, 2, , n
j 1
j i
We say A is 3.4
Definition diagonal dominant.
If A can be changed the form
A11 A12
0 A22
only by the exchanging between rows and between
columns, where A11 and A22 are square matrices. We say A
is reducible,
24/6/19 otherwise, irreducible. 24
Theorem 3.3 ( 1 ) If A is strictly diagonal
dominant, then A is nonsingular.
( 2 ) If A is irreducible and diagonal
dominant, then A is nonsingular.
Theorem 3.4 If A is strictly diagonal dominant or
irreducible and diagonal dominant, then Jacobi and
Gauss-Seidel’s method are convergent.
Eg. 3.6 8 x1 3 x2 2 x3 20
For system 4 x1 11x2 x3 33
6 x 3 x 12 x 36
1 2 3
24/6/19 25
Theorem 3.5 If SOR method converges, then 0<ω<2.
Proof.Let , ,, ar e ei genval us of B , we have
1 2 n