LU Decomposition Method
? 2006 Kevin Martin, Autar Kaw, Jamie Trahan
University of South Florida
United States of America
kaw@eng.usf.edu
NOTE: This worksheet demonstrates the use of Maple to illustrate LU Decomposition method, a technique used in solving a system of simultaneous linear equations.
Introduction
When solving multiple sets of simultaneous linear equations with the same coefficient matrix but different right hand sides, LU Decomposition is advantageous over other numerical methods in that it proves to be numerically more efficient in computational time than other techniques. In this worksheet, the reader can choose a system of equations and see how each step of LU decomposition method is conducted. To learn more about LU Decomposition method as well as the efficiency of its computational time click here.
LU Decomposition method is used to solve a set of simultaneous linear equations, [A] [X] = [C], where [A]nxn is a non-singular square coefficient matrix, [X]nx1 is the solution vector, and [C]nx1 is the right hand side array. When conducting LU decomposition method, one must first decompose the coefficient matrix [A]nxn into a lower triangular matrix [L]nxn, and upper triangular matrix [U]nxn. These two matrices can then be used to solve for the solution vector [X]nx1 in the following sequence:
Recall that
[A] [X] = [C].
Knowing that
[A] = [L] [U]
then first solving with forward substitution
[L] [Z] = [C]
and then solving with back substitution
[U] [X] = [Z]
gives the solution vector [X].
A simulation of LU Decomposition method follows.
Section 1: Input Data
Below are the input parameters to begin the simulation. This is the only section that requires user input. Once the values are entered, Maple will calculate the solution vector [X].
Input Parameters:
n = number of equations
[A] = nxn coefficient matrix
[RHS] = nx1 right hand side array
Section 2: LU Decomposition Method
The following sections divide LU Decomposition method into 3 steps:
1.) Finding the LU decomposition of the coefficient matrix [A]nxn
2.) Forward substitution
3.) Back substitution
2.1 LU Decomposition
How does one decompose a non-singular matrix [A], that is how do you find [L] and [U]?
The following procedure decomposes the coefficient matrix [A] into a lower triangular matrix [L] and upper triangular matrix [U], given [A] = [L][U].
Parameter names:
A = nxn coefficient matrix
2.2 Forward Substitution
Now that the [L] and [U] matrices have been formed, the forward substitution step, [L] [Z] = [C], can be conducted, beginning with the first equation as it has only one unknown,
Subsequent steps of forward substitution can be represented by the following formula:
The following procedure conducts forward substitution steps to solve for [Z].
[L]= nxn lower triangular matrix
[C] = nx1 right hand side array
2.3 Back Substitution
Now that [Z] has been calculated, it can be used in the back substitution step, [U] [X] = [Z], to solve for solution vector [X]nx1, where [U]nxn is the upper triangular matrix calculated in Step 2.1, and [Z]nx1 is the right hand side array.
Back substitution begins with the nth equation as it has only one unknown.
The remaining unknowns are solved for using the following formula:
The following procedure solves for [X].
[U] = nxn upper triangular matrix
[Z] = nx1 solution vector from forward substitution step
Section 3: Results
Below, Maple returns the lower triangular matrix, [L]nxn , the upper triangular matrix, [U]nxn , the intermediate solution vector [Z]nx1, and the final solution vector [X]nx1.
References
[1] Autar Kaw, Holistic Numerical Methods Institute, http://numericalmethods.eng.usf.edu/mws, See
Introduction to Systems of Equations
How does LU Decomposition method work?
Saving of computational time for finding inverse of a matrix using LU decomposition
Conclusion
Maple helped us apply our knowledge of LU Decomposition method to solve a system of n simultaneous linear equations.
Question 1: Solve the following set of simultaneous linear equations using LU decomposition method.
Question 2: Use LU decomposition repeatedly to find the inverse of
Question 3: Look at the [Z] matrix in LU decomposition step [L] [Z] = [C] of Question #1. Is it the same as the [RHS] matrix at the end of forward elimination steps in Naive Gauss Elimination method? If no, is this a coincidence?
Legal Notice: The copyright for this application is owned by the author(s). Neither Maplesoft nor the author are responsible for any errors contained within and are not liable for any damages resulting from the use of this material. This application is intended for non-commercial, non-profit use only. Contact the author for permission if you wish to use this application in for-profit activities.