Gaussian elimination uses elementary row operations to remove entries below successive pivot elements, reducing a linear system to one with an upper triangular matrix. Back substitution then solves that system. It also computes a reusable matrix factorization, so additional right-hand sides can be handled by forward substitution and back substitution without repeating the elimination.
For elimination without row exchanges, let . At step , provided the pivot element is nonzero, form the elimination multipliersand perform , applying the same operation to the right-hand side. More explicitly the resulting entries satisfy for , .
Let , where are the standard basis vectors. ThenThe matrix is a unit lower triangular matrix storing the elimination multipliers, while is an upper triangular matrix:Solving becomes followed by . If a required pivot element vanishes, an unpermuted LU decomposition can fail even for an invertible matrix. Row exchanges, typically selected by partial pivoting, instead produce with a permutation matrix ; then solve , .
Use and , followed by . These elementary row operations giveThe elimination multipliers are , , . Record them in the unit lower triangular matrix :To see the elementary matrix relation directly, let , and , where has a single 1 in position . Then , and reversing and inverting these operations gives . Direct matrix multiplication also verifies the stated LU decomposition.
A triangular matrix has determinant equal to the product of its diagonal entries. Since is a unit lower triangular matrix, . ThusEquivalently, the elimination used only row additions, which leave the determinant unchanged; there were no row swaps or row scalings to account for.
Suppose an invertible matrix has two LU factorizations, , with unit lower triangular matrices and upper triangular matrices. All four factors are invertible matrices, since their square products are invertible. Multiplication by the appropriate inverse matrices givesBy the supplied closure properties, the left side is a unit lower triangular matrix and the right side is an upper triangular matrix. A matrix of both types is diagonal; its diagonal entries are all one. Thus both sides are the identity matrix, whenceQualification of the printed wording: this establishes uniqueness if the specified LU factorization exists. Invertibility alone does not guarantee an unpivoted LU factorization. For example is invertible, but in a product , the zero top-left entry forces , making the bottom-left entry as well, contrary to the required value one. A permutation matrix is needed in general, as in PLU factorization.
Use Gaussian elimination without row exchanges. First apply and ; then apply :The elimination multipliers are , and . Put them below the diagonal of a unit lower triangular matrix:To see why these multipliers reconstruct the rows, row 2 of is three times row 1 of plus row 2 of , giving . Row 3 of is twice row 1 plus row 2 plus row 3 of , giving . This directly verifies the LU factorization.
The determinant of the unit lower triangular matrix is 1. There is one row swap, so , and the upper triangular matrix has determinant . Therefore
PLU factorization 2026-10-31
A matrix factorization incorporating a permutation matrix, a unit lower triangular matrix and an upper triangular matrix. The convention differs from by replacing with its inverse. When pivoting during elimination, previously stored lower-triangular multipliers must be permuted consistently with the rows.