Gauss-Seidel Method — Definition, Formula & Examples
The Gauss-Seidel method is an iterative algorithm for solving a system of linear equations. Instead of finding an exact solution in one step, it starts with an initial guess and repeatedly refines each variable using the most recently computed values until the answers converge.
Given a system where is an matrix decomposed as (with being the lower triangular part including the diagonal and the strictly upper triangular part), the Gauss-Seidel iteration computes . Convergence is guaranteed when is strictly diagonally dominant or symmetric positive definite.
Key Formula
Where:
- = Updated value of the i-th variable at iteration k+1
- = Entry in row i, column j of the coefficient matrix A
- = The i-th entry of the constant vector b
- = Current iteration number
How It Works
You isolate each variable from the -th equation. When computing in a new iteration, you use the updated values of that were already calculated in the current iteration, along with the old values of . This immediate use of new values is what distinguishes Gauss-Seidel from the Jacobi method and typically makes it converge faster. You repeat until the change between successive iterations is smaller than a chosen tolerance.
Worked Example
Problem: Solve the system using one Gauss-Seidel iteration starting from x₁ = 0, x₂ = 0:
4x₁ + x₂ = 1
x₁ + 3x₂ = 2
Step 1: Isolate x₁ from equation 1 and compute using the initial guess for x₂.
Step 2: Isolate x₂ from equation 2, using the newly computed x₁ = 0.25 (not the old value 0).
Answer: After one iteration: x₁ ≈ 0.25, x₂ ≈ 0.5833. Repeating this process, the values converge to the exact solution x₁ = 1/11 ≈ 0.0909, x₂ = 7/11 ≈ 0.6364.
Why It Matters
Direct methods like Cramer's Rule or Gaussian elimination become computationally expensive for very large systems. The Gauss-Seidel method is widely used in engineering simulations, finite element analysis, and computational fluid dynamics where systems can have thousands or millions of equations.
Common Mistakes
Mistake: Using old iteration values for all variables instead of updated ones within the same iteration.
Correction: That describes the Jacobi method, not Gauss-Seidel. In Gauss-Seidel, always substitute the most recently computed value of each variable as soon as it is available.
