Understanding L U Factorization to Solving Linear Systems

  • Context: Undergrad 
  • Thread starter Thread starter symbolipoint
  • Start date Start date
  • Tags Tags
    Factorization
Click For Summary

Discussion Overview

The discussion centers on understanding L U matrix factorization, its application in solving linear systems, and the perceived advantages over elementary row operations. Participants express confusion about the process and the significance of the L and U matrices, as well as the role of elementary matrices in the factorization.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Homework-related

Main Points Raised

  • One participant expresses confusion about the process of L U factorization and questions whether using elementary row operations to solve Ax=b would be easier.
  • Another participant outlines several advantages of LU decomposition, including ease of solving equations, inverting matrices, and calculating determinants more efficiently.
  • A participant explains that LU decomposition is particularly beneficial when solving multiple systems of equations, as it reduces the computational complexity from O(M*N³) to O(M*N²) after the initial decomposition.
  • One participant provides a detailed example of LU decomposition without pivoting, illustrating how to derive the L and U matrices from a given matrix A using Crout's algorithm.
  • A later reply acknowledges the complexity of the explanation provided and mentions the availability of YouTube videos that reference the identity matrix in relation to elementary matrices, indicating a need for further clarification.

Areas of Agreement / Disagreement

Participants generally agree on the utility of LU decomposition but express varying levels of understanding and clarity regarding the process and its implementation. There is no consensus on the best approach to learning or applying LU factorization.

Contextual Notes

Some participants highlight the challenges of understanding the selection of elements in elementary matrices and the implications of pivoting in LU decomposition. There are indications of missing assumptions and unresolved steps in the mathematical explanations provided.

symbolipoint
Homework Helper
Education Advisor
Gold Member
Messages
7,682
Reaction score
2,114
I'm still confused about L U matrix factorization. I'm trying to understand how to do it and why doing so is valuable. Would elementary row operations to solve Ax=b be easier?

I'm not in any class. I am looking in the Larson & Edwards Linear Algebra book. Chapter 2. I have trouble following the different elementary matrices that are used in finding the U and the L matrices. I am confused about how certain numbers are selected to be part of each elementary matrix, the ones that have mostly the 1's along the main diagonal, and that some in the main diagonal are not 1's. Then, there is some other matrix containing other elements that came from using the elementary matrices.
 
Physics news on Phys.org
LU is useful for a couple reasons. It can make solving some equations easier, it can make inverting a matrix easier, it can make calculating the determinant a little faster, I am sure there are more but just a couple off the top of my head.

For the U matrix, you should just get the reduced echelon form. For the L matrix you should be getting the numbers that you would need to row reduce from to A to U and then with the entries of the identity matrix on the diagonal.
 
The main advantage of LU decomposition over simpler methods arises when you have many b's. Suppose there are M b's that you need to solve. Using simple methods requires solving Ax=b for each b. This is an O(M*N3) problem. With LU decomposition, solving Ax=LUx=b becomes two O(N2) problems, first solving Ly=b and then solving Ux=y. With many b's, this becomes an O(M*N2) problem. The O(N3) problem of decomposing A into A=LU is a one-time cost that vanishes against the problem of solving Ax=b for M b's.
 
It might help to understand it a different way, when there is no pivoting. Write the matrix equation out in full for a small example:
$$\begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33}\end{bmatrix} =
\begin{bmatrix}1 \\ l_{21} & 1 \\ l_{31} & l_{32} & 1\end{bmatrix}
\begin{bmatrix} u_{11} & u_{12} & u_{13} \\ & u_{22} & u_{23} \\ & & u_{33}\end{bmatrix}
$$
Now work through A term by term, and see what the LU product for that term is:

##a_{11} = u_{11}##
##a_{12} = u_{12}##
##a_{13} = u_{13}##
##a_{21} = l_{21}u_{11}##, and we already know ##u_{11}##, so we can find ##l_{21}##
##a_{22} = l_{21}u_{12} + u_{22}##, and the only unknown is ##u_{22}##
and so on.
This is Crout's algorithm for the LU decomposition without pivoting.

Textbooks do seem to enjoy finding complcated ways to explain something that is really quite simple. Even with pivoting, it is just a systematic way of doing row operations on A, and remembering what you did, so you can do the same thing to the right hand side vector later.
 
AlephZero,
Your response is still complicated, but interesting. I'll need to recheck it from time to time. As for HOW to perform LU decomposition, there is a couple of youtube videos in which the presenter refers specificly to the identity matrix for each row operation to give each elementary matrix. Interesting and specific, but still not enough for me yet.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 3 ·
Replies
3
Views
5K