Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 10 and Matrix Inversion LU Decomposition

Similar presentations


Presentation on theme: "Chapter 10 and Matrix Inversion LU Decomposition"— Presentation transcript:

1 Chapter 10 and Matrix Inversion LU Decomposition
Credit: Prof. Lale Yurttas, Chemical Eng., Texas A&M University

2 Solve A . x = b (system of linear equations)
Decompose A = L . U * L : Lower Triangular Matrix U : Upper Triangular Matrix

3 [L][U]=[A]  [L][U]{x}={b}
To solve [A]{x}={b} [L][U]=[A]  [L][U]{x}={b} Consider [U]{x}={d} [L]{d}={b} Solve [L]{d}={b} using forward substitution to get {d} Use back substitution to solve [U]{x}={d} to get {x} Both phases, (1) and (2), take O(n2) steps.

4 [ L ] [ U ]

5 [ U ] Gauss Elimination  
Coefficients used during the elimination step

6 [ L . U ]

7 [ L ] [ U ] Example: A = L . U Gauss Elimination Coefficients

8 [ U ] Example: A = L . U Gauss Elimination with pivoting Coefficients

9 LU decomposition Gauss Elimination can be used to decompose [A] into [L] and [U]. Therefore, it requires the same total FLOPs as for Gauss elimination: In the order of (proportional to) N3 where N is the # of unknowns. lij values (the factors generated during the elimination step) can be stored in the lower part of the matrix to save storage. This can be done because these are converted to zeros anyway and unnecessary for the future operations. Provides efficient means to compute the matrix inverse

10 Solve in n=3 major phases
MATRIX INVERSE A. A-1 = I Solve in n=3 major phases Each solution takes O(n2) steps. Therefore, The Total time = O(n3) Solve each one using A=L.U method  e.g. Solve Problem Solution file is available on the web


Download ppt "Chapter 10 and Matrix Inversion LU Decomposition"

Similar presentations


Ads by Google