Jacobi Iterative Method Calculator

Stephanie Ben-Joseph headshot Stephanie Ben-Joseph

Enter the coefficients for a diagonally dominant 2×2 or 3×3 linear system and choose how many Jacobi iterations to run. The solver reports the latest approximation, highlights divergence issues, and shares a copy-ready summary.

Coefficient Matrix A
Right-hand Side b

Try 10–25 iterations for most diagonally dominant systems. Increase the count when the update steps shrink slowly.

Fill in the matrix and constants to approximate the solution vector.

Spectral Sync Challenge

Click to pulse when each orbital update aligns with the focus window. Keep the residual error low and finish the iteration arc before the clock expires.

Score 0
Combo
Residual 0.00
Time 01:20

Aim with your pointer or arrow keys. Tap, click, or press space/enter to pulse. Capture each variable while the window glows to imitate Jacobi updates and keep the error under control.

What the Jacobi Method Computes

The Jacobi algorithm solves a linear system Ax=b by repeatedly updating each unknown with the latest values from the previous iteration. For the i-th row, the update rule is

xi = bi - ji n aij xj aii , which mirrors isolating a single variable in the original equations. Each iteration rebuilds the vector using only information from the prior step, making the method easy to implement but sensitive to diagonal dominance.

Monitoring Convergence

The preview table samples the early, middle, and final iterations so you can confirm that the solution stabilizes. The change column reports the infinity norm between successive vectors—if it stops shrinking, consider reducing the iteration count or switching to a faster method such as Gaussian Elimination. Persistent divergence may indicate the matrix is poorly conditioned. Comparing condition numbers with the Matrix Condition Number Calculator highlights troublesome systems before you iterate.

Because the updates treat each variable independently, the Jacobi approach parallelizes well. Large sparse matrices in scientific computing often use accelerated variants or upgrade to Gauss–Seidel and Successive Over-Relaxation methods for faster convergence. After experimenting here, you can dive deeper with the Matrix Inverse Calculator to contrast direct versus iterative techniques.

Worked 3×3 Example

Suppose you solve A=10-12-111-12-110 with b=6,25,-11. Starting from the zero vector, the first iteration produces 0.6,2.27,-1.1. By iteration ten the values converge near 1,2,-1, matching the analytic solution. Watching the infinity norm shrink confirms the matrix is safely diagonally dominant.

Tips for Reliable Results

Embed this calculator

Copy and paste the HTML below to add the Jacobi Iterative Method Calculator - Solve Linear Systems to your website.