LU Decomposition LU Decomposition is another method to


![LU Decomposition Method For most non-singular matrix [A] that one could conduct Naïve Gauss LU Decomposition Method For most non-singular matrix [A] that one could conduct Naïve Gauss](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-3.jpg)
![How does LU Decomposition work? If solving a set of linear equations If [A] How does LU Decomposition work? If solving a set of linear equations If [A]](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-4.jpg)
![LU Decomposition How can this be used? Given [A][X] = [C] 1. Decompose [A] LU Decomposition How can this be used? Given [A][X] = [C] 1. Decompose [A]](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-5.jpg)
![When is LU Decomposition better than Gaussian Elimination? To solve [A][X] = [B] Table. When is LU Decomposition better than Gaussian Elimination? To solve [A][X] = [B] Table.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-6.jpg)
![Method: [A] Decompose to [L] and [U] is the same as the coefficient matrix Method: [A] Decompose to [L] and [U] is the same as the coefficient matrix](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-7.jpg)
![Finding the [U] matrix Using the Forward Elimination Procedure of Gauss Elimination Step 1: Finding the [U] matrix Using the Forward Elimination Procedure of Gauss Elimination Step 1:](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-8.jpg)
![Finding the [U] Matrix after Step 1: Step 2: lmethods. eng. usf. edu ht Finding the [U] Matrix after Step 1: Step 2: lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-9.jpg)
![Finding the [L] matrix Using the multipliers used during the Forward Elimination Procedure From Finding the [L] matrix Using the multipliers used during the Forward Elimination Procedure From](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-10.jpg)
![Finding the [L] Matrix From the second step of forward elimination lmethods. eng. usf. Finding the [L] Matrix From the second step of forward elimination lmethods. eng. usf.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-11.jpg)
![Does [L][U] = [A]? ? lmethods. eng. usf. edu ht Does [L][U] = [A]? ? lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-12.jpg)

![Example Set [L][Z] = [C] Solve for [Z] lmethods. eng. usf. edu ht Example Set [L][Z] = [C] Solve for [Z] lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-14.jpg)
![Example Complete the forward substitution to solve for [Z] lmethods. eng. usf. edu ht Example Complete the forward substitution to solve for [Z] lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-15.jpg)
![Example Set [U][X] = [Z] Solve for [X] The 3 equations become lmethods. eng. Example Set [U][X] = [Z] Solve for [X] The 3 equations become lmethods. eng.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-16.jpg)


![Finding the inverse of a square matrix The inverse [B] of a square matrix Finding the inverse of a square matrix The inverse [B] of a square matrix](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-19.jpg)

![Example: Inverse of a Matrix Find the inverse of a square matrix [A] Using Example: Inverse of a Matrix Find the inverse of a square matrix [A] Using](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-21.jpg)
![Example: Inverse of a Matrix Solving for the each column of [B] requires two Example: Inverse of a Matrix Solving for the each column of [B] requires two](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-22.jpg)
![Example: Inverse of a Matrix Solving for [Z] lmethods. eng. usf. edu ht Example: Inverse of a Matrix Solving for [Z] lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-23.jpg)
![Example: Inverse of a Matrix Solving [U][X] = [Z] for [X] lmethods. eng. usf. Example: Inverse of a Matrix Solving [U][X] = [Z] for [X] lmethods. eng. usf.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-24.jpg)


![Example: Inverse of a Matrix The inverse of [A] is To check your work Example: Inverse of a Matrix The inverse of [A] is To check your work](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-27.jpg)

- Slides: 28

LU Decomposition

LU Decomposition is another method to solve a set of simultaneous linear equations Which is better, Gauss Elimination or LU Decomposition? To answer this, a closer look at LU decomposition is needed. lmethods. eng. usf. edu ht
![LU Decomposition Method For most nonsingular matrix A that one could conduct Naïve Gauss LU Decomposition Method For most non-singular matrix [A] that one could conduct Naïve Gauss](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-3.jpg)
LU Decomposition Method 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 lmethods. eng. usf. edu ht
![How does LU Decomposition work If solving a set of linear equations If A How does LU Decomposition work? If solving a set of linear equations If [A]](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-4.jpg)
How does LU Decomposition work? If solving a set of linear equations If [A] = [L][U] then Multiply by Which gives Remember [L]-1[L] = [I] which leads to Now, if [I][U] = [U] then Now, let Which ends with and [A][X] = [C] [L][U][X] = [C] [L]-1[L][U][X] = [L]-1[C] [I][U][X] = [L]-1[C]=[Z] [L][Z] = [C] (1) [U][X] = [Z] (2) lmethods. eng. usf. edu ht
![LU Decomposition How can this be used Given AX C 1 Decompose A LU Decomposition How can this be used? Given [A][X] = [C] 1. Decompose [A]](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-5.jpg)
LU Decomposition How can this be used? Given [A][X] = [C] 1. Decompose [A] into [L] and [U] 2. Solve [L][Z] = [C] for [Z] 3. Solve [U][X] = [Z] for [X] lmethods. eng. usf. edu ht
![When is LU Decomposition better than Gaussian Elimination To solve AX B Table When is LU Decomposition better than Gaussian Elimination? To solve [A][X] = [B] Table.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-6.jpg)
When is LU Decomposition better than Gaussian Elimination? To solve [A][X] = [B] Table. Time taken by methods Gaussian Elimination LU Decomposition where T = clock cycle time and n = size of the matrix So both methods are equally efficient. lmethods. eng. usf. edu ht
![Method A Decompose to L and U is the same as the coefficient matrix Method: [A] Decompose to [L] and [U] is the same as the coefficient matrix](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-7.jpg)
Method: [A] Decompose to [L] and [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 lmethods. eng. usf. edu ht
![Finding the U matrix Using the Forward Elimination Procedure of Gauss Elimination Step 1 Finding the [U] matrix Using the Forward Elimination Procedure of Gauss Elimination Step 1:](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-8.jpg)
Finding the [U] matrix Using the Forward Elimination Procedure of Gauss Elimination Step 1: lmethods. eng. usf. edu ht
![Finding the U Matrix after Step 1 Step 2 lmethods eng usf edu ht Finding the [U] Matrix after Step 1: Step 2: lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-9.jpg)
Finding the [U] Matrix after Step 1: Step 2: lmethods. eng. usf. edu ht
![Finding the L matrix Using the multipliers used during the Forward Elimination Procedure From Finding the [L] matrix Using the multipliers used during the Forward Elimination Procedure From](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-10.jpg)
Finding the [L] matrix Using the multipliers used during the Forward Elimination Procedure From the first step of forward elimination lmethods. eng. usf. edu ht
![Finding the L Matrix From the second step of forward elimination lmethods eng usf Finding the [L] Matrix From the second step of forward elimination lmethods. eng. usf.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-11.jpg)
Finding the [L] Matrix From the second step of forward elimination lmethods. eng. usf. edu ht
![Does LU A lmethods eng usf edu ht Does [L][U] = [A]? ? lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-12.jpg)
Does [L][U] = [A]? ? lmethods. eng. usf. edu ht

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 lmethods. eng. usf. edu ht
![Example Set LZ C Solve for Z lmethods eng usf edu ht Example Set [L][Z] = [C] Solve for [Z] lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-14.jpg)
Example Set [L][Z] = [C] Solve for [Z] lmethods. eng. usf. edu ht
![Example Complete the forward substitution to solve for Z lmethods eng usf edu ht Example Complete the forward substitution to solve for [Z] lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-15.jpg)
Example Complete the forward substitution to solve for [Z] lmethods. eng. usf. edu ht
![Example Set UX Z Solve for X The 3 equations become lmethods eng Example Set [U][X] = [Z] Solve for [X] The 3 equations become lmethods. eng.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-16.jpg)
Example Set [U][X] = [Z] Solve for [X] The 3 equations become lmethods. eng. usf. edu ht

Example From the 3 rd equation Substituting in a 3 and using the second equation lmethods. eng. usf. edu ht

Example Substituting in a 3 and a 2 using the first equation Hence the Solution Vector is: lmethods. eng. usf. edu ht
![Finding the inverse of a square matrix The inverse B of a square matrix Finding the inverse of a square matrix The inverse [B] of a square matrix](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-19.jpg)
Finding the inverse of a square matrix The inverse [B] of a square matrix [A] is defined as [A][B] = [I] = [B][A] lmethods. eng. usf. edu ht

Finding the inverse of a square matrix How can LU Decomposition be used to find the inverse? Assume the first column of [B] to be [b 11 b 12 … bn 1]T Using this and the definition of matrix multiplication First column of [B] Second column of [B] The remaining columns in [B] can be found in the same manner lmethods. eng. usf. edu ht
![Example Inverse of a Matrix Find the inverse of a square matrix A Using Example: Inverse of a Matrix Find the inverse of a square matrix [A] Using](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-21.jpg)
Example: Inverse of a Matrix Find the inverse of a square matrix [A] Using the decomposition procedure, the [L] and [U] matrices are found to be lmethods. eng. usf. edu ht
![Example Inverse of a Matrix Solving for the each column of B requires two Example: Inverse of a Matrix Solving for the each column of [B] requires two](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-22.jpg)
Example: Inverse of a Matrix Solving for the each column of [B] requires two steps 1) Solve [L] [Z] = [C] for [Z] 2) Solve [U] [X] = [Z] for [X] Step 1: This generates the equations: lmethods. eng. usf. edu ht
![Example Inverse of a Matrix Solving for Z lmethods eng usf edu ht Example: Inverse of a Matrix Solving for [Z] lmethods. eng. usf. edu ht](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-23.jpg)
Example: Inverse of a Matrix Solving for [Z] lmethods. eng. usf. edu ht
![Example Inverse of a Matrix Solving UX Z for X lmethods eng usf Example: Inverse of a Matrix Solving [U][X] = [Z] for [X] lmethods. eng. usf.](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-24.jpg)
Example: Inverse of a Matrix Solving [U][X] = [Z] for [X] lmethods. eng. usf. edu ht

Example: Inverse of a Matrix Using Backward Substitution So the first column of the inverse of [A] is: lmethods. eng. usf. edu ht

Example: Inverse of a Matrix Repeating for the second and third columns of the inverse Second Column Third Column lmethods. eng. usf. edu ht
![Example Inverse of a Matrix The inverse of A is To check your work Example: Inverse of a Matrix The inverse of [A] is To check your work](https://slidetodoc.com/presentation_image_h2/5ca6d602024bd4848da7c45021b714fb/image-27.jpg)
Example: Inverse of a Matrix The inverse of [A] is To check your work do the following operation [A][A]-1 = [I] = [A]-1[A] lmethods. eng. usf. edu ht

Soal Latihan n 28 Kerjakan SPL berikut menggunakan metode LU. Tentukan pula inverse nya. lmethods. eng. usf. edu ht