LU and LDU factorization
LU records elimination: U contains the reduced triangular system and L stores the multipliers. Row exchanges lead to PA=LU. LDU separates nonzero pivots into a diagonal matrix.
What you will learn
- Track elimination multipliers
- Multiply L and U to verify
- Account for permutations and LDU
Work through one complete example
- A=[[1,1,0],[2,3,1],[0,1,2]]. Subtract 2R₁ from R₂, then the new R₂ from R₃.
- U=[[1,1,0],[0,1,1],[0,0,1]], L=[[1,0,0],[2,1,0],[0,1,1]].
- The multipliers 2 and 1 appear below the diagonal of L. Multiply LU to recover A.
- Solve Ly=b first, then Ux=y. If a required pivot is zero, consider row permutation before using this factorization.
Fill in the reasoning
- For A=[[0,1],[1,2]], the first pivot is zero. Swap rows with P=[[0,1],[1,0]]: PA=[[1,2],[0,1]]=U and L=I. Thus PA=LU.
- For U=[[2,4],[0,3]], take D=diag(2,3) and U₀=[[1,2],[0,1]]. Then U=DU₀, separating pivot sizes from the unit diagonal.
Objective 1: Track elimination multipliers
- Where is the 2 in R₂←R₂−2R₁ stored?
- In L₂₁; U stores the resulting triangular system.
Objective 2: Multiply L and U to verify
- Find row 2 of LU for the displayed factors.
- 2 times row 1 of U plus row 2 gives (2,3,1), matching A.
Objective 3: Account for permutations and LDU
- Handle the zero first pivot in [[0,1],[1,2]].
- Swap rows: PA=[[1,2],[0,1]]. Nonzero pivots form D; here D=I.
A common mistake
An LU factorization without permutations is not guaranteed for every square matrix.
Review first
Continue learning
Linear maps and matrix factorizations · Rank factorization A=CR
Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.