Differential Equations & Numerical Methods · BE5B01DEN · Topic 9 of 13
Gaussian elimination, LU decomposition, complexity
Week 9. Eliminate with partial pivoting, solve by back substitution, and remember the cost is about 2n³/3.
Key ideas
GEM with partial pivoting
In column k choose the row with the largest |entry| as pivot, swap it up, and subtract multiples l_(i,k)=c_(i,k)/c_(k,k) of the pivot row from the rows below. Then solve the triangular system by back substitution (cost n²).
LU and LUP decomposition
The multipliers l_(i,k) form the unit lower triangular L, and the reduced matrix is U, so A=LU. With row swaps PA=LU, and Ax=b is solved by Ly=Pb then Ux=y. The determinant is the product of the pivots, up to the sign of the swaps.
Norms and the condition number
The condition number cond(A)=‖A‖·‖A⁻¹‖ bounds how much a relative error in b is magnified in x. If b is reliable to k digits, x is reliable to about k−log₁₀ cond(A) digits.
In one line: Elimination is exact in principle; the condition number tells you how many digits survive in practice.
Formulas
- GEM with partial pivoting
- LU and LUP decomposition
- Norms and the condition number
Practice with worked solutions
Question 1
Solve the system by Gaussian elimination and back substitution; give z.
Worked solution
Answer: 2
Eliminate x with the multipliers 2 and −1, then eliminate y.
Question 2
Find the determinant of the matrix from its row echelon form.
Worked solution
Answer: -16
The determinant is the product of the pivots (no row swaps without pivoting).
Question 3
Find the multiplier l₃₂ in the LU decomposition A = LU (no pivoting, unit diagonal in L) of the same matrix.
Worked solution
Answer: -1
After the first column, the pivot is −8 and the entry below it is 8.
More Differential Equations & Numerical Methods practice in Ucenly
Sources
Written by Ucenly. Based on the BE5B01DEN course materials:
- Course card BE5B01DEN (Bílá kniha), p. 1
- Lecture slides: Linear algebra numerical view (edens_n5matrix.pdf), p. 1, 2, 3, 4
- Habala: Ordinary Differential Equations and Numerical Analysis (dnbook.pdf), p. 236, 250
- Homework 11 (edenhw11.pdf), p. 1