Home Statistical Dictionary LU Decomposition
LU Decomposition
The factorization of a square matrix into a lower triangular matrix times an upper triangular matrix -- the general-purpose decomposition statistical software uses under the hood to solve linear systems and compute determinants and matrix inverses efficiently.
In Plain English
LU decomposition breaks a square matrix into two triangular pieces, one lower and one upper, whose product reconstructs the original. Triangular matrices are dramatically easier to work with than general ones (their systems of equations solve top-to-bottom or bottom-to-top in one straightforward pass), so this decomposition is the standard behind-the-scenes step statistical and numerical software takes before solving a linear system or computing a determinant, rather than working with the original, harder-to-handle matrix directly.
Definition
The LU decomposition of a square matrix expresses it as , where is lower triangular (with 1's on the diagonal, by convention) and is upper triangular; in practice, a permutation matrix is often needed, , to allow row-swapping (partial pivoting) for numerical stability. Once a matrix is factored this way, solving reduces to two easy triangular solves (forward substitution for , then back substitution for ) rather than one hard general solve, and the determinant follows immediately as the product of 's diagonal entries (times the permutation's sign), which is exactly how statistical software computes determinants and matrix inverses efficiently behind the scenes rather than through the far more expensive cofactor-expansion formula.
Formula
Notation
Properties
- Once a matrix is LU-factored, solving a linear system reduces to two simple triangular solves, forward substitution through and back substitution through , each requiring only a straightforward top-to-bottom or bottom-to-top sweep, dramatically cheaper than solving the original system directly for a large matrix.
- Row pivoting (the permutation matrix ) is included in practice not because it's mathematically required for every matrix, but because it protects against numerical instability, without it, dividing by a very small pivot entry during the factorization can amplify rounding error catastrophically, even for a matrix that is mathematically well-behaved.
- The determinant of follows immediately once its LU decomposition is known, simply the product of 's diagonal entries (adjusted for the sign of any row permutations used), which is why LU decomposition, not the textbook cofactor-expansion formula, is the method actual statistical and numerical software uses to compute determinants for anything beyond a tiny matrix.
At a Glance
Related Terms