Why Use LU Factorization Despite Increased Matrix Density?

Click For Summary
SUMMARY

LU factorization is a mathematical technique that decomposes a matrix A into an upper triangular matrix U and a lower triangular matrix L. In MATLAB, the sparsity of the original matrix A compared to the combined matrices L and U often results in a denser representation. This method is primarily utilized to efficiently solve linear equations and find matrix inverses, particularly when combined with permutation strategies to enhance numerical stability. The increased density of L+U compared to A is a common observation and does not diminish the utility of LU factorization.

PREREQUISITES
  • Understanding of LU factorization and its mathematical foundations
  • Familiarity with MATLAB for matrix manipulation and visualization
  • Knowledge of Gaussian elimination and its application in solving linear equations
  • Concept of matrix sparsity and its implications in numerical methods
NEXT STEPS
  • Explore MATLAB's LU decomposition functions and their parameters
  • Research numerical stability techniques in LU factorization, including pivoting
  • Learn about the implications of matrix density in computational efficiency
  • Investigate alternative matrix factorization methods, such as QR decomposition
USEFUL FOR

Mathematicians, data scientists, engineers, and anyone involved in numerical analysis or computational mathematics will benefit from this discussion on LU factorization and its applications.

Natalie89
Messages
28
Reaction score
0
Hello Everyone,

I have a question about LU factorization.

I understand that LU factorization provides an upper and lower traingular matrices of matrix A. In matlab, a large matrix was generated, and we plotted the sparsity of A and then the sparsity of L+U and it was less sparse.

My question is:

Why would we want to do this? Is it used to just save time when finding the inverse of a matrix?
 
Physics news on Phys.org
Natalie89 said:
Hello Everyone,

I have a question about LU factorization.

I understand that LU factorization provides an upper and lower traingular matrices of matrix A. In matlab, a large matrix was generated, and we plotted the sparsity of A and then the sparsity of L+U and it was less sparse.

My question is:

Why would we want to do this? Is it used to just save time when finding the inverse of a matrix?

Usually inverting a matrix is just about the worst way of solving a set of linear equations (unless the problem has some special structure). LU decomposition is nothing other than the familiar high-school method of solving the equations by Gaussian elimination, with the difference that we store the steps we use (so we can re-use them later if we want); these steps are put into the matrix L. Really good programs do not use "pure" LU decomposition, but may apply permutations as well to get results that are numerically more stable by avoiding pivots on small numerical values. It not uncommon for the final results to be "denser" than the original matrix, as you have observed.

RGV
 

Similar threads

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