Mathematics · Article
Numerical linear algebra
Solve and assess linear systems, least-squares fits and eigenproblems with pivoted and orthogonal factorizations, singular-value regularization, Krylov methods, sensitivity bounds and output-specific certificates.
Back to MathematicsAfter reading, you can
- Specify the linear solve, least-squares or eigenvalue problem with its rank, symmetry, scales and units, and distinguish residual, backward error and forward accuracy.
- Derive pivoted elimination, Cholesky and block symmetric factorizations, Householder QR and their exact failure or growth conditions.
- Use the SVD to analyze least squares, low-rank approximation, numerical rank, truncation and regularization without hiding noise, bias or parameter conventions.
- Establish the hypotheses and certificates for stationary and Krylov methods, including Jacobi, Gauss–Seidel, Richardson, conjugate gradients and GMRES.
- Assess power iteration, Rayleigh quotients, eigen-residuals, Gershgorin regions, diagonalizable sensitivity and shifted QR without inferring accuracy from eigenvalues or iteration counts alone.
- Formulate refinement and stopping evidence for the requested vector, energy or scalar scientific output, retaining arithmetic, data, discretization and model limitations.
Choose the numerical question before the solver
A matrix calculation begins with a target. Solving Ax=b, finding a least-squares fit and computing a vibration mode ask different questions even when each involves matrix products and triangular factors. The input includes coordinate scales, observation uncertainty, rank and any promised structure. A solver can return a small residual for an ill-conditioned system, a best fit with unidentifiable coefficients, or a small eigenpair residual for a sensitive nonnormal matrix. To interpret the result, we need a certificate appropriate to the stated problem.
We develop the direct and iterative routes together. Elimination reveals the role of permutations, Schur complements and intermediate growth; positive energy permits Cholesky; orthogonal transformations lead to QR least squares. The SVD exposes range, nullspace and singular scales, making the effects of low rank, truncation and regularization explicit. Stationary splittings and Krylov spaces then give different ways to use a large or matrix-free operator. Their convergence proofs state the norm, spectral assumptions, arithmetic and stopping quantities on which they depend.
These distinctions connect directly to computing and AI, physics and engineering. A data-fit coefficient can be unstable even when predictions at the observations look good. A discretized field equation can have a small algebraic residual while its mesh or boundary conditions remain inadequate. An engineering output may depend on one linear combination of the solution rather than every component. We therefore include eigenvalue sensitivity, shifted QR, refinement, preconditioning and adjoint output bounds, alongside exact worked examples and failure cases. Earlier conditioning, root-certificate and interpolation ideas supply the language for separating mathematical guarantees from practical indicators.
The numerical linear algebra problem contract
A linear-system problem specifies a square matrix A, a right-hand side b, admissible coordinates and a norm. When A is nonsingular the target is the unique x satisfying Ax=b. A rectangular least-squares problem instead minimizes a specified norm of Ax-b and can have many minimizers unless rank or a secondary criterion is supplied. An eigenproblem asks for a scalar and nonzero vector satisfying Av=λv; the scale of v is arbitrary and should be normalized before residuals are compared. These are different mathematical contracts even when their implementations share matrix operations.
Coordinate scales matter. If x=D_x z and the equations are multiplied by an invertible D_b, the transformed system is D_b A D_x z=D_b b. It has the same physical solutions after transforming back, but Euclidean norms and condition numbers can change. A perturbation called small in transformed coordinates must therefore be interpreted in the original uncertainty model. A variable measured in meters and one measured in seconds do not acquire a meaningful common relative norm merely by being stored in the same array.
For a nonsingular fixed matrix, a perturbation δb changes the solution by A⁻¹δb. The inverse describes sensitivity of this specified mapping. An algorithm introduces additional perturbations through its operations; backward stability asks whether its output solves nearby data, while forward accuracy asks how close that output is to the requested solution. A sensitive problem can turn small backward errors into large forward errors. Conversely, an accidentally accurate answer to one input does not establish a stable algorithm for a class of problems.
The computational setting also specifies whether A is stored densely, represented sparsely, or available only through products Av. A matrix-free solver cannot assume that arbitrary entries, a factorization or Aᵀv are supplied. A PDE discretization may have exact algebraic residual zero while retaining discretization and model error. A statistical design matrix may fit the observations without identifying an unobserved parameter. The certificates developed below concern the stated algebraic problem; their use in computing, physics and engineering requires these additional scientific assumptions to remain visible. For the sensitivity and backward-error framework, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/); [What Is Backward Error?](https://nhigham.com/2020/03/25/what-is-backward-error/); the specific scales, admissible coordinates and scientific target are part of the problem contract above.
A residual is not a forward error
Let A be nonsingular, b≠0, x=A⁻¹b and xhat an approximate solution. Define the exact residual r=b-A xhat and error e=x-xhat. Subtracting the two equations gives Ae=r, hence e=A⁻¹r. Every compatible induced norm therefore gives ||e||≤||A⁻¹|| ||r||. This identity concerns the residual of the stored mathematical A, b and xhat; a rounded residual needs its own enclosure before the same numerical bound is certified.
Since ||b||=||Ax||≤||A|| ||x|| and x≠0, divide the preceding bound by ||x|| and multiply by ||b||/||b|| to obtain ||e||/||x||≤κ(A)||r||/||b||, where κ(A)=||A|| ||A⁻¹||. All norms must refer to the same chosen coordinate scaling. There is also the reverse inequality ||r||/||b||≤κ(A)||e||/||x||, obtained from ||r||≤||A|| ||e|| and ||x||≤||A⁻¹|| ||b||. These are bounds, not identities for every direction of error.
The condition factor cannot generally be omitted. For A=diag(1, L), b=(1, L), x=(1, 1) and xhat=(1+δ, 1), the infinity-norm relative error is |δ| while the relative residual is |δ|/L for L≥1 and a suitably small δ. Here κ∞(A)=L, so the upper estimate is attained. Letting L grow produces an arbitrarily small relative residual with the same nonzero relative forward error. This is sensitivity of a particular system, not evidence that its solver is unstable.
The residual satisfies r=A(x−xhat). Its first coordinate is unaffected by the large second diagonal entry, while ||b||∞ grows by the scale factor. Divide the observed backward discrepancy by the matching norms before interpreting it. Multiplying the relative residual by the condition number exactly recovers the requested error for these inputs.
| Quantity | Exact result |
|---|---|
| Signed error x−xhat | (−1/100, 0) |
| Residual b−Axhat | (−1/100, 0) |
| κ∞(A) | 1000 |
| Relative forward error | 1/100 |
| Relative residual | 1/100000 |
| Condition-adjusted bound | 1/100 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| scale | 1000 |
| dx | 1/100 |
If b=0, relative residual division by ||b|| is undefined and the nonsingular solution is zero, making relative forward error undefined as well; absolute certificates remain valid. If A is singular, residual zero need not identify a unique solution and an inconsistent system may have no exact solution. The inverse bound must then be replaced by a range/nullspace or pseudoinverse statement with its extra hypotheses. A stopping report should state which of these cases it addresses rather than interpreting every small printed residual as an accurate unique answer. For compatible norms and residual-based stopping context, see [MA221 Lecture 3: Norms, SVD and Matrix Perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the displayed finite relative estimate and sharp direction follow from the explicit inverse identity above.
Perturbing both the matrix and right-hand side
Consider (A+ΔA)(x+δx)=b+δb with nonsingular A, b≠0 and x=A⁻¹b. Put δ_A=||ΔA||/||A|| and δ_b=||δb||/||b|| in compatible induced norms. If ||A⁻¹ΔA||<1, write A+ΔA=A(I+A⁻¹ΔA). The series sum from j=0 to infinity of (-A⁻¹ΔA)^j converges in norm, since its tail is bounded by a geometric series. Multiplying its partial sums by I+A⁻¹ΔA and taking the limit proves that it is the inverse.
Consequently ||(A+ΔA)⁻¹||≤||A⁻¹||/(1-||A⁻¹ΔA||). Subtract Ax=b from the perturbed equation to obtain (A+ΔA)δx=δb-ΔA x. It follows that ||δx||≤||A⁻¹|| (||δb||+||ΔA|| ||x||)/(1-||A⁻¹ΔA||). This argument proves nonsingularity of the perturbed matrix as part of the same hypothesis; it does not assume that an arbitrary nearby-looking matrix is invertible.
The sufficient condition κ(A)δ_A<1 implies ||A⁻¹ΔA||≤κ(A)δ_A<1. Using ||b||≤||A|| ||x|| and dividing by the nonzero ||x|| yields ||δx||/||x||≤κ(A)(δ_A+δ_b)/(1-κ(A)δ_A). The denominator records the approach to a possibly singular perturbation. For small perturbations it gives the familiar first-order conditioning estimate, but discarding the denominator without checking its margin would discard the finite-perturbation guarantee.
This is a worst-case normwise sufficient bound. A structured perturbation may be much less damaging, and a componentwise uncertainty model can give a different answer. The condition κ(A)δ_A≥1 means this bound fails to certify invertibility; it does not prove that the particular perturbed matrix is singular. If b=0 one should use the absolute inequality before the relative normalization. Uncertainty in a physical matrix and rounding of a numerical factorization enter through different ΔA terms even when this theorem can bound their combined effect. For Neumann inverse perturbation and conditioning context, see [MA221 Lecture 3: Norms, SVD and Matrix Perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); the joint matrix/data bound above retains its finite denominator and nonzero normalization hypotheses.
The exact normwise backward error
Use Euclidean vector norms and the induced spectral matrix norm. For a fixed approximate vector xhat, let η be the infimum of ε≥0 such that (A+ΔA)xhat=b+Δb with ||ΔA||≤ε||A|| and ||Δb||≤ε||b||. Put r=b-A xhat and D=||A|| ||xhat||+||b||. Every admissible pair satisfies r=ΔA xhat-Δb, so ||r||≤εD by the triangle and operator inequalities. When D>0, this proves η≥||r||/D.
If xhat≠0, take ΔA=(||A||/D) r xhatᵀ/||xhat|| and Δb=-(||b||/D) r for real data. A rank-one matrix u vᵀ has spectral norm ||u|| ||v||: Cauchy–Schwarz gives the upper bound, attained at v/||v|| when v≠0. Hence ||ΔA||=(||r||/D)||A|| and ||Δb||=(||r||/D)||b||. Direct substitution gives ΔA xhat-Δb=r, so the lower bound is attained and η=||r||/D. For complex data replace the transpose by the conjugate transpose.
If xhat=0 and D=||b||>0, take ΔA=0 and Δb=-b=-r; then η=1, agreeing with the formula. If D=0, b=0 and either A=0 or xhat=0, so A xhat=0 and r=0. The unperturbed equation already holds and η=0 by definition; no numerical 0/0 is evaluated. If A=0 or b=0 separately, the same construction respects the zero scale of that datum whenever D>0.
The perturbations attaining this normwise optimum may change matrix structure, symmetry or a physical conservation law. Thus η is an exact answer to this particular unstructured backward-error question, not automatically the smallest physically admissible uncertainty. It also measures a nearby equation rather than closeness to a solution; a conditioning estimate is still needed for forward accuracy. A checked numerator must include residual-evaluation uncertainty, while the denominator uses the same norm and data scales as the declared perturbation model. For backward-error minimization and the combined residual scale, see [What Is Backward Error?](https://nhigham.com/2020/03/25/what-is-backward-error/); [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the rank-one construction above proves this precise Euclidean joint-data optimum and its zero cases.
Componentwise backward error
For real data, impose entrywise bounds |ΔA|≤ε|A| and |Δb|≤ε|b|. With r=b-A xhat and d=|A||xhat|+|b|, the equation ΔA xhat-Δb=r implies |r_i|≤ε d_i in each row. Therefore every admissible ε is at least max_i |r_i|/d_i, interpreting 0/0 as zero and a nonzero numerator over zero as infinity. For an exact residual of these exact data, d_i=0 actually forces r_i=0, but the convention also makes clear how an inconsistent claimed enclosure should be treated.
For a row with d_i>0 set t_i=r_i/d_i. Choose Δa_ij=t_i |a_ij| sign(xhat_j) and Δb_i=-t_i |b_i|, with sign(0)=0. Then sum_j Δa_ij xhat_j-Δb_i=t_i d_i=r_i. The bounds |Δa_ij|≤η_c|a_ij| and |Δb_i|≤η_c|b_i| hold for η_c=max_i |t_i|. Use zero perturbations in a row with d_i=0. Thus this entrywise construction attains the lower bound and proves the formula for componentwise backward error.
Every original zero entry remains zero under these admissible perturbations. Moreover the row ratios are invariant under nonzero diagonal rescaling of the equations: both the residual and d_i are multiplied by the same absolute row factor. They are also invariant under a nonzero diagonal change of unknown coordinates with the approximate vector transformed consistently, because |A D||D⁻¹ xhat|=|A||xhat|. This invariance is specific to this entrywise relative perturbation model; an arbitrary normwise condition number has no such general diagonal-scaling invariance.
Normwise and componentwise questions can therefore give very different assessments for a matrix containing large and small entries. A tiny global residual relative to one large row can conceal a poor equation in another row. The formula does not preserve additional structure such as symmetry or a prescribed relation between entries, and it does not by itself give a componentwise forward-error guarantee. If entries represent uncertain measurements, exact zeros and relative-only uncertainty may themselves be inappropriate assumptions; those assumptions must be changed in the model, not hidden inside a stopping tolerance. For the dependence of backward error on the data model, see [What Is Backward Error?](https://nhigham.com/2020/03/25/what-is-backward-error/); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); the entrywise optimum and scaling invariance are established by the rowwise construction above.
What floating-point dot-product bounds assume
Assume fl(a op b)=(a op b)(1+δ), |δ|≤u, for each elementary operation used, with no exceptional overflow or underflow and the usual exact interpretation at a zero result. Let γ_m=mu/(1-mu), requiring mu<1. A product of at most m factors 1+δ_j differs from one by at most γ_m. Indeed its absolute deviation is at most (1+u)^m-1, and (1+u)^m≤1/(1-mu): expand the binomial and use binomial(m, k)≤m^k in the convergent geometric majorant. This deliberately conservative bound does not depend on the signs of the rounding errors.
Form a dot product by multiplying each a_i x_i and summing sequentially without fused operations. Expanding the rounded recurrence expresses the stored result as sum_i a_i x_i(1+θ_i), where each term passes through at most n rounding factors: its multiplication and the additions following its introduction. Hence |θ_i|≤γ_n and |fl(aᵀx)-aᵀx|≤γ_n sum_i |a_i x_i|. Cancellation can make the true dot product small while this absolute bound remains large. Dividing by the exact dot product is justified only if it is nonzero and an adequate relative margin is available.
A computed residual component first forms the dot product and then subtracts it from b_i. Expanding that final subtraction adds one rounding factor to each matrix term and one factor to b_i. The conservative enclosure |rhat_i-r_i|≤γ_(n+1)(sum_j |a_ij xhat_j|+|b_i|) follows when (n+1)u<1 and the same arithmetic model applies. To upper-bound this residual-evaluation uncertainty, the scale sum_j |a_ij xhat_j|+|b_i| needs a certified upper bound. To upper-bound a backward-error ratio, its denominator instead needs a certified positive lower bound; a zero denominator requires its separate declared convention. Directed enclosures or higher-precision accumulation can supply tighter evidence.
Fused multiply-add, pairwise sums, compensated summation, mixed precision and subnormal behavior alter the operation model and potentially the constants. They should be analyzed under their actual contracts rather than credited with this particular sequential count. The theorem bounds arithmetic applied to stored inputs; it does not include earlier uncertainty in a measurement or matrix assembly. No actual floating-point execution is being substituted for this derivation. Later finite controls can illustrate the bound, but one successful dot product cannot validate it outside the stated hypotheses. For the elementary arithmetic model and stability distinctions, see [What Is Floating-Point Arithmetic?](https://nhigham.com/2020/05/04/what-is-floating-point-arithmetic/); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/); the γ_n product and accumulation bounds above are derived under the explicitly restricted operation model.
Elimination is a Schur-complement factorization
Partition a square matrix as A=[[α, aᵀ], [c, B]], with scalar α≠0. Direct multiplication gives A=[[1, 0], [c/α, I]] [[α, aᵀ], [0, S]], where S=B-caᵀ/α. The first factor is unit lower triangular and the second has the reduced block S. Thus elimination is an exact change of equations that subtracts (c_i/α) times the pivot row from each remaining row. The entries c_i/α are the multipliers, and the Schur complement records all remaining equations.
The lower factor has inverse [[1, 0], [-c/α, I]]. Its determinant is one, so det(A)=α det(S). In particular, when A is nonsingular and α≠0, S is nonsingular and the argument can be repeated on a suitable next pivot. The same identities follow by solving the top equation for the first unknown and substituting it into the lower equations; they are not dependent on a determinant-based implementation.
Nonsingularity of A does not imply α≠0. The matrix [[0, 1], [1, 0]] is invertible but its first scalar pivot is zero, so unpivoted scalar elimination cannot begin. A very small nonzero pivot can also create large multipliers and large intermediate entries even when no exact division by zero occurs. These are reasons to choose pivots according to an explicit algorithm rather than to interpret existence of an inverse as permission for every unpivoted update.
For a block pivot A_11 that is invertible, the same multiplication gives Schur complement A_22-A_21 A_11⁻¹A_12. In an implementation the inverse notation means solving with the pivot block, not constructing its full inverse as a compulsory operation. Symmetry and positive definiteness can be inherited by appropriately formed Schur complements under stronger hypotheses developed below. Rounding changes the computed factors, so the exact block identity is the algebraic starting point for an error analysis rather than a complete stability proof. For elimination and Schur-complement context, see [What Is the Growth Factor for Gaussian Elimination?](https://nhigham.com/2020/07/14/what-is-the-growth-factor-for-gaussian-elimination/); [What Is a Cholesky Factorization?](https://nhigham.com/2020/08/11/what-is-a-cholesky-factorization/); the direct block multiplication above supplies the general identity and its actual pivot assumptions.
Partial pivoting and the PLU identity
At an active elimination step, partial pivoting chooses an entry of largest absolute value in the active column and interchanges its row with the current pivot row. If the active square matrix is nonsingular, its first column cannot be identically zero, so a nonzero pivot is available. The Schur-complement argument proves that the next active matrix remains nonsingular in exact arithmetic. Induction therefore permits all n pivots for a nonsingular input; no conclusion about a rounded pivot tolerance is needed for this exact statement.
The accumulated row interchanges form a permutation matrix P. Elimination then yields PA=LU, where L is unit lower triangular and U is upper triangular with nonzero diagonal. When a later interchange is made, the already stored multiplier entries in the affected rows of L must be interchanged as well. Swapping only the active trailing rows while leaving those earlier multipliers untouched generally breaks the claimed PA=LU identity. A correct factorization record binds the permutation to its exact factors.
Each chosen pivot is maximal in its active column, so all corresponding multipliers have magnitude at most one in exact partial pivoting. To solve Ax=b, solve Lz=Pb and then Ux=z; both triangular systems have unique solutions. Multiplying the equations proves PAx=Pb and hence Ax=b. The permutation must be applied to the right-hand side in the same convention as the factorization. A different library's permutation notation can reverse where P is written without changing the underlying algebra.
At step k choose the largest absolute active pivot and leave the first row in place when it ties. A row exchange also swaps previously stored entries of L. Verify the complete matrix product against PA. The same matrix factors the same way under this rule even when b changes.
| Quantity | Exact result |
|---|---|
| P | [(0, 0, 1), (0, 1, 0), (1, 0, 0)] |
| L | [(1, 0, 0), (1/2, 1, 0), (0, −4/7, 1)] |
| U | [(2, 3, 1), (0, −7/2, −7/2), (0, 0, −1)] |
| Identity verified | PA=LU |
| Pb | (6, −4, 3) |
| Forward solve z | (6, −7, −1) |
| Backward solve x | (1, 1, 1) |
| Residual b−Ax | (0, 0, 0) |
| Determinant | −7 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| A | [[0,2,1],[1,-2,-3],[2,3,1]] |
| b | [3,-4,6] |
The multiplier bound does not bound every entry of U or certify numerical accuracy. Subtractions can amplify entries in later Schur complements, and a well-defined factorization can still solve an ill-conditioned problem. A singular matrix can produce an active zero pivot, but numerical rank decisions require a scale and uncertainty model rather than an exact-zero rule transferred to floating-point data. The useful numerical evidence is a factor or solve residual together with appropriate growth, backward-error and conditioning information. For partial pivoting, see [What Is the Growth Factor for Gaussian Elimination?](https://nhigham.com/2020/07/14/what-is-the-growth-factor-for-gaussian-elimination/); the exact existence induction and permutation conventions above distinguish a valid factorization from an accuracy guarantee.
Factor residuals and solve perturbations
Suppose stored factors L and U and permutation P have exact factor residual R=PA-LU. This definition does not assume that the computed factors are exact factors of A. Suppose the forward solve is described by (L+E_L)z=Pb and the backward solve by (U+E_U)xhat=z. These descriptions can come from a proved arithmetic bound or an independently checked solve residual; they must not be asserted merely because the routine returned without an error.
Combining the two equations gives Pb=(L+E_L)(U+E_U)xhat. Expand the product and use LU=PA-R to obtain (A+ΔA)xhat=b, where ΔA=Pᵀ(-R+E_L U+L E_U+E_L E_U). In Euclidean or infinity norms the permutation preserves the norm. Therefore ||ΔA||≤||R||+||E_L|| ||U||+||L|| ||E_U||+||E_L|| ||E_U||. The formula retains the second-order cross term rather than silently treating a finite error estimate as a first-order identity.
This expression explains why intermediate growth matters. Even small relative triangular-solve perturbations can produce a large absolute contribution when the factors have large norms. Likewise an entrywise factor-residual analysis naturally contains products of absolute factor entries, which can be much larger than |PA| after cancellation. The bound |l_ij|≤1 from partial pivoting alone does not bound U or the product |L||U|. A claim of unconditional tiny relative backward error therefore needs more than the multiplier bound.
Once a justified bound for ΔA is available, the finite-perturbation theorem can translate it into a forward statement if its inverse margin is positive. Alternatively a directly checked final residual may provide a simpler posterior certificate without reconstructing every arithmetic perturbation. The two analyses answer related questions but should not be counted as independent evidence when both merely repackage the same unverified residual. Preserving a factor residual also distinguishes a factorization defect from an incorrect permutation or a later triangular-solve defect. For growth and nearby-equation analysis, see [What Is the Growth Factor for Gaussian Elimination?](https://nhigham.com/2020/07/14/what-is-the-growth-factor-for-gaussian-elimination/); [What Is Backward Error?](https://nhigham.com/2020/03/25/what-is-backward-error/); the displayed finite factor/solve perturbation identity is derived above with its cross term retained.
Checking a triangular solve
Let T be a nonsingular upper-triangular matrix, x its exact solution for b, and xhat the computed vector. All diagonal entries t_ii are nonzero. For r=b-T xhat the error e=x-xhat solves Te=r. Hence e_i=(r_i-sum from j=i+1 to n of t_ij e_j)/t_ii, starting at i=n. This equation gives an exact posterior relation regardless of the algorithm that produced xhat.
If certified numbers ρ_i satisfy |r_i|≤ρ_i, construct nonnegative bounds z_n=ρ_n/|t_nn| and z_i=(ρ_i+sum from j=i+1 to n of |t_ij|z_j)/|t_ii|. Backward induction proves |e_i|≤z_i. Every bound operation must be exact or rounded outward if the result is advertised as rigorous. A lower-triangular solve has the analogous forward recursion. This can be sharper and more informative than one global norm estimate, but a highly sensitive triangular system can make some z_i very large.
A rounded residual rhat can supply ρ_i=|rhat_i|+δ_i when δ_i bounds its evaluation error. Applying a dot-product error formula requires the actual arithmetic assumptions, and computing the bound in insufficient precision without enclosure can defeat its purpose. For a normwise result, ||e||≤||T⁻¹|| ||r|| remains available if an upper bound on the inverse norm is known. Merely substituting an unverified inverse-norm estimate into a theorem does not turn that estimate into a certificate.
Backward error can instead be assessed with the normwise or componentwise formulas already derived, preserving the triangular zero pattern in the latter case. A small diagonal entry by itself does not imply a poor solve after scaling, and a unit diagonal does not ensure a well-conditioned triangular matrix. A singular triangular system, overflow, or uncertain pivot requires a different status from a nonsingular checked solve. The output should identify whether it has certified backward error, forward component bounds, or only a practical residual indicator. For triangular-solve, arithmetic and stopping context, see [What Is the Growth Factor for Gaussian Elimination?](https://nhigham.com/2020/07/14/what-is-the-growth-factor-for-gaussian-elimination/); [What Is Floating-Point Arithmetic?](https://nhigham.com/2020/05/04/what-is-floating-point-arithmetic/); [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the backward-induction enclosure above is an explicit posterior argument rather than an unqualified norm estimate.
Partial pivoting can have exponential growth
For n≥2 define W_n to have ones on its diagonal and in its last column, minus ones strictly below the diagonal in columns 1 through n-1, and zeros in the remaining positions above the diagonal. Use partial pivoting with the current first row retained when absolute values tie. Every active pivot in the first n-1 columns is 1, and the other active entries in that column are -1. Thus no row interchange is selected and every nonzero multiplier is -1.
Initially the last-column entries are all 1. Eliminating the first column adds the pivot row to each lower row, changing each lower last-column entry to 2. Suppose after k-1 steps all remaining last-column entries are 2^(k-1). The next pivot row has that last entry and a multiplier -1 again adds it to each lower row, so those entries become 2^k. No other upper-triangular off-diagonal column is generated because the pivot row has zero entries between its diagonal and its last column.
Consequently U has diagonal entries 1 through position n-1, last diagonal entry 2^(n-1), and last-column entries 1, 2, 4, …, 2^(n-1). L has diagonal 1 and every strictly lower entry -1. The maximum original entry magnitude is 1, while the largest generated entry magnitude is 2^(n-1), giving that element-growth factor. The final pivot is nonzero, so the construction also proves nonsingularity, with determinant 2^(n-1). For n=4 the last column of U is (1, 2, 4, 8).
All active candidates tie at pivot magnitude one. The retain-first rule keeps the original row order. With multipliers −1, elimination adds each current pivot row’s last entry to a remaining row. The last column doubles at each stage. The exact growth factor is not an observed error in a computed solve.
| Quantity | Exact result |
|---|---|
| L | [(1, 0, 0, 0), (−1, 1, 0, 0), (−1, −1, 1, 0), (−1, −1, −1, 1)] |
| U | [(1, 0, 0, 1), (0, 1, 0, 2), (0, 0, 1, 4), (0, 0, 0, 8)] |
| Starting maximum entry | 1 |
| Largest multiplier magnitude | 1 |
| Last column maxima by stage | 1, 2, 4, 8 |
| Growth factor | 8 |
| Determinant | 8 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 4 |
This exact example disproves a universal small-growth claim based solely on bounded partial-pivot multipliers. It does not say that all matrices grow this way, or that every floating-point solve of this family has a large error: the powers of two and additions can be represented exactly in suitable arithmetic until range limits matter. A scientific error claim must combine actual arithmetic, growth, residual and conditioning evidence. Changing a tie rule also changes the exact algorithm being illustrated, which is why the rule is part of this example. For the classical Wilkinson family and the partial-pivoting growth bound, see [What Is the Growth Factor for Gaussian Elimination?](https://nhigham.com/2020/07/14/what-is-the-growth-factor-for-gaussian-elimination/); the induction above fixes the tie convention and does not infer an observed large rounding error.
Why Cholesky needs positive definiteness
Let A be real symmetric positive definite. Partition A=[[α, cᵀ], [c, B]]. Taking the first coordinate vector in the quadratic form gives α>0. For any nonzero z, evaluate the form at (-cᵀz/α, z); direct expansion gives zᵀ(B-ccᵀ/α)z>0. Thus the Schur complement S=B-ccᵀ/α is again symmetric positive definite. This is the property that permits recursive scalar Cholesky pivots without row pivoting in exact arithmetic.
Set l_11=√α>0 and the lower first column to c/√α. By induction write S=L_2 L_2ᵀ with positive diagonal. Then L=[[√α, 0], [c/√α, L_2]] satisfies LLᵀ=A by block multiplication. The one-dimensional base case is immediate, so the factor exists for every SPD matrix. Conversely, if A=LLᵀ with nonsingular L, then zᵀAz=||Lᵀz||²>0 for nonzero z, proving positive definiteness rather than just semidefiniteness.
The positive diagonal also makes the factor unique. The first equality fixes l_11 as the positive square root, the first-column equations fix every l_i1, and the Schur complement then uniquely fixes the smaller factor by induction. Solving Ly=b and Lᵀx=y therefore gives the unique Ax=b solution. The factorization exploits symmetry and positive definiteness; applying its formulas to an arbitrary nonsingular matrix is not justified by this theorem.
In finite arithmetic a computed pivot may be small, zero or negative because the stored matrix is indefinite, the data are uncertain, or rounding has overwhelmed a small positive Schur complement. The sign of that computed number alone does not distinguish these explanations. A matrix assembled from a physical energy can also lose definiteness if constraints or boundary conditions leave a nullspace. Cholesky success, a factor-residual check and a justified SPD margin are distinct pieces of evidence, and positive definiteness does not by itself bound the condition number. For Cholesky existence, Schur positivity and solve context, see [What Is a Cholesky Factorization?](https://nhigham.com/2020/08/11/what-is-a-cholesky-factorization/); the exact lower-factor proof above avoids the source index slip and makes no dimension-free floating completion claim.
Symmetric indefinite systems need different pivots
For a symmetric block matrix A=[[D, Cᵀ], [C, B]] with symmetric invertible D, define S=B-CD⁻¹Cᵀ. Direct multiplication gives A=[[I, 0], [CD⁻¹, I]] [[D, 0], [0, S]] [[I, D⁻¹Cᵀ], [0, I]]. The last factor is the transpose of the first because D⁻¹ is symmetric. Thus this is a block LDLᵀ step, and S is symmetric. The pivot block need not be positive definite; invertibility is the algebraic requirement for this step.
The associated quadratic form becomes uᵀDu+zᵀSz after the invertible coordinate change u=y+D⁻¹Cᵀz. This identity explains why symmetric elimination is a congruence, whereas a general row-only elimination need not preserve symmetry in its intermediate equations. Symmetric row and column permutations can be included consistently as P A Pᵀ=L D_block Lᵀ. The permutation convention must be retained when solving and transforming the answer back.
The symmetric matrix [[0, 1], [1, 0]] has eigenvalues 1 and -1 and determinant -1, so it is nonsingular and indefinite. Both diagonal entries are zero, and interchanging its two coordinates leaves them zero. No symmetric permutation can supply a nonzero scalar diagonal pivot for the first LDLᵀ step. Taking the full 2×2 matrix as an invertible pivot block works immediately, with L=I and D_block=A. This proves that nonsingular symmetric indefinite data can require a block pivot.
A practical indefinite factorization chooses 1×1 and 2×2 blocks to control arithmetic growth; the exact block identity alone proves no such growth bound. Nor should an indefinite LDLᵀ factor be advertised as a Cholesky factor with positive energy. Singular pivot blocks, constrained systems and semidefinite forms require their own rank and compatibility decisions. The scientific question determines whether indefiniteness is expected physics, a modeling error, or an uncertain numerical artifact. For the distinction between positive and indefinite symmetric factorization, see [What Is a Cholesky Factorization?](https://nhigham.com/2020/08/11/what-is-a-cholesky-factorization/); the block LDLᵀ identity and the necessary block-pivot example above are explicitly derived.
Householder QR and a safe reflector sign
For a real nonzero vector x let t=||x||₂ and choose s=1 when x_1≥0, otherwise s=-1. Put v=x+s t e_1 and H=I-2vvᵀ/(vᵀv). Because v_1 has magnitude |x_1|+t, v cannot vanish; when x_1≠0 it has the same sign as x_1. The formula Hᵀ=H is immediate. Since (vvᵀ)²=(vᵀv)vvᵀ, expansion gives H²=I, hence H is orthogonal and preserves Euclidean lengths.
Compute vᵀx=t(t+s x_1) and vᵀv=2t(t+s x_1). Their ratio is 1/2, so Hx=x-v=-s t e_1. Thus one reflector eliminates all coordinates below the first without dividing by a possibly tiny first entry of x. Repeating on trailing column subvectors gives QR, with embedded orthogonal reflectors and an upper-triangular R. If a subvector is zero, no reflection is needed; choose the identity instead of evaluating the zero denominator.
The sign choice avoids cancellation in forming the leading component of v. Choosing x_1-s t can nearly subtract equal numbers when the leading component already carries most of the norm, losing relative information in v. This algebraic improvement is not a complete floating-point proof: a stable norm computation, scaling of v and protection against overflow are still needed. An implementation can store the reflector compactly and apply H to a matrix through a rank-one update without forming a dense H.
Orthogonality preserves the residual norm in exact arithmetic, which makes QR particularly useful for least squares. It does not make an ill-conditioned A well-conditioned or guarantee that every computed reflector is exactly orthogonal. A numerical analysis can assess the stored factor residual and loss of orthogonality separately. Complex reflectors use a phase and a conjugate transpose; the real sign formula above should not be transferred unchanged to complex data. For reflector algebra and least-squares context, see [What Is a Householder Matrix?](https://nhigham.com/2020/09/15/what-is-a-householder-matrix/); [MA221 Lecture 13: Least Squares](https://people.eecs.berkeley.edu/~demmel/ma221_Fall10/Lectures/Lecture_13.html); the real sign, cancellation and zero-vector qualifications above apply to the stated construction.
QR solves full-rank least squares
Let A be a real m×n matrix with m≥n and full column rank. Take a full orthogonal Q such that QᵀA=[R; 0], with R an invertible n×n upper-triangular matrix. Write Qᵀb=[c; d]. For every x, orthogonality gives ||Ax-b||₂²=||Qᵀ(Ax-b)||₂²=||Rx-c||₂²+||d||₂². The second term is independent of x; it is the data component outside the column space of A.
The first term is nonnegative and equals zero exactly when Rx=c. Since R is nonsingular, the triangular solve gives the unique least-squares minimizer. Its residual satisfies Qᵀr=[0; d], so Aᵀr=[Rᵀ, 0][0; d]=0. Thus the familiar normal-equation orthogonality is a consequence of the minimization rather than a requirement to construct and solve a Gram matrix.
A thin Q_1 containing the first n columns gives A=Q_1 R, Q_1ᵀQ_1=I and the projection A x*=Q_1 Q_1ᵀb. The remaining full Q columns need not be stored just to compute x*; residual norms can be obtained from the transformed data or a checked residual. Positive observation weights can be handled by first multiplying rows by the square roots of those weights, which changes the declared objective and must be recorded.
Full column rank is essential for uniqueness of the coefficients. If it fails, a singular R cannot be solved as if its pivots were safely invertible, and a minimum-norm or regularization rule is needed. Numerically, a factor residual and an orthogonality defect qualify the QR representation. Even a backward-stable least-squares algorithm can have a sensitive coefficient vector, especially near rank deficiency; a small residual describes fit quality, not automatic identification of every coefficient or of a physical law. For orthogonal transformations and full-rank least-squares context, see [What Is a Householder Matrix?](https://nhigham.com/2020/09/15/what-is-a-householder-matrix/); [MA221 Lecture 13: Least Squares](https://people.eecs.berkeley.edu/~demmel/ma221_Fall10/Lectures/Lecture_13.html); the norm decomposition above supplies the actual QR minimization proof.
Normal equations square the condition number
Use the SVD from linear algebra: for full-column-rank A, the eigenvalues of AᵀA are the positive squared singular values σ_i². Therefore ||A||₂=σ_max, ||A⁺||₂=1/σ_min and κ₂(A)=σ_max/σ_min. The SPD Gram matrix has κ₂(AᵀA)=σ_max²/σ_min²=κ₂(A)². This exact identity concerns the two coefficient maps; it does not by itself say that every normal-equation solution is inaccurate.
It explains why forming a Gram matrix can lose small information. Let δ>0 and A=[[1, 1], [δ, 0], [0, δ]]. Its columns are independent and AᵀA=[[1+δ², 1], [1, 1+δ²]], with eigenvalues 2+δ² and δ². The small eigenvalue is represented as a small difference between entries of order one. An absolute perturbation of those entries on the rounding scale can be comparable to δ² long before it is comparable to the entries of A.
For a concrete arithmetic example take binary round-to-nearest with unit roundoff u=2⁻⁵³ and δ=2⁻³⁰. Then δ²=2⁻⁶⁰ is exactly representable but smaller than the half-spacing u above 1. Rounding each exact diagonal value 1+δ² gives 1, while each off-diagonal value is 1. The stored Gram matrix is then the all-ones 2×2 matrix and is singular, even though the original A has singular values √(2+δ²) and δ. This example explicitly specifies the rounding and accumulation result being considered.
QR avoids forming these small eigenvalues through subtraction in AᵀA, while an SVD exposes the singular scales directly. Neither representation removes uncertainty in A or promises arbitrarily accurate small singular values in every precision. If normal equations are used for efficiency in a justified regime, their conditioning and formation error still belong in the assessment. The least-squares target and the observation weights should remain unchanged when comparing alternative algorithms for that same problem. For SVD/Gram conditioning, least squares and binary spacing, see [MA221 Lecture 3: Norms, SVD and Matrix Perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); [MA221 Lecture 13: Least Squares](https://people.eecs.berkeley.edu/~demmel/ma221_Fall10/Lectures/Lecture_13.html); [What Is Floating-Point Arithmetic?](https://nhigham.com/2020/05/04/what-is-floating-point-arithmetic/); the rank-loss example above specifies the exact data and rounding operation being compared.
Loss of orthogonality and reorthogonalization
Suppose the stored columns of Q are intended to be an orthonormal basis, but their exact Gram matrix is G=QᵀQ rather than I. A simultaneous projection of a vector a produces r=a-Q(Qᵀa). Multiplication by Qᵀ gives Qᵀr=(I-G)Qᵀa. Thus an exactly orthonormal Q removes all components in its span in one projection, whereas a nonzero Gram defect generally leaves a component. This is an exact statement about the stored Q, separate from additional rounding in applying it.
Project again with the same stored Q: r_new=r-Q(Qᵀr). Then Qᵀr_new=(I-G)Qᵀr. After j projections, Qᵀr_j=(I-G)^j Qᵀa. If ||I-G||₂≤δ<1, the orthogonality defect satisfies ||Qᵀr_j||₂≤δ^j||Qᵀa||₂. The hypothesis also forces G positive definite, since every eigenvalue of G lies between 1-δ and 1+δ. It is therefore a condition on an already independent, approximately orthonormal basis, not a cure for an arbitrary rank-deficient Q.
In actual arithmetic write the computed defect recurrence as z_(j+1)=(I-G)z_j+η_j, where η_j includes the errors of the projection and of interpreting its dot products. If ||η_j||≤ε uniformly and ||I-G||≤δ<1, induction and a geometric sum give ||z_j||≤δ^j||z_0||+ε(1-δ^j)/(1-δ). Repeating projections cannot be credited with reducing a defect below the arithmetic floor without a more precise error model. A small residual vector can also make relative orthogonality measures misleading.
Classical, modified and reorthogonalized Gram–Schmidt use different sequences of projections and therefore have different finite-arithmetic analyses. The identities above explain why stored loss of orthogonality matters without claiming the same universal bound for all variants. Householder QR offers another construction; comparing methods should preserve the same matrix and least-squares objective. Checks of ||A-QR|| and ||I-QᵀQ|| assess different properties, and one cannot replace the other. For orthogonal transformations and Arnoldi basis context, see [What Is a Householder Matrix?](https://nhigham.com/2020/09/15/what-is-a-householder-matrix/); [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the stored-Gram and repeated-projection identities above have their own explicit defect and forcing assumptions.
SVD and the minimum-norm least-squares solution
Use a full real SVD A=UΣVᵀ with rank r and positive singular values σ_1≥…≥σ_r>0; existence of this decomposition is the linear-algebra input. Set z=Vᵀx and c=Uᵀb. Orthogonal invariance gives ||Ax-b||²=sum from i=1 to r of (σ_i z_i-c_i)² plus the squared components of b orthogonal to the range of A. Coordinates z_i for i>r do not affect the residual at all.
Every least-squares minimizer therefore has z_i=c_i/σ_i for i≤r, with arbitrary nullspace coordinates for i>r. Since ||x||²=||z||², the unique minimizer of vector norm among these solutions sets all nullspace coordinates to zero. In original coordinates it is x⁺=sum from i=1 to r of (u_iᵀb/σ_i)v_i=A⁺b. If r=0, A=0 and every x has the same residual; the unique minimum-norm choice is x=0, consistent with the empty sum.
The residual of x⁺ is precisely the orthogonal projection of b onto the orthogonal complement of the range. A nonzero residual can therefore represent incompatible data rather than an unsuccessful optimization. A nullspace component of the scientific parameter remains unidentifiable from these observations, even if a minimum-norm convention selects one coefficient vector. When A is square and nonsingular, the pseudoinverse reduces to the ordinary inverse and this discussion reduces to an exact solve.
Exact rank is a mathematical property of the stated A. Numerical rank introduces a threshold based on uncertainty, scaling, intended output and arithmetic. Dividing by every nonzero printed singular value can amplify noise catastrophically, while discarding a small singular value changes the inferred solution. Neither a fixed absolute threshold nor the number of displayed digits supplies a universal scientific rule. Truncation and regularization should be named as modified estimation problems with their bias and stability assessed explicitly. For SVD, pseudoinverse and inverse-problem context, see [MA221 Lecture 3: Norms, SVD and Matrix Perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); [MA221 Lecture 13: Least Squares](https://people.eecs.berkeley.edu/~demmel/ma221_Fall10/Lectures/Lecture_13.html); [Regularization Tools: A Matlab Package for Analysis and Solution of Discrete Ill-Posed Problems](https://www.imm.dtu.dk/~pcha/Regutools/RTv4manual.pdf); the orthogonal coordinate argument above proves the minimum-norm selection and identifies the unobserved nullspace.
Low-rank approximation and its norm
Let A have singular values σ_1≥…≥σ_r>0 and choose 0≤k<r. Define A_k=sum from i=1 to k of σ_i u_i v_iᵀ. The omitted terms act on mutually orthogonal right singular directions and produce orthogonal left singular directions, so ||A-A_k||₂=σ_(k+1). This supplies a rank-at-most-k approximation with that spectral-norm error. For k≥r the exact A itself has rank at most k and error zero.
To prove no rank-at-most-k matrix B can do better, consider S=span(v_1, …, v_(k+1)), a space of dimension k+1. The map B restricted to S has image dimension at most k, so it has a nonzero kernel vector z in S. Normalize ||z||₂=1. Then Bz=0 and ||(A-B)z||₂=||Az||₂. Write z=sum_(i≤k+1) c_i v_i; orthogonality gives ||Az||₂²=sum σ_i² c_i²≥σ_(k+1)². Hence ||A-B||₂≥σ_(k+1).
Together the lower and upper bounds prove optimality in the spectral norm. The norm must be named: for the truncated SVD its Frobenius error is the square root of the sum of omitted σ_i², which is a different numerical quantity. Spectral-norm optimality need not make B unique. For A=diag(5, 2, 1) and k=1, both diag(5, 0, 0) and diag(4, 0, 0) have error 2, although their Frobenius errors differ.
This theorem approximates a matrix, not an unknown physical parameter inferred by inverting it. Keeping the largest singular directions of A minimizes this matrix error, but the resulting inverse can still amplify noise and can omit scientifically important small directions. Repeated or poorly separated singular values can also make individual singular vectors unstable even when their combined subspace is useful. A rank budget, data uncertainty and a requested output must therefore accompany the matrix approximation in an application. For the nearest-rank framework, see [MA221 Lecture 3: Norms, SVD and Matrix Perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); the dimension argument above proves the spectral optimum without asserting uniqueness or transferring the objective to another norm.
Truncated SVD balances noise and bias
Suppose b=A xtrue+e with ||e||₂≤ε and use the SVD with k retained positive singular values, 1≤k≤r. The truncated solution is x_k=sum_(i≤k)(u_iᵀb/σ_i)v_i. Because u_iᵀA xtrue=σ_i v_iᵀxtrue, substitution gives x_k=V_k V_kᵀxtrue+sum_(i≤k)(u_iᵀe/σ_i)v_i. This identity separates the retained part of the true parameter from the noise transformed through the retained inverse.
Subtract xtrue to get x_k-xtrue=sum_(i≤k)(u_iᵀe/σ_i)v_i-(I-V_k V_kᵀ)xtrue. These two terms lie in orthogonal subspaces. Their squared norms therefore add exactly. The first is at most ε²/σ_k² by orthonormality of the selected u_i and the lower bound σ_i≥σ_k. Hence ||x_k-xtrue||₂²≤ε²/σ_k²+||(I-V_k V_kᵀ)xtrue||₂². Nullspace components of the truth are included in the second term.
Discarding more singular directions raises the smallest retained singular value and can reduce the worst-case noise term, but it can increase the omitted-truth term. Neither term is guaranteed to dominate in every data set. With k=0 the estimator is zero and the exact error is ||xtrue||; the displayed division by σ_k is not used. With exact data and no truth in omitted directions, truncation can be harmless; if a significant truth component lies there, it produces bias even with no noise.
The inequality does not identify the optimal k from ε alone because the omitted truth is unknown. Additional regularity assumptions, validation information or a scientific prior are needed to make that choice. The bound also treats the given A as exact; perturbing its singular vectors or singular values introduces another source of error. A regularized estimate should therefore be reported with its cutoff, scales and uncertainty model, rather than described as the uniquely correct inverse of an ill-posed observation process. For singular-direction and filtered-inverse context, see [Regularization Tools: A Matlab Package for Analysis and Solution of Discrete Ill-Posed Problems](https://www.imm.dtu.dk/~pcha/Regutools/RTv4manual.pdf); [MA221 Lecture 3: Norms, SVD and Matrix Perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); the deterministic orthogonal noise/bias identity above is derived with the stated cutoff and fixed matrix.
Tikhonov regularization and augmented QR
For λ>0 consider J(x)=||Ax-b||₂²+λ²||x||₂². Expanding around x+h shows its Hessian is twice (AᵀA+λ²I). For h≠0, hᵀ(AᵀA+λ²I)h=||Ah||²+λ²||h||²>0, so the objective has a unique minimizer. Setting the linear term to zero gives (AᵀA+λ²I)x_λ=Aᵀb, even when A is rank deficient. Positive λ is essential for this unrestricted uniqueness assertion.
In SVD coordinates each positive singular direction satisfies z_i=σ_i c_i/(σ_i²+λ²), and a nullspace coordinate is zero. Thus x_λ=sum_(i≤r)[σ_i/(σ_i²+λ²)](u_iᵀb)v_i. Since (σ-λ)²≥0, σ²+λ²≥2σλ for σ≥0; every filter gain is at most 1/(2λ). Consequently the operator taking data perturbations to changes in x_λ has norm at most 1/(2λ), an upper bound that can be strict for a fixed finite spectrum.
The same objective is ||[A; λI]x-[b; 0]||₂², so an augmented QR solve targets it without explicitly forming AᵀA. For a true parameter in a positive singular direction, noiseless data are shrunk by σ_i²/(σ_i²+λ²); the missing fraction λ²/(σ_i²+λ²) is bias, not a solver defect. Unobserved nullspace directions remain set to zero. As λ grows the data gain falls while this shrinkage generally grows; arithmetic improvement alone does not select the scientifically appropriate balance.
The regularizer must respect units and coordinates. If Ax and b have measurement units and x has parameter units, λ has the corresponding ratio of units; incomparable parameter coordinates require scaling or a specified penalty operator instead of an unexplained Euclidean norm. The convention λ² in this objective differs from conventions that place λ itself in front of ||x||². Parameter values cannot be compared across those conventions without translation. Regularization changes the problem and therefore requires an explicit interpretation alongside the numerical algorithm. For regularization and augmented least squares, see [Regularization Tools: A Matlab Package for Analysis and Solution of Discrete Ill-Posed Problems](https://www.imm.dtu.dk/~pcha/Regutools/RTv4manual.pdf); [MA221 Lecture 13: Least Squares](https://people.eecs.berkeley.edu/~demmel/ma221_Fall10/Lectures/Lecture_13.html); the identity-penalty convention here is λ², so a coefficient t multiplying ||x||² corresponds to t=λ². The filter, bias, units and rank conditions are explicit above.
Stationary iterations and the spectral radius
Let A=M-N with M nonsingular, A nonsingular and iteration x_(k+1)=M⁻¹N x_k+M⁻¹b. Its fixed point is x*=A⁻¹b because (M-N)x*=b. Put B=M⁻¹N and e_k=x*-x_k. Substitution gives e_(k+1)=B e_k and hence e_k=B^k e_0. Convergence for every starting vector is therefore exactly the condition that B^k tends to zero as a matrix in finite dimension.
If ρ(B)<1, take a complex Jordan representation as a linear-algebra input. In a block λI+J with nilpotent J, the kth power is a finite sum of binomial(k, j)λ^(k-j)J^j. For a fixed nonzero |λ|<1 each coefficient tends to zero, since a fixed polynomial in k is dominated by geometric decay. A block with λ=0 becomes zero after its finite nilpotence index. Thus every block power tends to zero and B^k→0 after transforming back.
Conversely, if B has an eigenvalue λ with |λ|≥1, an associated complex eigenvector v satisfies B^k v=λ^k v, which does not tend to zero. For a real B, at least one of the real or imaginary parts must also fail to tend to zero, since otherwise their complex combination would tend to zero. Hence convergence for every real starting error forces every eigenvalue strictly inside the unit disk. This proves the necessary and sufficient spectral-radius criterion.
A particular starting error may lack the unstable components and converge even when the universal criterion fails. Nonnormality can also cause transient growth before asymptotic decay, and a bound on the spectral radius is not automatically an induced-norm contraction constant in the coordinates being used. Exact convergence of this recurrence does not account for rounding, changing preconditioners or an inexact application of M⁻¹. Those effects need a perturbed recurrence and a precision or stopping analysis. For stationary iterations and spectral structure, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [MA221 Lecture 22: Nonsymmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html); the error recurrence and Jordan-power argument above establish the exact every-start criterion.
A posteriori bounds for a contraction iteration
Assume the stationary iteration has an induced norm bound ||B||≤q<1 in a stated norm. The increments d_k=x_k-x_(k-1), for k≥1, obey d_(k+1)=B d_k. Therefore ||d_(k+j)||≤q^j||d_k||. Since the iteration converges, x*-x_k is the sum of its future increments. Bounding that convergent series gives ||x*-x_k||≤q||d_k||/(1-q). This is an a posteriori error bound based on an observed step and a proved contraction constant.
There is a residual version for the current iterate. Let r_k=b-Ax_k. Its proposed next increment is M⁻¹r_k. Because A=M(I-B), the error satisfies (I-B)e_k=M⁻¹r_k. The inverse is the norm-convergent series sum_(j≥0)B^j, giving ||e_k||≤||M⁻¹r_k||/(1-q). This bound has no extra factor q because it starts with the not-yet-taken next increment. Confusing the indices would produce an unjustifiably smaller certificate.
When q=0, B=0 and the first update reaches the fixed point exactly; the step-based bound is zero for k≥1. As q approaches one, the posterior factor becomes large, correctly showing why a small step can coexist with a much larger remaining error. If the only information is ρ(B)<1, these particular norm formulas cannot use q=ρ(B) unless that induced-norm bound has also been established. An equivalent norm may exist, but its conversion to the reported physical norm must be supplied.
Split the diagonal from the off-diagonal entries. The infinity norm of the Jacobi iteration matrix is the largest inverse diagonal magnitude. One bound measures the last completed step and sums a future geometric tail. The other uses the actual residual after preconditioning by the diagonal. They can differ without violating either certificate.
| Quantity | Exact result |
|---|---|
| Jacobi B | [[0,−1/4],[−1/3,0]] |
| Contraction factor q | 1/3 |
| x₁ | (1/4, 2/3) |
| x₂ | (1/12, 7/12) |
| Exact solution x* | (1/11, 7/11) |
| Latest step x₂−x₁ | (−1/6, −1/12) |
| Current residual r₂ | (1/12, 1/6) |
| Current preconditioned residual D⁻¹r₂ | (1/48, 1/18) |
| Step certificate q||x₂−x₁||∞/(1−q) | 1/12 |
| Preconditioned-residual certificate at x₂ | 1/12 |
| Actual signed error x*−x₂ | (1/132, 7/132) |
| Actual error infinity norm | 7/132 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| diag | [4,3] |
| b | [1,2] |
Rounded steps or an approximate application of M⁻¹ introduce additional forcing and residual uncertainty. A program can stop practically when progress stalls, but it should label that outcome separately from a bound with q<1 and certified arithmetic. A change in A, b, scaling or the splitting changes the dependencies of cached residual evidence. Reuse is justified for unchanged inputs and valid bounds, not by the fact that the same routine name is called again. For stopping and sensitivity context, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); the two a posteriori bounds above require the proved induced-norm contraction and keep their iteration indices distinct.
When Jacobi and Gauss-Seidel contract
Suppose |a_ii|>sum_(j≠i)|a_ij| in every row. Jacobi updates each coordinate using only the previous vector, so its error matrix has zero diagonal and entries -a_ij/a_ii off the diagonal. Its induced infinity norm is q_J=max_i sum_(j≠i)|a_ij|/|a_ii|<1. This proves convergence and the contraction certificates above. In particular every diagonal pivot is nonzero; strict row dominance also proves nonsingularity through the same contraction or the maximal-component argument.
For Gauss–Seidel, the new error in row i uses new errors in columns j<i and old errors in columns j>i. Let l_i=sum_(j<i)|a_ij|, u_i=sum_(j>i)|a_ij| and q_G=max_i u_i/(|a_ii|-l_i). Strict dominance gives positive denominators and q_G<1. If ||e_old||∞≤1 and earlier new components are at most q_G, then |e_new_i|≤(l_i q_G+u_i)/|a_ii|≤q_G. Induction proves ||B_G||∞≤q_G.
Positive definiteness is a different hypothesis. Take the 3×3 matrix with diagonal entries 1 and every off-diagonal entry 3/4. Its eigenvalues are 5/2 on the all-ones vector and 1/4 on its orthogonal complement, so it is SPD. Jacobi has B=I-A, whose corresponding eigenvalues are -3/2 and 3/4. The error along the all-ones vector grows in magnitude by 3/2 each step. Thus SPD alone cannot justify Jacobi convergence, even though it will justify Gauss–Seidel by another argument.
Strict diagonal dominance is sufficient, not necessary; a convergent iteration can fail this test. Row reordering, coordinate scaling and a different splitting can change the simple norm bounds without changing the underlying exact solution. The contraction rate given by one sufficient bound need not be the actual asymptotic spectral rate for a specific error. Sparse structure or parallel convenience can motivate a splitting, but neither establishes its mathematical convergence or its suitability for the uncertainty of the scientific output. For Jacobi and Gauss–Seidel definitions and ordering, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the strict-dominance proofs and positive-definite Jacobi counterexample above give the precise claims used here.
Gauss-Seidel as SPD coordinate descent
For real SPD A let x*=A⁻¹b and define the error energy E(e)=eᵀAe, where e=x*-x. Updating one Gauss–Seidel coordinate changes x_i to satisfy its current row equation. In error coordinates this replaces e by e-t e_i with t=(Ae)_i/a_ii. Since a_ii>0, expand E(e-t e_i)=E(e)-2t(Ae)_i+t²a_ii=E(e)-(Ae)_i²/a_ii. Thus each coordinate update decreases energy, with equality exactly when that coordinate correction is zero.
A complete sweep is a linear map e_new=B_G e_old. If the energy is unchanged over a whole sweep, every nonnegative decrease above is zero. All coordinate corrections were then zero, so the intermediate errors equal the starting error, and every component of Ae_old was zero when checked. Nonsingularity gives e_old=0. Hence every nonzero error strictly loses energy in a full exact sweep.
On the set E(e)=1, the continuous function E(B_G e) attains a maximum θ. This set is compact because the SPD quadratic form bounds the Euclidean norm above and below. The strict decrease just proved shows θ<1; also θ≥0. Homogeneity gives E(e_k)≤θ^k E(e_0), proving convergence. The induced energy-norm contraction factor is √θ, but the argument supplies existence rather than a cheap numerical value for that factor.
This proof is specific to SPD data, exact coordinate updates and a fixed ordering. It neither establishes Jacobi convergence for SPD matrices nor promises a rate independent of mesh size, dimension or conditioning. Rounding, approximate subsolves, relaxation and asynchronous updates change the map and require their own analysis. The quadratic energy is mathematically natural for a discretized positive energy, but its physical interpretation still depends on the correct boundary conditions, variable scales and model. For sequential updates and positive quadratic forms, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [What Is a Cholesky Factorization?](https://nhigham.com/2020/08/11/what-is-a-cholesky-factorization/); the coordinate-energy and compactness proof above establishes the exact SPD result without a universal rate claim.
Optimal constant-step Richardson iteration
Richardson iteration is x_(k+1)=x_k+ω(b-Ax_k). For SPD A with eigenvalues λ_i>0, the error matrix is I-ωA. Orthogonal diagonalization shows its Euclidean and energy induced norms are both max_i |1-ωλ_i|. Hence exact convergence for every initial vector holds precisely when |1-ωλ_i|<1 for all i, or 0<ω<2/λ_max. A negative step or either boundary value fails this universal convergence requirement.
Suppose the available eigenvalue enclosure is 0<a≤λ_i≤b. The guaranteed interval factor is q(ω)=max(|1-ωa|, |1-ωb|), because the absolute value of the affine function is convex and attains its interval maximum at an endpoint. Choosing ω*=2/(a+b) gives endpoint values +(b-a)/(b+a) and -(b-a)/(b+a), so q*=(b-a)/(b+a). The two extreme errors are balanced.
To prove this is the smallest possible interval factor, suppose q bounds both endpoints. The inequalities |1-ωa|≤q and |1-ωb|≤q imply (1-q)/a≤ω≤(1+q)/b for q<1. Compatibility requires b(1-q)≤a(1+q), hence q≥(b-a)/(b+a). For q≥1 the claimed optimum is already smaller unless a=b, which is handled directly. If a=b, ω=1/a makes the matrix zero and one step solves exactly.
When a and b are the actual extremal eigenvalues, write κ=b/a to obtain q*=(κ-1)/(κ+1). A loose spectral enclosure gives a valid but potentially pessimistic rate. Adaptive or polynomially varying steps can do better than this optimal constant-step choice; they solve a different optimization over iterations. The endpoint bounds must be justified, not inferred from a few observed Rayleigh quotients. Preconditioning can improve those bounds but brings its own assumptions and computational cost. For symmetric spectral geometry and iterative-method context, see [MA221 Lecture 28: Symmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_28.html); [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the endpoint minimax argument above proves optimality only within the stated constant-step class.
Symmetric preconditioning and the correct norm
Let A and M be real SPD matrices. With y=M^(1/2)x, multiply Ax=b by M^(-1/2) to obtain C y=d, where C=M^(-1/2) A M^(-1/2) and d=M^(-1/2)b. For nonzero z, zᵀCz=(M^(-1/2)z)ᵀA(M^(-1/2)z)>0, so C is SPD. This is the symmetric transformation underlying SPD preconditioning, whether or not a square root is explicitly formed in an implementation.
The left-preconditioned matrix M⁻¹A satisfies M⁻¹A=M^(-1/2) C M^(1/2), so it is similar to C and has positive real eigenvalues. It is generally not symmetric in the Euclidean inner product, but it is self-adjoint in the M inner product: uᵀM(M⁻¹A)v=uᵀAv=((M⁻¹A)u)ᵀMv. Applying an unqualified Euclidean-symmetric argument to M⁻¹A would therefore use the wrong geometry.
The transformed error energy equals the original one, since (y-y*)ᵀC(y-y*)=(x-x*)ᵀA(x-x*). The transformed residual is M^(-1/2)r, while the vector returned by a left solve M⁻¹r is another quantity; their Euclidean norms are not interchangeable. A preconditioned CG implementation can realize the transformed algebra using products with A and solves with M, but its convergence theorem needs the stated fixed SPD assumptions.
An SPD M does not automatically improve κ₂(C), and an expensive excellent approximation to A⁻¹ can cost more than it saves. A useful choice balances spectral effects, storage and solve cost for the actual problem. Inexact, nonlinear or changing preconditioner applications are not the same fixed matrix recurrence; standard exact PCG formulas cannot be credited without further justification. Stopping should still qualify the requested original-system residual or output rather than only a conveniently scaled internal norm. For preconditioning and SPD Krylov context, see [Fundamentals of Numerical Computation: Preconditioning](https://fncbook.com/precond/); [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [MA221 Lecture 28: Symmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_28.html); the symmetric transformation above supplies the correct geometry and separates preconditioned from original residuals.
Krylov spaces produce residual polynomials
For an initial x_0 set r_0=b-Ax_0 and define K_k(A, r_0)=span(r_0, Ar_0, …, A^(k-1)r_0), with K_0={0}. An iterate x_k in x_0+K_k can be written x_k=x_0+q_(k-1)(A)r_0 for a polynomial of degree at most k-1 when k≥1. The polynomial coefficients are the coordinates of the update in this spanning sequence; no independence assumption is needed for existence of such a representation.
Substitute into the residual: r_k=r_0-Aq_(k-1)(A)r_0=p_k(A)r_0, where p_k(t)=1-tq_(k-1)(t). Thus p_k has degree at most k and p_k(0)=1. Conversely any polynomial of degree at most k with constant term 1 has that form, so it defines an iterate in the same affine Krylov space. For k=0, p_0=1 represents the initial residual. Different algorithms choose different polynomials through their own minimization or orthogonality conditions.
For a nonsingular A, e_0=A⁻¹r_0 and polynomial commutation give e_k=p_k(A)e_0 for the corresponding error. If A is orthogonally diagonalizable, ||p_k(A)||₂ is the largest |p_k(λ_i)|, making spectral polynomial approximation directly useful. For a general nonnormal A, eigenvalues alone do not determine that operator norm; eigenvector conditioning and possible Jordan derivatives enter. The algebraic polynomial identity itself remains true in either case.
Krylov methods can use matrix-vector products without storing all entries of A, but the algorithm still requires a compatible vector-space structure, inner products and any promised preconditioner. Basis storage and orthogonalization can dominate cost at large k. Restarting, truncating or changing the operator changes the available spaces and the polynomial interpretation. A linear solve with a time-varying physical model is not automatically the same fixed-A theorem applied repeatedly. For Krylov spaces and nonsymmetric spectral context, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [MA221 Lecture 22: Nonsymmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html); the polynomial identity above distinguishes exact algebra from the choice and stability of a particular method.
Conjugate gradients in exact arithmetic
For SPD A, exact CG starts with r_0=b-Ax_0 and p_0=r_0. If r_k=0, stop. Otherwise set α_k=(r_kᵀr_k)/(p_kᵀA p_k), x_(k+1)=x_k+α_k p_k, r_(k+1)=r_k-α_k A p_k, β_k=(r_(k+1)ᵀr_(k+1))/(r_kᵀr_k) and p_(k+1)=r_(k+1)+β_k p_k. The denominators are positive while p_k and r_k are nonzero; the induction below shows p_k cannot vanish before a zero residual.
Assume the directions through p_k are mutually A-conjugate, and r_k is orthogonal to the earlier directions. Since p_k=r_k plus an earlier direction, r_kᵀp_k=r_kᵀr_k. The choice of α_k makes r_(k+1) orthogonal to p_k. For i<k, r_(k+1)ᵀp_i=r_kᵀp_i-α_k p_kᵀA p_i=0. Every previous residual lies in the span of its current and preceding directions, so the residuals are mutually orthogonal. These facts start trivially at k=0.
For i<k, A p_i=(r_i-r_(i+1))/α_i, so r_(k+1)ᵀA p_i=0. For i=k, the same identity gives r_(k+1)ᵀA p_k=-||r_(k+1)||²/α_k. Since p_kᵀA p_k=||r_k||²/α_k, the stated β_k cancels this term in p_(k+1)ᵀA p_k. Thus all new directions remain A-conjugate. A nonzero r_(k+1), orthogonal to earlier directions, cannot be canceled by β_k p_k; the next direction is nonzero. Recurrences show the directions lie in their Krylov spaces, and their conjugate independence makes them a basis until termination.
The step length minimizes the quadratic along the current conjugate direction. Update the residual using the same exact step, and stop immediately if it vanishes. Otherwise the squared residual ratio gives the next direction coefficient. For these two-dimensional positive-definite systems the process terminates in at most two exact steps.
| Quantity | Exact result |
|---|---|
| Active eigenvalues | 2, 5 |
| Exact solution | (1/2, 1/5) |
| Updates executed | 2 |
| Residual norm squares | 2, 18/49, 0 |
| Energy error squares | 7/10, 9/70, 0 |
| r₀ᵀr₁ | 0 |
| p₀ᵀAp₁ | 0 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| diagonal | [2,5] |
| b | [1,1] |
| k | Direction | α | Updated x | Updated residual | β |
|---|---|---|---|---|---|
| 0 | (1, 1) | 2/7 | (2/7, 2/7) | (3/7, −3/7) | 9/49 |
| 1 | (30/49, −12/49) | 7/20 | (1/2, 1/5) | (0, 0) | Stopped |
After k steps, r_k is orthogonal to K_k. For any h in that space, ||e_k-h||_A²=||e_k||_A²-2hᵀr_k+||h||_A²=||e_k||_A²+||h||_A². Hence x_k uniquely minimizes energy error over x_0+K_k. There are at most n independent A-conjugate directions, so exact CG reaches zero residual in at most n steps. Rounding can destroy orthogonality, make a recursively updated residual differ from b-Ax_k, and prevent finite termination; none of those finite-arithmetic claims follows from this exact proof. For the conjugate-gradient framework, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the explicit zero-based induction above proves the conjugacy, residual orthogonality and energy-optimality claims under exact SPD assumptions.
The Chebyshev convergence bound for CG
Let the SPD eigenvalues lie in [a, b] with 0<a<b. CG's energy optimality and the Krylov polynomial identity imply ||e_k||_A≤max_(λ in [a, b])|p(λ)| ||e_0||_A for any polynomial p of degree at most k with p(0)=1. To see the norm bound, expand e_0 in an orthonormal eigenbasis; its squared energy after applying p is sum_i λ_i |p(λ_i)|² |c_i|². Bounding the factors yields the claimed comparison.
Use p(λ)=T_k((a+b-2λ)/(b-a))/T_k((a+b)/(b-a)), with T_k the Chebyshev polynomial derived in interpolation. The argument in the numerator runs through [-1, 1], where |T_k|≤1, and at λ=0 numerator and denominator agree. Thus the maximum is at most 1/T_k(z_0), where z_0=(a+b)/(b-a)>1. This constructs a valid comparison polynomial; CG need not explicitly evaluate it or choose its roots as steps.
Put κ=b/a and q=(√κ-1)/(√κ+1), so 0<q<1 and z_0=(q+q⁻¹)/2. The identity T_k((t+t⁻¹)/2)=(t^k+t^(-k))/2 follows from the Chebyshev recurrence and its first two cases. Therefore T_k(z_0)=(q^k+q^(-k))/2≥q^(-k)/2. Combining the inequalities gives ||e_k||_A≤2q^k||e_0||_A. For k=0 the factor 2 is simply loose; it is not an assertion that the initial error doubled.
If a=b, A=aI and one exact CG step solves any nonzero initial residual, so the singular interval formula is unnecessary. Exact extremal eigenvalues give κ=κ₂(A); a valid wider enclosure gives a weaker sufficient bound. Clustered spectra or a favorable initial error can yield much faster convergence than the interval worst case. The theorem concerns exact CG and an energy norm, not every observed Euclidean residual curve or a solver with changing preconditioners. The bound uses the Chebyshev recurrence and extremal properties established in the preceding interpolation lesson. For the CG energy bound and symmetric spectral setting, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [MA221 Lecture 28: Symmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_28.html); the constructed Chebyshev comparison polynomial above gives the displayed factor and its separate constant-spectrum case.
Arnoldi and GMRES minimize a small residual problem
For a nonsingular real A and nonzero r_0, let β=||r_0||₂ and v_1=r_0/β. Exact Arnoldi orthogonalizes each A v_j against the existing orthonormal basis, producing A V_k=V_(k+1) Hbar_k, where Hbar_k has k columns and is upper Hessenberg. The last row records the norm of the new component. This relation follows column by column from subtracting the inner-product projections; it requires the vectors to be orthonormal in the stated arithmetic.
An iterate x=x_0+V_k y has residual r_0-A V_k y=V_(k+1)(βe_1-Hbar_k y). Orthonormality therefore makes its Euclidean norm exactly ||βe_1-Hbar_k y||₂. GMRES chooses y to minimize this small least-squares problem, so it minimizes the original residual over x_0+K_k. Because the unrestarted Krylov spaces are nested, the minimum residual norms are nonincreasing. The norm may stagnate; strict decrease at every step is not guaranteed.
If Arnoldi has a zero new component, the current Krylov space is invariant under A. Since A is nonsingular, its restriction to this finite-dimensional invariant space is injective and hence onto. The initial r_0 lies in the space, so some update there satisfies Aδx=r_0 and the GMRES residual is zero. This is a happy breakdown under these assumptions. If A is singular, that onto argument can fail; zero initial residual is a separate already-solved case.
Unrestarted Arnoldi stores and orthogonalizes a growing basis. Restarting limits memory by discarding the full accumulated search space, so the same global optimality comparison with an unrestarted space no longer applies. Finite arithmetic can also destroy basis orthogonality or separate the small least-squares residual from the explicitly evaluated one. Matrix-vector counts, orthogonalization cost and verified residual accuracy must therefore be distinguished when comparing practical solvers. The exact theorem gives no universal rate from the eigenvalues alone. For Arnoldi, GMRES and restart, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); the proof above concerns unpreconditioned original Euclidean residuals, with nonsingularity and breakdown handled explicitly.
A nonnormal spectrum does not predict a GMRES rate
Let A_K=[[1, K], [0, 1]], x_0=0 and b=e_2=(0, 1). Both eigenvalues are 1 for every real K. A one-step Krylov update is x_1=αe_2, so its residual is (-αK, 1-α). The squared norm is K²α²+(1-α)². Differentiation, or completing the square, gives the unique minimizer α=1/(K²+1).
At that minimizer r_1=(-K/(K²+1), K²/(K²+1)), with ||r_1||₂=|K|/√(K²+1). The initial norm is 1, so this is also the relative residual. As |K| increases the first-step reduction tends to zero, even though the eigenvalues remain fixed at 1. An eigenvalue-only prediction that the matrix should behave like the identity at the first step is therefore false for this nonnormal family.
When K≠0, the two vectors e_2 and A_K e_2=(K, 1) are independent, so K_2 is all of R². The exact solution (-K, 1) belongs to this second search space, and unrestarted GMRES gives residual zero in at most two steps. For K=0 the matrix is already the identity and the first step solves exactly. The example therefore concerns a poor first-step rate, not nonconvergence of the complete two-dimensional exact method.
A_K is nonnormal for K≠0: direct products A_KᵀA_K and A_K A_Kᵀ differ. It is also a Jordan-type matrix rather than a well-conditioned orthogonal eigenbasis. The polynomial identity for Krylov residuals remains valid, but replacing ||p(A)|| by max|p(λ)| without an orthogonal diagonalization is invalid. This distinction matters for transport discretizations and other nonsymmetric models; no numerical timing or typical-performance claim is inferred from this finite example. For GMRES and nonnormal sensitivity context, see [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [MA221 Lecture 22: Nonsymmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html); the exact two-dimensional minimization above demonstrates why fixed eigenvalues alone do not determine a rate.
Power iteration, Rayleigh quotients and eigen-residuals
Let A be a real symmetric n×n matrix with n≥1, an orthonormal eigenbasis q_i and a nonzero eigenvalue λ_1 satisfying |λ_1|>|λ_i| for i>1. Write x_0=sum_i c_i q_i with c_1≠0. Then A^k x_0=λ_1^k[c_1 q_1+sum_(i>1)c_i(λ_i/λ_1)^k q_i]. For n≥2, the tangent of the angle to the line spanned by q_1 is at most (max_(i>1)|λ_i/λ_1|)^k (sum_(i>1)c_i²)^(1/2)/|c_1|. In dimension 1 every nonzero starting vector already lies on the sole eigenvector line and remains nonzero when λ_1≠0; if A=[0], one multiplication produces zero and normalized iteration must stop. Normalizing each nonzero iterate does not change its direction. A negative λ_1 can alternate the sign, so convergence to a line is the invariant statement.
These hypotheses are sufficient for the stated convergence guarantee; without them convergence to the selected line need not hold. A starting vector in the orthogonal complement never acquires a q_1 component in exact arithmetic, and equal dominant magnitudes can prevent a unique limiting line. The recurrence has no zero normalization under the stated hypothesis, since its q_1 coefficient is always nonzero. In a finite-arithmetic implementation, overflow, underflow and perturbations of the components still require controlled normalization and an independent accuracy assessment.
For any real unit vector v, its Rayleigh quotient μ=vᵀAv minimizes ||Av-t v||₂ over real t: expanding gives ||Av-tv||²=||Av||²-2tμ+t². If θ is the angle to q_1, spectral expansion gives μ-λ_1=sum_(i>1)(λ_i-λ_1)|q_iᵀv|². For n≥2 this gives |μ-λ_1|≤max_(i>1)|λ_i-λ_1| sin²θ. In dimension 1 the quotient equals the sole eigenvalue exactly, including A=[0]. The quotient error is therefore quadratic in the directional angle under this symmetric spectral decomposition, not necessarily quadratic in every solver iteration.
Because A is symmetric and v is a unit vector, μ is the weighted average of the two eigenvalues with weights v_j². The eigen-residual certifies a nearby spectral value. The signed discrepancy μ−5 is −(5−2)sin² of the angle to the upper eigenvector. Any perturbation making the pair exact must send v to −r and have norm at least ||r||₂. The displayed rank-one E reaches that bound.
| Quantity | Exact result |
|---|---|
| μ | 98/25 |
| r=Av−μv | (−144/125, 108/125) |
| Residual norm | 36/25 |
| vᵀr | 0 |
| Nearest original eigenvalue and distance | 5, 27/25 |
| Enclosure μ±||r||₂ | (62/25, 134/25) |
| sin angle to eigenvalue 5 direction | 3/5 |
| Signed quotient error from 5 | −27/25 |
| Minimal unstructured perturbation E | [(432/625, 576/625), (−324/625, −432/625)] |
| Minimum perturbation norm | 36/25 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| eigen | [2,5] |
| v | ["3/5","4/5"] |
For a real number t and unit v, the residual r=Av-tv satisfies ||r||²=sum_i (λ_i-t)²|q_iᵀv|²≥min_i |λ_i-t|². Thus some eigenvalue lies within ||r|| of t; taking t=μ supplies a posterior eigenvalue evidence even without identifying which eigenvalue. A separated spectral interval is needed to select a particular one. This simple residual-to-spectrum conclusion relies on orthogonal diagonalization and should not be transferred unchanged to a general nonnormal matrix. For symmetric Rayleigh geometry and the general eigenvalue setting, see [MA221 Lecture 28: Symmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_28.html); [MA221 Lecture 22: Nonsymmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html); the spectral expansions above provide the complete directional, quotient and residual bounds.
Eigenvalue backward error and Gershgorin disks
For any real matrix A, scalar μ and nonzero approximate eigenvector v, define r=Av-μv. The rank-one perturbation E=-r vᵀ/(vᵀv) satisfies Ev=-r, hence (A+E)v=μv. Its spectral norm is ||E||₂=||r||₂/||v||₂. This makes the approximate pair an exact eigenpair of nearby matrix data without claiming that μ is close to an eigenvalue of the original A.
This norm is the smallest possible unstructured perturbation for the fixed pair. Every E satisfying Ev=-r obeys ||E||₂||v||₂≥||r||₂, and the rank-one construction attains equality. For complex data use the conjugate transpose. Requiring E to preserve symmetry, sparsity or a physical structure changes the admissible set and may change the minimum. The arbitrary scale of v must be removed by the ratio, not by comparing unnormalized residual magnitudes.
For an actual possibly complex eigenpair Az=λz, choose i with |z_i| maximal and nonzero. Its row equation yields |λ-a_ii||z_i|=|sum_(j≠i)a_ij z_j|≤sum_(j≠i)|a_ij||z_i|. Dividing proves that λ lies in at least one Gershgorin disk |λ-a_ii|≤sum_(j≠i)|a_ij|. The union encloses all eigenvalues, but points inside it are not all eigenvalues, and this argument supplies no eigenvalue count for individual overlapping disks.
A small pair backward error and a coarse spectral enclosure are useful but distinct. To turn an eigen-residual into a small forward eigenvalue error for a general matrix, one needs a sensitivity bound or additional structure such as normality. A scaled disk construction may tighten an enclosure while changing neither the eigenvalues nor a true physical uncertainty model. Numerical reports should distinguish a candidate eigenvalue, a verified spectral region and a selected physically meaningful mode. For eigenvalue perturbation and backward-error context, see [MA221 Lecture 22: Nonsymmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html); [MA221 Lecture 28: Symmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_28.html); [What Is Backward Error?](https://nhigham.com/2020/03/25/what-is-backward-error/); the rank-one optimum and maximal-component disk argument above are explicit proofs with their structural limits stated.
Bauer-Fike and defective sensitivity
Suppose A is diagonalizable over the complex numbers, A=VΛV⁻¹. Let μ be an eigenvalue of A+E with nonzero eigenvector z, and set y=V⁻¹z. Transforming (A+E)z=μz gives (Λ-μI)y=-V⁻¹EV y. If d=min_i |λ_i-μ|, the diagonal left side has norm at least d||y||₂. The right side has norm at most ||V⁻¹||₂ ||E||₂ ||V||₂ ||y||₂.
Since y≠0, divide to obtain d≤κ₂(V)||E||₂. This is the eigenvalue perturbation bound for this particular diagonalization. Rescaling eigenvectors can change κ₂(V), so a meaningful application should use a justified basis bound. For a normal matrix one can choose V unitary, giving κ₂(V)=1. Diagonalizable does not mean that its eigenvectors are well conditioned or that every nearby eigenvalue can be assigned a unique original label without separation.
A defective example shows why the diagonalizability hypothesis matters. Let A=[[1, 1], [0, 1]] and E=[[0, 0], [ε, 0]] with ε>0. The perturbed characteristic equation is (1-μ)²-ε=0, so μ=1±√ε, while ||E||₂=ε. The eigenvalue movement divided by the perturbation norm is 1/√ε and becomes unbounded as ε decreases. No fixed local Lipschitz constant of this linear form can cover this family at the defective matrix.
This does not make the backward-error statement for an approximate pair invalid; it makes its forward interpretation sensitive. A nearly defective but diagonalizable matrix can already have a large eigenvector condition factor. In structural dynamics or stability analysis, a small perturbation of matrix entries may therefore change mode locations or labels substantially. A solver residual must be interpreted with the model's structure, eigenvalue separation and sensitivity rather than judged solely by its printed magnitude. For Jordan sensitivity and Bauer–Fike context, see [MA221 Lecture 22: Nonsymmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html); the full diagonal-coordinate proof above does not require a simple spectrum, and the defective example is treated separately.
QR eigenvalue iteration preserves similarity
For a real shift s take a QR factorization A-sI=QR with square orthogonal Q and upper-triangular R, and define A_new=RQ+sI. Then QᵀAQ=Qᵀ(QR+sI)Q=RQ+sI=A_new. Thus every shifted QR step is an orthogonal similarity, preserving the characteristic polynomial and eigenvalues in exact arithmetic. The factor R may be singular when the shift is an eigenvalue; the similarity identity itself does not require its inverse.
If A is upper Hessenberg, meaning a_ij=0 for i>j+1, successive plane rotations on rows j and j+1 eliminate the single subdiagonal entry in column j. Earlier zero entries remain zero. There are at most n-1 such rotations, each acting on at most n entries per row. Their product gives R and Q, with Q upper Hessenberg as can be seen from the ordered product of adjacent rotations. Since R is upper triangular, (RQ)_ij=0 for i>j+1: a contributing index would have to satisfy both k≥i and k≤j+1.
Applying those same rotations on the right forms the next Hessenberg matrix with O(n²) scalar work for one explicit sweep, rather than a general dense QR factorization's cubic order. Reducing a dense matrix to Hessenberg form is a separate initial similarity operation and cost; sparsity of the input does not guarantee sparsity throughout every dense eigenvalue algorithm. These operation counts describe the stated algebra, not measured wall-clock time or a universal best implementation.
Similarity alone proves no convergence rate. Shift selection, real blocks for complex conjugate pairs, loss of orthogonality and deflation criteria need further algorithmic analysis. Setting a small subdiagonal entry to zero is a perturbation whose meaning depends on scale and sensitivity; a fixed arbitrary threshold is not proved by the exact identity. A final Schur or eigenpair residual and appropriate spectral qualification remain distinct from successfully completing a number of QR sweeps. For the nonsymmetric eigenvalue setting and orthogonal transformations, see [MA221 Lecture 22: Nonsymmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html); [What Is a Householder Matrix?](https://nhigham.com/2020/09/15/what-is-a-householder-matrix/); the shifted QR and Hessenberg derivations above establish exact similarity and operation counts without asserting convergence from similarity alone.
Iterative refinement and its precision floor
Consider fixed nonsingular A and a fixed linear correction operator B approximating A⁻¹. At x_k let r_k=b-Ax_k, but suppose the evaluated residual is r_k+δr_k and the stored update is x_(k+1)=x_k+B(r_k+δr_k)+δx_k. With e_k=x*-x_k and r_k=Ae_k, exact subtraction gives e_(k+1)=(I-BA)e_k-Bδr_k-δx_k. The signs depend on this error convention; the norm bound below uses their magnitudes.
If ||I-BA||≤q<1, ||δr_k||≤ε_r and ||δx_k||≤ε_x in a compatible norm, then ||e_(k+1)||≤q||e_k||+||B||ε_r+ε_x. Induction yields ||e_k||≤q^k||e_0||+(||B||ε_r+ε_x)(1-q^k)/(1-q). With varying error bounds the forcing becomes the corresponding finite convolution sum. A proved contraction and a justified forcing bound are both necessary for this particular certificate.
This explains the role of a more accurate residual: it can reduce ε_r while a lower-precision factorization still supplies a sufficiently good B. It does not make q<1 automatically, nor remove the update rounding floor ε_x. If I-BA has a noncontracting component, repeatedly evaluating an accurate residual need not cure it. Also, a high-precision residual formed from an already inaccurate stored matrix is a residual for that stored matrix, not a reconstruction of lost original measurements.
A practical correction solve may vary with the right-hand side, precision, stopping rule or preconditioner, so it is not always one fixed linear B. Its analysis must use the actual operators or suitable uniform perturbation bounds. Explicit residual replacement can correct drift in a recursive residual but is not a reason to recompute unchanged successful checks without need. Refinement should report the attained backward or forward certificate and any stagnation or precision floor, separately from a claim that the underlying physical model is accurate. For refinement, stability and arithmetic context, see [What Is Iterative Refinement?](https://nhigham.com/2023/03/13/what-is-iterative-refinement/); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/); [What Is Floating-Point Arithmetic?](https://nhigham.com/2020/05/04/what-is-floating-point-arithmetic/); the contraction-plus-forcing bound above states what its correction operator and precision errors must satisfy.
A solver certificate should match the scientific output
For SPD A with a justified lower eigenvalue bound a>0, e=A⁻¹r satisfies ||e||_A²=rᵀA⁻¹r≤||r||₂²/a, and ||e||₂≤||r||₂/a. A residual enclosure therefore yields an energy-error or vector-error certificate in explicit units. An observed Rayleigh quotient is not by itself a lower bound for every eigenvalue. The estimate is valid only for the same A and scaling whose spectral bound has been established.
Often the scientific output is a scalar cᵀx rather than every component of x. Solve the adjoint equation Aᵀz=c. Then cᵀ(x*-xhat)=zᵀA(x*-xhat)=zᵀr, an exact output-error identity. If only zhat is available, let s=c-Aᵀzhat. The discrepancy from the approximate identity is sᵀe, bounded in general by ||s||₂||A⁻¹||₂||r||₂, and for the SPD case by ||s||₂||r||₂/a. Both primal and adjoint residual evaluation errors must be included in a numerical certificate.
An algebraic stopping criterion should therefore name its target: relative backward error, a forward vector bound, an energy norm, an output error, or simply practical stagnation. A preconditioned internal residual is useful only after its relation to that target is explained. A matrix-free primal method does not automatically have the adjoint product required for an adjoint solve. Sparsity and storage affect which algorithms are feasible, while convergence proofs do not supply measured performance claims.
Finally retain uncertainty from data assembly, discretization, boundary conditions, constraints and the physical model. An exact solve of the wrong discretization can have zero algebraic residual and a poor scientific prediction. In computing and AI, least-squares fit and regularization choices likewise influence interpretation beyond arithmetic accuracy. The complete result combines the requested output, preserved coordinate scales, qualified numerical evidence and a clear statement of what the model or observations still leave unresolved. For spectral geometry, stopping and error interpretation, see [MA221 Lecture 28: Symmetric Eigenvalue Problems](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_28.html); [Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods](https://netlib.sandia.gov/templates/templates.pdf); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [What Is Backward Error?](https://nhigham.com/2020/03/25/what-is-backward-error/); the energy and adjoint arguments above certify the requested algebraic output while retaining the independent scientific-model questions.
Explore exact certificates for linear solves, iteration, and perturbations. Compare how conditioning changes a residual bound and how contraction certifies an iteration’s error.
The residual reports a different quantity from forward error
A thousandfold conditioning multiplier
The residual satisfies r=A(x−xhat). Its first coordinate is unaffected by the large second diagonal entry, while ||b||∞ grows by the scale factor. Divide the observed backward discrepancy by the matching norms before interpreting it. Multiplying the relative residual by the condition number exactly recovers the requested error for these inputs.
| Quantity | Exact result |
|---|---|
| Signed error x−xhat | (−1/100, 0) |
| Residual b−Axhat | (−1/100, 0) |
| κ∞(A) | 1000 |
| Relative forward error | 1/100 |
| Relative residual | 1/100000 |
| Condition-adjusted bound | 1/100 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| scale | 1000 |
| dx | 1/100 |
Partial pivoting retains a row permutation
Exact author system
At step k choose the largest absolute active pivot and leave the first row in place when it ties. A row exchange also swaps previously stored entries of L. Verify the complete matrix product against PA. The same matrix factors the same way under this rule even when b changes.
| Quantity | Exact result |
|---|---|
| P | [(0, 0, 1), (0, 1, 0), (1, 0, 0)] |
| L | [(1, 0, 0), (1/2, 1, 0), (0, −4/7, 1)] |
| U | [(2, 3, 1), (0, −7/2, −7/2), (0, 0, −1)] |
| Identity verified | PA=LU |
| Pb | (6, −4, 3) |
| Forward solve z | (6, −7, −1) |
| Backward solve x | (1, 1, 1) |
| Residual b−Ax | (0, 0, 0) |
| Determinant | −7 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| A | [[0,2,1],[1,-2,-3],[2,3,1]] |
| b | [3,-4,6] |
Bounded multipliers allow element growth
Four active rows
All active candidates tie at pivot magnitude one. The retain-first rule keeps the original row order. With multipliers −1, elimination adds each current pivot row’s last entry to a remaining row. The last column doubles at each stage. The exact growth factor is not an observed error in a computed solve.
| Quantity | Exact result |
|---|---|
| L | [(1, 0, 0, 0), (−1, 1, 0, 0), (−1, −1, 1, 0), (−1, −1, −1, 1)] |
| U | [(1, 0, 0, 1), (0, 1, 0, 2), (0, 0, 1, 4), (0, 0, 0, 8)] |
| Starting maximum entry | 1 |
| Largest multiplier magnitude | 1 |
| Last column maxima by stage | 1, 2, 4, 8 |
| Growth factor | 8 |
| Determinant | 8 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 4 |
An exact contraction gives a stopping bound
Two steps for the author system
Split the diagonal from the off-diagonal entries. The infinity norm of the Jacobi iteration matrix is the largest inverse diagonal magnitude. One bound measures the last completed step and sums a future geometric tail. The other uses the actual residual after preconditioning by the diagonal. They can differ without violating either certificate.
| Quantity | Exact result |
|---|---|
| Jacobi B | [[0,−1/4],[−1/3,0]] |
| Contraction factor q | 1/3 |
| x₁ | (1/4, 2/3) |
| x₂ | (1/12, 7/12) |
| Exact solution x* | (1/11, 7/11) |
| Latest step x₂−x₁ | (−1/6, −1/12) |
| Current residual r₂ | (1/12, 1/6) |
| Current preconditioned residual D⁻¹r₂ | (1/48, 1/18) |
| Step certificate q||x₂−x₁||∞/(1−q) | 1/12 |
| Preconditioned-residual certificate at x₂ | 1/12 |
| Actual signed error x*−x₂ | (1/132, 7/132) |
| Actual error infinity norm | 7/132 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| diag | [4,3] |
| b | [1,2] |
Exact CG progress depends on the active spectrum
Two active eigenvalues
The step length minimizes the quadratic along the current conjugate direction. Update the residual using the same exact step, and stop immediately if it vanishes. Otherwise the squared residual ratio gives the next direction coefficient. For these two-dimensional positive-definite systems the process terminates in at most two exact steps.
| Quantity | Exact result |
|---|---|
| Active eigenvalues | 2, 5 |
| Exact solution | (1/2, 1/5) |
| Updates executed | 2 |
| Residual norm squares | 2, 18/49, 0 |
| Energy error squares | 7/10, 9/70, 0 |
| r₀ᵀr₁ | 0 |
| p₀ᵀAp₁ | 0 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| diagonal | [2,5] |
| b | [1,1] |
| k | Direction | α | Updated x | Updated residual | β |
|---|---|---|---|---|---|
| 0 | (1, 1) | 2/7 | (2/7, 2/7) | (3/7, −3/7) | 9/49 |
| 1 | (30/49, −12/49) | 7/20 | (1/2, 1/5) | (0, 0) | Stopped |
One residual yields two different eigenvalue certificates
Near the upper eigenvalue
Because A is symmetric and v is a unit vector, μ is the weighted average of the two eigenvalues with weights v_j². The eigen-residual certifies a nearby spectral value. The signed discrepancy μ−5 is −(5−2)sin² of the angle to the upper eigenvector. Any perturbation making the pair exact must send v to −r and have norm at least ||r||₂. The displayed rank-one E reaches that bound.
| Quantity | Exact result |
|---|---|
| μ | 98/25 |
| r=Av−μv | (−144/125, 108/125) |
| Residual norm | 36/25 |
| vᵀr | 0 |
| Nearest original eigenvalue and distance | 5, 27/25 |
| Enclosure μ±||r||₂ | (62/25, 134/25) |
| sin angle to eigenvalue 5 direction | 3/5 |
| Signed quotient error from 5 | −27/25 |
| Minimal unstructured perturbation E | [(432/625, 576/625), (−324/625, −432/625)] |
| Minimum perturbation norm | 36/25 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| eigen | [2,5] |
| v | ["3/5","4/5"] |
Worked examples
A small relative residual in a sensitive direction
For A=diag(1, 1000), b=(1, 1000) and xhat=(101/100, 1), find the exact solution, residual and relative forward error in the infinity norm. Compute κ∞(A) and decide whether the usual residual bound is sharp. Interpret a report that only states the relative residual.
- The two exact equations are x_1=1 and 1000x_2=1000, so x=(1, 1). The approximation changes only the first coordinate by 1/100. Its exact residual is b-Axhat=(-1/100, 0), and the error x-xhat has the same vector because that coordinate's diagonal entry is one.
- The infinity norms of x and b are 1 and 1000. Therefore ||x-xhat||∞/||x||∞=1/100, while ||r||∞/||b||∞=(1/100)/1000=1/100000. These are ratios in the declared scaling, not an assertion that both coordinates have comparable physical units.
- The induced infinity norms are ||A||∞=1000 and ||A⁻¹||∞=1, hence κ∞(A)=1000. Multiplying the relative residual by this condition number gives exactly 1/100, equal to the true relative forward error. The error direction and the right-hand-side scale make the worst-case bound sharp here.
- A residual-only report can therefore look much more accurate than the parameter vector actually is. This does not show an unstable algorithm; no algorithm has even been specified. It shows why a residual needs conditioning and scale information for a forward interpretation. The numbers above are exact hand values; a program's rounded residual would need a separate evaluation bound.
The solution is (1, 1); r=(-1/100, 0), relative residual 1/100000, relative forward error 1/100 and κ∞(A)=1000. The bound is attained.
Retaining the permutation in a pivoted solve
Apply exact partial-pivoted elimination to A=[[0, 2, 1], [1, -2, -3], [2, 3, 1]] and b=(3, -4, 6). Retain the current row on an absolute-value tie. Give P, L, U, the two triangular right-hand sides and the solution, and verify the factorization convention PA=LU.
- The largest first-column magnitude is 2 in row 3, so P=[[0, 0, 1], [0, 1, 0], [1, 0, 0]]. After that swap the first row is (2, 3, 1). Eliminate the first entry of row 2 with multiplier 1/2; row 3 has multiplier zero. The trailing rows become (0, -7/2, -7/2) and (0, 2, 1).
- The second pivot remains -7/2 because its magnitude exceeds 2. The final multiplier is 2/(-7/2)=-4/7, giving the last pivot 1-(-4/7)(-7/2)=-1. These multipliers form the stated L. Multiplying L by U gives rows (2, 3, 1), (1, -2, -3) and (0, 2, 1), exactly PA, including its permutation convention.
- Apply the same P to b, obtaining (6, -4, 3). Forward substitution gives z_1=6, z_2=-4-(1/2)6=-7 and z_3=3-(-4/7)(-7)=-1. Back substitution gives x_3=1, x_2=1 from (-7/2)x_2-7/2=-7, and x_1=1 from 2x_1+3+1=6.
- Direct substitution into the original rows gives 3, -4 and 6, so the exact residual is zero. Omitting P from the right-hand side would solve another system even if both triangular routines were internally correct. This exact verification establishes the algebra for this example; finite-arithmetic stability or a certified rounded residual is a separate question.
P swaps rows 1 and 3; L=[[1, 0, 0], [1/2, 1, 0], [0, -4/7, 1]], U=[[2, 3, 1], [0, -7/2, -7/2], [0, 0, -1]], Pb=(6, -4, 3), z=(6, -7, -1) and x=(1, 1, 1).
Bounded multipliers with growing entries
Factor W=[[1, 0, 0, 1], [-1, 1, 0, 1], [-1, -1, 1, 1], [-1, -1, -1, 1]] by partial pivoting that retains the first active row on ties. Find L, U, the maximum multiplier magnitude, element-growth factor and determinant. Does this prove that a floating-point solve must be inaccurate?
- Each first active column has pivot 1 and entries -1 below it. The tie convention selects no swaps, so each multiplier is -1. Eliminating the first column adds its pivot row to every lower row, making all lower last-column entries 2 without creating entries above the other future pivots.
- At the second pivot, adding its row to the remaining rows changes their last-column entries from 2 to 4. At the third it changes the last remaining entry to 8. The stored multipliers therefore give L=[[1, 0, 0, 0], [-1, 1, 0, 0], [-1, -1, 1, 0], [-1, -1, -1, 1]], and U is the stated upper-triangular matrix.
- The original maximum magnitude is 1; the largest generated entry is 8. Thus the element-growth factor is 8, although no multiplier exceeds magnitude 1. Since there were no permutations and L has determinant one, det(W) is the product of U's diagonal, 1·1·1·8=8. This also verifies nonsingularity.
- This is a concrete member of the exponential-growth family, not a measured solver failure. Its powers of two and additions can be exact in binary arithmetic within range. To judge an execution one still needs its arithmetic behavior, factor or solve residual and conditioning. The example rejects an unconditional small-growth argument without claiming that every factorization with growth is inaccurate.
L has unit diagonal and every strictly lower entry -1; U=[[1, 0, 0, 1], [0, 1, 0, 2], [0, 0, 1, 4], [0, 0, 0, 8]]. The multiplier maximum is 1, growth is 8 and det(W)=8. Large error is possible in principle but not proved for a particular execution.
A Cholesky solve with explicit positive pivots
Find the positive-diagonal Cholesky factor of A=[[4, 2, 2], [2, 5, 1], [2, 1, 3]], use it to solve b=(8, 8, 6), and verify positive definiteness and the determinant without relying on a numerical eigensolver.
- The first positive square root is l_11=2, with l_21=l_31=1. The trailing Schur complement is [[5, 1], [1, 3]]-[[1, 1], [1, 1]]=[[4, 0], [0, 2]]. Its positive Cholesky factor is diag(2, √2), yielding the stated L. Multiplication recovers every entry of A.
- The diagonal of L is nonzero and positive. Hence for every nonzero z, zᵀAz=||Lᵀz||²>0, which proves SPD directly. The squared diagonal pivots are 4, 4 and 2. The determinant is det(L)²=(2·2·√2)²=32, agreeing with their product.
- Forward substitution Ly=b gives y_1=4, y_2=(8-4)/2=2 and y_3=(6-4)/√2=√2. Solving Lᵀx=y then gives x_3=1, x_2=1 and 2x_1+x_2+x_3=4, so x_1=1. Original multiplication gives A(1, 1, 1)=(8, 8, 6).
- The proof uses exact positive pivots and an exact factor identity. It does not infer an error bound from positivity alone or assert that any rounded pivot sign certifies uncertain data. In an application, a checked factor residual and a conditioning or SPD-margin bound would qualify the numerical result in addition to this algebraic construction.
L=[[2, 0, 0], [1, 2, 0], [1, 0, √2]], the forward vector is (4, 2, √2), x=(1, 1, 1), the successive squared pivots are 4, 4, 2 and det(A)=32.
A reflector used consistently in a QR solve
For x=(3, 4), construct the real Householder reflector with v=x+||x||₂e_1. Apply it to A=[[3, 1], [4, 2]] and b=(1, 0), give a QR factorization and solve the system. Check both the reflector and final solution.
- The vector norm is 5, so v=(8, 4) and vᵀv=80. Thus H=I-vvᵀ/40=[[-3/5, -4/5], [-4/5, 3/5]]. Its rows have squared norm one and zero mutual inner product, giving HᵀH=I; direct multiplication gives Hx=(-5, 0), as prescribed.
- Multiplying both columns of A gives HA=[[-5, -11/5], [0, 2/5]]=R. Since H²=I, A=HR=QR with Q=H. The same transformation of b is Hb=(-3/5, -4/5). Transforming A but forgetting to transform b would not represent the same equation.
- The second triangular equation is (2/5)x_2=-4/5, giving x_2=-2. The first is -5x_1-(11/5)(-2)=-3/5, so -5x_1=-5 and x_1=1. In original coordinates A(1, -2)=(1, 0), verifying exact residual zero.
- The reflector preserves the Euclidean norm of every residual in exact arithmetic. Its sign choice formed 3+5 rather than 3-5 in the leading component of v, avoiding a potentially canceling construction in the general case. This exact example does not replace a finite-arithmetic norm, scaling and factor-residual analysis for a larger implementation.
v=(8, 4), H=[[-3/5, -4/5], [-4/5, 3/5]], Q=H, R=[[-5, -11/5], [0, 2/5]], H b=(-3/5, -4/5) and the solution is (1, -2).
A QR least-squares fit with a nonzero best residual
Fit b=(1, 2, 2) by A=[[1, 0], [1, 1], [1, 2]] in the unweighted Euclidean least-squares norm. Construct a thin QR factorization, solve for the two coefficients, and verify the residual norm and normal-equation orthogonality without treating the fit as exact interpolation.
- Normalize the constant column to q_1=(1, 1, 1)/√3. Its projection coefficient for the second column (0, 1, 2) is √3. Subtracting the constant vector (1, 1, 1) gives (-1, 0, 1), whose norm is √2, so q_2=(-1, 0, 1)/√2. These columns are orthonormal and give the stated upper-triangular R.
- The transformed data are c=Qᵀb=(5/√3, 1/√2). Solve √2 x_2=1/√2 to get x_2=1/2. Then √3(x_1+x_2)=5/√3 implies x_1+x_2=5/3, so x_1=7/6. Both diagonal entries of R are nonzero, establishing uniqueness of the coefficient vector.
- The fitted values are (7/6, 5/3, 13/6). Subtracting them from b gives r=(-1/6, 1/3, -1/6), with ||r||²=1/36+1/9+1/36=1/6. Its inner product with the constant column is zero, and with (0, 1, 2) it is 1/3-2/6=0. Thus Aᵀr=0 as required for the minimum.
- The residual cannot be made zero by a line through all three observations. The orthogonal direction (1, -2, 1)/√6 has data component -1/√6, whose squared magnitude is precisely the unavoidable 1/6. This is best fit in the specified norm; changing observation weights, introducing a regularizer or asserting a physical law would change the question.
Q has columns (1, 1, 1)/√3 and (-1, 0, 1)/√2; R=[[√3, √3], [0, √2]]. The minimizer is (7/6, 1/2), residual (-1/6, 1/3, -1/6) and squared residual norm 1/6.
Truncation removes noise and also a truth component
Let A=diag(4, 1/10), xtrue=(1, 1) and b=(4, 3/10)=A xtrue+(0, 1/5). Compare the full inverse solution with the rank-one truncated-SVD estimate. Compute their actual parameter errors, the spectral matrix truncation error and the stated TSVD noise-plus-bias bound.
- Both singular directions are the coordinate directions, with singular values 4 and 1/10. The data error is e=(0, 1/5), of norm ε=1/5. Dividing both data coordinates by their singular values gives x_full=(1, 3), whose difference from xtrue is (0, 2) and norm is 2.
- Keeping only the singular value 4 gives A_1=diag(4, 0) and x_1=(1, 0). Its error is (0, -1), of norm 1. The omitted matrix singular value is 1/10, so ||A-A_1||₂=1/10, the best spectral error for rank at most one. A small matrix approximation error has not made its inverse a harmless change in the parameter problem.
- The TSVD bound uses ε/σ_1=(1/5)/4=1/20 and omitted-truth norm 1. It gives squared error at most 1/400+1=401/400, hence norm at most √401/20. The actual retained noise is zero because e lies entirely in the omitted left singular direction; this explains why the actual error 1 is slightly below the bound.
- Truncation improves this noisy example but would create error 1 even for noiseless data with the same truth. The full inverse would be exact in that noiseless case. Thus neither the improvement nor the cutoff choice follows from a universal rule that truncation is better; it follows from the specified noise and truth directions. Those directions are generally not fully known in a scientific inverse problem.
The full solution is (1, 3), with error norm 2; the rank-one estimate is (1, 0), with error norm 1. The matrix truncation error is 1/10 and the TSVD error bound is √401/20.
A regularization filter with visible bias
For A=diag(3, 1), b=(3, 2) and λ=1, minimize J(x)=||Ax-b||₂²+λ²||x||₂². Give the singular-value filters, minimizer and objective. Compare with the unregularized solution and with xtrue=(1, 1) when b=A xtrue+(0, 1), explaining why this comparison is data-specific.
- The regularized equations are diag(10, 2)x=(9, 2), so x_λ=(9/10, 1). Equivalently the data-to-solution filters σ/(σ²+1) are 3/10 and 1/2, applied to data components 3 and 2. The largest gain is 1/2, attaining the general 1/(2λ) bound for the singular value equal to λ.
- The residual b-Ax_λ is (3/10, 1), of squared norm 109/100. The penalty is ||x_λ||²=81/100+1=181/100. Their sum is 290/100=29/10. Positive definiteness of diag(10, 2) makes this stationary point the unique global minimizer.
- The unregularized solution divides by the original diagonal and is (1, 2), with zero data residual but J=5 under the regularized objective. Relative to xtrue=(1, 1), its parameter error has norm 1. The regularized error is (-1/10, 0), of norm 1/10. This is a comparison of parameter estimates for the specified noisy data, not evidence that the two algorithms solved the same objective.
- For noiseless b=(3, 1), the regularized estimate would instead be (9/10, 1/2), exposing shrinkage bias in both directions. In the stated noisy example the second-coordinate bias happens to cancel part of the noise effect. A scientifically defensible λ needs assumptions or validation beyond this favorable finite case, and its convention and coordinate units must be retained.
The filters are 3/10 and 1/2, x_λ=(9/10, 1) and J(x_λ)=29/10. The unregularized solution is (1, 2); their errors relative to the stated truth are 1/10 and 1 respectively.
A Jacobi step with an actual posterior certificate
For A=[[4, 1], [1, 3]], b=(1, 2) and x_0=0, take two exact Jacobi steps. Find an infinity-norm contraction factor, the step-based and preconditioned-residual bounds at x_2, and the actual error. Keep the iteration indices in the two certificates explicit.
- Jacobi uses M=diag(4, 3), with iteration matrix [[0, -1/4], [-1/3, 0]]. Its infinity norm is q=1/3<1. The first step is M⁻¹b=(1/4, 2/3). The second is ((1-2/3)/4, (2-1/4)/3)=(1/12, 7/12).
- The observed difference x_2-x_1=(-1/6, -1/12) has infinity norm 1/6. The current-error step bound is q/(1-q) times this norm, namely (1/2)(1/6)=1/12. It sums the future increments after x_2; it is not a claim that the latest step itself equals the error.
- The exact residual at x_2 is (1/12, 1/6). Applying M⁻¹ gives (1/48, 1/18), of infinity norm 1/18. The bound for the current error is this norm divided by 1-q, giving (1/18)/(2/3)=1/12. An extra factor q would incorrectly apply a future-error estimate to the current point.
- Solving the original system gives (1/11, 7/11). Subtracting x_2 yields errors (1/132, 7/132), so the actual infinity error is 7/132≤1/12=11/132. The contraction hypothesis has supplied a real guarantee; finite-arithmetic residual and step evaluation would need their own enclosures before the same numbers were called a rigorous program certificate.
q=1/3, x_1=(1/4, 2/3), x_2=(1/12, 7/12); both posterior bounds are 1/12. The exact solution is (1/11, 7/11), and the actual infinity error at x_2 is 7/132.
Two exact conjugate-gradient steps
Apply exact CG to A=[[4, 1], [1, 3]], b=(1, 2), x_0=0. Compute α_0, r_1, β_0, p_1, α_1 and x_2. Verify conjugacy and termination, and distinguish this exact result from a finite-arithmetic stopping claim.
- A is SPD because its first leading principal minor is 4 and determinant is 11. Initially r_0=p_0=(1, 2), with r_0ᵀr_0=5 and A p_0=(6, 7), so p_0ᵀA p_0=20. Thus α_0=1/4, x_1=(1/4, 1/2) and r_1=(1, 2)-(1/4)(6, 7)=(-1/2, 1/4).
- The new squared residual norm is 5/16, giving β_0=(5/16)/5=1/16. Hence p_1=r_1+(1/16)p_0=(-7/16, 3/8). Multiplication gives A p_1=(-11/8, 11/16), and p_0ᵀA p_1=-11/8+22/16=0, directly verifying A-conjugacy.
- The quadratic denominator p_1ᵀA p_1=77/128+33/128=55/64. Therefore α_1=(5/16)/(55/64)=4/11. Updating x_1 gives x_2=(1/4-7/44, 1/2+3/22)=(1/11, 7/11). The residual update is (-1/2, 1/4)-(4/11)(-11/8, 11/16)=(0, 0).
- Original multiplication also gives A x_2=(1, 2), so termination has been checked in the original equations as well as the recurrence. This two-dimensional exact example realizes CG's finite-termination theorem. In floating point, a recursively computed residual need not equal b-Ax_k and exact orthogonality need not persist; a real solver still needs its declared accuracy and stopping evidence.
α_0=1/4, r_1=(-1/2, 1/4), β_0=1/16, p_1=(-7/16, 3/8), α_1=4/11 and x_2=(1/11, 7/11), with exact r_2=0.
A GMRES example with uninformative eigenvalues
For A=[[1, 2], [0, 1]], b=e_2 and x_0=0, construct the first Arnoldi basis vector, the one-step GMRES solution and residual. Continue to the second Krylov direction, write the small Hessenberg relation and verify an exact solve despite both eigenvalues being 1.
- The initial residual has norm one, so v_1=e_2. Then A v_1=(2, 1), h_11=1 and the orthogonal remainder is (2, 0), giving h_21=2 and v_2=e_1. The first small least-squares problem minimizes (1-y)²+4y², whose minimizer is y=1/5. Thus x_1=(0, 1/5).
- The original residual is e_2-Ax_1=(-2/5, 4/5), with squared norm 4/25+16/25=4/5 and norm 2/√5. Both eigenvalues of A are 1, but the first step has not solved the system. Orthogonally diagonalizable spectral reasoning is unavailable for this nonnormal matrix.
- For the second Arnoldi column, A v_2=(1, 0), with projections h_12=0 and h_22=1 and no new remainder. Thus Hbar_2 has columns (1, 2, 0) and (0, 1, 0). Solving Hbar_2 y=(1, 0, 0) gives y_1=1, y_2=-2. In the basis (e_2, e_1), the update is (-2, 1).
- A(-2, 1)=(0, 1), verifying residual zero. The zero new Arnoldi component is a happy breakdown because the nonsingular operator maps the full invariant search space onto itself. Restarting after one step would discard this full two-step optimality argument; finite-arithmetic loss of orthogonality is another separate issue.
v_1=e_2, v_2=e_1; x_1=(0, 1/5) and r_1=(-2/5, 4/5), of norm 2/√5. Hbar_2=[[1, 0], [2, 1], [0, 0]], and x_2=(-2, 1) solves exactly.
A Rayleigh residual and an eigenvalue certificate
For symmetric A=diag(2, 5) and unit v=(3/5, 4/5), compute the Rayleigh quotient, eigen-residual, nearest spectral distance and the angle-based quotient error for the eigenvalue 5. Construct the minimal unstructured rank-one perturbation making this approximate pair exact.
- The vector has squared norm (9+16)/25=1. Its Rayleigh quotient is 2·9/25+5·16/25=98/25. Subtract μv from Av to obtain r=((2-98/25)3/5, (5-98/25)4/5)=(-144/125, 108/125).
- The residual norm is √(144²+108²)/125=180/125=36/25. The distances from μ to 2 and 5 are 48/25 and 27/25, so the nearest eigenvalue is 5 and its distance is below the residual bound. The sine of the angle to e_2 is 3/5, and the quotient error is exactly (5-2)sin²θ=27/25.
- Set E=-r vᵀ=[[432/625, 576/625], [-324/625, -432/625]]. Then Ev=-r because ||v||=1, so (A+E)v=μv. Its rank-one norm is ||r||=36/25. Every perturbation making this same pair exact must have norm at least ||r||/||v||, so this unstructured perturbation is minimal.
- E is not symmetric, illustrating that the backward-error problem just solved did not impose the original structure. The symmetric residual-to-spectrum theorem still gives a valid forward region for the original A, but this candidate is a relatively crude approximation rather than an accurate mode. A much smaller verified residual and a separated spectral region would be needed for a tight selected-eigenvalue claim.
μ=98/25, r=(-144/125, 108/125), ||r||₂=36/25 and the nearest distance is 27/25. The quotient error is 3(3/5)²=27/25; E=-r vᵀ has norm 36/25.
Try it yourself
For A=diag(2, 5), b=(2, 6) and xhat=(1, 1), compute the exact Euclidean normwise backward error when both matrix and right-hand side may change by the same relative amount. Exhibit perturbations attaining it and verify all norm and equation constraints, including the role of the denominator.
Show the answer and reasoning
With D=5√2+2√10, the minimum is η=1/D. Take ΔA=5[[0, 0], [1, 1]]/(D√2) and Δb=(0, -2√10/D).
The exact residual is r=(0, 1), with Euclidean norm one. The scales are ||A||₂=5, ||xhat||₂=√2 and ||b||₂=√40=2√10, giving D=5√2+2√10>0. Any admissible perturbations satisfy r=ΔA xhat-Δb, so 1≤εD and ε≥1/D. The stated ΔA is rank one, with a row proportional to (1, 1), so its spectral norm is 5/D. The right-hand-side perturbation has norm 2√10/D. Their relative sizes are both exactly 1/D when divided by the original scales 5 and 2√10. Zero entries in the other row do not affect these equalities. Multiplying gives ΔA xhat=(0, 5√2/D). Hence ΔA xhat-Δb=(0, (5√2+2√10)/D)=(0, 1)=r. Therefore (A+ΔA)xhat=b+Δb, attaining the lower bound and proving the minimum. This construction explicitly verifies the finite perturbation instead of relying only on a displayed formula. The denominator combines the permitted matrix and data effects on this vector. It does not bound forward error without sensitivity information, and it does not impose symmetry or physical structure on ΔA. Here the exact solution is (1, 6/5), showing that a nearby-equation statement and closeness to the original solution are different quantities. A rounded residual would require an enclosure before the same η were certified.
For A=[[100, 1], [1, 1]], b=(101, 2) and xhat=(1, 0), compute the componentwise backward error and construct entrywise relative perturbations attaining it. Compare the global infinity-norm relative residual and actual relative forward error. Explain why the largest row should not hide the smaller equation.
Show the answer and reasoning
r=(1, 1), d=(201, 3), η_c=1/3; ΔA=[[100/201, 0], [1/3, 0]], Δb=(-101/201, -2/3) attain it. Relative residual is 1/101, while relative forward error is 1.
The exact residual is b-Axhat=(1, 1). The componentwise scale is |A||xhat|+|b|=(100, 1)+(101, 2)=(201, 3). The row ratios are 1/201 and 1/3, so the maximum is η_c=1/3. The second row, not the globally largest entry, determines this backward-error measure. For the first row use t_1=1/201 and for the second t_2=1/3 in the constructive formula. Since sign(xhat_2)=0, choose zero perturbations in column 2. This yields the stated ΔA and Δb. Their entrywise relative sizes are 1/201 in the first row and 1/3 in the second, so every constraint is at most η_c. The first row of ΔA xhat-Δb is (100+101)/201=1; the second is 1/3+2/3=1. Thus the perturbed equation holds exactly. Meanwhile ||r||∞/||b||∞=1/101, which looks far smaller because it uses the large first component of b as its global scale. The original exact solution is (1, 1), so x-xhat=(0, 1) and relative infinity error is 1. These numbers do not contradict any conditioning theorem: the global relative residual alone was never a forward certificate. The componentwise result diagnoses the unbalanced equation more clearly, though its unstructured entrywise perturbations still do not encode every possible physical constraint.
The system A=[[0, 1], [2, 3]], b=(1, 5) is nonsingular. Show why unpivoted scalar elimination cannot start, give its partial-pivoted PA=LU factors and solve it. What does this prove, and what does it not prove, about a zero leading entry?
Show the answer and reasoning
det(A)=-2; swap the rows, take L=I and U=[[2, 3], [0, 1]]. With Pb=(5, 1), the solution is (1, 1).
The determinant is 0·3-1·2=-2, so the matrix is invertible. Nevertheless the first scalar pivot a_11 is zero, making the division used by unpivoted elimination undefined. This directly separates nonsingularity of the whole matrix from existence of an unpivoted leading scalar step. Partial pivoting selects the magnitude 2 entry in the first column. With P=[[0, 1], [1, 0]], PA=[[2, 3], [0, 1]] is already upper triangular. Thus L=I and U=PA give the exact convention PA=LU, without any nonzero elimination multiplier. Apply P to b to get (5, 1). The last equation gives x_2=1; the first is 2x_1+3=5, giving x_1=1. Original multiplication gives A(1, 1)=(1, 5), checking the exact residual rather than only the permuted equations. A zero leading entry is therefore a failure of this unpivoted step, not a proof of singularity. In floating-point data a tiny pivot also needs a scaling and uncertainty interpretation; choosing a tolerance is a separate numerical-rank decision. The example proves exact algebraic necessity of an allowed row change here, not universal numerical stability of every pivoted factorization.
Let A=[[2, 1], [1, 7/2]], L=[[1, 0], [1/2, 1]], Uhat=[[2, 1], [0, 31/10]] and b=(3, 23/5). Solve using these stored factors exactly. Find R=A-L Uhat, a matrix perturbation making that result exact, its relative infinity norm, and the original forward error.
Show the answer and reasoning
The factor solve gives xhat=(1, 1). R=[[0, 0], [0, -1/10]], so ΔA=-R has relative norm 1/45. The true solution is (59/60, 31/30), with absolute infinity error 1/30 and relative error 1/31.
The product L Uhat is [[2, 1], [1, 18/5]], giving R=A-L Uhat=[[0, 0], [0, -1/10]]. Forward substitution yields z=(3, 31/10), and back substitution in Uhat gives xhat_2=1 and xhat_1=1. There are no triangular-solve perturbations in this exact hand example; the only defect is the supplied factor product. Since L Uhat=A-R, the factor solve is exactly (A-R)xhat=b. Thus ΔA=-R=[[0, 0], [0, 1/10]] makes xhat an exact solution of nearby matrix data. Its infinity norm is 1/10; ||A||∞=9/2, so the relative norm is (1/10)/(9/2)=1/45. This particular perturbation is not asserted to be the minimum among all possible backward-error models. The original residual is b-Axhat=(0, 1/10). Solve the original equations: from 2x_1+x_2=3, substitute x_1=(3-x_2)/2 into the second row to get 3x_2=31/10. Hence x_2=31/30 and x_1=59/60. The difference x-xhat=(-1/60, 1/30) has infinity norm 1/30. The exact solution norm is 31/30, making relative forward error (1/30)/(31/30)=1/31. A factor residual, a nearby-matrix interpretation and a forward error have now been kept distinct. In a real implementation one would also include arithmetic in both triangular solves and in evaluating the residual, rather than attributing every discrepancy solely to factorization.
Assume sequential dot-product arithmetic with unit roundoff u=1/1000 and no overflow or underflow. For a=(2, -3, 1, 4) and x=(1, 2, -1, 1/2), derive a γ_4 absolute and relative error bound. Compute the exact dot product by hand and distinguish the bound from an observed execution error.
Show the answer and reasoning
The exact dot product is -3 and the absolute-product sum is 11. γ_4=1/249, so absolute error is at most 11/249 and relative error at most 11/747 under the stated model.
The exact products are 2, -6, -1 and 2. Their signed sum is -3 and their absolute sum is 11. Cancellation therefore makes the dot-product scale different from the scale controlling the absolute rounding estimate; the latter cannot be replaced by the absolute signed sum without another argument. Here 4u=1/250<1, so γ_4=(4/1000)/(1-4/1000)=4/996=1/249. Expanding the sequential rounded computation gives one coefficient perturbation per exact product with magnitude at most γ_4, because no term passes through more than four rounding factors. The absolute error is therefore bounded by γ_4·11=11/249. Since the exact dot product is nonzero with magnitude 3, division yields relative error at most 11/747. These are conservative theoretical bounds under the declared arithmetic model; they are not the errors of a simulated or measured run. A different accumulation tree, fused operation, underflow behavior or precision could change the bound. If the exact signed sum were zero, this relative bound would be undefined even though an absolute estimate remained useful. Earlier data uncertainty in a or x would also require additional terms. No scientific code is needed to establish this finite hand example.
Construct the positive Cholesky factor of A=[[9, 3], [3, 2]], and compare the first Schur-complement pivot with that of B=[[1, 2], [2, 1]]. Prove which matrix is SPD using exact algebra. Explain why the same conclusion cannot be drawn from an uncertain rounded pivot alone.
Show the answer and reasoning
A=[[3, 0], [1, 1]][[3, 1], [0, 1]] is SPD with determinant 9. B has Schur pivot -3 and is indefinite; (1, -1) gives quadratic form -2.
For A the first square root is 3, the lower off-diagonal entry is 3/3=1, and the remaining Schur complement is 2-1²=1. Hence L=[[3, 0], [1, 1]] has positive diagonal and LLᵀ=A. Its nonsingularity makes zᵀAz=||Lᵀz||² positive for nonzero z. The determinant is det(L)²=3²=9. For B, the first pivot is 1 and the lower multiplier in a Cholesky-style step would be 2, leaving Schur complement 1-2²=-3. No real positive-diagonal Cholesky factor can follow from that exact matrix. Indeed B(1, -1)=(-1, 1), so the quadratic form at (1, -1) equals -2, while the value at (1, 1) is 6. This establishes indefiniteness directly, with eigenvalues -1 and 3 if desired. Failure of positive definiteness is not the same as singularity; det(B)=-3 is nonzero. These signs are exact for the stated inputs. A rounded pivot near zero from an uncertain matrix can reflect rounding, a missing constraint, or genuine indefiniteness. Certifying which explanation applies requires bounds for the original data and computation. A routine's status alone is not a proof about every physically plausible matrix behind its stored entries.
For symmetric A=[[0, 2], [2, 0]], show why a symmetric row-and-column permutation cannot provide a nonzero first scalar diagonal pivot. Give a valid block LDLᵀ factorization and solve b=(2, 4). Establish nonsingularity and indefiniteness explicitly.
Show the answer and reasoning
The diagonal remains zero under either permutation; L=I and the full block D=A work. The eigenvalues are ±2, determinant -4, and the solution is (2, 1).
There are only two coordinate permutations. The identity leaves A unchanged, and interchanging both rows and columns also gives A. Both diagonal entries remain zero in either case, so a first 1×1 diagonal pivot is unavailable despite the determinant 0·0-2·2=-4 being nonzero. Use A itself as a 2×2 pivot block: A=I·D·Iᵀ with D=A. This is a valid block LDLᵀ representation because the block is invertible. The purpose is to retain symmetric elimination, not to force scalar positive pivots where the matrix has no positive-definite structure. The vectors (1, 1) and (1, -1) have eigenvalues 2 and -2, respectively. Thus the quadratic form has both signs and A is indefinite. Solving 2x_2=2 and 2x_1=4 gives x=(2, 1), which original multiplication verifies. The example proves an algebraic need for a block pivot in this symmetric convention. It does not analyze a practical pivot-selection strategy's rounding or growth. A symmetric indefinite factor is useful for different physical or constrained systems from those requiring SPD Cholesky; their failure and accuracy statuses should not be conflated.
Use sign_plus(0)=1 to construct a Householder reflector for x=(0, -5, 12). Give v and H in a compact exact form, verify Hx, and determine H's determinant, trace and norm-preserving property without expanding every entry.
Show the answer and reasoning
||x||₂=13, v=(13, -5, 12), H=I-vvᵀ/169 and Hx=(-13, 0, 0). Its eigenvalues are -1, 1, 1, so determinant is -1 and trace is 1; HᵀH=I.
The norm is √(25+144)=13. The sign convention at the zero leading component chooses v=x+13e_1=(13, -5, 12), with squared norm 169+25+144=338. Hence I-2vvᵀ/(vᵀv)=I-vvᵀ/169. The scalar vᵀx=25+144=169, so Hx=x-v=(-13, 0, 0). In particular the zero first component causes no division by zero or ambiguous sign choice. Taking the identity for a zero entire vector would be a different special case, which is not present here. H maps v to -v, and it fixes any vector orthogonal to v because its rank-one term then vanishes. The orthogonal complement has dimension two, giving eigenvalues -1, 1 and 1. Their product is -1 and sum is 1, establishing determinant and trace. The same decomposition or direct rank-one algebra gives Hᵀ=H and H²=I. Therefore ||Hy||₂=||y||₂ for every y. This exact property is the basis for QR norm preservation; forming and applying its numerical representation still needs an arithmetic analysis when the entries are not handled exactly.
Let δ=2⁻³⁰ and A=[[1, 1], [δ, 0], [0, δ]]. Compute its exact singular scales and Gram condition number. Under binary round-to-nearest with u=2⁻⁵³, explain why rounding each exact entry of AᵀA to that precision produces a singular matrix. What conclusion about QR is justified?
Show the answer and reasoning
The singular values are √(2+δ²) and δ, so κ₂(A)²=κ₂(AᵀA)=2⁶¹+1. The rounded Gram matrix is [[1, 1], [1, 1]], although A has rank 2. QR avoids this Gram-formation loss but still needs its own numerical qualification.
The exact Gram matrix is [[1+δ², 1], [1, 1+δ²]]. Its eigenvectors (1, 1) and (1, -1) have eigenvalues 2+δ² and δ². Both are positive, so A has rank 2 and singular values √(2+δ²) and δ. Their squared ratio is (2+δ²)/δ²=2⁶¹+1. The number δ²=2⁻⁶⁰ is exactly representable but below the half-spacing 2⁻⁵³ above 1. Thus rounding the exact positive diagonal 1+δ² to nearest gives 1. Both exact off-diagonal entries are already 1. The stated entry-rounding operation therefore produces the all-ones Gram matrix, whose determinant is zero. This is loss of the small eigenvalue in the representation of AᵀA, not loss of exact column independence in A. It also shows the danger of relying on subtraction of entries of order one to recover a much smaller squared singular value. This example specifies the rounding result; a differently scaled or higher-precision formation is another computation. A QR method works from A and avoids this particular Gram-formation squaring. It does not follow that every QR implementation in every precision recovers arbitrary small singular information perfectly. Factor residual, orthogonality, uncertainty and coefficient conditioning still need review. Numerical rank should be tied to those scales rather than to a blanket choice of representation.
For rank-deficient A=[[1, 1], [2, 2]] and b=(1, 3), find every least-squares minimizer, the unique minimum-norm one, its residual and an SVD explanation. Identify the unobservable parameter direction.
Show the answer and reasoning
All minimizers are (7/10+t, 7/10-t); the minimum-norm one is (7/10, 7/10), residual (-2/5, 1/5), with squared residual norm 1/5. The unobservable direction is (1, -1).
Only s=x_1+x_2 affects Ax=(s, 2s). The objective is (s-1)²+(2s-3)²=5s²-14s+10, uniquely minimized at s=7/5. Hence all minimizing pairs have sum 7/5 and can be written (7/10+t, 7/10-t). Their squared vector norm is 49/50+2t², minimized uniquely at t=0. The fitted values are (7/5, 14/5), so b-Ax=(-2/5, 1/5). Its squared norm is 4/25+1/25=1/5, and it is orthogonal to the range direction (1, 2). This nonzero best residual expresses incompatible data, while nonunique coefficients express a separate nullspace issue. Write u=(1, 2)/√5 and v=(1, 1)/√2. Then A=√10 u vᵀ has the sole positive singular value √10. Since uᵀb=7/√5, the pseudoinverse estimate is v(7/√5)/√10=(7/10, 7/10), agreeing with the minimum-norm calculation. The nullspace is span(1, -1). No observation in this model distinguishes coefficients that differ by this vector, so minimum norm is a selection convention rather than new measured information. Regularization or additional observations would change that inference problem. A zero or small least-squares residual alone would not remove this identifiability issue.
For A=diag(5, 2, 1), determine the smallest spectral-norm error among rank-at-most-one matrices. Give two different minimizers and prove the lower bound. Compare the Frobenius errors of your two examples to explain why naming the norm matters.
Show the answer and reasoning
The best spectral error is 2; B_1=diag(5, 0, 0) and B_2=diag(4, 0, 0) both attain it. Their Frobenius errors are √5 and √6 respectively, so spectral optimality is not unique and is not the same numerical criterion.
For any rank-at-most-one B, its restriction to span(e_1, e_2) has a nonzero kernel vector z. Normalize it to length one. Then ||(A-B)z||₂=||Az||₂≥2 because both singular scales on that plane are at least 2. Hence every such B has spectral error at least 2. For B_1 the difference is diag(0, 2, 1), of spectral norm 2. For B_2 it is diag(1, 2, 1), also of spectral norm 2. Both B matrices have rank one and are different, proving nonuniqueness of this best spectral approximation despite the largest singular value being separated from the second. The squared Frobenius errors are instead 0²+2²+1²=5 and 1²+2²+1²=6. Thus these two spectral minimizers are not equivalent under the Frobenius objective. This comparison computes the two norms directly; the spectral lower-bound argument should not be relabeled as a proof of an arbitrary different norm's entire optimum set. A compressed matrix model therefore needs its approximation norm and retained rank specified. A best matrix approximation does not automatically give the best inverse estimate or the best error in a requested scientific output. Those questions weight singular directions differently and can require additional information about data and parameters.
For A=diag(2, 0), b=(2, 3) and λ=1, minimize ||Ax-b||₂²+λ²||x||₂². Compute the objective and data gain, then examine λ→0 and λ→∞. Could these observations recover a true parameter (1, 7)?
Show the answer and reasoning
The minimizer is (4/5, 0), objective 49/5 and data gain 2/5. As λ→0 it tends to (1, 0); as λ→∞ it tends to 0. The second truth coordinate 7 is unobservable in this model.
The regularized normal matrix is diag(5, 1) and right-hand side is (4, 0), giving x=(4/5, 0). The residual b-Ax=(2/5, 3) has squared norm 4/25+9; the penalty is 16/25. Their sum is 20/25+9=49/5. The unavoidable second data residual comes from a zero row of A. The filter for the positive singular value is 2/(4+1)=2/5, while the null singular direction has zero gain. Hence the exact data-to-solution norm is 2/5, strictly below the generic bound 1/(2λ)=1/2. The bound is sufficient, not required to be attained by every spectrum. For a general λ>0 the coefficient is x_1=4/(4+λ²), x_2=0. It tends to (1, 0) as λ decreases to zero, the minimum-norm unregularized least-squares solution, and tends to zero as λ grows. The λ² convention is retained throughout these limits. A truth (1, 7) gives the same noiseless Ax=(2, 0) as (1, 0). Its second coordinate cannot be recovered from these observations even by an exact numerical solve. The extra measured value 3 in the second data component is incompatible with the range rather than evidence for that parameter. A prior or new measurement could choose a second coordinate, but regularization itself has not observed it.
Let A be the 3×3 matrix with diagonal 1 and all off-diagonal entries 3/4. Prove that A is SPD but Jacobi is not guaranteed to converge for every starting vector. Give the exact evolution of an initial error proportional to the all-ones vector, and explain why this does not contradict the SPD Gauss–Seidel theorem.
Show the answer and reasoning
A has eigenvalues 5/2 and 1/4 (twice), while Jacobi's error matrix has eigenvalues -3/2 and 3/4 (twice). The all-ones error is multiplied by (-3/2)^k, so its magnitude grows; exact Gauss–Seidel uses a different iteration.
Write A=(1/4)I+(3/4)11ᵀ. On the all-ones vector the rank-one term has eigenvalue 9/4, giving total 5/2. On its two-dimensional orthogonal complement the rank-one term vanishes, giving eigenvalue 1/4. All eigenvalues are positive, proving SPD. Jacobi's diagonal is I, so its error matrix is B=I-A. The same invariant spaces have eigenvalues 1-5/2=-3/2 and 1-1/4=3/4. The spectral radius is 3/2>1, violating the convergence-for-every-start criterion. If e_0=c(1, 1, 1) with c≠0, then e_k=(-3/2)^k e_0. Its sign alternates and its infinity norm is (3/2)^k|c|, not a sequence tending to zero. An error restricted to the complementary eigenspace would converge, which is why the universal starting-vector quantifier matters. Gauss–Seidel updates coordinates using the newly available values and has a different error matrix. Its SPD proof decreases the quadratic energy by sequential coordinate minimization, a property not possessed by this simultaneous Jacobi update. Also, strict diagonal dominance fails here because 1 is smaller than the off-diagonal row sum 3/2; its sufficient Jacobi theorem never applied.
For A=[[2, 1], [1, 2]], b=(1, 0) and x_0=0, take two exact Gauss–Seidel sweeps in coordinate order 1 then 2. Derive the iteration matrix, its spectral radius and infinity norm, and compare the actual errors after these two sweeps.
Show the answer and reasoning
x_1=(1/2, -1/4), x_2=(5/8, -5/16), B_G=[[0, -1/2], [0, 1/4]], ρ=1/4 and ||B_G||∞=1/2. The exact solution is (2/3, -1/3), and e_2=e_1/4.
The update is x_1^new=(1-x_2^old)/2 followed by x_2^new=-x_1^new/2. Starting at zero gives (1/2, -1/4); the next sweep gives ((1+1/4)/2, -(5/8)/2)=(5/8, -5/16). Both uses of the first coordinate in a sweep must use its newly updated value. Substitution gives x_new=(1/2, -1/4)+[[0, -1/2], [0, 1/4]]x_old. The triangular matrix has eigenvalues 0 and 1/4, so spectral radius is 1/4. Its maximum absolute row sum is 1/2, a different quantity. Either proves convergence, but only the induced norm supplies that particular simple norm-contraction certificate. Solving the original equations gives x*=(2/3, -1/3). The errors x*-x_1=(1/6, -1/12) and x*-x_2=(1/24, -1/48) differ by a factor 1/4. After the first sweep the error has fallen on the eigenvector for the surviving eigenvalue, making the actual rate equal to the spectral factor in this example. Using ρ as if it automatically were the infinity norm would nevertheless be an invalid general proof. The all-start norm bound here is 1/2; other initial directions can have a different first-step ratio. The SPD coordinate-descent argument also applies, but it is a separate convergence route rather than a reason to erase the distinction between an asymptotic spectral rate and a stated norm certificate.
For A=diag(2, 8), b=(2, 8) and x_0=0, find the optimal constant Richardson step based on the exact spectral endpoints. Compute two iterates and their error factors. State the whole positive-step convergence interval and the meaning of optimality here.
Show the answer and reasoning
ω*=1/5, q*=3/5; x_1=(2/5, 8/5), x_2=(16/25, 16/25). The error factors are 3/5 and 9/25, and convergence for every start requires 0<ω<1/4.
The SPD spectral interval is [2, 8]. Balancing |1-2ω| and |1-8ω| gives ω*=2/(2+8)=1/5 and q*=(8-2)/(8+2)=3/5. The error matrix is diag(3/5, -3/5), so both endpoint error directions attain this contraction magnitude. The exact solution is (1, 1). The first update is ω*b=(2/5, 8/5), with error (3/5, -3/5). The next error multiplies by the same diagonal matrix and becomes (9/25, 9/25), hence x_2=(16/25, 16/25). Their Euclidean and energy error ratios agree with q* for this endpoint-only spectrum. Every initial error converges exactly when both |1-2ω| and |1-8ω| are below one. Their positive intersection is 0<ω<2/8=1/4. At an endpoint an error component can persist or alternate rather than decay, so the inequalities are strict. Optimal means the smallest guaranteed factor among constant scalar steps for the given spectral interval. It does not compare against CG, varying polynomial steps, preconditioned operators or wall-clock execution costs. If the spectral endpoints were only estimates, the certificate would need valid bounds rather than the same numerical values asserted without evidence.
Take SPD A=[[4, 2], [2, 3]] and SPD preconditioner M=diag(4, 1). Compute C=M^(-1/2) A M^(-1/2) and M⁻¹A, compare their symmetry and eigenvalues, and show that this preconditioner worsens the relevant spectral condition number.
Show the answer and reasoning
C=[[1, 1], [1, 3]] is SPD; M⁻¹A=[[1, 1/2], [2, 3]] is not Euclidean symmetric. Their eigenvalues are 2±√2 and κ₂(C)=3+2√2>5, while κ₂(A)=(7+√17)/(7-√17)<4.
Since M^(-1/2)=diag(1/2, 1), multiplication gives C=[[1, 1], [1, 3]]. It has trace 4 and determinant 2, hence eigenvalues 2±√2, both positive. The left-preconditioned matrix is [[1, 1/2], [2, 3]], visibly nonsymmetric but similar to C by the stated symmetric transformation. The relevant Euclidean SPD condition number is κ₂(C)=(2+√2)/(2-√2)=3+2√2, exceeding 5. The eigenvalues of A come from trace 7 and determinant 8, namely (7±√17)/2. Thus κ₂(A)=(7+√17)/(7-√17). To verify κ₂(A)<4 without a decimal approximation, its positive denominator allows rearrangement to 5√17<21. Squaring positive sides gives 425<441. Therefore the preconditioned SPD condition number exceeds 5 while the original is below 4. Positive definiteness of M has preserved the right framework but has not improved its rate parameter. The eigenvalue ratio of the nonsymmetric M⁻¹A is not automatically its Euclidean singular-value condition number. It is the symmetric C, or the equivalent M-inner-product geometry, that justifies this SPD comparison. Preconditioner selection must balance actual spectral improvement, solve cost and scales; calling a matrix a preconditioner supplies no improvement theorem.
For the defective matrix A=[[1, 1], [0, 1]], perturb it by E=[[0, 0], [1/10000, 0]]. Compute the spectral perturbation norm and exact eigenvalue shifts. Generalize to positive ε in the lower-left entry and decide whether a fixed linear eigenvalue-error bound can hold as ε→0.
Show the answer and reasoning
||E||₂=1/10000, eigenvalues become 1±1/100 and the movement-to-perturbation ratio is 100. In general shifts are √ε, so the ratio 1/√ε is unbounded and no fixed local linear constant applies to this family.
E maps (z_1, z_2) to (0, z_1/10000), so its spectral norm is 1/10000. The characteristic determinant of A+E-μI is (1-μ)²-1/10000. Its zeros are μ=1±1/100, while the unperturbed matrix has the repeated eigenvalue 1. The nearest original spectral distance is 1/100 for each new eigenvalue. Dividing by ||E|| gives 100. This is an exact finite perturbation calculation, not a failure inferred from rounding an eigensolver output or from a small pair residual. Replacing 1/10000 by ε>0 gives ||E||₂=ε and roots 1±√ε. The ratio √ε/ε=1/√ε tends to infinity. If a fixed constant C gave movement≤Cε for all sufficiently small positive ε, choosing ε<1/C² would contradict it. The matrix is defective and has no complete eigenvector basis, so the diagonalizable Bauer–Fike theorem does not apply. Nearly defective diagonalizable data can instead have a large basis condition number. Backward accuracy of a numerical eigenpair remains meaningful, but its forward spectral interpretation must respect this sensitivity and any additional structure imposed on perturbations.
Let A=diag(2, 8), b=(2, 8), xhat=(99/100, 101/100) and output cᵀx with c=(3, -4). Use the exact adjoint and zhat=(3/2, -49/100) to assess output error. Compute the primal energy error and its residual bound using a=2, then verify the discrepancy bound for the approximate adjoint identity.
Show the answer and reasoning
r=(1/50, -2/25), z=(3/2, -1/2), exact output error 7/100 and zhatᵀr=173/2500. Their difference is 1/1250, below √17/1250. The energy error is √10/100, bounded by √34/100.
The exact solution is (1, 1), so e=x*-xhat=(1/100, -1/100) and r=Ae=(1/50, -2/25). The true output is -1 and the approximate output is -107/100, giving error 7/100. The adjoint Aᵀz=c gives z=(3/2, -1/2), and zᵀr=3/100+1/25=7/100 as required. The squared energy error is eᵀAe=(2+8)/10000=1/1000, hence ||e||_A=√10/100. The residual norm is √17/50. With the exact lower eigenvalue a=2, the residual energy bound is ||r||/√2=√34/100, larger than the actual energy error but valid. For zhat, the dual residual s=c-Aᵀzhat is (0, -2/25). Its proposed output correction is zhatᵀr=3/100+98/2500=173/2500. The exact correction is 175/2500, so the discrepancy is 2/2500=1/1250, also equal to sᵀe. The general SPD bound gives |sᵀe|≤||s||₂||r||₂/a=(2/25)(√17/50)/2=√17/1250, which encloses that discrepancy. Both primal and adjoint arithmetic are exact in this hand calculation; actual computed residuals need evaluation bounds. An output-specific certificate answers this scalar question without asserting that it has also qualified discretization or physical-model error.
What to carry forward
- A small residual certifies an approximate equation; a forward-error interpretation also needs sensitivity and a compatible scale. Normwise and componentwise backward errors answer different questions.
- A permutation is part of a pivoted factorization. Partial pivoting bounds multipliers but can permit exponential growth, while Cholesky needs positive definiteness and indefinite symmetric data may require block pivots.
- Orthogonal transformations preserve the exact residual norm. Forming normal equations squares the spectral condition number, and a good factor residual does not by itself prove good orthogonality.
- The pseudoinverse selects minimum norm among least-squares solutions; it does not observe a nullspace parameter. Truncation and regularization trade data amplification against omitted or shrunk information.
- A stationary method's every-start criterion is spectral radius below one; a stated norm contraction supplies a stronger practical certificate. Positive definiteness alone does not make Jacobi converge.
- Exact CG minimizes energy error for SPD data, and exact unrestarted GMRES minimizes Euclidean residual over its growing Krylov space. Rounding, preconditioning and restart require their own interpretation.
- Eigenvalue residuals are nearby-matrix statements for general matrices. Symmetry, a well-conditioned eigenbasis and spectral separation can justify stronger forward claims; defective problems can be much more sensitive.
- Refinement has a precision floor, and a stopping report should name what it has achieved. An adjoint can certify one requested output even when algebraic, discretization and physical-model errors still need separate assessment.
References
Sources for the concepts and teaching approaches in this article.
Nicholas J. Higham8 sources
- What Is a Condition Number?Nicholas J. HighamAuthor exposition
- What Is Numerical Stability?Nicholas J. HighamAuthor exposition
- What Is the Growth Factor for Gaussian Elimination?Nicholas J. HighamAuthor exposition
- What Is a Cholesky Factorization?Nicholas J. HighamAuthor exposition
- What Is a Householder Matrix?Nicholas J. HighamAuthor exposition
- What Is Backward Error?Nicholas J. HighamAuthor exposition
- What Is Floating-Point Arithmetic?Nicholas J. HighamAuthor exposition
- What Is Iterative Refinement?Nicholas J. HighamAuthor exposition
James Demmel4 sources
- MA221 Lecture 13: Least SquaresJames DemmelAuthor course notes
- MA221 Lecture 3: Norms, SVD and Matrix PerturbationsJames DemmelAuthor course notes
- MA221 Lecture 22: Nonsymmetric Eigenvalue ProblemsJames DemmelAuthor course notes
- MA221 Lecture 28: Symmetric Eigenvalue ProblemsJames DemmelAuthor course notes
- Regularization Tools: A Matlab Package for Analysis and Solution of Discrete Ill-Posed ProblemsPer Christian HansenAuthor manual · PDF
- Fundamentals of Numerical Computation: PreconditioningTobin A. Driscoll and Richard J. BraunAuthor textbook
- Templates for the Solution of Linear Systems: Building Blocks for Iterative MethodsRichard Barrett, Michael Berry, Tony F. Chan, James Demmel, June M. Donato, Jack Dongarra, Victor Eijkhout, Roldan Pozo, Charles Romine and Henk Van der VorstAuthor reference book · PDF