LU Factorization
Summary
LU factorization writes a nonsingular matrix as
Prerequisites
Problem Type
Factor
Method Definition
Without pivoting (Doolittle form): run Gaussian elimination on
With partial pivoting: apply row swaps, track them in a permutation matrix
Assumptions / Requirements
- All leading principal minors nonzero for
without pivoting - Otherwise use partial pivoting (
) - Convention here:
Algorithm (no pivoting)
- Set
, . - For
:- For
:-
- Row
of row row
-
- For
- Solve
, then .
Algorithm (partial pivoting)
At stage
Worked Example
Stage
Stage
Check
Solve
Then
Convergence
Direct
Error / Accuracy
Verify
Common Failure Modes
- Zero pivot without row exchange
- Forgetting that
stores multipliers from elimination - Confusing
with after swaps
Connections
- Gaussian Elimination
- Direct Methods - Triangular System
- Numerical Methods/Linear Systems/Solving Linear Systems
References
Burden & Faires, Numerical Analysis, LU factorization; NIST DLMF Ch. 3, https://dlmf.nist.gov/3 ↩︎