VKCMVI
COMPUTATIONAL MATHEMATICS

Gauss–Seidel method

Explore sequential updates, convergence conditions and residual history for linear systems.

Calculator

Load the problem, then select Solve to view the steps. Some advanced examples intentionally fail or do not converge.

Method and applicability

Gauss–Seidel iteration

xi(k+1)=bi−∑j<iaijxj(k+1)−∑j>iaijxj(k)aii

Strict row diagonal dominance or symmetric positive definiteness is sufficient for convergence.

Results

Worked examples

Basic 1

4x₁ + x₂ = 6; 2x₁ + 3x₂ = 8; x⁽⁰⁾ = (0, 0)

Expected result: x ≈ (1, 2)

Calculation steps
  1. x₁⁽ᵏ⁺¹⁾ = (6 − x₂⁽ᵏ⁾)/4; x₂⁽ᵏ⁺¹⁾ = (8 − 2x₁⁽ᵏ⁺¹⁾)/3
  2. x⁽⁰⁾ = (0, 0) → x⁽¹⁾ = (1.5, 5/3)
  3. x⁽²⁾ = (13/12, 35/18)
  4. |4| > |1|; |3| > |2|; x⁽ᵏ⁾ → (1, 2)

Source: Original exercise

Academic 2

2x − y = 3; x + 3y = 1; x⁽⁰⁾ = (1, −1); k = 3

Expected result: x⁽³⁾ = (17/12, −5/36)

Calculation steps
  1. x⁽ᵏ⁺¹⁾ = (3 + y⁽ᵏ⁾)/2; y⁽ᵏ⁺¹⁾ = (1 − x⁽ᵏ⁺¹⁾)/3
  2. x⁽¹⁾ = (1, 0); x⁽²⁾ = (3/2, −1/6)
  3. x⁽³⁾ = (17/12, −5/36)

Source: Durham University · MATH1551, 1.13

Advanced 3

x + 2y = 3; 2x + y = 3; k = 8

Expected result: x⁽¹⁾ = (3, −3); x⁽²⁾ = (9, −15)

Expected: iteration limit, not convergence.

Source: Original exercise

Accuracy and common pitfalls

Use newly computed components immediately. Changing the equation order can change convergence behavior.

Recommended reading