From Wikipedia, the free encyclopedia
LU factorization is a method for decomposing an
matrix
into the product of a lower triangular matrix
and an upper triangular matrix
,

For a
matrix, this becomes:

This gives three types of equations



This gives
equations for
unknowns (the decomposition is not unique), and can be solved using Crout's method.
To solve the matrix equation

first solve
for
. This can be done by forward substitution


for i=2,...,N. Then solve
for
. This can be done by back substitution


for i=N-1,...,1