Professional Documents
Culture Documents
Chapter 1: Iterative Methods: Abdelkrim E Professeur of Applied Mathematics - AI
Chapter 1: Iterative Methods: Abdelkrim E Professeur of Applied Mathematics - AI
Abdelkrim E L MOUATASIM
AI
Professeur of Applied Mathematics -
https://sites.google.com/a/uiz.ac.ma/elmouatasim/
FPO - MME - S2
March 8, 2022
Plan
Plan
1 Iterative Methods I
Iterative Methods
Jacobi's Method
Convergence
2 Summary
Summary
3 Iterative Methods II
Iterative Methods
Gauss-Seidel Method
Convergence Analysis
Outline
1 Iterative Methods I
Iterative Methods
Jacobi's Method
Convergence
2 Summary
Summary
3 Iterative Methods II
Iterative Methods
Gauss-Seidel Method
Convergence Analysis
Iterative Methods
Ax b.
All direct methods require O pn 3 q operations. For large matrices this
takes time and each operation introduces error that may accumulate.
Other methods may be preferable.
Iterative Methods
Ax b.
All direct methods require O pn 3 q operations. For large matrices this
takes time and each operation introduces error that may accumulate.
Other methods may be preferable.
Iterative Methods
Ax b.
All direct methods require O pn 3 q operations. For large matrices this
takes time and each operation introduces error that may accumulate.
Other methods may be preferable.
A general framework
P,AN
where N and P are (as yet unknown) n n matrices. The linear system
becomes
Nx Px b.
N x pi q P x pi q1
b, i 1, 2, . . .
Obviously consistent with the original equation. The algorithm will only
be useful if
1 N is nonsingular, and
2 The linear system Ny z is easy to solve.
A. El MOUATASIM Computing Science
Iterative Methods I Iterative Methods
Summary Jacobi's Method
Iterative Methods II Convergence
A general framework
P,AN
where N and P are (as yet unknown) n n matrices. The linear system
becomes
Nx Px b.
N x pi q P x pi q1
b, i 1, 2, . . .
Obviously consistent with the original equation. The algorithm will only
be useful if
1 N is nonsingular, and
2 The linear system Ny z is easy to solve.
A. El MOUATASIM Computing Science
Iterative Methods I Iterative Methods
Summary Jacobi's Method
Iterative Methods II Convergence
A general framework
P,AN
where N and P are (as yet unknown) n n matrices. The linear system
becomes
Nx Px b.
N x pi q P x pi q1
b, i 1, 2, . . .
Obviously consistent with the original equation. The algorithm will only
be useful if
1 N is nonsingular, and
2 The linear system Ny z is easy to solve.
A. El MOUATASIM Computing Science
Iterative Methods I Iterative Methods
Summary Jacobi's Method
Iterative Methods II Convergence
General assumptions
In what follows we shall always assume that all diagonal entries are 1.
If the diagonal element of any row is zero, permute the rows. It must be
possible to arrange a nonsingular matrix such that every diagonal element
is non-zero just by row operations.
General assumptions
In what follows we shall always assume that all diagonal entries are 1.
If the diagonal element of any row is zero, permute the rows. It must be
possible to arrange a nonsingular matrix such that every diagonal element
is non-zero just by row operations.
General assumptions
In what follows we shall always assume that all diagonal entries are 1.
If the diagonal element of any row is zero, permute the rows. It must be
possible to arrange a nonsingular matrix such that every diagonal element
is non-zero just by row operations.
Jacobi's Method
AN P
was that the Ny z should be easy to solve. The simplest possible
problem would be N I.
This means (as A is 1 on the diagonal) that
P AL AU
x pi q pAL AU qx pi 1q b, i 1, 2, . . .
and the convergence matrix is M P.
A. El MOUATASIM Computing Science
Iterative Methods I Iterative Methods
Summary Jacobi's Method
Iterative Methods II Convergence
Jacobi's Method
AN P
was that the Ny z should be easy to solve. The simplest possible
problem would be N I.
This means (as A is 1 on the diagonal) that
P AL AU
x pi q pAL AU qx pi 1q b, i 1, 2, . . .
and the convergence matrix is M P.
A. El MOUATASIM Computing Science
Iterative Methods I Iterative Methods
Summary Jacobi's Method
Iterative Methods II Convergence
3
1
1
3
x1
x2
5
7
1
5
A b
1
3 3
1 , 7 .
1
3 3
P 0 0
1
3
M 1
3
3
1
1
3
x1
x2
5
7
1
5
A b
1
3 3
1 , 7 .
1
3 3
P 0 0
1
3
M 1
3
3
1
1
3
x1
x2
5
7
1
5
A b
1
3 3
1 , 7 .
1
3 3
P 0 0
1
3
M 1
3
Convergence
Convergence
Convergence
Outline
1 Iterative Methods I
Iterative Methods
Jacobi's Method
Convergence
2 Summary
Summary
3 Iterative Methods II
Iterative Methods
Gauss-Seidel Method
Convergence Analysis
Summary
AN P.
Convergence depends on M N P.
1
Outline
1 Iterative Methods I
Iterative Methods
Jacobi's Method
Convergence
2 Summary
Summary
3 Iterative Methods II
Iterative Methods
Gauss-Seidel Method
Convergence Analysis
Iterative Methods
Ax b.
Iterative methods build a sequence of approximate solutions. Start from
guess x p0q and compute approximations x p1q , x p2q , . . . , x pN q which
converge to the exact solution.
AN
P, ùñ N x pi q P x pi q 1
b
and for Jacobi use N I .
Iterative Methods
Ax b.
Iterative methods build a sequence of approximate solutions. Start from
guess x p0q and compute approximations x p1q , x p2q , . . . , x pN q which
converge to the exact solution.
AN
P, ùñ N x pi q P x pi q 1
b
and for Jacobi use N I .
Iterative Methods
Ax b.
Iterative methods build a sequence of approximate solutions. Start from
guess x p0q and compute approximations x p1q , x p2q , . . . , x pN q which
converge to the exact solution.
AN
P, ùñ N x pi q P x pi q 1
b
and for Jacobi use N I .
Gauss-Seidel Method
AI pAL AU q
as before. Choose
N I AL ,
P AU .
This makes the iteration scheme
x pi q AL x pi q AU x pi 1q b, i 1, 2, . . .
Gauss-Seidel Method
AI pAL AU q
as before. Choose
N I AL ,
P AU .
This makes the iteration scheme
x pi q AL x pi q AU x pi 1q b, i 1, 2, . . .
As above we look at
1
5
3
1
1
3
x1
x2
5
7
Ñ 1
1
3
1
x1
x2
3
7 .
3 3
We have
AL 1{30 0
, AU 0 1{3
0 0 0
pi q 3 3
x1 1 5 1 5
x pi q pi q
2
.
x2 1
7 7x 1
If read row-by-row from the top we have always computed the x pi q entries
before they are used.
Convergence analysis