Presentation is loading. Please wait.

Presentation is loading. Please wait.

Numerical Computation and Optimization

Similar presentations


Presentation on theme: "Numerical Computation and Optimization"— Presentation transcript:

1 Numerical Computation and Optimization
Solution of Linear Algebraic Equations LU Decomposition By Assist Prof. Dr. Ahmed Jabbar

2 LU Decomposition Method [A] = [L][U] where
For most non-singular matrix [A] that one could conduct Naïve Gauss Elimination forward elimination steps, one can always write it as [A] = [L][U] where [L] = lower triangular matrix [U] = upper triangular matrix

3 LU Decomposition How can this be used? Given [A][X] = [C]
Decompose [A] into [L] and [U] Solve [L][Z] = [C] for [Z] Solve [U][X] = [Z] for [X]

4

5 Method: [A] Decomposes to [L] and [U]
[U] is the same as the coefficient matrix at the end of the forward elimination step. [L] is obtained using the multipliers that were used in the forward elimination process

6 Using the Forward Elimination Procedure of Gauss Elimination
Finding the [U] matrix Using the Forward Elimination Procedure of Gauss Elimination Step 1:

7 Finding the [U] Matrix Matrix after Step 1: Step 2:

8 Using the multipliers used during the Forward Elimination Procedure
Finding the [L] matrix Using the multipliers used during the Forward Elimination Procedure From the first step of forward elimination

9 Finding the [L] Matrix From the second step of forward elimination

10 Does [L][U] = [A]? ?

11 Using LU Decomposition to solve SLEs
Solve the following set of linear equations using LU Decomposition Using the procedure for finding the [L] and [U] matrices

12 Example Set [L][Z] = [C] Solve for [Z]

13 Example Complete the forward substitution to solve for [Z]

14 Example Set [U][X] = [Z] Solve for [X] The 3 equations become

15 Example Substituting in a3 and using the second equation
From the 3rd equation

16 Example Substituting in a3 and a2 using the first equation
Hence the Solution Vector is:


Download ppt "Numerical Computation and Optimization"

Similar presentations


Ads by Google