The Jacobi method tackles systems of linear equations by guessing a solution and repeatedly improving that guess. If we write a linear system in matrix form as , we can isolate each unknown on one side and express it using the other variables from the previous approximation. This produces the iterative scheme
With a suitable starting vector, this process can converge to the true solution. Convergence depends on the coefficients and is guaranteed when is strictly diagonally dominant or symmetric positive definite.
On each iteration, the Jacobi method uses only values from the previous step. For a 3Γ3 system, if we let the current approximation be , the next step is computed entirely from these. The updated vector becomes our new guess.
This calculator implements exactly that strategy. After entering coefficients and an iteration count, it applies the Jacobi formula repeatedly. You'll see the approximate solution vector along with insight into how each iteration brings the values closer to the actual solution.
Consider the 2Γ2 case. We write the equations as
We isolate and :
By repeating this calculation several times, the values approach the true solution as long as the method converges.
In matrix terms, the Jacobi method splits into a diagonal matrix and the remainder . The iteration reads . Because is easy to invert, this update is straightforward to compute. Convergence occurs when the spectral radius of is less than one.
For diagonally dominant matrices, where , the spectral radius is indeed less than one, ensuring convergence.
The method is named after Carl Gustav Jacobi, a prolific nineteenth-century mathematician whose work spanned number theory, analysis, and the study of elliptic functions. Although best known for contributions to canonical forms and the Jacobian determinant, his iterative technique for linear systems remains a staple of numerical analysis.
Jacobi proposed this method long before modern computers, yet it anticipated iterative solvers that would become essential for solving massive systems in scientific computing.
In practice, the Jacobi algorithm is rarely used alone for large problems because of its sometimes slow convergence. Nevertheless, it serves as the conceptual basis for more sophisticated techniques like the GaussβSeidel method and successive over-relaxation. These iterative solvers are crucial in finite element analysis, computational fluid dynamics, and many engineering fields. Understanding the Jacobi method helps build intuition for these advanced approaches.
This calculator lets you experiment with convergence by changing the number of iterations. Try different starting vectors or matrices to see how quickly the method stabilizes. You might observe oscillations or divergence if the matrix violates the diagonal dominance condition.
Suppose we have the system and . The iteration formulas become and . Starting with , the first iteration yields , and further iterations approach the exact solution . The calculator reproduces these steps automatically.
Enter zeros for unused fields if you are working with a 2Γ2 system. The iteration count determines how many times the update formulas are applied. If the values diverge or oscillate widely, try a matrix that satisfies diagonal dominance or reduce the step count. Observing how the approximate solution evolves can provide intuition about matrix conditioning and convergence speed.
The output presents the final approximated vector with six decimal places. For problems that converge quickly, you will see the values settle toward the exact solution even with ten iterations. Experiment to see how certain matrices converge faster than others, revealing the method's sensitivity to the system's structure.
The Jacobi method is only the starting point. Modern iterative techniques include preconditioning and multigrid approaches for vastly improved performance on large sparse systems. Nonetheless, the Jacobi algorithm remains a foundational concept in both theoretical and applied linear algebra. By trying different matrices in this calculator, you can connect its simple update rule to the broader landscape of iterative solvers used in science and engineering today.
Approximate the matrix logarithm of a 2x2 matrix using eigen decomposition.
Simplify fractions or calculate addition, subtraction, multiplication, and division with this browser-based fraction calculator. Perfect for students, teachers, and anyone working with ratios.
Perform a single Kalman filter prediction and update step for a scalar state.