Mathematics / Inverse Iteration & Shift
FREE TO EXPLORE
LABORATORY 17 · MATHEMATICS

Inverse Iteration & Shift lab report

A worked inverse iteration & shift 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

Rayleigh Quotient Iteration and Cubic Eigenvalue Convergence. Compute interior eigenvalues and eigenvectors of symmetric matrices using Inverse Iteration with variable Rayleigh quotient shifts σ_k = (x_kᵀAx_k)/(x_kᵀx_k), analyze shifted LU/Cholesky triangular solves, and extract the theoretical cubic convergence order α = 3.000 via logarithmic error regression.

2. Abstract

Six computational trials were executed across standardized inputs k = 1.0 to k = 6.0 for Rayleigh Quotient Iteration and Cubic Eigenvalue Convergence. An ordinary least-squares regression yielded an empirical Cubic Convergence Order α of 3.000 (difference from theoretical reference = 0.0000%). 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

Rayleigh Quotient Iteration (RQI)—conceived in its modern form by American numerical analyst Richard H. Ostrowski in 1958 and rigorously analyzed by James H. Wilkinson in 1965—is widely regarded as one of the most astonishingly fast algorithms in numerical linear algebra. While standard Power Iteration is restricted to finding the single dominant exterior eigenvalue with slow linear convergence, applied scientists frequently need to locate specific interior resonant frequencies—such as the acoustic modes of a concert hall, the flutter frequencies of an aircraft wing, or the quantum energy levels of a molecule. Inverse iteration isolates any targeted interior eigenvalue by applying power iteration to the inverted shifted matrix (A − σI)⁻¹. The eigenvalue closest to the shift σ is mapped to the largest eigenvalue of the inverted operator, isolating the desired mode. The stroke of mathematical genius in Rayleigh Quotient Iteration is to make the shift dynamic: instead of keeping σ constant, the algorithm updates the shift at every single step using the current vector's own Rayleigh quotient: σ_k = (x_kᵀAx_k) / (x_kᵀx_k). When applied to symmetric matrices, this creates an extraordinary synergy: the Rayleigh quotient provides quadratic accuracy in the eigenvalue (|σ_k − λ*| = O(‖e_k‖²)), while the shifted inverse solve provides quadratic accuracy in the vector, resulting in an exact cubic convergence order α = 3.000. In cubic convergence, the number of correct significant decimal digits triples at every iteration: an initial estimate with 2 correct digits advances to 6 digits in one step, 18 digits in two steps, and 54 digits in three steps—hitting 64-bit machine precision in a mere trio of iterations. Furthermore, in one of the most celebrated paradoxes in numerical analysis, J. H. Wilkinson proved that although the matrix A − σ_k I becomes nearly singular as σ_k approaches λ* (with condition number exploding toward infinity), the resulting numerical error aligns almost perfectly with the desired eigenvector, meaning ill-conditioning actually accelerates convergence! In this computational laboratory, students evaluate Rayleigh Quotient Iteration applied to an interior eigenvalue λ* = 3.000000 of a symmetric matrix, track dynamic shift updates, and extract the theoretical cubic convergence order α = 3.000 via logarithmic linear regression.

\ln(\varepsilon_{k+1}) = \alpha \cdot \ln(\varepsilon_k) + \ln(C) \implies \alpha = 3.000

The mathematical regression linearizes the relationship into the form y = mx + b. Here, the independent variable x represents Natural Log of Current Shift Error ln(ε_k), and the dependent variable y represents Natural Log of Next Shift Error ln(ε_{k+1}). The slope m directly extracts Cubic Convergence Order α, while the intercept b accounts for residual baseline offsets.

5. Method

  1. Select symmetric matrix A with target interior eigenvalue λ* = 3.000000. Choose initial vector x^{(0)} and initial shift σ₀ = 3.367879 (initial error ε₀ = 0.367879, ln(ε₀) = −1.000).
  2. Factor shifted matrix A − σ₀I. Solve (A − σ₀I)w^{(1)} = x^{(0)}. Normalize: x^{(1)} = w^{(1)} / ‖w^{(1)}‖₂. Compute new Rayleigh shift: σ₁ = (x^{(1)})ᵀAx^{(1)} = 3.019910. Error drops to ε₁ = 0.019910 (ln = −3.9163).
  3. Update shift σ₁ = 3.019910. Solve (A − σ₁I)w^{(2)} = x^{(1)}. Normalize: x^{(2)} = w^{(2)} / ‖w^{(2)}‖₂. Compute σ₂: error drops to ε₂ = 3.16 × 10⁻⁶ (ln = −12.6652).
  4. Execute third step: error ε₃ drops to 1.25 × 10⁻¹⁷, hitting 64-bit IEEE 754 precision limits in only 3 iterations.
  5. Compute natural logarithms of consecutive shift errors: x = ln(ε_k) and y = ln(ε_{k+1}).
  6. Perform ordinary least-squares regression: y = α·x + ln(C). Extract empirical slope α = 3.00000, confirming cubic convergence.

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)Eigenvalue Shift Error |σ_k − λ*| ()Natural Log of Current Shift Error ln(ε_k)Natural Log of Next Shift Error ln(ε_{k+1})Fitted yResidual
11.01.0-1.0000-3.9163-3.9163-0.0000
22.02.0-3.9163-12.6652-12.6652-0.0000
33.03.0-12.6652-38.9119-38.9119-0.0000
44.04.0-38.9119-117.6520-117.65200.0000
55.05.0-117.6520-353.8723-353.87230.0000
66.06.0-353.8723-1062.5332-1062.53320.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 = -3.9163. Output reading: 1.0000.

8. Graph, gradient and final calculation

-1221.33-396.22-877.28-286.83-533.22-177.44-189.17-68.05154.8841.34Natural Log of Current Shift Error ln(ε_k)Natural Log of Next Shift Error ln(ε_{k+1})

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

x̄ = -88.00295; ȳ = -264.92515
Σ(x − x̄)² = 94291.36322
Σ(x − x̄)(y − ȳ) = 282874.08965
m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)² = 3.00000000
b = ȳ − mx̄ = -0.91630000
ln(ε_(k+1)) = 3.0000 · ln(ε_k) + -0.9163 ⟹ α = 3.000 (theoretical α = 3.000)

9. Uncertainty and comparison

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

For n = 6 observations, Σresidual² = 5.5968e-26; s² = Σresidual²/(n − 2). Gradient standard error = √[s²/Σ(x − x̄)²] = 3.8522e-16. Intercept standard error = √[s²(1/n + x̄²/Σ(x − x̄)²)] = 5.9002e-14.

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

Cubic Convergence Order α = 3.000
Theoretical reference value: 3.000

The empirical benchmark observations provide rigorous quantitative verification of Rayleigh Quotient Iteration and Cubic Eigenvalue Convergence. 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 = 3.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

Requires refactoring the matrix A − σ_k I at every iteration, costing O(n³) operations per step. The numerical simulation model executes Rayleigh Quotient Iteration on a symmetric matrix with target interior eigenvalue λ* = 3.000000. Initial error: ε₀ = |σ₀ − λ*| = 0.367879 (ln(ε₀) = −1.0000). RQI iteration sequence: step 1 yields σ₁ = 3.019910 with error ε₁ = 0.019910 (ln = −3.9163); step 2 yields σ₂ = 3.00000316 with error ε₂ = 3.162 × 10⁻⁶ (ln = −12.6652); step 3 yields σ₃ = 3.00000000000000001 with error ε₃ = 1.250 × 10⁻¹⁷ (ln = −38.9119). Logarithmic error coordinates: x = ln(ε_k) = [−1.0000, −3.9163, −12.6652] and y = ln(ε_{k+1}) = [−3.9163, −12.6652, −38.9119]. Ordinary least-squares linear regression on these coordinates produces an empirical slope α = 3.00000 and Y-intercept ln(C) = −0.9163 with Pearson correlation coefficient R² = 1.000000000. The empirical convergence order α = 3.00000 matches the theoretical cubic benchmark α = 3.000 within 0.0000% deviation.

12. Conclusion

This computational laboratory investigation quantitatively verified the mathematical formulation and asymptotic scaling of Rayleigh Quotient Iteration and Cubic Eigenvalue Convergence. Through rigorous tracking across six observation points, we confirmed an empirical Cubic Convergence Order α of 3.000 matching the theoretical reference 3.000 within 0.0000% error. The investigation demonstrates why this method serves as an indispensable tool in modern computational science.