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.
Direct Matrix Factorisations: LU, Cholesky and QR
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
- 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
This page collects the standard direct factorizations used to solve dense linear systems and least-squares problems. It starts with triangular substitution, then separates the exact hypotheses for unpivoted LU, block LU, and PLU with partial pivoting. The distinctions matter: unpivoted LU depends on leading principal minors, PLU exists for every square matrix, and the pivot-growth bound belongs to the floating-point stability theorem rather than to exact existence.
The Cholesky section keeps the positive-definite and positive-diagonal conventions visible. It proves existence and uniqueness exactly on Hermitian positive-definite matrices, identifies the real symmetric leading-principal-minor criterion, and records the cheaper factorization cost relative to LU.
The QR section assumes the published abstract square QR existence theorem and owns the computational constructions instead: Householder reflectors, Givens transformations, full and reduced QR, the exact structural statement for column-pivoted QR, the backward-stability statement for Householder QR, and the reduced-QR least-squares solve that avoids the condition-number square of the normal equations.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Forward and backward substitution for triangular linear systems
Definition
Let be a field, let , and let .
If is lower triangular with every diagonal entry , the forward substitution solve of is the recursive construction
If is upper triangular with every diagonal entry , the backward substitution solve of is the recursive construction
The triangular vocabulary is from Upper triangular, lower triangular and diagonal square matrices over a commutative ring. The matrix product convention from Rectangular matrix multiplication and the identity matrix , including zero-sized shapes is the one used when later items rewrite these recursions as matrix equations.
Forward and backward substitution are correct, unique, and quadratic in scalar operations
Statement
Let be a field, let , and let .
- If is lower triangular with nonzero diagonal, the forward substitution recursion of Forward and backward substitution for triangular linear systems produces the unique solution of .
- If is upper triangular with nonzero diagonal, the backward substitution recursion produces the unique solution of .
Each solve uses exactly divisions, multiplications, and additions or subtractions, hence scalar operations.
Facts & Assumptions
Given: A field , a natural number , a vector , and a triangular matrix with nonzero diagonal; when it is lower triangular, and when it is upper triangular.
Forward substitution defines from the earlier coordinates by and backward substitution defines from the later coordinates by (Forward and backward substitution for triangular linear systems).
Proof
Proof technique: induction on the row index, then reverse induction for the upper-triangular case.
Forward substitution. For , [L1] gives , so the first row equation is satisfied. Assume the first rows are satisfied. Then the -st row of a lower-triangular system is , and solving for gives exactly the recursion in [L1]. Because , this value is forced and is unique. Induction proves that the forward recursion solves and that no other vector can differ in any coordinate.
Backward substitution is the same argument from the last row upward: the last row determines , and once are fixed, the -th row forces . Hence the backward recursion solves and the solution is unique.
In either triangular case, the -th step forms one sum with products and additions in the lower-triangular solve, or with products and additions in the upper-triangular solve, followed by one division. Summing over all rows gives divisions and multiplications and the same number of additions.
Step 1.1 proves claim 1, step 1.2 proves claim 2, and step 2.1 gives the operation counts.
A normalised LU factorisation has a unit lower-triangular L and an upper-triangular U
Definition
Let be a field, let , and let .
A normalised LU factorisation of is a factorisation
where is lower triangular with diagonal entries all equal to , and is upper triangular. Thus is unit lower triangular.
When every diagonal entry of is nonzero, the factorisation has nonzero pivots. Later existence and uniqueness results state explicitly when that extra hypothesis is required.
An LDU factorisation has unit lower-triangular L, diagonal D, and unit upper-triangular U
Definition
Let be a field, let , and let .
An LDU factorisation of is a factorisation
where is unit lower triangular, is diagonal, and is unit upper triangular. Every LDU factorisation therefore gives a normalised LU factorisation with upper triangular. In the converse direction, if is a normalised LU factorisation whose diagonal pivots are all nonzero, then give an LDU factorisation. This converse need not hold when a diagonal pivot vanishes.
When every diagonal entry of is nonzero, the factorisation has nonzero diagonal pivots.
Normalised LU and LDU factorisations with nonzero pivots are unique
Statement
Let be a field, let , and let .
- Suppose where are unit lower triangular and are upper triangular with nonzero diagonal. Then and .
- Suppose where are unit lower triangular, are diagonal with nonzero diagonal entries, and are unit upper triangular. Then , , and .
Facts & Assumptions
Given: A field , a natural number , a matrix , and two factorisations of of the shapes named in the statement.
A normalised LU factorisation is with unit lower triangular and upper triangular; an LDU factorisation is with unit lower triangular, diagonal, and unit upper triangular (A normalised LU factorisation has a unit lower-triangular L and an upper-triangular U, An LDU factorisation has unit lower-triangular L, diagonal D, and unit upper-triangular U).
Matrix multiplication is the product convention used throughout (Rectangular matrix multiplication and the identity matrix , including zero-sized shapes).
Proof
For claim 1, the first row of equals the first row of both and , because the first rows of and are . Hence the first rows of and agree, in particular . Then the first-column equations are for , so . Subtracting the common first-column outer product leaves two factorizations of the same trailing principal block by unit lower and upper triangular matrices of size with nonzero diagonal. Induction gives equality of the trailing blocks, hence and .
For claim 2, put and . Because are diagonal and are unit upper triangular, are upper triangular and their diagonals are exactly the diagonals of , so they are nonzero. The factorisations are therefore of the kind handled in step 1.1, which gives and . Taking diagonals of yields , and then forces .
Steps 1.1 and 2.1 prove claims 1 and 2. The nonzero-pivot hypothesis is essential: without it, a zero row of the upper factor leaves lower-triangular multipliers undetermined.
Block LU factorisation and the associated Schur complement
Definition
Let
be a square matrix over a field, with square leading block .
A block LU factorisation across this partition is a factorisation
where the diagonal blocks are square, the left factor is block lower triangular, and the right factor is block upper triangular.
If is invertible, the Schur complement of in is
This is the trailing block left after eliminating the off-diagonal blocks using the invertible leading block.
An invertible leading block yields block LU through its Schur complement
Statement
Let
be a square block matrix over a field, with square and invertible, and let .
- One has the exact block factorisation
- If is any normalised LU factorisation, then is a block LU factorisation across the same partition.
Facts & Assumptions
Given: The displayed block matrix , an invertible leading block , and the Schur complement .
Block LU factorisation and Schur complement are defined as in Block LU factorisation and the associated Schur complement.
Triangular solves with nonzero diagonal are correct and unique (Forward and backward substitution are correct, unique, and quadratic in scalar operations).
An invertible matrix has a two-sided inverse (Invertible matrices and the general linear group ).
Matrix multiplication is associative and uses the product convention of Rectangular matrix multiplication and the identity matrix , including zero-sized shapes.
Proof
By [L3], exists, and by [L4] the block product has upper-left block , upper-right block , lower-left block , and lower-right block . Hence it equals .
If , substitute this into step 1.1 and absorb the factorisation of into the lower-right block. The resulting left factor is block lower triangular and the right factor is block upper triangular, so this is a block LU factorisation in the sense of [L1].
The off-diagonal block is exactly the block of multipliers obtained by solving . If itself has a triangular factorisation, [L2] computes these multipliers by triangular solves.
Steps 1.1 and 2.1 prove claims 1 and 2, and step 2.2 identifies the solve interpretation of the multiplier block.
A square matrix has an unpivoted unit-lower LU factorisation exactly when all leading principal minors are nonzero
Statement
Let be a field, let , and let . For , let be the determinant of the leading principal submatrix .
Then has a normalised LU factorisation whose upper factor has nonzero diagonal if and only if
In particular, the condition forces , so is invertible.
Facts & Assumptions
Given: A field , a natural number , and a matrix .
A normalised LU factorisation is with unit lower triangular and upper triangular (A normalised LU factorisation has a unit lower-triangular L and an upper-triangular U).
An invertible leading block gives the block LU factorisation through its Schur complement (An invertible leading block yields block LU through its Schur complement).
The determinant of a triangular matrix is the product of its diagonal entries (The determinant of a triangular matrix is the product of its diagonal entries).
Determinants are multiplicative (For same-sized finite square matrices over a commutative ring, ).
Proof
Suppose as in [L1] and that the diagonal of is nonzero. For each , the leading block also factors as , where is unit lower triangular and is upper triangular with diagonal . By [L3] and [L4],
For the converse, use induction on . When , the condition is , and is already a normalised LU factorisation with nonzero diagonal.
Assume and the converse for size . Write Then . Set . For each , apply [L2] to the leading block of : its determinant is , where is the leading block of . Hence By the induction hypothesis, has a normalised LU factorisation with nonzero diagonal.
Step 1.3 and [L2] give which is a normalised LU factorisation of . Its upper diagonal is followed by the diagonal of , so it is nonzero.
Step 1.1 proves the forward implication, and steps 1.2-2.1 prove the reverse implication for every . The final sentence is the case .
When unpivoted elimination runs to completion, the elimination multipliers are the entries of the normalised LU factors
Statement
Let , let be a field, and let . Assume unpivoted Gaussian elimination reaches an upper-triangular matrix without encountering a zero pivot. Let be the multiplier used to eliminate entry , so the -th elimination matrix is
If is the final upper-triangular matrix, with this product understood as the empty product and when , then
where is unit lower triangular and its strict lower entry in position is exactly .
Facts & Assumptions
Given: An integer , a field , a matrix , unpivoted Gaussian elimination with no zero pivot, the elimination matrices , and the final upper-triangular matrix , where when .
A normalised LU factorisation is with unit lower triangular and upper triangular (A normalised LU factorisation has a unit lower-triangular L and an upper-triangular U).
An invertible leading block yields block LU through the Schur complement (An invertible leading block yields block LU through its Schur complement).
Matrix multiplication uses the usual product convention (Rectangular matrix multiplication and the identity matrix , including zero-sized shapes).
Proof
At stage , the matrix is unit lower triangular and differs from only in column below the diagonal. Its inverse is , because all cross terms vanish: for . Thus is unit lower triangular with strict lower entries exactly the multipliers from column .
Since , one has . The product of unit lower triangular matrices is unit lower triangular, and the first time a strict lower entry in column appears is in , so later factors do not change that column above the already-created zeros. Hence the strict lower entries of are exactly the stored multipliers .
The matrix is upper triangular by construction, so step 2.1 is a normalised LU factorisation in the sense of [L1]. This is the scalar-entry form of the same elimination mechanism that [L2] packages blockwise. Equivalently, the row operations of elimination store their multipliers in and leave the final reduced matrix as .
Steps 2.1 and 3.1 prove the claim.
Permutation matrices, partial pivoting, and the pivot-growth factor
Definition
Let , let or , and let be a permutation of . The corresponding permutation matrix is the matrix whose -th row is the -th row of . Thus left multiplication by permutes the rows of a matrix.
In Gaussian elimination with partial pivoting, ties are resolved by a fixed deterministic rule. At stage one inspects the entries in column from rows through , swaps a row with maximal entry modulus into row , and then eliminates the entries below that pivot.
If is the resulting factorisation, its pivot-growth factor is
provided ; when one declares . The absolute value or modulus is the one from Absolute value in an ordered field on real entries and its standard complex analogue on complex entries.
Every real or complex square matrix admits a PLU factorisation, and the first failed pivot marks the singular boundary
Statement
Let or , let , and let .
- There exist a permutation matrix , a unit lower-triangular matrix , and an upper-triangular matrix such that
- If partial pivoting encounters a stage at which the whole active pivot column is zero, then the active trailing block is singular, hence is singular. Equivalently, if is invertible, partial pivoting finds a nonzero pivot at every stage.
Facts & Assumptions
Given: A field or , a natural number , and a matrix .
Permutation matrices, partial pivoting, and pivot growth are defined as in Permutation matrices, partial pivoting, and the pivot-growth factor.
If unpivoted elimination on a matrix reaches an upper-triangular matrix without a zero pivot, the multipliers form the unit lower factor in the resulting normalised LU factorisation (When unpivoted elimination runs to completion, the elimination multipliers are the entries of the normalised LU factors).
An invertible matrix has a two-sided inverse (Invertible matrices and the general linear group ).
Proof
For , either with or . In both cases is a PLU factorisation, and the zero-pivot case is exactly the singular case.
Assume . After an initial row swap, write where is maximal in the first column below the swap position. If , perform the first elimination step. This produces with multipliers . By the induction hypothesis, the trailing block has a PLU factorisation. Reassembling the first elimination step and the recursive factorisation gives for suitable . If , then the whole first column is zero, so already has the block form ; by the induction hypothesis has a PLU factorisation, and adjoining the zero first column yields a PLU factorisation of , hence of .
If the first failed pivot occurs at stage , then after the previous row swaps and eliminations the active matrix has the form where the first column of is zero. Therefore is singular because for a nonzero standard basis vector . The whole active matrix is then singular, hence so are all earlier row permutations and elimination preimages, including .
Claim 1 is steps 1.1-1.2. Step 2.1 proves claim 2, and its contrapositive is the final sentence: an invertible matrix cannot reach a zero pivot under partial pivoting.
In the standard real floating-point model, computed pivoted LU is a nearby factorisation with a pivot-growth dependent backward bound
Statement
Let with , and suppose Gaussian elimination with partial pivoting is carried out in the standard relative floating-point model with unit roundoff , with every intermediate division, product, and sum in range. Let the computed factors satisfy
where is a permutation matrix, is unit lower triangular, and is upper triangular. Then there exists a matrix such that and entrywise, where . If is the pivot-growth factor of Permutation matrices, partial pivoting, and the pivot-growth factor, then
Facts & Assumptions
Given: A matrix , the standard relative floating-point model with unit roundoff and , and computed partial-pivoted factors with all intermediate operations in range.
Partial pivoting produces a permutation matrix and multipliers below the diagonal (Every real or complex square matrix admits a PLU factorisation, and the first failed pivot marks the singular boundary, Permutation matrices, partial pivoting, and the pivot-growth factor).
The floating-point model represents each in-range arithmetic operation by a relative perturbation bounded by (The standard relative floating-point model and unit roundoff).
Products of factors with collapse to with (If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n).
A floating-point dot product of length at most equals the exact dot product of componentwise perturbed summands with relative perturbations bounded by (The computed floating-point dot product obeys componentwise and normwise error bounds).
Proof
In exact arithmetic, each computed upper-triangular entry satisfies a formula of the form and each computed strict-lower entry satisfies By [L2]-[L4], each such floating-point combination is the exact relation for a perturbed entry of , with perturbation bounded by times the corresponding dot-product sum. Collecting those entrywise perturbations into a matrix gives and
Set . Because is a permutation matrix, by step 1.1. Multiplying the identity of step 1.1 by on the left gives which is the nearby-factorisation statement.
By [L1], every row of has one diagonal and at most strict-lower entries of modulus at most , so its row sum is at most . Every entry of is bounded by from the definition of pivot growth. Therefore each row sum of is at most , and step 1.1 yields Because row permutations preserve the infinity norm, the same bound holds for .
Step 2.1 proves the backward-error identity, and step 2.2 gives the pivot-growth dependent bound.
Hermitian positive-definite matrices and Cholesky factorisation A = LL* with positive diagonal
Definition
Let and ; over the same definition uses transpose instead of conjugate transpose.
The matrix is Hermitian positive definite if and
for every nonzero vector . A Cholesky factorisation with positive diagonal of is a factorisation
where is lower triangular and every diagonal entry of is a positive real number.
The Hermitian terminology matches Sesquilinear and Hermitian forms over a field with an involution, using the convention linear in the first variable, and the triangular terminology matches Upper triangular, lower triangular and diagonal square matrices over a commutative ring.
A matrix admits a Cholesky factorisation with positive diagonal exactly when it is Hermitian positive definite, and that factor is unique
Statement
Let and let , with the real case obtained by restricting scalars to . Then the following are equivalent:
- has a Cholesky factorisation with lower triangular and positive real diagonal.
- is Hermitian positive definite.
When these conditions hold, the factor is unique.
Facts & Assumptions
Given: A matrix .
Hermitian positive-definite matrices and Cholesky factorisations with positive diagonal are defined in Hermitian positive-definite matrices and Cholesky factorisation A = LL* with positive diagonal.
The determinant of a triangular matrix is the product of its diagonal entries (The determinant of a triangular matrix is the product of its diagonal entries).
Determinants are multiplicative (For same-sized finite square matrices over a commutative ring, ).
Matrix multiplication uses the convention of Rectangular matrix multiplication and the identity matrix , including zero-sized shapes.
Proof
Suppose as in [L1]. Then , so is Hermitian. For any nonzero , one has The diagonal of is positive, hence nonzero; [L2] and [L3] give , so is invertible and when . Therefore .
For the converse, use induction on . The case is immediate: is Hermitian positive definite exactly when , in which case .
Assume and the converse for size . Write Positive definiteness of at gives . Set and . For nonzero , apply positive definiteness to : Thus is Hermitian positive definite. By the induction hypothesis, with lower triangular and positive diagonal.
Define Direct multiplication gives The matrix is lower triangular and its diagonal is positive real, so this is a Cholesky factorisation.
For uniqueness, suppose are two such factorizations. Then is lower triangular, and because . A lower-triangular unitary matrix has zero strict-lower entries and diagonal entries of modulus ; since the diagonal of is the ratio of two positive real diagonals, each diagonal entry is also positive real, hence equals . Therefore and .
Step 1.1 proves that a Cholesky factorisation implies Hermitian positive definiteness. Steps 1.2-2.1 prove the converse by induction, and step 3.1 gives uniqueness.
For real symmetric matrices, positive leading principal minors are equivalent to positive Cholesky pivots
Statement
Let , let be symmetric, and let be the determinant of its leading principal submatrix.
Then the following are equivalent:
- for every .
- has a Cholesky factorisation with positive diagonal.
When , one has
so positivity of the leading principal minors is equivalent to positivity of the Cholesky pivots.
Facts & Assumptions
Given: A real symmetric matrix .
A matrix has a Cholesky factorisation with positive diagonal exactly when it is Hermitian positive definite (A matrix admits a Cholesky factorisation with positive diagonal exactly when it is Hermitian positive definite, and that factor is unique).
A real symmetric matrix is positive definite exactly when all of its leading principal minors are positive (Sylvester's criterion: a real symmetric matrix with is positive definite if and only if all leading principal minors are positive).
The determinant of a triangular matrix is the product of its diagonal entries (The determinant of a triangular matrix is the product of its diagonal entries).
Proof
Proof technique: compare Sylvester's criterion with the determinant formula for leading Cholesky blocks.
By [L1] and [L2], condition 1 is equivalent to positive definiteness, and positive definiteness is equivalent to existence of a Cholesky factorisation with positive diagonal. Hence conditions 1 and 2 are equivalent.
Suppose with lower triangular and positive diagonal. Its leading principal block factors as , where is the leading block of . By [L3], Since each , every is positive.
Step 1.1 proves the equivalence, and step 2.1 identifies the leading principal minors with the squared pivot products.
Cholesky solves Hermitian positive-definite systems and has about half the factorisation cost of LU
Statement
Let be Hermitian positive definite and let be its Cholesky factorisation with positive diagonal.
- For every right-hand side , the system is solved by first solving and then solving .
- The two triangular solves cost scalar operations altogether, and the dense Cholesky factorisation costs scalar operations, compared with for dense LU factorisation without exploiting symmetry.
Facts & Assumptions
Given: A Hermitian positive-definite matrix , its Cholesky factor , and a right-hand side .
Forward and backward substitution correctly and uniquely solve triangular systems in scalar operations (Forward and backward substitution are correct, unique, and quadratic in scalar operations).
Hermitian positive-definite matrices admit a unique Cholesky factorisation with positive diagonal (A matrix admits a Cholesky factorisation with positive diagonal exactly when it is Hermitian positive definite, and that factor is unique).
Cholesky factorisation means with lower triangular and positive diagonal (Hermitian positive-definite matrices and Cholesky factorisation A = LL* with positive diagonal).
Proof
By [L2] and [L3], the equation is . Solve by forward substitution and then by backward substitution. Stepwise uniqueness in [L1] makes both solves unique, and substituting back into the first equation gives .
The solve cost is the sum of two triangular solves, so [L1] gives scalar operations, or multiply-add pairs.
In the dense factorisation, column computes one square root, divisions in the column below the pivot, and updates the trailing symmetric submatrix of size by a rank-one outer product. That update touches stored entries, and each one costs one multiplication and one subtraction, so the update work is Summing with gives which dominates the cost. LU performs the same style of update on the full trailing matrix, giving scalar operations. Thus Cholesky uses about half the factorisation work.
Step 1.1 proves the solve statement, while steps 1.2 and 2.1 give the operation counts.
Householder reflectors in real or complex inner-product spaces
Definition
Let be a finite-dimensional real or complex inner-product space and let satisfy , where is the norm of The norm induced by a real or complex inner product. The Householder reflector with normal is the linear map
In matrix form relative to an orthonormal basis, this is
The reflector fixes every vector orthogonal to and sends to .
Real Givens rotations and complex Givens transformations
Definition
Let and let .
A real Givens rotation in the -plane is the identity matrix except on rows and columns , where it has the block
A complex Givens transformation in the -plane is the identity except on rows and columns , where it has block
with , , and . The modulus is the one from Real and imaginary parts, complex conjugation, and modulus.
Such transformations act only on the two chosen coordinates and are designed to zero one targeted entry while preserving the Euclidean norm from The norm induced by a real or complex inner product.
Householder reflectors and Givens transformations are unitary and can annihilate prescribed entries
Statement
Let or .
- Every Householder reflector is orthogonal or unitary.
- For every nonzero , there is a Householder reflector such that with .
- For every pair not both zero, there is a real or complex Givens transformation such that with .
Facts & Assumptions
Given: A field or , a unit vector , a nonzero vector , and a pair with not both entries zero.
Householder reflectors and Givens transformations are defined in Householder reflectors in real or complex inner-product spaces and Real Givens rotations and complex Givens transformations.
An orthogonal or unitary operator is an invertible linear isometry (Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces).
Proof
For with , one has and . Hence , so is orthogonal or unitary.
In the real case, for set , , and . Then and In the complex case, if take and ; otherwise write with , set , , and . Then and Thus a Givens transformation annihilates the second entry while preserving the Euclidean norm.
If is already a scalar multiple of , choose any Householder reflector fixing : for , works; for , take , so . Otherwise set , where when and when , and put , . Then , so .
Step 1.1 proves claim 1, step 2.1 proves claim 2, and step 1.2 proves claim 3.
Full, reduced, and column-pivoted computational QR factorisations
Definition
Let with or and .
A full QR factorisation of is a factorisation
where is orthogonal or unitary and is upper trapezoidal. A reduced QR factorisation is a factorisationwhere has orthonormal columns () and is upper triangular. A column-pivoted QR factorisation is a factorisation
where is a permutation matrix acting on columns, has orthonormal columns, and is upper trapezoidal or upper triangular according to whether the full or reduced form is used. Computationally, one obtains these factorisations by successive Householder reflectors or Givens transformations that zero entries below the diagonal, with the pivoted version choosing the next column after a permutation.
Successive Householder or Givens transformations produce full and reduced QR factorisations with the standard dense operation counts
Statement
Let with or and .
- Successive Householder reflectors or Givens transformations can zero the subdiagonal entries column by column and produce a full QR factorisation and hence a reduced QR factorisation .
- In dense real arithmetic, Householder QR uses scalar operations, while dense Givens QR uses scalar operations.
Facts & Assumptions
Given: A matrix with .
Full and reduced computational QR factorisations are defined in Full, reduced, and column-pivoted computational QR factorisations.
Householder reflectors and Givens transformations are orthogonal or unitary and can annihilate chosen entries below the diagonal (Householder reflectors and Givens transformations are unitary and can annihilate prescribed entries).
Every invertible square real or complex matrix has a QR factorisation (Every invertible real or complex square matrix has a unique factorisation with orthogonal or unitary and upper triangular with positive real diagonal).
Proof
For column , apply [L2] to the subvector of rows through . Embedding the resulting reflector or sequence of Givens transformations into the identity on the first rows leaves the earlier zeros unchanged and zeros all entries below the diagonal in column . Repeating for produces a unitary matrix whose product with is upper trapezoidal; therefore with , and deleting the zero rows of gives the reduced factorisation, in the computational form refining the abstract QR existence of [L3].
In a dense real Householder step on the trailing block of size , forming the reflector costs scalar operations and applying it to the trailing block costs scalar operations. Summing over gives
In dense real Givens QR, column has entries to eliminate below the diagonal, and each rotation updates two rows across the remaining columns using scalar operations. Hence the cost is
Step 1.1 proves the constructive QR statement, and steps 2.1-2.2 give the standard dense operation counts.
A local Householder backward-error bound yields a backward-stable QR factorisation
Statement
Let with . Assume Householder QR is executed in the standard relative floating-point model with unit roundoff and . Suppose that at each step the computed reflector is orthogonal and its action on the active trailing block is exact for one perturbation satisfying where and . Then the computed factors satisfy
for some matrix with
In particular, under the displayed local-step bound the algorithm is backward stable: the computed factorisation is exact for a nearby matrix whose relative Frobenius perturbation is .
Facts & Assumptions
Given: A matrix with , unit roundoff with , and computed orthogonal Householder reflectors satisfying the local-step identities and bounds in the statement.
Successive Householder reflectors produce QR by applying orthogonal transformations to shrinking trailing blocks (Successive Householder or Givens transformations produce full and reduced QR factorisations with the standard dense operation counts).
The quantity is the standard accumulated relative error factor when (If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n).
Frobenius norm is invariant under left and right orthogonal multiplication (Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison).
For each , the computed local step satisfies
Proof
The local-step hypothesis [A1] supplies a perturbation for every active block and an exact orthogonal update with .
Embed each into the original matrix size by padding zeros outside the active block and transport it back through the previous computed reflectors. Because every is orthogonal, [L3] preserves the Frobenius norm of each transported perturbation. Summing the transported perturbations gives a single matrix such that and
From step 1.1 and [L3], Since , induction gives for every .
Substituting step 2.2 into step 2.1 yields This is the stated backward bound.
Step 3.1 proves the displayed estimate, and step 2.1 gives the nearby factorisation identity.
Exact column-pivoted QR of a real or complex rank-r matrix has an invertible leading triangular block and zero trailing block
Statement
Let or , let have rank , and let
be an exact column-pivoted QR factorisation in which, at each step, the next column is chosen with maximal residual -norm among the remaining columns. Then
where is upper triangular with nonzero diagonal and hence is invertible.
Facts & Assumptions
Given: A matrix over or , of rank , and an exact column-pivoted QR factorisation built by greedy residual-norm pivot selection.
Column-pivoted QR means a QR factorisation after a column permutation (Full, reduced, and column-pivoted computational QR factorisations).
Successive orthogonal or unitary transformations produce the QR factorisation while zeroing entries below the diagonal (Successive Householder or Givens transformations produce full and reduced QR factorisations with the standard dense operation counts).
A square matrix is invertible exactly when it has a two-sided inverse (Invertible matrices and the general linear group ).
Rank is the dimension of the image, hence also the maximal number of linearly independent columns (Rank and nullity of a linear map with finite-dimensional domain).
Proof
After pivot steps, the first pivoted columns span the same subspace as the first columns of , and the next pivot diagonal entry is the norm of the residual of the chosen column after projection onto that span. Hence exactly when some remaining column still has a nonzero residual, that is, still lies outside the span of the first chosen columns.
For , the chosen columns cannot already span every column of , because then all columns would lie in a -dimensional span and [L4] would give rank at most . Therefore some remaining column has nonzero residual, and by the greedy rule step 1.1 gives . Thus the first diagonal entries of are nonzero.
After pivot columns have been chosen, [L4] says no further independent column exists. Hence every remaining column lies in the span of the first chosen columns, so every remaining residual is zero. Step 1.1 then forces every entry below and on the diagonal in the trailing block to be zero, giving The block is upper triangular with nonzero diagonal by step 2.1, so it is invertible.
Steps 2.1 and 3.1 prove the claim.
Reduced QR over the reals solves full-column-rank least squares without squaring the condition number
Statement
Let with and full column rank. Let
be a reduced QR factorisation, with and upper triangular. Then:
- The least-squares minimiser of is the unique solution of
- The spectral condition number of equals that of , whereas the normal-equation matrix satisfies Thus the QR route solves with a factor of condition rather than the squared factor .
Facts & Assumptions
Given: A full-column-rank matrix , a reduced QR factorisation , and a vector .
Reduced QR factorisation means and upper triangular (Full, reduced, and column-pivoted computational QR factorisations).
Successive Householder or Givens transformations produce reduced QR (Successive Householder or Givens transformations produce full and reduced QR factorisations with the standard dense operation counts).
Least-squares minimisers 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 ).
For full-column-rank , the normal equations square the spectral condition number (For full-column-rank A, the normal equations square the spectral condition number).
Spectral norm is unitarily invariant and is determined by singular values (Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison).
Proof
With the reduced QR factorisation supplied by [L2] and shaped as in [L1], extend the columns of to an orthogonal basis . Then so The second term is independent of , so minimising is equivalent to solving .
Because has full column rank, the upper-triangular factor has nonzero diagonal, so the triangular system of step 1.1 has a unique solution. Thus the least-squares minimiser is unique and equals that solution. This agrees with the normal equation of [L3].
Since is orthogonal and , [L5] implies that and have the same positive singular values, hence the same spectral condition number. By [L4], the normal-equation matrix has condition number . Therefore the QR solve uses a factor with condition , not the squared condition of the normal equations.
Steps 1.1-2.1 prove claim 1, and step 3.1 proves claim 2.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 2.5.3
- David Bindel, CS 4220: Numerical Analysis, Blocked LU and Cholesky
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 2.6
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 2.6.4
- David Bindel, CS 4220: Numerical Analysis, Beyond linear solves + using structure
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 2.9
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Theorem 2.9.3
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Theorem 2.5.1 and Observation 2.9.3
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Definition 3.4.1
- David Bindel, CS 4220: Numerical Analysis, Least squares and QR
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 3.4.2
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Theorem 3.4.1 and Givens rotations section
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Sections 3.3 and 3.4
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 3.4
- David Bindel, CS 4220: Numerical Analysis, Ill-posedness and regularization
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 3.3
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, Section 3.3.3