Docsity

LU Factorization: Understanding the Matrix Decomposition Process, Slides of Operating Systems

Toggle sidebar
bg1
THE LU FACTORIZATION [2.5]
The LU factorization – Revisit Gaussian Elimination
äBack to Gaussian Elimination – see Set 2 of lect. notes.
äMain operation used: scaling and adding rows.
Step 1:
row2:= row2−1
2row1:row3:= row3−1
2row1:
2 4 4 2
0 1 −1 0
1 5 6 −6
2 4 4 2
0 1 −1 0
03 4 −7
äThis transformation related to the Step 1 is equivalent
to performing this product:
10 0
−1
210
−1
201
×
24 4 2
13 1 1
15 6 −6
=
24 4 2
01−10
03 4 −7
J-2
äHint: When doing the product C=AB how are the
rows of Crelated to those of B?
äMatrix on the left is called an Elimination matrix
[A, b]→[E1A, E1b]
äDistinct from the elementary elimination matrices seen
earlier
äNew system A1x=b1.
Step 2 row3:= row3−3×row2
äEquivalent to
1 0 0
0 1 0
0−3 1
×
24 4 2
01−10
03 4 −7
=
24 4 2
01−10
00 7 −7
J-3
The LU factorization
äNow ignore the right-hand side from the transformations.
Observation: Gaussian elimination amounts to perform-
ing n−1successive Gaussian transformations, i.e.,
multiplications with elimination matrices that have ones
on the diagonal and the negatives of the multipliers in
the column being eliminated.
äSet A0≡A
A1=E1A0
A2=E2A1=E2E1A0
A3=E3A2=E3E2E1A0
·· · =···
An−1=En−1En−2···E2E1A0
J-4
Docsity.com
pf3

Partial preview of the text

Download LU Factorization: Understanding the Matrix Decomposition Process and more Slides Operating Systems in PDF only on Docsity!

THE LU FACTORIZATION [2.5]

The LU factorization – Revisit Gaussian Elimination

ä Back to Gaussian Elimination – see Set 2 of lect. notes.

ä Main operation used: scaling and adding rows.

Step 1:

row 2 := row 2 −

1 2

row 1 : row 3 := row 3 −

1 2

row 1 :

ä This transformation related to the Step 1 is equivalent

to performing this product:

1 2

1 2

×

J-

ä Hint: When doing the product C = AB how are the

rows of C related to those of B?

ä Matrix on the left is called an Elimination matrix

[A, b] → [E 1 A, E 1 b]

ä Distinct from the elementary elimination matrices seen

earlier

ä New system A 1 x = b 1.

Step 2 row 3 := row 3 − 3 × row 2

ä Equivalent to

×

The LU factorization

ä Now ignore the right-hand side from the transformations.

Observation: Gaussian elimination amounts to perform-

ing n − 1 successive Gaussian transformations, i.e.,

multiplications with elimination matrices that have ones

on the diagonal and the negatives of the multipliers in

the column being eliminated.

ä Set A 0 ≡ A

A 1 = E 1 A 0

A 2 = E 2 A 1 = E 2 E 1 A 0

A 3 = E 3 A 2 = E 3 E 2 E 1 A 0

An− 1 = En− 1 En− 2 · · · E 2 E 1 A 0

ä An− 1 ≡ U is an upper triangular matrix.

ä We have U = En− 1 En− 2 · · · E 2 E 1 A or :

A = E

− 1 1

E

− 1 2

E

− 1 3

· · · E

− 1 n− 1 ︸ ︷︷ ︸ L

U

A = LU with L = E

− 1 1 E

− 1 2 E

− 1 3 · · ·^ E

− 1 n− 1 U^ =^ An−^1

ä Called the LU decomposition (or factorization) of A.

ä Note: L is Lower triangular, An− 1 is upper triangular

ä U is the last matrix obtained in GE

ä L =??

J-

So: How do we get L?

ä Use: L = E

− 1 1 E

− 1 2 E

− 1 3 · · ·^ E

− 1 n− 1? Too complex!

ä There is a simpler way:

The L factor is a lower triangular matrix with ones on

the diagonal. Column k of L contains the multipliers lik

used to modify rows k + 1, k + 2, · · · , n in the k-th step

of Gaussian elimination.

ä A lower triangular matrix with ones on diagonal is called

a ‘unit’ lower triangular matrix.

  • LU factorization of the matrix A =

J-

LU factorization - an example

Example: Let A =

Step 1 Elimination matrix E 1 and its inverse:

E 1 =

E

− 1 1

ä Result of elimination: (^) A 1 = E 1 ∗A =

Step 2 Elimination matrix and its inverse:

E 2 =

E

− 1 2

ä Result of elimination: (^) A 2 = E 2 ∗A 1 =