LU Factorization
Row reduction does the same work no matter what is, so do it once and save it as : is the echelon form, and remembers the multipliers you used. After that, every new costs only two quick triangular solves.
What the symbols mean
- Lower triangular
1s on the diagonal, the row-reduction multipliers below it.
- Upper triangular
The echelon form of A.
Explanation
An LU factorization is simply row reduction written down so you never have to redo it. The letters stand for "lower" and "upper": is lower triangular (all zeros above the diagonal) and is upper triangular (all zeros below it). It's good whenever you have to solve the same system over and over with different right-hand sides, which happens all the time in simulations. The three equations , , just say: split into two triangular pieces, then solve with one piece and then the other. Triangular systems are the easy kind you solve one line at a time, so it's less work than it looks.
Why bother? Row reducing costs about operations, but each triangular solve costs only about . Notice that the elimination steps only depend on , never on . So if you need to solve for many different (common in engineering), it makes sense to factor once and reuse.
Building it. Row reduce to using only "add a multiple of a row above." If you subtract times row from row , put in position of . That's the whole bookkeeping: is a record of what you did.
Solving. Forward-substitute from the top, then back-substitute from the bottom. The second half is exactly the back substitution you already do at the end of row reduction.
A common mistake. It's tempting to put in , since you subtracted times the row. It's : has to undo the elimination to rebuild , and undoing "subtract times row " means adding it back.
See it
Worked examples
Factor .
- 1
To clear the under the first pivot, subtract 2 × row 1 from row 2. That leaves .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Give for , row by row.
Give , row by row.
Solve .
Now solve .
What is the main advantage of LU factorization?
A bridge model solves for many load vectors with , where and . Solve it for .
The hardest one here. Get it, and you've got this lesson.
Find the LU factorization of and give , row by row.
Where it's used
Circuit simulators and structural analysis software factor their huge (sparse) matrices once, then solve for many load cases or time steps.