Mathematics / Jacobi Iteration
FREE TO EXPLORE
LABORATORY 14 · MATHEMATICS

Jacobi Iteration lab report

A worked jacobi iteration lab report with iteration data tables, logarithmic graphs, calculations, uncertainty and conclusions.

WORKED EXAMPLE · BENCHMARK OBSERVATIONS

A complete example laboratory report.

Simulated demonstration data.

This report illustrates formal numerical analysis, iteration tracking, and convergence rate extraction. Replace its observations with your own computational telemetry when preparing a practical submission.

Student: __________________Student ID: __________________Course: __________________Date: __________________Partner: __________________Instructor: __________________

1. Title and aim

Spectral Radius and Asymptotic Convergence of the Jacobi Iteration Method. Solve strictly diagonally dominant linear systems Ax = b using the stationary Jacobi splitting method A = D − (L + U), analyze the spectral radius ρ(T_J) = max |λ_i| of the Jacobi iteration matrix T_J = D⁻¹(L + U), and extract the asymptotic linear convergence factor ρ = 0.500 via linear regression of logarithmic error norms.

2. Abstract

Six computational trials were executed across standardized inputs k = 1.0 to k = 6.0 for Spectral Radius and Asymptotic Convergence of the Jacobi Iteration Method. An ordinary least-squares regression yielded an empirical Jacobi Spectral Radius ρ of 0.500 (difference from theoretical reference = 0.0047%). The empirical telemetry conclusively validates the theoretical model and complexity scaling with R² = 1.000000.

3. Apparatus and fixed settings

4. Theory and graph choice

The Jacobi method—introduced in 1845 by the renowned German mathematician Carl Gustav Jacob Jacobi for astronomical perturbation calculations—is the foundational prototype of stationary iterative methods for solving large linear systems Ax = b. When discretized partial differential equations (such as the Laplace, Poisson, or heat equations) generate sparse linear systems containing millions of unknowns, direct factorization methods like Gaussian elimination or LU decomposition become completely unviable due to O(n³) operation costs and catastrophic 'fill-in' that destroys matrix sparsity. Iterative methods overcome this by generating a sequence of vectors x^{(0)}, x^{(1)}, x^{(2)}, ... that converge toward the exact solution while operating strictly on the non-zero entries of A. Jacobi's algorithm partitions the coefficient matrix A into A = D − L − U, where D is the diagonal, −L is the strictly lower triangle, and −U is the strictly upper triangle. Rewriting Ax = b as Dx = (L + U)x + b yields the classical Jacobi fixed-point iteration: x^{(k+1)} = D⁻¹(L + U)x^{(k)} + D⁻¹b = T_J x^{(k)} + c. In component form, each element is updated by: x_i^{(k+1)} = (b_i − ∑_{j≠i} a_{ij}x_j^{(k)}) / a_{ii}. Because every new component x_i^{(k+1)} depends exclusively on iterates from the previous time step k, the Jacobi method is embarrassingly parallel: all n components can be computed concurrently without communication barriers, making it an ideal algorithm for massively parallel graphics processing units (GPUs) and distributed supercomputing clusters. The mathematical convergence of the Jacobi method is governed entirely by the spectral radius of the iteration matrix: ρ(T_J) = max |λ_i(T_J)|. If A is strictly diagonally dominant (|a_{ii}| > ∑_{j≠i} |a_{ij}|), Gerschgorin's Circle Theorem guarantees that ρ(T_J) < 1, ensuring unconditional convergence. The error norm attenuates geometrically at every step: ‖e^{(k+1)}‖ ≈ ρ(T_J) · ‖e^{(k)}‖. In this computational laboratory, students evaluate the Jacobi method on a diagonally dominant system with theoretical spectral radius ρ = 0.500 across six standardized iteration steps, track simultaneous vector updates, and extract the empirical spectral radius ρ = 0.500 via logarithmic linear regression.

\ln(\Vert e_{k+1}\Vert) = 1.000 \cdot \ln(\Vert e_k\Vert) + \ln(\rho) \implies \rho = e^{\ln(\rho)} = 0.500

The mathematical regression linearizes the relationship into the form y = mx + b. Here, the independent variable x represents Current Log Error Norm ln(‖e_k‖), and the dependent variable y represents Next Log Error Norm ln(‖e_{k+1}‖). The slope m directly extracts Jacobi Spectral Radius ρ, while the intercept b accounts for residual baseline offsets.

5. Method

  1. For each row i, compute the diagonal magnitude |a_{ii}| and sum of off-diagonals ∑_{j≠i} |a_{ij}|. Confirm |a_{ii}| > ∑_{j≠i} |a_{ij}| to guarantee global convergence.
  2. Set initial approximation x^{(0)} = [0, 0, ..., 0]ᵀ and compute initial error norm ‖e_0‖ = ‖x^{(0)} − x*‖ = 0.367879 (ln(‖e_0‖) = −1.000).
  3. Compute all components simultaneously: x_i^{(1)} = (b_i − ∑_{j≠i} a_{ij} x_j^{(0)}) / a_{ii}. Error drops to ‖e_1‖ = 0.183940 (ln(‖e_1‖) = −1.6931).
  4. Execute simultaneous updates: step 2 yields ‖e_2‖ = 0.091970 (ln = −2.3863); step 3 yields ‖e_3‖ = 0.045985 (ln = −3.0794).
  5. Execute iterations up to k = 6: step 4 yields ‖e_4‖ = 0.022992; step 5 yields ‖e_5‖ = 0.011496; step 6 yields ‖e_6‖ = 0.005748.
  6. Plot ln(‖e_{k+1}‖) against ln(‖e_k‖). Perform ordinary least-squares regression: y = m·x + b. Verify slope m = 1.000 and extract spectral radius ρ = e^b = e^(−0.6931) = 0.500.

6. Observations and calculation table

All iterative observations use strictly controlled 64-bit IEEE 754 precision buffers. Residuals are computed relative to the ordinary least-squares regression line.

Table 1. Six simulated observations; x and y represent transformed mathematical metrics.
No.Iteration Step k (steps)Euclidean Error Norm ‖e_k‖ ()Current Log Error Norm ln(‖e_k‖)Next Log Error Norm ln(‖e_{k+1}‖)Fitted yResidual
11.00.367879-1.0000-1.6931-1.6931-0.0000
22.00.183948-1.6931-2.3862-2.3862-0.0000
33.00.091969-2.3863-3.0794-3.0794-0.0000
44.00.045987-3.0794-3.7725-3.77250.0000
55.00.022992-3.7726-4.4657-4.46570.0000
66.00.011497-4.4657-5.1588-5.15880.0000

Download the sample observations (CSV) ↓

7. Worked calculation for one observation

For step k = 1.0: Current coordinate x = -1.0000. Mathematical model response y = -1.6931. Output reading: 0.3679.

8. Graph, gradient and final calculation

-5.68-4.88-4.55-3.81-3.43-2.73-2.30-1.66-1.17-0.58Current Log Error Norm ln(‖e_k‖)Next Log Error Norm ln(‖e_{k+1}‖)

Circular markers represent empirical computational observations. The solid line represents the ordinary least-squares linear fit.

x̄ = -2.73285; ȳ = -3.42595
Σ(x − x̄)² = 8.40789
Σ(x − x̄)(y − ȳ) = 8.40789
m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)² = 1.00000000
b = ȳ − mx̄ = -0.69310000
ln(‖e_(k+1)‖) = 1.0000 · ln(‖e_k‖) + -0.6931 ⟹ ρ = e^(-0.6931) = 0.500 (theoretical ρ = 0.500)

9. Uncertainty and comparison

Percentage difference = |estimate − theoretical value| / |theoretical value| × 100 = 0.0047%.

For n = 6 observations, Σresidual² = 7.8886e-31; s² = Σresidual²/(n − 2). Gradient standard error = √[s²/Σ(x − x̄)²] = 1.5315e-16. Intercept standard error = √[s²(1/n + x̄²/Σ(x − x̄)²)] = 4.5612e-16.

Propagating the fit parameters yields a fit standard error of 2.2807e-16 , with an ideal coefficient of determination R² = 1.000000.

In computational mathematics and numerical analysis, errors arise from algorithmic discretization, finite precision IEEE 754 floating-point arithmetic (machine epsilon ε_mach ≈ 2.22 × 10⁻¹⁶ for 64-bit double precision), and condition number propagation. The ordinary least-squares fit across n = 6 standardized observations provides standard errors for the gradient and intercept. Because the mathematical recurrence is evaluated with high numerical precision, the residual sum of squares is vanishingly small, yielding a coefficient of determination R² ≥ 0.999999 and confirming the theoretical mathematical model.

10. Result and discussion

Jacobi Spectral Radius ρ = 0.500
Theoretical reference value: 0.500

The empirical benchmark observations provide rigorous quantitative verification of Spectral Radius and Asymptotic Convergence of the Jacobi Iteration Method. In numerical analysis, scientific computing, and computational mathematics, algorithms are characterized by their asymptotic operational scaling, stability, and convergence rates. Across all six observations, the empirical slope m = 1.0000 confirms the theoretical model with near-zero residual variance. Furthermore, comparison with alternative algorithmic paradigms underscores critical trade-offs between memory footprint, condition number sensitivity, and operational throughput. The algorithm's behavior confirms the mathematical predictions established by numerical analysis literature.

11. Precautions and limitations

Convergence is strictly linear and can be excruciatingly slow if the spectral radius is close to 1. The numerical simulation model evaluates a strictly diagonally dominant 4×4 linear system Ax = b with analytical solution x* = [1.0, 2.0, 3.0, 4.0]ᵀ and Jacobi iteration matrix T_J = D⁻¹(L + U) having eigenvalues λ = [0.500, −0.500, 0.250, −0.250], giving spectral radius ρ(T_J) = 0.500000. Initial error norm: ‖e_0‖ = 0.367879 (ln(‖e_0‖) = −1.0000). Across six iterations, the Euclidean error norms are: ‖e_1‖ = 0.183940 (ln = −1.6931); ‖e_2‖ = 0.091970 (ln = −2.3863); ‖e_3‖ = 0.045985 (ln = −3.0794); ‖e_4‖ = 0.022992 (ln = −3.7726); ‖e_5‖ = 0.011496 (ln = −4.4657); ‖e_6‖ = 0.005748 (ln = −5.1589). Linear regression of y = ln(‖e_{k+1}‖) against x = ln(‖e_k‖) yields slope m = 1.00000 and intercept ln(ρ) = −0.693147 with coefficient of determination R² = 1.000000. The empirical spectral radius is extracted as ρ = e^(−0.693147) = 0.50000, matching the theoretical spectral radius ρ = 0.50000 within 0.0000% deviation.

12. Conclusion

This computational laboratory investigation quantitatively verified the mathematical formulation and asymptotic scaling of Spectral Radius and Asymptotic Convergence of the Jacobi Iteration Method. Through rigorous tracking across six observation points, we confirmed an empirical Jacobi Spectral Radius ρ of 0.500 matching the theoretical reference 0.500 within 0.0047% error. The investigation demonstrates why this method serves as an indispensable tool in modern computational science.