Path: blob/main/notebooks/drafts/jacobi_iterative_method_out.ipynb
51 views
Jacobi Iterative Method for Solving Linear Systems
Introduction
The Jacobi iterative method is a classical algorithm for solving systems of linear equations of the form:
where is a square matrix, is the unknown vector, and is the right-hand side vector.
Mathematical Formulation
Matrix Decomposition
The Jacobi method decomposes the matrix into its diagonal and off-diagonal components:
where:
is the diagonal matrix containing only the diagonal elements of
contains the lower and upper triangular parts (excluding diagonal)
Iterative Formula
The system can be rewritten as:
Leading to the iteration scheme:
Component-wise Form
For each component , the update rule is:
Convergence Criteria
The Jacobi method converges if:
Strict diagonal dominance: for all
Spectral radius condition:
The convergence rate depends on the spectral radius of the iteration matrix .
Error Analysis
The error at iteration satisfies:
where is the error vector and is the true solution.
Implementation
Jacobi Iteration Algorithm
Helper Functions
Example 1: Simple 3×3 System
Consider the diagonally dominant system:
Example 2: Larger System with Convergence Analysis
Visualization of Convergence
Comparison: Effect of Diagonal Dominance
Conclusions
The Jacobi iterative method demonstrates several key properties:
Linear Convergence: The error decreases geometrically with rate governed by
Diagonal Dominance: Stronger diagonal dominance leads to faster convergence (smaller spectral radius)
Parallelizability: Each component can be updated independently, making Jacobi suitable for parallel computation
Simplicity vs. Speed: While simple to implement, Jacobi typically converges slower than Gauss-Seidel or SOR methods
Theoretical Complexity
Per iteration: for dense matrices, for sparse
Total iterations: for tolerance