LU decomposition of an upper Hessenberg matrix Created 2026-10-31 Updated 2026-11-05
When Gaussian elimination without row interchanges is defined, an upper Hessenberg matrix needs at most one elimination per pivot column, because only its first subdiagonal can be nonzero. The LU decomposition has a unit lower bidiagonal matrix and an upper triangular matrix . If the input matrix is also symmetric, it is a tridiagonal matrix and is upper bidiagonal.
The nonzero-pivot condition is essential: is upper Hessenberg and invertible but has no such unpivoted LU decomposition. A pivoted factorization can still be computed, with its permutations recorded explicitly.
The elementary elimination step replaces row by row minus a multiple of an earlier pivot row . With coordinate vectors , its premultiplication matrix isand its inverse is , since . Choose as the current entry below the pivot divided by the current pivot. Required pivots are assumed nonzero, consistently with elimination without row interchanges.
For dimension 4, first eliminate positions , then , then . ThusThe rightmost operation acts first, and every multiplier is computed from the matrix at its own stage. For general , the numbers of eliminations in successive columns are , totaling ; a zero multiplier simply gives an identity operation.
The product is unit lower triangular and is upper triangular. Its inverse is unit lower triangular, soThe stored multiplier in position is the corresponding subdiagonal entry of , as follows by reversing the pivot-row subtractions column by column.
If is upper Hessenberg, only the first subdiagonal can be nonzero below the diagonal. At stage only position needs elimination. Subtracting row cannot create lower entries further down because its entries before its pivot are already zero. Hence only operations are needed. The inverse factors occur in increasing column order, and their cross products vanish, givingwhich is lower bidiagonal; is upper triangular, possibly dense above its diagonal.
If the Hessenberg matrix is also symmetric, it is tridiagonal. At each elimination step the pivot row has no entries past its immediate superdiagonal, so the updated matrix retains that upper bandwidth. Thus is lower bidiagonal and is upper bidiagonal, with at most two nonzero entries in each row, as required.
Tridiagonal matrix Created 2026-09-25 Updated 2026-11-05
A tridiagonal matrix has zero entries outside its main diagonal and the two adjacent diagonals. With nonzero elimination pivots, the Thomas algorithm solves its linear system in linear time by specialized Gaussian elimination and back substitution.
Nonsingularity alone does not ensure that the unpivoted Thomas algorithm is defined: the invertible matrix has a zero first pivot. Conditions such as strict diagonal dominance guarantee suitable nonzero pivots; otherwise row interchanges or another factorization are needed.