LU Factorization with Partial Pivoting
Track the permutation in Gaussian elimination and show why selecting a larger pivot avoids an unnecessarily large multiplier.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Store elimination as lower and upper factors
Gaussian elimination subtracts a multiple of a pivot row from rows below it. For a nonsingular matrix with row swaps, record \(PA=LU\), where \(P\) is the accumulated permutation, \(L\) stores elimination multipliers and \(U\) is upper triangular. Solve \(Ly=Pb\) by forward substitution, then \(Ux=y\) by backward substitution. Several right-hand sides can reuse the same factorization.
A small leading pivot can amplify intermediate work
For first column \((10^{-8},1)^\top\), using the top entry as pivot gives multiplier \(10^8\). Partial pivoting swaps in the largest available magnitude in the column, keeping the multiplier at most one in magnitude. It often improves numerical behavior, although growth in \(U\) can still influence error. Backward error describes the numerical guarantee to examine, while QR factorization uses orthogonal transformations for a related class of problems.[1][2]