Mathematics / Gaussian Elimination
FREE TO EXPLORE
LABORATORY 11 · MATHEMATICS

Gaussian Elimination lab report

A worked gaussian elimination 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

Gaussian Elimination with Partial Pivoting and Cubic FLOP Complexity. Solve dense n×n linear algebraic systems Ax = b using Gaussian elimination with row-scaled partial pivoting, eliminate numerical instability from vanishingly small pivot elements, and extract the asymptotic floating-point operational scaling constant C = 2/3 ≈ 0.667 FLOPs/n³ via ordinary least-squares regression.

2. Abstract

Six computational trials were executed across standardized inputs n = 10.0 to n = 60.0 for Gaussian Elimination with Partial Pivoting and Cubic FLOP Complexity. An ordinary least-squares regression yielded an empirical Asymptotic FLOP Scaling Constant C of 0.667 (difference from theoretical reference = 0.0501%). 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

Gaussian elimination—formalized by Carl Friedrich Gauss in 1809 for celestial orbit calculations and independently discovered in ancient China in the Han Dynasty text 'The Nine Chapters on the Mathematical Art'—is the definitive direct method for solving dense systems of linear algebraic equations: Ax = b. In modern scientific computing, linear systems arise everywhere: from finite element analysis in structural engineering and Navier-Stokes simulations in aerodynamics to circuit simulation and machine learning regression. Gaussian elimination transforms the system through elementary row operations into an equivalent upper-triangular system Ux = c, which is then solved in backward order via back-substitution. However, the theoretical simplicity of Gaussian elimination conceals a dangerous numerical pitfall: without pivoting, the algorithm is numerically unstable. If a pivot element a_{k,k} happens to be tiny, dividing by it produces gigantic multipliers m_{i,k} = a_{i,k}/a_{k,k}. When row k is scaled by m_{i,k} and subtracted from row i, the large intermediate values obliterate smaller significant digits, resulting in catastrophic loss of significance. Partial pivoting solves this by scanning column k at each step to identify the row p with the largest absolute entry: |a_{p,k}| = max_{i≥k} |a_{i,k}|, and swapping row p with row k before elimination. This simple permutation guarantees that all multipliers satisfy |m_{i,k}| ≤ 1, ensuring backward numerical stability as proven by James H. Wilkinson in 1961. The operational count of Gaussian elimination is dominated by the forward triangularization phase: eliminating row entries across all n columns requires evaluating ∑ 2(n − k)² operations, which converges asymptotically to (2/3)n³ FLOPs. In this computational laboratory, students evaluate Gaussian elimination with partial pivoting across dense linear systems from n = 10 to n = 60, measure cumulative elimination operations, and extract the asymptotic scaling constant C = 2/3 ≈ 0.667 FLOPs/n³ via linear regression, verifying the foundational computational complexity of linear algebra.

\text{FLOPs}(n) = C \cdot \frac{n^3}{1000} \implies C = \frac{2}{3} \approx 0.667

The mathematical regression linearizes the relationship into the form y = mx + b. Here, the independent variable x represents Normalized Dimension Cubic n³/1000, and the dependent variable y represents Triangular Elimination Operations (kFLOPs). The slope m directly extracts Asymptotic FLOP Scaling Constant C, while the intercept b accounts for residual baseline offsets.

5. Method

  1. Initialize an n×n dense linear system Ax = b across dimensions n ∈ {10, 20, 30, 40, 50, 60}. Verify that det(A) ≠ 0.
  2. At step k, scan column elements |a_{i,k}| for i = k, ..., n. Locate row p having the largest absolute magnitude: |a_{p,k}| = max_{i≥k} |a_{i,k}|. If p ≠ k, swap row k and row p in both A and b.
  3. For each row i from k + 1 to n, compute the multiplier m_{i,k} = a_{i,k} / a_{k,k}. Subtract m_{i,k} times row k from row i: a_{i,j} ← a_{i,j} − m_{i,k} · a_{k,j} for j = k+1, ..., n, and b_i ← b_i − m_{i,k} · b_k.
  4. Repeat steps 2 and 3 for all columns k = 1 to n − 1 until the coefficient matrix is reduced to upper-triangular form U.
  5. Solve the upper-triangular system Ux = c from row n down to row 1: x_n = c_n / u_{n,n}, and x_i = (c_i − ∑_{j=i+1}^n u_{i,j} x_j) / u_{i,i}.
  6. Plot elimination FLOPs against normalized cubic dimension x = n³/1000. Perform ordinary least-squares regression to extract empirical slope C = 0.667, verifying theoretical (2/3)n³ FLOP scaling.

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.Matrix Dimension n (rows)Triangular Elimination FLOPs (kFLOPs)Normalized Dimension Cubic n³/1000Triangular Elimination Operations (kFLOPs)Fitted yResidual
110.00.6671.00000.66700.66670.0003
220.05.3338.00005.33305.3334-0.0004
330.018.027.000018.000018.0000-0.0000
440.042.66764.000042.667042.66670.0003
550.083.333125.000083.333083.3333-0.0003
660.0144.0216.0000144.0000143.99990.0001

Download the sample observations (CSV) ↓

7. Worked calculation for one observation

For dimension n = 10.0: Normalized cubic coordinate x = n³/1000 = 10.0³/1000 = 1.000. Cumulative operations y = C · x = 0.667 kFLOPs.

8. Graph, gradient and final calculation

-20.83-24.8025.7541.8572.33108.50118.92175.15165.50241.80Normalized Dimension Cubic n³/1000Triangular Elimination Operations (kFLOPs)

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

x̄ = 73.50000; ȳ = 49.00000
Σ(x − x̄)² = 34757.50000
Σ(x − x̄)(y − ȳ) = 23171.64400
m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)² = 0.66666601
b = ȳ − mx̄ = 4.7932e-05
FLOPs(n) = 0.6667 · (n³/1000) + 4.7932e-05 ⟹ C = 0.667 FLOPs/n³ (theoretical C = 0.667)

9. Uncertainty and comparison

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

For n = 6 observations, Σresidual² = 4.2966e-07; s² = Σresidual²/(n − 2). Gradient standard error = √[s²/Σ(x − x̄)²] = 1.7580e-06. Intercept standard error = √[s²(1/n + x̄²/Σ(x − x̄)²)] = 1.8601e-04.

Propagating the fit parameters yields a fit standard error of 1.7580e-06 , 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

Asymptotic FLOP Scaling Constant C = 0.667
Theoretical reference value: 0.667

The empirical benchmark observations provide rigorous quantitative verification of Gaussian Elimination with Partial Pivoting and Cubic FLOP Complexity. 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 = 0.6667 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

Dense Gaussian elimination scales as O(n³), making it computationally prohibitive for massive systems (n > 20,000) without sparse techniques. The numerical simulation model evaluates dense n×n linear systems with partial pivoting across dimensions n = [10, 20, 30, 40, 50, 60]. Normalized cubic coordinate: x = n³/1000 = [1.00, 8.00, 27.00, 64.00, 125.00, 216.00]. Theoretical forward elimination FLOP count: FLOPs(n) = (2/3)n³ = [0.667, 5.333, 18.000, 42.667, 83.333, 144.000] kFLOPs. Ordinary least-squares linear regression of elimination FLOPs against x = n³/1000 produces an empirical slope C = 0.66667 and Y-intercept b = 0.000 with coefficient of determination R² = 1.000000. The empirical scaling constant C = 0.667 matches the analytical constant C = 2/3 = 0.66667 within 0.0000% deviation.

12. Conclusion

This computational laboratory investigation quantitatively verified the mathematical formulation and asymptotic scaling of Gaussian Elimination with Partial Pivoting and Cubic FLOP Complexity. Through rigorous tracking across six observation points, we confirmed an empirical Asymptotic FLOP Scaling Constant C of 0.667 matching the theoretical reference 0.667 within 0.0501% error. The investigation demonstrates why this method serves as an indispensable tool in modern computational science.