


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















Emre Mengi Department of Mathematics University of California at San Diego
Computation of an LU Factorization (Section 2.5) :
n×n
n×n
n×n
L is a lower triangular matrix
U is an upper triangular matrix
A
L
U
Row interchange
r 1 ↔ r 3 E (^) I )
Let A =
¯a 1
¯a 2
and B =
b 1 b (^2)
A
B
Ab 1 Ab (^2)
column−wise product
¯a 1 b 1 ¯a 1 b (^2)
¯a 2 b 1 ¯a 2 b (^2)
entry−wise product
Let A =
¯a 1
¯a 2
. . .
¯am
and B =
b 1 b 2... b (^) p
Three different ways of performing matrix multiplication AB
Ab 1 Ab 2... Ab (^) p
column−wise
¯a 1 b 1 a¯ 1 b 2... ¯a 1 b (^) p
¯a 2 b 1 a¯ 2 b 2... ¯a 2 b (^) p
. . .
¯am b 1 ¯am b 2... a¯m b (^) p
entry−wise
¯a 1 B
¯a 2 B
. . .
¯am B
row−wise
Row operations as multiplications with elementary
matrices from the left
Row scaling
ES
¯a 1
¯a 2
¯a 3
A
¯a 1
¯a 2
3¯a 3
A (^) S
Performing the matrix multiplication ES A = A (^) S
is equivalent to
the row scaling
r 3 := 3r 3 A (^) S
Row interchange
EI
¯a 1
¯a 2
¯a 3
A
¯a 3
¯a 2
¯a 1
A (^) I
Performing the matrix multiplication EI A = A (^) I
is equivalent to
the row interchange (A
r 1 ↔ r 3 A (^) I ).
Inverse of an elementary matrix is another elementary
matrix canceling the effect of the elementary matrix.
Row scaling: The inverse of ES must satisfy E
− 1 S E ︸︷︷^ S^ A︸
A (^) S
r 3 := 3r 3 A (^) S )
ES
¯a 1
¯a 2
3¯a 3
A (^) S
r 3 := r 3 / 3 A)
E − 1 S
¯a 1
¯a 2
3¯a 3
A (^) S
Row interchange
r 1 ↔ r 3 A (^) I )
EI
¯a 3
¯a 2
¯a 1
A (^) I
r 1 ↔ r 3 A)
E − 1 I
¯a 3
¯a 2
¯a 1
A (^) I
The row reduction process can be viewed as
multiplication with elementary matrices from the left until
an echelon (reduced echelon) form is obtained.
E (^) k E (^) k− 1... E 1 A = U
E (^) j : Elementary matrix corr. to the jth row operation
U : An echelon form of A (upper triangular)
Example:
A
r 2 := r 2 − r 1
r 3 := r 3 − r 2
U
Important observations
The elementary matrices corresponding to the row
operations applied to reduce into an echelon from are
lower triangular as long as row-interchange operation is
not neeeded.
The inverse of a lower triangular elementary matrix is
another lower triangular elementary matrix.
− 1 1 =
− 1 2 =
The product of two lower triangular elementary matrices
is a lower triangular matrix and easy to compute.
E 1 −^1
E 2 −^1
E 1 − 1 E 2 −^1
equivalently
A
L=E 1 − 1 E 2 −^1
U
Algorithm to compute an LU factorization of an n × n
matrix
elementary matrices corresponding to the row operations.
Let
E (^) k E (^) k− 1... E 1 A = U
where E (^) j are the elementary matrices and U is an
echelon form.
operation is needed) is given by
− 1 1 E^
− 1 2... E^
− 1 k ︸ ︷︷ ︸ L: lower triangular