Lab for the LU Factorization

Module for the LU Factorization

   Check out the new Numerical Analysis Projects page.

Part I involves the factorization A = LU .
Part II involves solving LU = B.

A = LU Factorization of the matrix A. If row interchanges are not needed to solve the linear system AX = B, then A has the LU factorization (illustrated with 4x4 matrices)
[Graphics:lu.txtgr1.gif]=[Graphics:lu.txtgr2.gif][Graphics:lu.txtgr3.gif]

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr4.gif]

Back Substitution. To solve the upper-triangular system:
[Graphics:lu.txtgr6.gif]
Proceed with the method only if all the diagonal elements are non-zero.
First compute [Graphics:lu.txtgr7.gif] and then use the rule
[Graphics:lu.txtgr8.gif]for k = n-1, n-2, ... , 1.

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr9.gif]

Forward Substitution. To solve the lower-triangular system:
[Graphics:lu.txtgr10.gif]
Proceed with the method only if all the diagonal elements are non-zero. Use the rule
[Graphics:lu.txtgr11.gif]for k = 1,2,...,n.

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr12.gif]
 
 

Report to be handed in.

Computer Problems.

 

Exercises 1-2 involve the A = LU Factorization of the matrix A.

Exercise 1. Find the LU factorization of the matrix A.

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr13.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr14.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr15.gif]

Exercise 2. Find the LU factorization of the matrix A.

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr16.gif]

Remark. To save typing, the matrix A can be generated with the command Table.

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr17.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr18.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr19.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr20.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr21.gif]
 

Exercises 3-6 involve back substitution and forward substitution.

Exercise 3. Solve the lower triangular linear system LY = B.

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr22.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr23.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr24.gif]

Exercise 4. Solve the upper triangular linear system UX = Y.

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr25.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr26.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr27.gif]

Exercise 5. Solve the linear system LUX = Y, where

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr28.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr29.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr30.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr31.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr32.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr33.gif]

Exercise 6. Solve the linear system LUX = Y, where

[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr34.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr35.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr36.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr37.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr38.gif]
[Graphics:lu.txtgr5.gif][Graphics:lu.txtgr39.gif]
 

 

 

(c) John H. Mathews, 1998