next up previous


Jacobi's and Gauss-Seidel Method


Let tex2html_wrap_inline8415 and tex2html_wrap_inline9747(i = 1 : n). We will consider the solution of the system of equations
 equation2547
by an iterative method.

Definition 7.2.1. The approximation or the approximate value of the solution tex2html_wrap_inline7177 of system (1) is a vector that in certain sense differs little from the vector tex2html_wrap_inline9751 Let us represent system (1) in the form
displaymath9717
Jacobi's iterative process is defined by the algorithm
 equation5153
The Gauss-Seidel iterative process is defined by the algorithm
 equation5162
In case of both Jacobi's and the Gauss-Seidel iterative processes the transition from the approximation tex2html_wrap_inline9753 of the solution of system (1) to the next approximation tex2html_wrap_inline9755 can be described using the matrices
displaymath9718
and tex2html_wrap_inline9757 while A=L+D+U. For example, Jacobi's algorithm can be represented as
 equation5195
where MJ=D and NJ=-(L+U). The Gauss-Seidel algorithm (3) can be represented as
 equation5203
where MG=D+L and NG=-U.

Example 7.2.1.* Let us solve the system tex2html_wrap_inline6841, where
displaymath9719
by Jacobi's method.
Let us represent the matrix A in the form
displaymath9720
We will form the matrices Mj and Nj:
displaymath9721
The algorithm of Jacobi's iterative process can be given in the form
displaymath9722
Since
displaymath9723
and
displaymath9724
then
displaymath9725
If we take for the initial approximation tex2html_wrap_inline9779 then we shall have
displaymath9726

displaymath9727
:
displaymath9728

displaymath9729

displaymath9730
and so on (the exact solution of this equation is tex2html_wrap_inline9781).

Problem 7.2.1.* Solve the system given in example 7.2.1 by the Gauss-Seidel method.