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: Examples and Counterexamples
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
- Matrix Norms, Condition Numbers and Numerical Stability
- 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
These examples run the A-page machinery on concrete linear systems: a well-conditioned diagonal system against a nearly singular one of the same shape, the already large condition numbers of the order-two and order-three Hilbert matrices, and the same interpolation task with Vandermonde condition number before and after centering and scaling the nodes. The floating-point witnesses compute a short dot product under the bound, compare the cancellation-prone formula with its stable reformulation , and compare the squared normal-equation conditioning with the unsquared Gram–Schmidt factor.
The counterexamples isolate exactly where the A-page theorems have hypotheses: a tiny residual does not by itself force a small forward error, a backward-stable answer to an ill-conditioned system can still have order-one forward error, the condition number changes with the chosen norm and with diagonal rescaling, numerical rank changes with the declared tolerance, and the relative floating-point model genuinely excludes overflow, underflow and invalid operations.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Two 2x2 systems can have dramatically different condition numbers
Example
The diagonal system is well conditioned, while the nearly singular system
is already severely ill conditioned, even though both matrices have the same shape and entries of the same order.
Facts & Assumptions
Given: The matrices and with .
The induced -norm is the maximum column sum and the induced -norm the maximum row sum (The induced 1-norm is the maximum column sum and the induced infinity-norm is the maximum row sum).
For a nonsingular matrix , .
Verification
For , the column sums and row sums are , so [L2] gives ; its inverse is , with column and row sums , so .
For , the column sums are and the row sums , so [L2] gives .
By [L3], , whose column sums and row sums are both , the first being larger; so [L2] gives .
By [L1] and step 1.1, : for every right-hand side a relative perturbation of changes the solution by at most four times as much.
By [L1], , and at this is .
The two systems of the same shape therefore have condition numbers and : the nearly singular one amplifies relative data perturbations about a hundred times more, and the contrast comes from the small determinant , not from large entries.
Low-order Hilbert matrices already have large condition numbers
Example
The Hilbert matrices with entries for are already severely ill conditioned at order two and three:
The point is not asymptotic growth but that the ill conditioning appears at the smallest possible orders.
Facts & Assumptions
Given: The Hilbert matrices and .
The induced -norm is the maximum row sum (The induced 1-norm is the maximum column sum and the induced infinity-norm is the maximum row sum).
Verification
The inverse of is : multiplying, , , and .
By [L2], and , so [L1] gives .
The inverse of is as a direct multiplication verifies: the first column against the rows of gives , , , and the other six entries similarly reduce to the identity matrix.
By [L2], , and the row sums of are , and , so ; [L1] gives .
Steps 1.2 and 1.4 exhibit condition numbers and at orders and : the Hilbert family is badly conditioned from the start.
Vandermonde conditioning improves after centering and scaling the nodes
Example
Interpolating a linear polynomial through two points whose nodes are and is the Vandermonde system with , which has . Centering and scaling the nodes to and through the affine change of variable gives the equivalent system for the same interpolation task with . Conditioning is a property of the chosen coordinates, not of the underlying interpolation problem.
Facts & Assumptions
Given: The nodes , and their images , under , and the Vandermonde matrices , .
The induced -norm is the maximum row sum (The induced 1-norm is the maximum column sum and the induced infinity-norm is the maximum row sum).
For a nonsingular matrix , .
Verification
For the node pair , the determinant is , and [L3] gives .
By [L2], and , so [L1] gives .
For the centered and scaled pair , the determinant is , and [L3] gives .
By [L2], and , so [L1] gives .
The change of variable maps to and to , and interpolating the same data in the coordinate is the system while interpolating it in the coordinate is with and ; the two systems represent the same polynomial task, yet their condition numbers are and .
Steps 1.2 and 1.4, read through step 2.1, show that centering and scaling the nodes improves the conditioning of the same interpolation problem by four orders of magnitude.
A tiny residual does not force a small forward error
Statement refuted
If the residual of an approximate solution is tiny compared with , then the forward error is tiny compared with .
Facts & Assumptions
Given: A parameter with , the matrix , the right-hand side , the exact solution , the approximation , the residual , and the error .
For and the residual and the error satisfy and (Residual bounds on forward error for a nonsingular linear system).
Counterexample
The residual is , so , while ; the relative residual is , which tends to as .
The error is , so and the relative forward error is , independent of .
Steps 1.1 and 1.2 contradict the claimed implication: the relative residual can be made arbitrarily small while the relative forward error stays at .
The bounds of [L1] are consistent with the witness and explain it: attains the first bound exactly, and the condition number of [L2] is what converts the tiny residual into order-one forward error.
Steps 2.1 and 2.2 refute the false statement: a tiny residual guarantees only a tiny forward error up to the condition number, not by itself.
A backward-stable computed solution of an ill-conditioned system can still have large forward error
Example
Fix an arithmetic model with unit roundoff and set . Take and , whose exact solution is . On the singleton input class consisting of this system, let an algorithm return . Its normwise backward error is at most , so this algorithm is backward stable on the declared class, yet its relative forward error is : ill conditioning is not instability, and backward stability does not remove ill conditioning.
Facts & Assumptions
Given: An arithmetic model with unit roundoff , the parameter , the matrix , the vector , the exact solution , and an algorithm on the singleton input class that returns .
The normwise backward error is for (Residual formulas for normwise and componentwise backward error).
Along admissible perturbations tending to zero, relative forward error is at most times relative backward error (Local conditioning times backward error controls forward error to first order).
For the fixed linear map , one has by linearity.
Verification
The residual is and ; also , and .
The forward error is and the relative forward error , order one even as .
The conditioning conversion. For the problem map the absolute condition number is , attained in the second coordinate, and the computed answer is exact for the perturbed input with . By [A1], , and direct substitution gives .
By [L1], the normwise backward error is . Thus the one constant works for every input in the declared singleton class , so the algorithm is normwise backward stable there in the specialized sense of Forward and backward stability for a problem family under an arithmetic model.
Steps 2.1, 1.2 and 1.3 show that this backward-stable algorithm on an ill-conditioned problem class has order-one forward error even though its backward error is order ; [L2] records the general first-order conditioning principle illustrated exactly here. Backward stability controls the data perturbation, and only conditioning controls the answer.
A cancellation-prone formula can be replaced by a stable reformulation
Example
Evaluate at under the standard relative model with unit roundoff (The standard relative floating-point model and unit roundoff). The direct formula subtracts the nearby numbers and and loses about eight decimal digits; the algebraically equivalent form
subtracts nothing and evaluates to full accuracy. Cancellation is a property of the formula, and a stable reformulation removes it without changing the mathematical function.
Facts & Assumptions
Given: The parameter , the value , the unit roundoff with , and the two formulas and .
The relative model: each operation obeys with when lies in the normal range (The standard relative floating-point model and unit roundoff).
Relative forward error of a computed value for the exact answer is (Absolute and relative forward error for an approximate value of a problem map).
Verification
The two formulas agree exactly: , because and .
For , the exact value is : indeed , so , while , so ; hence .
The direct formula. By [L1] the computed values are and with ; subtracting the exact value leaves an error of absolute value .
The reformulated formula. By [L1], the computed values are for the denominator and for the quotient, with .
By [L2], the relative error of the direct formula is at most ; with and this is about , roughly : with the relative forward error can reach about , losing about eight of the roughly sixteen decimal digits of relative precision available in binary64.
By [L2], the relative error of the reformulated value is , which is of order , not of order : no subtraction of nearby quantities occurs, and the reformulation evaluates to full relative accuracy.
Steps 2.1 and 2.2 compare the same function evaluated two ways: the direct formula amplifies roundoff by the cancellation factor , while the rationalized formula keeps the error at order .
A short floating-point dot product obeys the gamma_n error bound
Example
Take , and the binary64 unit roundoff , for which . The left-to-right computed dot product satisfies
so the computed value is the exact dot product of slightly perturbed summands, and
Facts & Assumptions
Given: The vectors , , the exact dot product , the unit roundoff with , and the left-to-right computed sum of the two products and .
The computed dot product obeys the componentwise form with , and the normwise bound (The computed floating-point dot product obeys componentwise and normwise error bounds).
Verification
With and , [L1] applies and yields with , which for and reads .
The exact dot product is , and the absolute summand total is , while .
By the normwise bound of [L1] applied to the numbers of step 1.2, ; substituting gives , so , a bound of order .
Step 1.1 verifies the componentwise perturbation form and step 2.1 the normwise bound for this short vector pair: the computed dot product agrees with the exact dot product of slightly perturbed summands and lies within of .
Normal equations square the conditioning compared with QR on a badly scaled least-squares problem
Example
For the badly scaled least-squares matrix
has , while its normal-equation matrix has . A Gram–Schmidt (QR) route works with the upper triangular whose singular values equal those of , so it keeps the conditioning at instead of squaring it.
Facts & Assumptions
Given: The matrix with , and the least-squares problem of minimising .
For full-column-rank with singular values , the normal-equation matrix satisfies where (For full-column-rank A, the normal equations square the spectral condition number).
Gram–Schmidt orthonormalisation applied to the independent columns of produces orthonormal columns spanning the same column space (Gram–Schmidt turns every finite independent list into an orthonormal list with the same successive spans).
Verification
The columns of are orthogonal and have norms and . Writing with , , and the matrix shows that the singular values are the diagonal entries and of .
By [L2], Gram-Schmidt applied to the columns and returns the already orthogonal unit vectors and after scaling by their norms. Writing , one has with .
Hence , and is the diagonal matrix , whose singular values are and .
By step 1.2, , so its singular values are and and therefore .
By [L1], : forming the normal equations squares the conditioning of the least-squares problem.
Steps 3.1 and 2.2 compare the two routes on the same badly scaled problem: the normal-equation matrix carries condition number , the square of , while the Gram–Schmidt triangular factor carries , the original conditioning of the problem.
Condition number depends on the chosen norm and on diagonal rescaling
Statement refuted
The condition number of a linear system is a property of the bare linear relation alone: it does not change with the chosen norm, and diagonally rescaling the equations leaves it unchanged.
Facts & Assumptions
Given: The matrix , the diagonal matrix , and the equivalent systems and .
The induced -norm is the maximum column sum and the induced -norm the maximum row sum (The induced 1-norm is the maximum column sum and the induced infinity-norm is the maximum row sum).
Counterexample
The inverse of the upper triangular matrix is obtained by back substitution from .
By [L2], the column sums of are so , and the column sums of are so ; [L1] gives .
By [L2], the row sums of are so , and the row sums of are so ; [L1] gives .
The rescaled matrix is , with inverse .
By [L2], the column sums of are so , and the column sums of are so ; [L1] gives .
Steps 1.2 and 1.3 give : the same matrix has different condition numbers in different induced norms.
Since is invertible, the systems and have exactly the same solution set, yet step 1.5 shows : diagonal rescaling changes the condition number even though it changes nothing about the set of solutions.
Steps 2.1 and 2.2 refute both halves of the false statement: condition number depends on the declared norm and on the scaling of the equations.
The same matrix can have two different numerical ranks under two declared tolerances
Statement refuted
Numerical rank is a property of the matrix alone, an exact invariant that does not depend on the declared tolerance.
Facts & Assumptions
Given: The diagonal matrix with singular values , , , and the two tolerances and .
In the spectral norm, (In the spectral norm, numerical rank counts the singular values above the declared threshold).
Counterexample
At the tolerance , the only singular value strictly above the threshold is , so [L1] gives .
At the tolerance , the singular values strictly above the threshold are and , so [L1] gives .
The singular value lies strictly between the two tolerances, , which is exactly why it is counted at but not at .
Steps 1.1, 1.2 and 1.3 exhibit one matrix and two declared tolerances with numerical ranks and : numerical rank is a function of the matrix together with the tolerance, not of the matrix alone, which refutes the false statement.
The relative floating-point model excludes overflow, underflow, and invalid operations
Statement refuted
The standard relative model with describes every arithmetic operation of a floating-point system, including overflow, underflow, and invalid operations.
Facts & Assumptions
Given: The IEEE-754 binary64 system, whose unit roundoff is , largest normal magnitude , smallest normal magnitude , and smallest positive subnormal .
The standard relative model applies only to operations whose exact result is a real number in the normal range, and its exclusions are overflow, underflow, and invalid operations (The standard relative floating-point model and unit roundoff).
Counterexample
Overflow. The representable numbers and have product , which exceeds because ; the computed result is , which is not a real number of the form for any real .
Underflow. For the smallest positive subnormal , the exact quotient lies strictly between and the smallest positive subnormal, and round-to-nearest returns ; but is positive for every real with , since , so the computed value is not of the required form.
Invalid operation. The exact value of is not a real number, so no real can satisfy ; the computed result is , which is not a real number at all.
Each of the three exhibits produces a value outside the model of [L1]: infinity, the lost subnormal result, and not-a-number respectively.
Step 2.1 refutes the false statement: the exclusions in [L1] are not decorative, and any statement proved under the relative model must carry the hypothesis that its operations stay in the normal range.
Sources
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 12
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 18
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 15
- David Bindel, CS 6210: Floating Point and Error Analysis
- James Demmel, Math 221 Lecture 2: Floating Point Arithmetic
- David Bindel, CS 6210: Sums, Dots, and Error in Linear Systems
- L. N. Trefethen and D. Bau III, Numerical Linear Algebra, Lecture 18 and Lecture 19
- David Bindel, CS 6210: Matrix Nearness Problems