Docsity

Lecture 13: Computation of an LU Factorization - Prof. Emre Mengi, Study notes of Linear Algebra

Toggle sidebar
bg1
Math 20F (Fall 2008) - Lecture 13
Emre Mengi
Department of Mathematics
University of California at San Diego
Lecture 13 - Computation of an LU factorization – p.1/26
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Lecture 13: Computation of an LU Factorization - Prof. Emre Mengi and more Study notes Linear Algebra in PDF only on Docsity!

Math 20F (Fall 2008) - Lecture 13

Emre Mengi Department of Mathematics University of California at San Diego

[email protected]

Outline

Computation of an LU Factorization (Section 2.5) :

A

n×n

= L

n×n

U

n×n

L is a lower triangular matrix

U is an upper triangular matrix

A

L

U

Elementary Matrices

Row interchange

E I =

 (I 3

r 1 ↔ r 3 E (^) I )

Matrix Multiplication (revisited)

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

[

]

Matrix Multiplication (revisited)

Let A =

¯a 1

¯a 2

. . .

¯am

and B =

[

b 1 b 2... b (^) p

]

Three different ways of performing matrix multiplication AB

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

Elementary Matrices

Row operations as multiplications with elementary

matrices from the left

Row scaling

ES

¯a 1

¯a 2

¯a 3

A

[

]

A

[

]

A

[

]

A

¯a 1

¯a 2

3¯a 3

A (^) S

Performing the matrix multiplication ES A = A (^) S

is equivalent to

the row scaling

A

r 3 := 3r 3 A (^) S

Elementary Matrices

Row interchange

EI

¯a 1

¯a 2

¯a 3

A

[

]

A

[

]

A

[

]

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 ).

Elementary Matrices

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

= A.

(A

r 3 := 3r 3 A (^) S )

ES

A =

¯a 1

¯a 2

3¯a 3

A (^) S

(A S

r 3 := r 3 / 3 A)

E − 1 S

¯a 1

¯a 2

3¯a 3

A (^) S

= A

Elementary Matrices

Row interchange

(A

r 1 ↔ r 3 A (^) I )

EI

A =

¯a 3

¯a 2

¯a 1

A (^) I

(A I

r 1 ↔ r 3 A)

E − 1 I

¯a 3

¯a 2

¯a 1

A (^) I

= A

Computation of an LU factorization

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

Computation of an LU factorization

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.

E 1 =

 E^2 =

The inverse of a lower triangular elementary matrix is

another lower triangular elementary matrix.

E

− 1 1 =

 E^

− 1 2 =

Computation of an LU factorization

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

Computation of an LU factorization

equivalently

A

L=E 1 − 1 E 2 −^1

U

Computation of an LU factorization

Algorithm to compute an LU factorization of an n × n

matrix

  1. Row-reduce A into an echelon form keeping track of the

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.

  1. An LU factorization for A (assuming no row-interchange

operation is needed) is given by

A = E

− 1 1 E^

− 1 2... E^

− 1 k ︸ ︷︷ ︸ L: lower triangular

U