Top Banner
Chapter 9.1 = LU Decomposition MATH 264 Linear Algebra
22

Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Dec 18, 2015

Download

Documents

Claude Craig
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Chapter 9.1 =LU Decomposition

MATH 264 Linear Algebra

Page 2: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Introduction:LU Decomposition is very useful when we have large

matrices n x n and if we use gauss-jordan or the other methods, we can get errors.

Computers use this method because of roundoff errors, memory usage, and speed concerns

Page 3: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.
Page 4: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Method of LU Decomposition:1) Rewrite the system Ax = b as LUx = b

2) Define a new n x 1 matrix y by Ux = y

3) Use Ux = y to rewrite LUx = b as Ly = b and solve the

system for y

4) Substitute y in Ux = y and solve for x

Page 5: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Explanation on the methodThis procedure replaces the single linear system ax = b by a pair of linear systems

that must be solved in succession. However, since each of these systems has a triangular coefficient matrix, it generally turns out to involve no more computation to solve the two systems than to solve the original system directly.

Page 6: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.
Page 7: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.
Page 8: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.
Page 9: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Finding LU DecompositionsThe previous example shows that once an LU-

decomposition of A is obtained, a linear system Ax = b can be solved by one forward substitution and one backward substitution.

The main advantage of this method over Gaussian and Gauss-Jordan elimination is that it “decouples” A from b so that for solveing a linear systems with same coefficient matrix A the work in factoring that matrix need only be performed once.

Page 10: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Finding LU Decomposition CONTINUED…Such sequences occur in problems in which the matrix

A remains fixed but the matrix b varies over time.Not every square matrix has an LU-decompositionHowever, if it is possible to reduce a square matrix A to

REF by Gaussian elimination (without performing any row exchanges) then A will have an LU-decomposition.

Page 11: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Solution To obtain an LU-decomposition A = LU we will reduce A to REF form U using Gaussian elimination and then calculate L from it. Steps are shown below:

Continued next slide

Page 12: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Continued next slide

Page 13: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Continued next slide

Page 14: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.
Page 15: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Continued next slide

Page 16: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.
Page 17: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Constructing LU-Decomposition:1) Reduce A to a REF form U by Gaussian elinmination

without row exchanges, keeping track of the multipliers used to introduce the leading 1s and multipliers used to introduce the zeros below the leading 1s

2) In each position along the main diagonal of L place the reciprocal of the multiplier that introduced the leading 1 in that position in U

3) In each position below the main diagonal of L place negative of the multiplier used to introduce the zero in that position in U

4) Form the decomposition A = LU

Page 18: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Continued next slide

Page 19: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.
Page 20: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

LU-Decompositions are not unique

Page 21: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Computer Application: PLU-Decomposition

Page 22: Introduction: LU Decomposition is very useful when we have large matrices n x n and if we use gauss-jordan or the other methods, we can get errors. Computers.

Questions to Get DoneSuggested practice problems (11th edition)

Section 9.1 #1-7 odd questions