How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Matrix Norms, Condition Numbers and Numerical Stability
1 · Prerequisites
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Metric Spaces
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Splitting Fields
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
The published -norms on and their norm axioms, the operator norm and the singular value decomposition with the rank and Eckart–Young consequences, matrix multiplication and invertibility, the geometric series, and the least-squares normal equation supply the machinery this page uses; the published spectral page owns singular values and the operator -norm, and this page cites them rather than re-minting them.
The page separates the three questions that numerical analysis keeps apart. First it fixes the vocabulary of problem conditioning: absolute and relative forward error, and the absolute and relative local condition numbers of a problem map. Second it builds the matrix-norm tools: the norm induced by a published vector -norm with its compatibility, submultiplicativity and normalisation; the induced -norm as the maximum column sum and the induced -norm as the maximum row sum; and the Frobenius norm with the spectral and Frobenius singular-value formulas, unitary invariance and the sharp rank comparison. Third it runs the linear-system spine: the condition number , the right-hand-side and matrix perturbation bounds, the reciprocal spectral condition number as the relative distance to singularity, residual-to-forward-error bounds, and normwise and componentwise backward error with their explicit residual formulas.
The page then makes the arithmetic model explicit: the standard relative floating-point model and unit roundoff with its stated exclusions, forward and backward stability for a problem family, the product-of-errors lemma giving , the componentwise and normwise dot-product bounds, and the first-order principle that conditioning times backward error controls forward error. It closes by separating exact rank from numerical rank: exact rank is locally constant at maximal-rank matrices and discontinuous at nonmaximal-rank ones, numerical rank is declared against a norm, scale and tolerance, and in the spectral norm it counts the singular values above the declared threshold.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Absolute and relative forward error for an approximate value of a problem map
Definition
Let and be normed spaces over (A norm on a real vector space, the induced metric, and the dictionary with the metric axioms), let be a map, and let be an element of the domain of . Let be an approximate value of at : an element of the target space meant to stand for .
The absolute forward error of at is the norm
and, provided , the relative forward error of at is
The exact value is called the exact answer, and the computed (or approximate) answer. Forward error is the error in the answer itself; it is measured in the target space and knows nothing about how was produced.
Remarks
-
Why the relative version needs . Relative error divides by ; when the division is not defined, and the only sensible quantity is the absolute error. Every statement on this page that writes a relative forward error carries the hypothesis .
-
Approximate values are plain elements of . No machine arithmetic is assumed here: can come from hand calculation, a rounded formula, or an algorithm. The floating-point model is introduced separately in The standard relative floating-point model and unit roundoff, and nothing in this definition depends on it.
Absolute and relative local condition numbers of a problem map
Definition
Let and be normed spaces over (A norm on a real vector space, the induced metric, and the dictionary with the metric axioms) and let be a map. For and write
Define the worst amplification over perturbations of size at most by
so in every case.
For each fixed the map is nondecreasing as increases, so the infimum over all exists in . The absolute (local) condition number of at is
If and , the relative (local) condition number of at is
For the computed value of Absolute and relative forward error for an approximate value of a problem map, the quantity is the absolute backward error. When , the quotient is the relative backward error: the amount by which the data must be moved, relative to its size, for the computed answer to be exactly correct. At only the absolute backward error is defined. The condition number converts backward error into a bound on forward error; that conversion is Local conditioning times backward error controls forward error to first order.
Remarks
-
The infimum form is the limit of the supremum form. Because is monotone in , the infimum over equals the one-sided limit , which is the familiar definition of a condition number as the worst relative amplification of infinitesimal perturbations. The infimum formulation is used below because it is an honest value of the library's ordered arithmetic with no separate limit apparatus.
-
The value is allowed to be . An ill-posed (discontinuous) map has infinite condition number at a point of discontinuity; is a legitimate value and no arithmetic is performed with it. The first-order conversion theorem only yields a finite bound when .
-
Conditioning belongs to the problem, not to the algorithm. The condition number depends only on , the point , and the two norms; no algorithm enters its definition. The separate notion of stability belongs to an algorithm under an arithmetic model and is defined in Forward and backward stability for a problem family under an arithmetic model.
The matrix norm induced by a published vector p-norm
Definition
Let , let with , and let be a real matrix (Rectangular matrix multiplication and the identity matrix , including zero-sized shapes), regarded as the linear map from to with the published -norms (The -norms for rational , and ). The matrix -norm induced by is
When , the following three displayed quantities are the same number:
the equalities following from positive homogeneity of (Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page, axiom (N2)) and the equality .
The value is a finite nonnegative real. For the norms and are equivalent by For all norms on are equivalent, so there is with for every . For every , , so ; hence the supremum over the unit ball is at most the finite constant .
The induced infinity norm is a separate named case. When , define
As in the rational- case, positive homogeneity gives
The supremum is finite because for every one has , so
At the convention is explicit. The only element of is the zero vector, the only matrix is the empty matrix, and the unit-ball definition gives . The unit sphere and the set of nonzero vectors are empty, so the two ratio formulas above are not asserted in this case.
The induced quantity is a norm on the matrix space : for each rational , and likewise for the separately named -case when , separation, absolute homogeneity and the triangle inequality follow from the same three axioms of the underlying vector norm (Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page) through the defining supremum. The compatibility with matrix-vector multiplication, the submultiplicativity and the value on identity matrices are Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1; the explicit value at and the separate -formula are The induced 1-norm is the maximum column sum and the induced infinity-norm is the maximum row sum.
Remarks
-
At this is the published operator norm. The vector -norm is the Euclidean norm (Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page), so the induced -norm of a real matrix is the operator norm of the published spectral/SVD page; The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector identifies it with the largest singular value. No second operator norm is introduced here.
-
Only rational are used. The published The -norms for rational , and exist for rational exponents only, and this definition inherits that restriction verbatim; no statement on this page ranges over a real interval.
Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1
Statement
Let with and let , with the induced -norms of The matrix norm induced by a published vector p-norm.
- Compatibility. For every and every ,
- Submultiplicativity. For every and ,
- Normalisation. For every , where is the identity matrix of Rectangular matrix multiplication and the identity matrix , including zero-sized shapes; at the unique empty matrix has , the convention of The matrix norm induced by a published vector p-norm.
Facts & Assumptions
Given: A rational , natural numbers , matrices , , and vectors .
is a norm on and on : in particular and (Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page).
The induced norm is (The matrix norm induced by a published vector p-norm).
Matrix multiplication is associative, so ; it is also unital, so for (Matrix multiplication is associative, unital, distributive, and compatible with scalar multiplication, Rectangular matrix multiplication and the identity matrix , including zero-sized shapes).
Proof
For the compatibility claim reads , which is true by [L1] and [L2].
For the vector by [L1], so by homogeneity of [L1].
For both sides of claim 2 are , using [L1] and [L3].
For every attains ratio one: by [L3], , so , and the supremum in [L2] is therefore , which is claim 3 for .
At the space has only the zero vector, so the definition of The matrix norm induced by a published vector p-norm assigns , which is the stated exceptional value.
The scaled vector has -norm , so by [L2]; combining step 1.2 with this bound gives , which with step 1.1 proves claim 1.
For associativity of [L3] gives , and applying claim 1 first to at the vector and then to at the vector gives .
Dividing step 3.1 by the positive number and taking the supremum over all nonzero in the definition of [L2] gives ; with step 1.3 this is claim 2.
Claims 1, 2 and 3 are steps 2.1, 4.1, 1.4 and 1.5 respectively.
The induced 1-norm is the maximum column sum and the induced infinity-norm is the maximum row sum
Statement
Let with and , and let , with the induced -norm and the separately defined induced -norm of The matrix norm induced by a published vector p-norm.
- Maximum column sum. .
- Maximum row sum. .
Facts & Assumptions
Given: Natural numbers , a matrix , and vectors .
The -norm and the -norm are and (The -norms for rational , and ); each is a norm, in particular the triangle inequality and hold (Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page).
The induced norm is the supremum of the ratio over nonzero vectors, and compatibility gives (The matrix norm induced by a published vector p-norm, Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1).
The standard basis vector satisfies and for , and finite sums are evaluated pointwise; in particular (The standard list with and for is an ordered basis of ; hence , and is the zero space with basis and dimension ).
Proof
Write ; the maximum exists because it is a maximum of the nonempty finite set of column sums of [L1].
Expanding the matrix-vector product entrywise and using the triangle inequality and absolute multiplicativity of [L1] gives .
Write , a maximum of a nonempty finite set of row sums by [L1].
Exchanging the finite double sum in step 1.2 and bounding every column sum by from step 1.1 gives .
Choose attaining the maximum column sum, so , which exists by step 1.1.
For every , , using the triangle inequality, and the definition of .
Choose attaining the maximum row sum: , which exists by step 1.3.
By [L2] the induced norm is the supremum of the ratio over nonzero , so step 2.1 gives .
For the standard basis vector of [L3], and , so the ratio is attained and .
Taking the maximum over in step 2.3 gives , and by [L2] the induced -norm is at most .
Define by when and when ; then and , by [L1] and [L3].
Steps 3.1 and 3.2 give , which is claim 1.
The vector of step 3.4 attains the ratio , so ; with step 3.3 this gives , which is claim 2.
Claims 1 and 2 are steps 4.1 and 4.2.
The Frobenius norm on real or complex matrices
Definition
Let be or , let and let . The Frobenius norm of is
where is the absolute value on (Absolute value in an ordered field) for and the modulus on (Real and imaginary parts, complex conjugation, and modulus) for , and the outer power is the nonnegative real square root.
The displayed quantity is a norm. Regard as the element of the coordinate space whose -th entry is . The standard coordinate inner product of The standard formulas on and on are inner products satisfies , which equals because (Conjugation is an involutive real-field automorphism, , and modulus is definite, multiplicative, and subadditive). Thus is exactly the inner-product norm of The norm induced by a real or complex inner product evaluated at , and the three norm axioms hold for because they hold for every inner-product norm. For real matrices the same sum is , since for real by the two cases of Absolute value in an ordered field.
The Frobenius norm is the Euclidean norm of the full entry list, not the largest factor by which the matrix stretches a single vector. It can coincide with an induced -norm in one-row or one-column cases, but in general it is a different matrix norm from the induced operator norms used on this page. Its relation to the spectral norm, its unitary invariance and its singular-value formula are Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison.
Remarks
-
The name records the entry-sum definition. Different sources write , , or ; this library uses exclusively and does not fold it into the induced -norm notation.
-
Zero-sized shapes are included. At or the double sum is the empty sum , so the unique empty matrix has Frobenius norm ; this is the value of the inner-product norm of the zero space.
Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison
Statement
Let be or , let , and let be the positive singular values of , where ; write when .
- Spectral formula. , where is the operator norm of The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||.
- Frobenius formula. .
- Unitary invariance. For every unitary and (over : orthogonal matrices),
- Sharp rank comparison. The lower inequality is an equality exactly when ; the upper inequality is an equality exactly when , that is, when all nonzero singular values coincide. In particular .
Facts & Assumptions
Given: A matrix over or , with singular values .
There is a singular value decomposition with unitary (orthogonal over ) and the diagonal matrix of the singular values (Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition).
The operator norm of a map between finite-dimensional real or complex inner product spaces equals its largest singular value (The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector).
The rank of a linear map is the number of its positive singular values (The rank of a linear map is the number of its nonzero singular values).
A unitary (orthogonal) operator preserves norms: for every vector (Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces).
Compositions and adjoints of unitary operators are unitary (Orthogonal and unitary operators form groups, and their determinants have modulus one).
Proof
Claim 1 is [L2] applied to the map : .
Left invariance of the Frobenius norm. For unitary , each column of is the image under of the corresponding column of , so by [L4] for every ; summing over gives , using the entry formula of The Frobenius norm on real or complex matrices.
Right invariance of the Frobenius norm. For unitary , the -th row of is , and by [L4] applied to , for every ; summing over gives .
Singular values of . If is the decomposition of [L1], then , and by [L5] the factors and are unitary, so this is a singular value decomposition of with the same singular values as .
From [L1], , so steps 1.2 and 1.3 give , and the diagonal entries of are followed by zeros, so by the entry formula of The Frobenius norm on real or complex matrices. This is claim 2.
Claim 3 follows: by step 1.4 the singular values of are those of , so claim 1 gives and claim 2 gives .
The lower inequality. The maximum is at most the Euclidean total , each term being nonnegative, so claims 1 and 2 give . Equality holds exactly when , that is exactly when by [L3].
The upper inequality. Each , so , and claims 1 and 2 give . Equality holds exactly when , a sum of nonnegative terms, hence exactly when every .
Since by [L3], the upper bound also gives .
Claims 1, 2, 3 and 4 are steps 1.1, 2.1, 3.1 and steps 3.2, 3.3 and 4.1.
The condition number kappa_p(A) = ||A||_p ||A^{-1}||_p of a nonsingular linear system
Definition
Let with , let either with or , and let be an invertible real matrix (Invertible matrices and the general linear group ), so that the linear system has the unique solution for every right-hand side . The condition number of the linear system (equivalently, of the matrix ) with respect to the induced -norm of The matrix norm induced by a published vector p-norm, using its separately defined infinity case when , is
The value is at least one and is never infinite. The inverse is the unique two-sided inverse of (Invertible matrices and the general linear group ), so and . For rational finite , submultiplicativity and normalisation are Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1. For , the same properties follow directly from the defining supremum: and applying this estimate twice gives submultiplicativity, while gives . Hence in either case
Equivalently, is the product of the largest factor by which stretches a nonzero vector and the largest factor by which stretches one. Applying the same estimate to in place of gives .
Remarks
-
The matrix must be square and invertible. For a rectangular or singular matrix there is no in the sense of Invertible matrices and the general linear group and the displayed product is not defined; the rectangular least-squares case uses the singular-value ratio instead, as in For full-column-rank A, the normal equations square the spectral condition number.
-
The subscript names the norm. , and are different numbers attached to the same matrix; the dependence on the norm is genuine: for one has and , while the diagonal rescaling changes from to .
-
A system is well or ill conditioned, an algorithm is stable or unstable. The condition number is a property of the problem and its norms; it is computed without any algorithm. The separate notion of stability is Forward and backward stability for a problem family under an arithmetic model.
Right-hand-side perturbations in Ax = b are amplified by the condition number
Statement
Let , let with , let , let with , let , and let satisfy . Then
In words: the relative perturbation of the solution is at most the condition number of The condition number kappa_p(A) = ||A||_p ||A^{-1}||_p of a nonsingular linear system times the relative perturbation of the right-hand side.
Facts & Assumptions
Given: An invertible matrix with , vectors with , and .
Compatibility of the induced norm: for every (Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1).
Proof
Subtracting the two equations gives , and multiplying on the left by with [L1] gives .
Since , [L2] gives , and forces and , so .
By [L2] applied to at the vector , step 1.1 gives .
Multiplying the bound of step 2.1 by the bound of step 1.2 gives , and [L3] identifies the coefficient product as , which is the stated bound.
Step 3.1 proves the stated bound.
Remarks
- The bound is sharp at . The constant is optimal, but the two equalities in the proof are attained on different singular directions: choose along a right singular vector for the largest singular value of , so has norm , and choose along a left singular vector for the smallest singular value, so . Then the bound is attained with coefficient .
Matrix perturbations in Ax = b obey a first-order condition-number bound
Statement
Let , let with , let , let with , let , let , and suppose satisfies . Put
If then
To first order in the matrix perturbation,
because as : the denominator contributes only a second-order correction when the relative matrix perturbation is small.
Facts & Assumptions
Given: An invertible matrix with , vectors , , and with for a matrix ; write .
Proof
Expanding the perturbed equation and subtracting gives , so .
Multiplying step 1.1 on the left by and using [L1] gives .
Taking norms in step 2.1 and applying [L2] twice gives .
The triangle inequality of the vector -norm gives , so step 3.1 yields .
Under the hypothesis the factor is positive, and rearranging step 4.1 gives , hence , the claimed exact bound; because and is invertible.
The first-order form. Writing by [L3], one has , so the exact bound of step 5.1 reads with the error term tending to zero quadratically in ; to first order the amplification is times the relative matrix perturbation.
Step 5.1 proves the exact bound and step 6.1 the first-order reading of it.
The reciprocal spectral condition number is the relative distance to singularity
Statement
Let , let , let be its singular values, and let be the spectral (operator) norm. Then:
- Smallest singular value as a minimum. .
- Distance to singularity. and the minimum is attained.
- Relative distance. where is the condition number of The condition number kappa_p(A) = ||A||_p ||A^{-1}||_p of a nonsingular linear system. Equivalently, .
In words: the nearest singular matrix to lies at spectral distance , and that distance relative to the scale is exactly .
Facts & Assumptions
Given: An invertible real matrix with , its singular values , and a matrix .
There is a singular value decomposition with orthogonal and diagonal of the singular values (Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition).
The operator norm equals the largest singular value, attained at a right-singular vector (The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector).
The rank of a matrix is the number of its positive singular values (The rank of a linear map is the number of its nonzero singular values).
A square matrix is invertible exactly when it has rank (Invertible matrix theorem: invertibility, full pivot rank, RREF , trivial nullspace and unique solvability are equivalent).
Unitary invariance and the singular-value formulas of Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison: for orthogonal the matrices and have the same singular values, and .
Proof
Write as in [L1]. For every unit vector , expanding in the right-singular basis gives , the last equality because is orthogonal.
Attainment. Let and be the last columns of and from [L1], and put . Then has a zero on its last diagonal position, so its smallest singular value is ; by [L3] its rank is at most , and by [L4] it is singular.
At the last right-singular vector, , so the lower bound of step 1.1 is attained and , which is claim 1.
Lower bound on the distance. If makes singular then has rank at most , and by [L3] its smallest singular value is . Every unit vector satisfies , using claim 1 and the operator-norm bound of [L2].
If then step 3.1 gives for every unit , so the minimum of claim 1 applied to is positive and every singular value of is positive; by [L3] its rank is , and by [L4] it is invertible. Hence no with makes singular: the distance is at least .
The rank-one matrix has the singular values , so [L2] gives ; combined with step 4.1, the minimum distance is exactly and is attained, which is claim 2.
By [L5], ; and by [L1], a matrix with singular values , so [L2] gives . Hence by The condition number kappa_p(A) = ||A||_p ||A^{-1}||_p of a nonsingular linear system, and claim 3 follows with claim 2.
Claims 1, 2 and 3 are steps 2.1, 5.1 and 6.1.
Residual bounds on forward error for a nonsingular linear system
Statement
Let , let with , let , let with , let , and let be an approximate solution with residual and error . Then and , and the following bounds hold:
- Absolute bounds.
- Relative bounds. where is the condition number of The condition number kappa_p(A) = ||A||_p ||A^{-1}||_p of a nonsingular linear system.
In words: a small residual bounds the forward error below by , but bounds it above only up to the condition number .
Facts & Assumptions
Given: An invertible matrix with , , , , and .
(Invertible matrices and the general linear group ), and matrix multiplication distributes over addition, so (Matrix multiplication is associative, unital, distributive, and compatible with scalar multiplication).
Proof
Since , the residual is , using distributivity of [L1].
Multiplying on the left by and using [L1] gives .
The lower absolute bound. Applying [L2] to at the vector in step 1.1 gives .
The upper absolute bound. Applying [L2] to at the vector in step 2.1 gives .
The lower relative bound. From and [L2], , so ; combining with step 2.2 gives by [L3], which rearranges to the lower bound on .
The upper relative bound. From and [L2], , and forces , so ; multiplying by step 3.1 gives by [L3].
Claim 1 is steps 3.1 and 2.2, and claim 2 is steps 4.1 and 3.2.
Normwise and componentwise backward error for an approximate linear-system solution
Definition
Let , let with , let , let , and let be an approximate solution of the system with residual .
Normwise backward error. The normwise backward error of is
where on matrices is the induced norm of The matrix norm induced by a published vector p-norm and on vectors the -norm.
Componentwise backward error. The componentwise backward error of is
with the absolute value (Absolute value in an ordered field).
Both infima are over nonempty sets, so they are well defined. The single choice and always satisfies the defining relation, because . It is admissible with for both notions: normwise, and ; componentwise, and . Hence each defining set is a nonempty subset of and therefore has an infimum.
In words: is the smallest factor by which the data must be perturbed, measured in the -norm with the weights and , for the computed answer to be exactly right; measures the same perturbation entrywise. The explicit residual formulas for both are Residual formulas for normwise and componentwise backward error.
Remarks
-
Backward error is about the data, not the answer. An approximate solution with small backward error is the exact solution of a nearby problem; the size of the forward error is governed separately by the condition number through Local conditioning times backward error controls forward error to first order.
-
The two notions are not interchangeable. Componentwise admissibility controls every entry and preserves the zero pattern of the data, whereas normwise admissibility controls only the declared aggregate norms. Neither definition gives the same numerical tolerance as the other without dimension- and data-dependent comparison factors. Sparse matrices make the distinction especially visible: preserves their zero pattern but does not.
Residual formulas for normwise and componentwise backward error
Statement
Let , let , let , let , and put .
- Normwise formula (spectral norm). with the convention .
- Componentwise formula. With , where a term with and denominator is interpreted as . Every such degenerate term has , so the maximum is a finite real number.
Here and are the backward errors of Normwise and componentwise backward error for an approximate linear-system solution, and is the spectral (operator) norm, which on vectors is the Euclidean norm of Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page.
Facts & Assumptions
Given: An invertible matrix with , vectors , the residual , and the backward errors , .
An admissible perturbation satisfies and the stated norm or entrywise bounds (Normwise and componentwise backward error for an approximate linear-system solution).
Compatibility of the induced spectral norm: (Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1), and the vector -norm is the Euclidean norm with the triangle inequality (Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page).
Cauchy–Schwarz: , with equality for a positive multiple of (Cauchy-Schwarz with its equality case, the triangle inequality for , the parallelogram law and polarisation).
Absolute value: and (Absolute value in an ordered field).
Proof
Lower bound for the normwise error. For any admissible pair of [L1], , using [L1], [L2] and the triangle inequality of [L2].
Attainment for the normwise error. Put and suppose first . If , define and ; then and, by [L3] applied row-wise, , so and with .
If then and ; the perturbations and satisfy with , so the same is attained.
If then and , so ; the convention and the zero perturbations of [L1] give , matching the formula.
Lower bound for the componentwise error. For any admissible pair of [L1], by [L5] and the entrywise bounds of [L1].
A term with denominator has and for every , so ; thus every degenerate term carries numerator , and the maximum is finite as claimed.
Attainment for the componentwise error. Put and with the convention of the statement. For each with define and, for each , when and when ; for set all these entries to .
Hence every admissible is at least , so the infimum satisfies when the denominator is positive.
For every with , step 1.5 gives , so every admissible is at least the maximum over such ; hence with the stated convention.
For one has and , so ; and together with , since . For every displayed entry vanishes and step 1.6 gives .
Combining steps 2.1, 1.2, 1.3 and 1.4, the infimum is attained and equals under the stated convention, which is claim 1.
The perturbations of step 1.7 are admissible with by step 2.3, so ; with step 2.2 the formula of claim 2 holds.
Claim 1 is step 3.1 and claim 2 is step 3.2.
The standard relative floating-point model and unit roundoff
Definition
A floating-point system. A floating-point system consists of a nonempty finite set of representable numbers with and , a positive real (the largest normal magnitude), a positive real (the smallest normal magnitude), with , and a rounding map defined on and on the real numbers with , taking values in and satisfying .
Unit roundoff. A real is a unit roundoff for the system when every real with satisfies
with the absolute value (Absolute value in an ordered field). The model quantifies all subsequent error analysis through the single constant and says nothing about the internal bit representation beyond the bound .
The standard relative model. For each operation and all such that is zero or is a real number in the normal range (; for this includes ), the computed result is
When , this identity is the exact-zero rule and one may take .
The exclusions are part of the model, and are stated explicitly.
- Overflow is excluded: when the result is not a real number of the form with .
- Underflow is excluded: when the result falls into the subnormal or lost range and need not satisfy the relative bound.
- Invalid operations are excluded: when is not a real number (for example ), there is no real for the displayed identity.
Every item on this page that uses the model therefore carries the hypotheses that the relevant operations lie in the normal range, and statements about overflow, underflow or invalid operations are made only where the exclusion is mentioned.
Remarks
-
The running example. In the IEEE-754 binary64 system the unit roundoff is , the largest normal magnitude is , and the smallest normal magnitude is . The counterexample page uses these three numbers to exhibit the excluded events.
-
The exclusions are needed, not decorative. Each excluded event genuinely produces a value that is not of the form with : overflow at gives , underflow at rounds to , and gives .
-
The model is an assumption, not a theorem about hardware. Statements proved under this model are conditional on the displayed inequalities; they say "if every operation rounds this accurately, then the following error bound holds". That is exactly what makes the bounds of The computed floating-point dot product obeys componentwise and normwise error bounds transportable to any hardware conforming to the model.
Forward and backward stability for a problem family under an arithmetic model
Definition
Fix normed spaces and over (A norm on a real vector space, the induced metric, and the dictionary with the metric axioms), a map , a class of inputs, an arithmetic model with unit roundoff (The standard relative floating-point model and unit roundoff), and an algorithm that, for each input , returns an approximate value of Absolute and relative forward error for an approximate value of a problem map.
Backward stability. The algorithm is backward stable on when there is a constant such that for every there is an input with
The computed answer is exactly right for a slightly perturbed input, and the perturbation is at most a fixed multiple of the unit roundoff.
Forward stability. The algorithm is forward stable on when there is a constant such that for every with ,
The standard linear-system specialization. Fix and a rational . For the problem "given and , return with ", one usually measures the two data components separately rather than forcing the pair into the single fixed input norm above. An algorithm is called normwise backward stable on a declared class of systems when one constant makes every returned satisfy in the sense of Normwise and componentwise backward error for an approximate linear-system solution; the componentwise specialization requires . Thus there are perturbations with and separately measured relative sizes at most . These are specialized product-wise definitions, not literal instances of one undeclared norm on the data pairs. Stability remains a property of the algorithm on the problem class, while the condition number is a property of the problem itself.
Remarks
-
Backward stability does not by itself bound the forward error. It bounds the data perturbation; converting that into an answer bound costs one factor of the condition number, by Local conditioning times backward error controls forward error to first order. A backward-stable algorithm on an ill-conditioned problem can still return a large forward error: for , , and , the backward error is while the relative forward error is .
-
The constant is part of the honest statement. The definition records "at most times the unit roundoff" for some fixed , not "exactly the unit roundoff"; polynomial growth in the dimension is folded into , and a stability claim without its class and its constant is not a stability claim.
If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n
Statement
Let with , let , let satisfy for every , and suppose . Then
Facts & Assumptions
Given: A natural number , a real with , and reals with ; write .
The hypothesis gives , hence and ; the unit roundoff vocabulary comes from The standard relative floating-point model and unit roundoff.
Binomial expansion over the reals: (The binomial theorem in : ), and the binomial coefficient satisfies for every .
Geometric series: for a real with , (For , , and for the series diverges).
Proof
Since , each factor satisfies , and the factors are nonnegative by [L1]; multiplying the inequalities across gives .
Upper deviation. By [L2], , since and .
The geometric series of [L3] at , where , gives , so step 1.2 gives .
Lower deviation. By [L2], , the last estimate being step 1.2 and step 2.1; hence .
Define . Step 1.1 gives , and steps 2.1 and 3.1 give and , so , that is .
Step 4.1 is exactly the claim.
The computed floating-point dot product obeys componentwise and normwise error bounds
Statement
Let and let , with the dot product computed from left to right in an arithmetic model with unit roundoff satisfying (The standard relative floating-point model and unit roundoff), where every product , every rounded product , and every intermediate sum lies in the normal range. Let and, for , let . Then:
- Componentwise form. There are reals with such that
- Normwise form. where is the published -norm (The -norms for rational , and , Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page) and the absolute value (Absolute value in an ordered field).
Facts & Assumptions
Given: A natural number , vectors , a unit roundoff with , the rounded products for , and the left-to-right computed sum above.
Each product and each sum obeys the relative model: with for every real in the normal range (The standard relative floating-point model and unit roundoff).
A product of factors with and for every equals with , where (If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n).
Proof
By [L1], for each there is with and ; and for each with there is with and .
Unrolling the recursion of step 1.1 gives where every empty product is ; each coefficient is the product of the error factor from the rounded multiplication and the error factors from the later additions through which that term passes.
The coefficient of in step 2.1 is a product of exactly factors of the form with , and for each with the coefficient of is a product of such factors. By [L2], each coefficient therefore equals with , so step 2.1 becomes , which is claim 1.
Subtracting from claim 1 gives , so by the triangle inequality and [L3] .
Since by [L3], step 4.1 gives the normwise form of claim 2.
Claim 1 is step 3.1 and claim 2 is steps 4.1 and 5.1.
Local conditioning times backward error controls forward error to first order
Statement
Let be a map between normed spaces, let , and let be the absolute local condition number of Absolute and relative local condition numbers of a problem map.
- Quantified form. If , then for every there is a such that every with and satisfies
- First-order form. If , then along admissible , that is: for every there is such that implies .
- Relative form. If additionally and , and , then along admissible ,
In the vocabulary of Forward and backward stability for a problem family under an arithmetic model: a computed value has backward error , and its forward error is, to first order in that backward error, at most the condition number times the backward error; the linear-system instance uses the backward error of Normwise and componentwise backward error for an approximate linear-system solution.
Facts & Assumptions
Given: Normed spaces , a map , a point , and where .
The absolute condition number is the infimum over of the nondecreasing map (Absolute and relative local condition numbers of a problem map).
An infimum characterisation: if is the infimum of a set , then for every there is an element with ; in particular for every there is with .
Proof
By [L2] applied to the set whose infimum is by [L1], every admits some with .
By the definition of as a supremum, every admissible with satisfies , hence , which is claim 1 with .
For every the number is strictly larger than , so claim 1 supplies with for all admissible of norm below ; this is exactly the stated bound, which is claim 2.
For the relative form, divide the inequality of claim 2 by the fixed positive number and multiply by the fixed positive number : , and the error term is because the positive constants are fixed, which is claim 3.
Claims 1, 2 and 3 are steps 2.1, 3.1 and 4.1.
For full-column-rank A, the normal equations square the spectral condition number
Statement
Let with and , and let have full column rank (rank ), with singular values . Define the spectral condition number of the rectangular matrix by
for a square invertible this agrees with of The condition number kappa_p(A) = ||A||_p ||A^{-1}||_p of a nonsingular linear system. Then:
- The normal-equation matrix is invertible, with ;
- equivalently,
The least-squares normal equation of For a linear map between finite-dimensional inner-product spaces, minimises if and only if , equivalently ; minimisers exist and any two differ by an element of therefore has condition number exactly the square of the condition number of the least-squares problem itself.
Facts & Assumptions
Given: A matrix of full column rank with , , and singular values .
There is a singular value decomposition with orthogonal , and diagonal with entries on the block (Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition).
The operator norm of a linear map is its largest singular value (The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector).
The rank of a linear map is the number of its positive singular values; in particular the full-column-rank hypothesis is exactly (The rank of a linear map is the number of its nonzero singular values).
An orthogonal operator satisfies (Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces).
Least-squares solutions are exactly the solutions of the normal equation (For a linear map between finite-dimensional inner-product spaces, minimises if and only if , equivalently ; minimisers exist and any two differ by an element of ).
Proof
From [L1], , and is diagonal with decreasing nonnegative entries; by [L4], is orthogonal with .
The displayed product is a singular value decomposition of with singular values , since the two orthogonal factors are and .
By [L3], full column rank means , so every singular value of in step 2.1 is positive, and has the inverse : the two products with give by [L4].
By [L2] applied to and to its inverse, and , the largest singular value of being ; hence .
By the definition of in the Statement, , which equals the value in step 4.1; this is claim 2, and claim 1 is its equivalence with the condition number of the square invertible matrix from The condition number kappa_p(A) = ||A||_p ||A^{-1}||_p of a nonsingular linear system, the displayed agreement for square being by [L2] applied to the SVD of [L1].
The normal equation of [L5] has coefficient matrix , so its condition number is the one computed in step 5.1.
Claims 1 and 2 are step 5.1, and the final sentence is step 6.1.
Remarks
- The square is unavoidable for the normal-equation route. Forming squares the condition number even though the least-squares problem itself has condition number ; computing with directly through a QR route keeps the factor instead. For , the Gram-Schmidt factor is while .
Exact rank is locally constant at full-rank matrices and discontinuous at nonmaximal-rank matrices
Statement
Let with and , let , let , and let be the spectral norm.
- Locally constant at full rank. If and is the smallest singular value of (which is positive), then every with satisfies .
- Discontinuous at nonmaximal rank. If , then for every there is with and .
Facts & Assumptions
Given: Natural numbers , a matrix with rank and singular values , and .
There is a singular value decomposition with orthogonal and diagonal ; likewise every matrix admits one (Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition).
The rank of a matrix is the number of its positive singular values (The rank of a linear map is the number of its nonzero singular values).
The spectral norm of a matrix equals its largest singular value, and for every vector (Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison).
Proof
If , then by [L2] there are exactly positive singular values, so the smallest one, , is positive.
Full-column-rank lower bound. Suppose and has singular values . Writing a unit vector in the right-singular basis of the decomposition from [L1] gives , attained at the last right-singular vector. Hence .
Suppose ; then both and , so the decomposition of [L1] has a left singular vector and a right singular vector beyond the positive singular values.
For put . Then is a singular value decomposition of with positive singular values , so by [L2] .
Assume first that and . Applying step 1.2 to gives for every unit vector , and [L3] gives for ; so . If , then for every unit vector , so step 1.2 applied to gives its smallest singular value . Therefore [L2] gives .
Fix and set . Step 1.4 gives . By [L3], the spectral norm of is times the largest singular value of the rank-one matrix , whose only positive singular value is ; hence . This proves the discontinuity claim.
Assume next that and . Then has full column rank and the same positive singular values as by [L1], so its smallest singular value is again . The same transpose relation holds for , and [L3] gives . Applying step 2.1 to and yields , hence .
Steps 2.1 and 3.1 prove the local-constancy claim.
Claim 1 is step 4.1 and claim 2 is step 2.2.
Numerical rank relative to a declared norm, scale, and tolerance
Definition
Let , let be or , let be a declared norm on the matrix space , let , and let be a declared tolerance. The numerical rank of at tolerance is
The minimum exists: it is a minimum of a nonempty subset of the finite set , the value being attained at .
Scale. The tolerance may be declared absolutely, as a real number , or relative to a scale, as for a declared factor . Both enter the definition through the single threshold ; the scale only fixes which threshold is meant, and every statement about is a statement about that one threshold.
Why the exact-rank discontinuity forces the parameter. Exact rank is locally constant at the full-rank matrices but discontinuous at every nonmaximal-rank matrix (Exact rank is locally constant at full-rank matrices and discontinuous at nonmaximal-rank matrices); an exact rank read from noisy data is therefore unstable. Numerical rank replaces exact rank by the smallest exact rank attainable within the declared norm tolerance : it is, by construction, constant on every open ball of radius below the relevant gaps, and it counts as rank exactly those directions that perturbation of size at most cannot erase.
Remarks
-
The choice of norm is part of the data. Different norms give different distances to the low-rank sets, hence possibly different numerical ranks for the same matrix and tolerance. The spectral specialisation is In the spectral norm, numerical rank counts the singular values above the declared threshold; the dependence on the declared tolerance itself is genuine: for , the tolerances and give the numerical ranks and respectively.
-
Numerical rank is not a substitute for exact rank. It answers a different question: which rank is stable under perturbations of size at most , not what the exact rank is. In the spectral norm, if , the two ranks agree exactly when is strictly smaller than the smallest nonzero singular value of ; for they agree for every . Once reaches a positive singular value, the numerical rank can drop.
In the spectral norm, numerical rank counts the singular values above the declared threshold
Statement
Let with and , let with singular values , let , and let be the spectral norm. Then
where is the numerical rank of Numerical rank relative to a declared norm, scale, and tolerance. Consequently, if two tolerances have a singular value with , then : moving the threshold past a singular value changes the numerical rank.
Facts & Assumptions
Given: Natural numbers , a matrix with singular values , and a tolerance .
Numerical rank: (Numerical rank relative to a declared norm, scale, and tolerance).
Eckart–Young: for , the least spectral-norm distance from to the matrices of rank at most is , with the convention when exceeds the number of positive singular values (The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition).
The rank of a matrix is the number of its positive singular values (The rank of a linear map is the number of its nonzero singular values).
Proof
For the matrix itself has rank at most by [L3], so the distance to rank at most is ; with the convention of [L2] this agrees with . For , [L2] gives the distance . Hence for every , .
Let . If then while ; if then all singular values exceed and . In both cases , because every has .
By step 1.1, there exists a matrix with and exactly when . Therefore [L1] gives .
Steps 2.1 and 1.2 give , which is the displayed formula.
If then is counted at tolerance but not at tolerance , and no larger index is counted at ; hence , the stated consequence.
Step 3.1 proves the formula and step 4.1 the consequence.
5 · Examples, counterexamples and false statements
None yet.
Sources
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 12
- James Demmel, Math 221 Lecture 3: Vector Norms, Matrix Norms, and Condition Numbers
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 3
- David Bindel, CS 6210: Matrix Nearness Problems
- James Demmel, Math 221 Lecture 2: Floating Point Arithmetic
- David Bindel, CS 6210: Floating Point and Error Analysis
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 15
- David Bindel, CS 6210: Sums, Dots, and Error in Linear Systems
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Theorem 15.1
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 18 and Lecture 31