2 Do these iterative methods always work?
No. It is not difficult to invent examples where the iteration fails to approach the solution of . The key point is related to matrix norms seen in the preceding Section.
The two iterative methods we encountered above are both special cases of the general form
- For the Jacobi method we choose and .
- For the Gauss-Seidel method we choose and .
The following Key Point gives the main result.
Key Point 13
For the iterative process the iteration will converge to a solution if the norm of is less than 1 .
Care is required in understanding what Key Point 13 says. Remember that there are lots of different ways of defining the norm of a matrix (we saw three of them). If you can find a norm ( any norm ) such that the norm of is less than 1, then the iteration will converge. It doesn’t matter if there are other norms which give a value greater than 1, all that matters is that there is one norm that is less than 1.
Key Point 13 above makes no reference to the starting “guess" . The convergence of the iteration is independent of where you start! (Of course, if we start with a really bad initial guess then we can expect to need lots of iterations.)
Task!
Show that the Jacobi iteration used to approximate the solution of
is certain to converge. (Hint: calculate the norm of .)
The Jacobi iteration matrix is
and the infinity norm of this matrix is the maximum of , and , that is
which is less than 1 and therefore the iteration will converge.
2.1 Guaranteed convergence
If the matrix has the property that it is strictly diagonally dominant , which means that the diagonal entry is larger in magnitude than the absolute sum of the other entries on that row, then both Jacobi and Gauss-Seidel are guaranteed to converge. The reason for this is that if is strictly diagonally dominant then the iteration matrix will have an infinity norm that is less than 1.
A small system is the subject of Example 20 below. A large system with slow convergence is the subject of Engineering Example 1 on page 62.
Example 20
Show that is strictly diagonally dominant.
Solution
Looking at the diagonal entry of each row in turn we see that
and this means that the matrix is strictly diagonally dominant.
Given that above is strictly diagonally dominant it is certain that both Jacobi and Gauss-Seidel will converge.
2.2 What’s so special about strict diagonal dominance?
In many applications we can be certain that the coefficient matrix will be strictly diagonally dominant. We will see examples of this in HELM booklet 32 and HELM booklet 33 when we consider approximating solutions of differential equations.
Exercises
-
Consider the system
- Use the starting guess in an implementation of the Jacobi method to show that . Find and .
- Use the starting guess in an implementation of the Gauss-Seidel method to show that . Find and .
(Hint: it might help you to know that the exact solution is .)
-
-
Show that the Jacobi iteration applied to the system
can be written
-
Show that the method is certain to converge and calculate the first three iterations using
zero starting values.
(Hint: the exact solution to the stated problem is .)
-
Show that the Jacobi iteration applied to the system
-
-
and therefore
which implies that . These two values give the required entries in . A second and third iteration follow in a similar way to give
-
and therefore . This new approximation to is used straight away when finding a new approximation to .
which implies that . These two values give the required entries in . A second and third iteration follow in a similar way to give
where is given to 6 decimal places
-
-
-
In this case
and therefore
.
So the iteration matrix
and that the Jacobi iteration takes the form
as required.
-
Using the starting values
, the first iteration of the Jacobi method gives
The second iteration is
And the third iteration is
-
In this case
and therefore
.