LU Fetorization (L7)
LU Fetorization (L7)
permutation matrix as well. We can relate the LU decomposition method with the matrix
form of the Gaussian elimination method of solving a system of linear equations. In this
article, you will learn the LU Decomposition method and the solved example in detailed
steps.
Now follow the steps given below to solve the above system of linear
equations by LU Decomposition method.
LUX = B….(1)
LY = B
LU Decomposition Example
Let’s understand how to solve the system of linear equations in three variables by LU
Decomposition method with the help of an solved example given below.
Example:
Solution:
Given system of equations are:
x1 + x2 + x3 = 1
3x1 + x2 – 3x3 = 5
x1 – 2x2 – 5x3 = 10
l21u11 = 3,
l21u12 + u22 = 1,
u21u13 + u23 = -3
l31u11 = 1,
Step 2: LUX = B
Step 3: Let UX = Y
Thus,
So,
y1 = 1
3y1 + y2 = 5
y1 + (3/2)y2 + y3 = 10
y1 = 1, y2 = 2, y3 = 6
x1 + x 2 + x 3 = 1
-2x2 – 6x3 = 2
3x3 = 6
x3 = 2, x2 = -7 and x1 = 6
Therefore, the solution of the given system of equations is (6, -7, 2).
DOOLITTLE METHOD;
LU Decomposition Method Practice Problems
1. Solve the following equations by LU decomposition method.
6x1 + 18x2 + 3x3 = 3, 2x1 + 12x2 + x3 = 19, 4x1 + 15x2 + 3x3 = 0