Lecture 8
Lecture 8
are diagonal. A diagonal matrix is both upper triangular and lower triangular.
• Question. When is a square upper (or lower) triangular matrix invertible? Justify
your answer.
• Question. When is a square upper (or lower) triangular matrix invertible? Justify
your answer.
• Solution. If a square upper (or lower) triangular n × n matrix has nonzero diagonal
entries, then because it is already in echelon form, the matrix is row equivalent to In
and hence is invertible. Conversely, if the matrix is invertible, it has n pivots (leading
entries) on the diagonal and hence the diagonal entries are nonzero.
LU Factorization
• Assume that A is an m × n matrix that can be row reduced to echelon form,
without row interchanges. Then A can be written in the form of
A = LU
1
Caution: Some doesn’t require 1s along the diagonal entries.
LU Factorization
• Assume that A is an m × n matrix that can be row reduced to echelon form,
without row interchanges. Then A can be written in the form of
A = LU
• Suppose A can be reduced to an echelon form U using only row replacements that
add a multiple of one row to another row below it. In this case, there exist unit
lower triangular elementary matrices E1 , E2 , ..., Ep such that
Ep · · · E 1 A = U
• Then
A = (Ep · · · E1 )−1 U = LU
where
L = (Ep · · · E1 )−1
• It can be shown that products and inverse of unit lower triangular matrices are
also unit lower triangular. Thus L is unit lower triangular.
Example 8.1. Find an LU factorization of
2 4 −1 5 −2
−4 −5 3 −8 1
.
2 −5 −4 1 8
−6 0 7 −3 1
Example 8.1. Find an LU factorization of
2 4 −1 5 −2
−4 −5 3 −8 1
.
2 −5 −4 1 8
−6 0 7 −3 1
Solution.
2 4 −1 5 −2 1 0 0 0 2 4 −1 5 −2
−4 −5 3 −8 1 −2 1 0 0
0 3 1 2 3
=
2 −5 −4 1 8 1 −3 1 0 0 0 0 2 1
−6 0 7 −3 1 −3 4 2 1 0 0 0 0 5
Practice 8.2. Let
1 2 3 2
6 9
A= and B = 1 3 2 1
4 5
5 0 1 3