LU Factorization Homework: Need Clarification on U & L

  • Thread starter Thread starter PencilnPaper
  • Start date Start date
  • Tags Tags
    Factorization
Click For Summary

Homework Help Overview

The discussion revolves around LU factorization, specifically the decomposition of a matrix A into its lower triangular matrix (L) and upper triangular matrix (U). Participants are seeking clarification on the properties of U, the process of obtaining L from U, and the implications of using elementary matrices during the factorization process.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the necessity of having ones on the diagonal of U and the uniqueness of the LU decomposition. There are questions about the process of obtaining L from U and the role of elementary matrices in this context. An example is used to illustrate the steps involved in the factorization.

Discussion Status

The conversation is ongoing, with some participants providing insights into the relationship between L and U, while others express confusion regarding the uniqueness of the decomposition and the role of permutation matrices. There is a mix of interpretations being explored, particularly concerning the use of partial pivoting.

Contextual Notes

Participants are navigating the complexities of LU factorization, including the implications of different methods and assumptions, such as the necessity of pivoting to avoid division by zero. The discussion reflects varying levels of understanding regarding the definitions and processes involved in LU decomposition.

PencilnPaper
Messages
6
Reaction score
0

Homework Statement



My book is awful and I need clarification on a few things regarding LU factorization:
-If I am trying to express matrix A as a product of its upper triangular matrix (U) and the lower triangular matrix (L). I understand that I should find U first by Gauss-Jordon elimination method. But does U have to have all 1s in the diagonal or is U found once you have all zeros below the diagonal regardless of whether you have all ones in the diagonal or not?

-Once you have U, to get L, I understand that you need to multiply the inverses of all elementary matrices used to get U. But I'm unclear on the quick process of getting the inverses of the elementary matrices of a 3x3 square matrix (without having to go through Gauss Jordon elimination method again on each one).

Help?

Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
Okay, first the LU decomposition is typically used to solve a system of linear equations, right? now in the process of Gaussian elimination for a system of lin. eqs. we use multipliers which when applied to a matrix A, (the coefficient matrix) perform the function of reducing A to a unit upper triangular matrix. in order to solve the system it is not necessary for the coefficients on the diagonal to be 1 once the operation has been perform but this is what makes the decomposition UNIQUE. The permutation matrix is there to attempt to make sure that we don't divide by zero during the calculation of multipliers. It will come in handy when we are actually confronted with a system of the form Ax=b because we need to remember how we changed A so that we can change b as well during the backward subsitution phase. The inverse of an elementary matrix can be obtained from the reverse operation on the identity matrix.
 
note, that L and U can be obtained from A after A has been reduced to a lower triangular system with multipliers on its upper triangular half in which can we take U to be the upper triangle part of the modified matrix A'. and L the lower triangle part.
 
I'm still a little fuzzy, so can I use an example?

Let's say I have the coefficient matrix:

\left(\begin{array}{ccc}{1&-1&3\\2&0&1\\3&0&0\end{array}\right)

I know I can perform 3 elementary operations to get the following:

\left(\begin{array}{ccc}{1&-1&3\\0&2&-5\\0&0&-3/2\end{array}\right)

I did these elem. operations in this order to get the above matrix:
-2R1 + R2 replace R2
-3R1 + R3 replace R3
(-3/2)R2 +R3 replace R3

I now have an Upper Triangular Matrix. If I take the inverses of the elementary matrices it took to get to this point I would have:

\left(\begin{array}{ccc}{1&0&0\\2&1&0\\0&0&1\end{array}\right)

\left(\begin{array}{ccc}{1&0&0\\0&1&0\\3&0&1\end{array}\right)

\left(\begin{array}{ccc}{1&0&0\\0&1&0\\0&3/2&1\end{array}\right)

Right?
 
OK, duh...I think I just figured out the rest (guess i had to actually multiply it all out to see what happens)

so my lower triangular matrix turns into:

\left(\begin{array}{ccc}{1&0&0\\2&1&0\\3&3/2&1\end{array}\right)


And then when I multiply this lower triangular with the previous upper triangular, I get my original matrix.
 
Yes, so you now have a lower triangular matrix, L, and an upper triangular matrix, U such that LU= A.
 
okay now I'm confused. you end up with PA=LU, right? or A=((P^-1)L)U. anyway i don't think your decomposition is unique because you stopped the elementary operations before you came up against a unit upper triangle.
 
rsa58, I don't know what you are asking. What does P stand for in your equation?
 
I guess what I'm asking is, what form of LU decomposition are you trying to perform, your version is incorrect of you are seeking a unique LU decomposition. what class is this for? P is known as a permutation matrix. It is an elementary matrix used for pivoting the rows and columns of A. I guess you are not using partial pivoting in your problem. Usually, if you are trying to write an algorithm for LU you must use partial pivoting (or some other method) which helps avoid divison by zero when calculating the multipliers.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
3K
Replies
3
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
10K
  • · Replies 22 ·
Replies
22
Views
3K