NM-Lab 011 LU Factorization Manual
NM-Lab 011 LU Factorization Manual
LU Factorization on MATLAB
Introduction to LU Factorization
LU factorization, or LU decomposition, in numerical methods is a technique for decomposing a square
matrix A into the product of two triangular matrices: a lower triangular matrix L and an upper triangular
matrix U, such that A = LU. This factorization is useful for solving systems of linear equations and
inverting matrices.
Explanation:
Decomposition:
The core idea is to express a given matrix A as the product of two simpler matrices, L and U, where:
L (Lower Triangular Matrix): A matrix with all entries below the main diagonal being zero, and usually
with 1s along the main diagonal.
U (Upper Triangular Matrix): A matrix with all entries above the main diagonal being zero.
Purpose:
LU factorization is particularly helpful for solving systems of linear equations of the form Ax = b. By
factoring A into L and U, the system Ax = b becomes LUx = b.
Forward Substitution: First, solve Ly = b for y (forward substitution). Since L is lower triangular, this
involves solving the system one row at a time.
Backward Substitution: Then, solve Ux = y for x (backward substitution). Since U is upper triangular, this
involves solving the system one row at a time, working from the last row to the first.
Efficiency:
LU factorization can be more efficient than directly solving the original system of equations, especially
when solving multiple systems with the same coefficient matrix A but different right-hand side vectors b.
The L and U matrices are computed only once, and then the forward and backward substitutions are
performed for each new b.