Gauss-Jacobi Iterative Method Calculator

Enter your system of linear equations as an augmented matrix, set your initial guess and tolerance, and the Gauss-Jacobi Iterative Method Calculator solves for all variables x₁, x₂, x₃ step by step. Provide the coefficient matrix (A) and constants vector (b) for a 2×2 or 3×3 diagonally dominant system, and get back the solution vector, number of iterations, and a full iteration table showing convergence.

Choose the number of equations and unknowns.

Iteration stops when max change between iterations is below this value.

Maximum number of iterations to perform.

Initial guess for x₁

Initial guess for x₂

Initial guess for x₃

Results

Iterations to Converge

--

x₁ Solution

--

x₂ Solution

--

x₃ Solution

--

Final Error (max |Δx|)

--

Converged?

--

Convergence of Variables per Iteration

Results Table

Frequently Asked Questions

What is the Gauss-Jacobi iterative method?

The Gauss-Jacobi method (also called the Jacobi method) is an iterative algorithm for solving systems of linear equations. Starting from an initial guess, each variable is updated simultaneously using values from the previous iteration, repeating until the solution converges within a specified tolerance. It was developed by mathematician Carl Gustav Jacobi.

What is diagonal dominance and why does it matter?

A matrix is diagonally dominant when the absolute value of each diagonal element is greater than the sum of the absolute values of all other elements in that row. Diagonal dominance guarantees that the Jacobi iteration will converge to a solution. If your matrix is not diagonally dominant, the method may diverge or fail to converge.

What is the difference between Gauss-Jacobi and Gauss-Seidel methods?

In the Gauss-Jacobi method, all variables are updated simultaneously using only values from the previous iteration. In the Gauss-Seidel method, each variable is updated using the most recently computed values. Gauss-Seidel typically converges faster, but Gauss-Jacobi is easier to parallelize and is a fundamental iterative technique.

How do I choose the initial guess for the iteration?

A common starting point is to use all zeros (x₁⁰ = x₂⁰ = x₃⁰ = 0), which works well for diagonally dominant systems. If you have prior knowledge about approximate values, using those can reduce the number of iterations needed to reach convergence.

What tolerance value should I use?

A tolerance of 0.0001 is suitable for most practical problems, giving solutions accurate to about 4 decimal places. For higher precision (engineering or scientific applications), use 0.000001 or smaller. The iteration stops once the maximum change in any variable between consecutive iterations falls below your chosen tolerance.

What does it mean if the calculator says it did not converge?

If the method reaches the maximum number of iterations without the error dropping below the tolerance, the system is reported as not converged. This usually means the matrix is not diagonally dominant or is ill-conditioned. Try rearranging rows to increase diagonal dominance, or consider using a direct method like Gaussian elimination instead.

How many equations can this calculator solve?

This calculator supports 2×2 and 3×3 systems of linear equations. Select the system size from the dropdown, then fill in the coefficient matrix A and constants vector b accordingly. For larger systems, the same algorithm applies but requires specialized software.

Can the Jacobi method solve any system of equations?

No. The Jacobi method is only guaranteed to converge for strictly diagonally dominant matrices. It may also converge for some non-dominant systems, but this is not guaranteed. For systems that are not diagonally dominant, direct methods such as Gaussian elimination or LU decomposition are more reliable.

More Math Tools