- Remedy for instability: perform row pivoting so that is always the largest entry in the column.
- Since , row pivoting guarantees that .
With row pivoting, our factorization looks like
where is a permutation of the rows of . is key for the existence of the LU factorization.
- Note that although is bounded by definition, there is no guarantee for .
- In most practical cases, this algorithm is very accurate.
- This factorization exists for all square matrices.
- This factorization is unique for all matrices such that for all .
Letβs apply row pivoting to our previous case:
This new factorization is backward stable and accurate.
Stability of the LU factorization, Forward and backward error, Backward error analysis for LU