Lesson03 PDF
Lesson03 PDF
LU Decomposition
Pij Pij =I
Ei (c)Ei ( 1c ) =I
Eij (c)Eij (−c) = I
Ax = b
where
a11 a12 ... a1n
a21 a22 ... a2n
A=
...
,
... ... ...
am1 am2 ... amn
x b
1 1
x2 b2
· ·
x=
· , b=
· .
· ·
xn bm
Thus,
1 2 3
4 5 6
7 8 9
1 2 3
= E21 (4)E31 (7)E32 (2) 0 −3 −6
0 0 0
Remark: In our algorithm, we began with the top
row and worked our way down. This implies that
the elementary matrices E32 (−2), E31 (−7), E21 (−4)
(and hence also E21 (4), E31 (7), E32 (2)) are obtained
from I introducing no changes above the diagonal.
Therefore, their product, just like themselves, is
lower triangular:
1 0 0 1 0 0 1 0 0
= 4 1 00 1 00 1 0
0 0 1 7 0 1 0 2 1
1 0 0
= 4 1 0
7 2 1
Note that the entries l21 , l31 , l32 of L below the di-
agonal are exactly the multipliers 4, 7, and 2 in the
elementary matrices E21 (4), E31 (7), E32 (2) above.
Therefore, if no row exchanges are needed, we may
write
A = LU
where L is lower triangular with 1’s on the diagonal
and U is upper triangular. This is the LU decompo-
sition of A.
ln1 ln2 . . . 1
d1 0 ... 0 1 u12 /d1 . . . u1n /d1
0 d2 ... 0 . . . u2n /d2
0 1
... ... ... ... ... ... ... ...
0 0 . . . dn 0 0 ... 1
Example:
1 1 1 1 1 1 1 1 1
A = 1 1 3 → 0 0 2 → 0 3 6
2 5 8 0 3 6 0 0 2