0% found this document useful (0 votes)
16 views33 pages

LU Decomposition Ver. 1

Sample problems and solutions for solving Matrices using LU decomposition.

Uploaded by

Alie Lee Geolaga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views33 pages

LU Decomposition Ver. 1

Sample problems and solutions for solving Matrices using LU decomposition.

Uploaded by

Alie Lee Geolaga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

LU

Decomposition
WMSU

1
LU Decomposition

2
LU Decomposition

LU factorization is another name as LU


decomposition, as the both titles indicate that a
given matrix can be expressed in two smaller
matrices, which include an upper triangular
matrix and a lower triangular matrix.

The product of these two matrices reveals the


given matrix.

3
LU Decomposition

4
LU Decomposition
Decomposition – is actually factoring the coefficient
matrix A into lower triangular matrix L and upper triangular
matrix U as shown below:

5
LU Decomposition
Step 1. Perform row operations on matrix A until only the upper
triangular elements remain, and the other elements are zero. The
resulting matrix is the matrix U.

6
LU Decomposition
Step 1. Perform row operations on matrix A until only the upper
triangular elements remain, and the other elements are zero. The
resulting matrix is the matrix U.

1st

𝑎21
𝑅2 − 𝑅1
𝑎11
𝑎31
𝑅3 − 𝑅1
𝑎11

7
LU Decomposition
Step 1. Perform row operations on matrix A until only the upper
triangular elements remain, and the other elements are zero. The
resulting matrix is the matrix U.

2nd


𝑎32
𝑅3 − 𝑅2 ′
𝑎22

8
LU Decomposition
Step 1. Perform row operations on matrix A until only the upper
triangular elements remain, and the other elements are zero. The
resulting matrix is the matrix U.

9
LU Decomposition
Step 2. The lower triangular matrix is obtained by the flowing
formulas:

, the resulting matrix is


matrix L – the lower
triangular matrix.

10
LU Decomposition
Step 2. The lower triangular matrix is obtained by the flowing
formulas:

11
LU Decomposition
Step 2. The lower triangular matrix is obtained by the flowing
formulas:

12
LU Decomposition
Step 2. The lower triangular matrix is obtained by the flowing
formulas:

13
LU Decomposition
Step 2. The lower triangular matrix is obtained by the flowing
formulas:

14
EXAMPLE

15
Example 1:Derive an LU decomposition of the matrix A shown below:

Solution:
Step 1. Perform row operations to find the upper triangular matrix U:

16
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Step 1. Perform row operations to find the upper
triangular matrix U:

𝑎21
𝑅2 − 𝑅1
𝑎11
𝑎31
𝑅3 − 𝑅1
𝑎11

17
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Step 1. Perform row operations to find the upper
triangular matrix U:

0.1 𝑎21
𝑅2 − 𝑅1 𝑅2 − 𝑅1
3 𝑎11
0.3 𝑎31
𝑅3 − 𝑅1 𝑅3 − 𝑅1
3 𝑎11

18
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Step 1. Perform row operations to find the upper
triangular matrix U:


−0.19 𝑎32
𝑅3 − 𝑅2 𝑅3 − 𝑅2 ′
7.00333 𝑎22

19
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Step 2. Determine the lower triangular matrix
𝑎21
𝑓21 =
𝑎11
0.1
𝑓21 = = 0.03333333
3
𝑎31
𝑓31 =
𝑎11
0.3
𝑓31 = = 0.1000000
3
𝑎′32
𝑓32 =
𝑎′22

20
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Step 2. Determine the lower triangular matrix
𝑎21
𝑓21 =
𝑎11
0.1
𝑓21 = = 0.03333333
3
𝑎31
𝑓31 =
𝑎11
0.3
𝑓31 = = 0.1000000
3
𝑎′32
𝑓32 =
𝑎′22
−0.19
𝑓32 = = −0.0271300
7.00333
21
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Step 2. Determine the lower triangular matrix

0.1
𝑓21 = = 0.03333333
3
0.3
𝑓31 = = 0.1000000
3
−0.19
𝑓32 = = −0.0271300
7.00333

22
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Checking can be done by multiplying LU as shown below:

23
Example 1:Derive an LU decomposition of the matrix A shown below:
Solution:
Checking can be done by multiplying LU as shown below:

where the minor discrepancies are due to round-off.

24
Example 2 Solve the system of linear equation using LU decomposition for the system in
Example 1.

25
LU Decomposition

26
Example 2 Solve the system of linear equation using LU decomposition for the system in
Example 1.
Solution:
Step 1. Solve for d from the matrix equation:

27
Example 2 Solve the system of linear equation using LU decomposition for the system in
Example 1.
Solution:
Step 1. Solve for d from the matrix equation:

𝑑1 = 7.85
𝑑2 = −19.3 − 0.0333333 7.85 = −19.5617
𝑑3 = 71.4 − 0.1 7.85 + 0.02713 −19.5617 = 70.0843

28
Example 2 Solve the system of linear equation using LU decomposition for the system in
Example 1.
Solution:
Step 1. Solve for d from the matrix equation:

𝑑1 = 7.85
𝑑2 = −19.3 − 0.0333333 7.85 = −19.5617
𝑑3 = 71.4 − 0.1 7.85 + 0.02713 −19.5617 = 70.0843

29
Example 2 Solve the system of linear equation using LU decomposition for the system in
Example 1.
Solution:
Step 2. Solve for the variables {x} from the matrix equation:

30
LU Decomposition

31
Example 2 Solve the system of linear equation using LU decomposition for the system in
Example 1.
Solution:
Step 2. Solve for the variables {x} from the matrix equation:

which can be solved by back substitution for the final solution,

32
ASSIGNMENT #3:
Instruction :
• Place in a long bond paper along with Cover page.
• Solve with Complete/detailed solution.
• Please box your final answers.
PROBLEM:
Solve using LU decomposition:

Find:
1. Upper Triangular Matrix [U].
2. Lower Triangular Matrix [L].
3. Intermediate Vector [D].
4. Unknown Matrix [X].

33

You might also like