Differential Equations & Numerical Methods · BE5B01DEN · Topic 10 of 13
Iterative methods for linear systems: Jacobi, Gauss–Seidel
Week 10. Jacobi uses old values, Gauss–Seidel reuses the new ones; strict diagonal dominance guarantees convergence.
Key ideas
Jacobi and Gauss–Seidel sweeps
Solve the i-th equation for xᵢ. Jacobi computes the whole new vector from the old one; Gauss–Seidel uses the already updated entries x₁,…,xᵢ₋₁ inside the same sweep, so it usually converges faster.
When does it converge?
The iteration xₖ₊₁=Bx_k+c converges for every start exactly when ϱ(B)<1, and ‖B‖<1 in some induced norm is sufficient. Strictly diagonally dominant matrices make both methods converge; reorder the equations to get a large diagonal.
Relaxation (SOR)
Blend the Gauss–Seidel value with the old value using a parameter ω. For a symmetric matrix with positive diagonal, SOR converges for every start exactly when A is positive definite and 0<ω<2 (Ostrowski).
In one line: Check the matrix, not the iteration: dominance or ϱ(B)<1 decides before you compute anything.
Formulas
- Jacobi and Gauss–Seidel sweeps
- When does it converge?
- Relaxation (SOR)
Practice with worked solutions
Question 1
Apply the Jacobi iteration from (0, 0) and give x₂.
Worked solution
Answer: 5/3
Both new values of a sweep use only the old vector.
Question 2
Apply the Gauss–Seidel iteration from (0, 0) and give y₂.
Worked solution
Answer: 247/144
Each sweep updates x first and uses the new x to update y.
Question 3
In which order should the equations be listed so that both Jacobi and Gauss–Seidel are guaranteed to converge?
- E1, E2, E3
- E2, E3, E1 (correct)
- E3, E2, E1
- E2, E1, E3
Worked solution
Put each unknown’s largest coefficient on the diagonal until the matrix is strictly diagonally dominant.
More Differential Equations & Numerical Methods practice in Ucenly
Sources
Written by Ucenly. Based on the BE5B01DEN course materials:
- Course card BE5B01DEN (Bílá kniha), p. 1
- Lecture slides: Linear algebra numerical view (edens_n5matrix.pdf), p. 11, 12, 13, 14
- Habala: Ordinary Differential Equations and Numerical Analysis (dnbook.pdf), p. 260
- Homework 12 (edenhw12.pdf), p. 1