Jacobi and Gauss-Seidel iteration
5 min read
Short answer
Solve each equation for its diagonal unknown and iterate. Jacobi uses only the previous iterate: . Gauss-Seidel uses new values as soon as they are computed and usually converges faster. Both converge when is strictly diagonally dominant.
When to use iterative methods
For very large sparse systems (millions of unknowns from PDEs), elimination fills in zeros and is too costly. Each iteration only needs a sparse matrix-vector product, so iterative methods win in memory and time.
Convergence
If for every row, both methods converge from any starting vector. Convergence can occur without this condition, but it is not guaranteed.
Worked example
Apply Jacobi to , from for three steps. The exact solution is .
Updates: , . Step 1: . Step 2: , . Step 3: , . The iterates close in on .
Try it yourself
Is strictly diagonally dominant?
Show the answer
Row 1: ✓. Row 2: ✓. Yes, so both methods converge.
Keep going with practice
Vidi's linear algebra lessons solve small systems exactly; this is how the very large ones are solved.