LU
Decomposition
Learn how to factor any square matrix into the product of a lower triangular and an upper triangular matrix: the key to solving systems efficiently.
What is LU Decomposition?
LU Decomposition is a method of factoring a square matrix \( A \) into two simpler matrices:
Structure of L and U
Why LU Decomposition Matters
Once you have \( A = LU \), solving \( Ax = b \) becomes two easy steps instead of one hard one:
Connection to Gaussian Elimination
LU Decomposition is Gaussian elimination in disguise. Each elementary row operation has a corresponding elementary matrix \( E \).
Rearranging:
The LU Factorization Theorem
LU vs PLU Decomposition
When a zero pivot appears, a row swap is needed. This is captured by a permutation matrix \( P \):
| LU | PLU | |
|---|---|---|
| Row swaps needed? | No | Yes |
| Formula | \( A = LU \) | \( PA = LU \) |
| Always exists? | Not always | Yes, for any invertible \( A \) |
| Extra matrix | None | \( P \) (permutation) |
How to Find L and U
Example 1: \( 2 \times 2 \) Matrix
Find the LU decomposition of:
Example 2: \( 3 \times 3 \) Matrix
Find the LU decomposition of:
Example 2: Result
Solving \( Ax = b \) with LU
Using our \( 3 \times 3 \) example, solve \( Ax = b \) where \( b = \begin{bmatrix}1\\1\\3\end{bmatrix} \).
Efficiency of LU Decomposition
Real-World Applications
Common Mistakes
Summary at a Glance
| Concept | Key Fact |
|---|---|
| Factorization | \( A = LU \) |
| \( L \) structure | Lower triangular, 1s on diagonal |
| \( U \) structure | Upper triangular (row echelon form) |
| Entries of \( L \) | Multipliers from elimination |
| Solving \( Ax = b \) | \( Ly = b \) then \( Ux = y \) |
| Factoring cost | \( \sim \frac{2}{3}n^3 \) |
| Each solve cost | \( \sim 2n^2 \) |
| Row swaps needed? | Use \( PA = LU \) |
Question 1 of 5
In the LU decomposition \( A = LU \), what is always true about the diagonal entries of \( L \)?
Question 2 of 5
If \( A = LU \) and \( U = \begin{bmatrix}3 & 1\\0 & 4\end{bmatrix} \), what is \( \det(A) \)?
Question 3 of 5
To eliminate the entry below the pivot in column 1 of \( A = \begin{bmatrix}4 & 2\\6 & 5\end{bmatrix} \), what multiplier \( \ell_{21} \) do you use?
Question 4 of 5
When does a matrix \( A \) require a permutation matrix \( P \) (i.e., PLU instead of LU)?
Question 5 of 5
What is the main computational advantage of using LU decomposition to solve multiple systems \( Ax = b_1, Ax = b_2, \ldots \)?