What is LU factorization?
Overview
Breaking the original matrix,
The equation can be represented in the matrices as follows:
Example
The following example depicts the result of LU factorization.
Method
Let's find the LU factorization of the following example:
Where
Step 1
Find the upper triangular matrix
Note: In the Gaussian elimination method,
1. All rows containing zeros must be at the bottom of the matrix.
2. The first non-zero entry of every row should be on the right side of the first non-zero entry of the previous row.
Perform the following operation:
The resulting matrix obtained is as follows:
Now, perform another operation to achieve the upper triangular matrix,
The resulting matrix obtained is as follows:
Step 2
Method 1
Calculate the lower triangular matrix using the equation
Method 2
Otherwise,
We will use the second method to clarify it further.
made zero, hence, we will replace it with the multiplier element 2. made zero, hence, we will replace it with the multiplier element -4. was already zero so it will remain the same.
The resulting matrix is as follows:
Step 3
- Given that
, we will replace with since . - Now in the equation
, replace with . - Solve the system of linear equations using the two equations
and .
Solving the first equation,
The solution matrix,
Solving the second equation,
The solution matrix,
Solve the following systems of equations:
6 + 18 + 3 = 3
2 + 12 + = 19
4 + 15 + 3 = 0
{3, -9, 12}
{1, -3, 7}
{-3, 3, -11}
{-2, -5, 13}
Applications
LU factorization is used in numerous applications such as:
- Finding the inverse of a matrix
- Finding the determinant of a matrix
- Finding current in a circuit
- Solving discrete dynamical system problems
Free Resources