How do you compute the factorisation (with unit diagonal in ) of , use it to solve , and explain when row pivoting () is needed?
Linear algebra and optimisation, Matrix decompositions
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can execute Gaussian elimination to record and , solve via forward and back substitution, and explain pivoting.
Key idea
Gaussian elimination produces upper-triangular , while the row multipliers placed below the diagonal form unit-lower-triangular ; solving splits into forward substitution and back substitution , and partial pivoting avoids zero or tiny pivots.
Steps
- Eliminate column 1 using pivot : multipliers are and . Updating and yields .
- Eliminate column 2 using pivot : multiplier is . Updating gives and .
- Solve by forward substitution: ; ; .
- Solve by back substitution: ; ; , so .
- State why pivoting is needed: if a pivot entry is zero (even for an invertible matrix like ) or very small, division by it fails or magnifies floating-point rounding error; permuting rows gives where is a permutation matrix.
Common mistakes
- Flipping the sign of the multipliers when writing : if you subtract times row from row , the entry in is , not .
- Re-factorising from scratch () for each new right-hand side instead of reusing and ( via forward and back substitution), or forgetting to apply the row permutation to () when pivoting is needed.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: For , how do you compute the Frobenius norm , the induced norm , the induced norm and the spectral norm ?
Next in Linear algebra and optimisation: Geometrically, why must the gradient of the objective be parallel to the gradient of the constraint at a smooth optimum of subject to ?