




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















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 ] - [ L ] -1^ [ L ][ U ][ X ] = [ L ] -1^ [ C ] [ I ][ U ][ X ] = [ L ] -1^ [ C ] [ U ][ X ] = [ L ] -1^ [ C ] [ L ] -1^ [ C ]=[ Z ] [ L ][ Z ] = [ C ] (1) [ U ][ X ] = [ Z ] (2)
How can this be used?
Time taken by Gaussian Elimination Time taken by LU Decomposition ( ) = ^ + +
= + 3 12 4 3
8
| | 2 T n^4 n^3 n
n CT FE CT BS = ^ + +
= + × + × 3 12 20 3
32
| | | T n^3 n^2 n
CT (^) LU n CT FS n CT BS
n 10 100 1000 10000 CT|inverse GE / CT|inverse LU 3.28 25.83 250.8 2501
Table 1 LU decomposition and Gaussian elimination. Comparing computational times of finding inverse of a matrix using
Method: [A] Decompose to [L] and [U]
[ ] [ ][ ]
= = 33
22 23
11 12 13
31 32
21 0 0
0 1
1 0
1 0 0
u
u u
u u u A L U
[elimination step. U ] is the same as the coefficient matrix at the end of the forward [elimination process L ] is obtained using the multipliers that were used in the forward
− −
− − 0 16. 8 4. 76
0 4. 8 1. 56
25 5 1
( ) 0 0 0. 7
−− (^) = Row − Row = − −
[ ]
Using the multipliers used during the Forward Elimination Procedure
31 32
21
21 = aa 1121 =^6425 = 2. 56 31 = aa 1131 =^14425 = 5. 76
From the first stepof forward elimination 144 12 1
64 8 1
25 5 1
− −
0 0 0. 7
0 4. 8 1. 56
25 5 1
76 3. 5 1
56 1 0
1 0 0
Using LU Decomposition to solve SLEs
Solve the following set oflinear equations using LU Decomposition (^)
3
2
1 .
x
x
x
Using the procedure for finding the [ L ] and [ U ] matrices
[ ] [ ][ ]
Complete the forward substitution to solve for [ Z ]
( )
( ) ( )
735
2 5. 76106. 8 3. 5 96. 21
2 5. 76 3. 5
2
2 2. 56106. 8
2 2. 56
8
3 1 2
2 1
1
=
= − − −
= − −
=−
= −
= −
=
z z z
z z
z
[ ]
= −
735
21
8
3
2
1
z
z
z Z
Set [ U ][ X ] = [ Z ]
Solve for [ X ] The 3 equations become
= −
− − 0735
9621
1068
0 0 0. 7
0 4. 8 1. 56
25 5 1
3
2
1 .
.
.
x
x
x
7 0. 735
8 1. 56 96. 21
25 5 106. 8
3
2 3
1 2 3
=
− − = −
a
a a
a a a
Substituting in athe first equation 3 and a 2 using
25 a 1 (^) + 5 a 2 + a 3 = 106_._ 8
Hence the Solution Vector is:
050
70
2900
3
2
1
a
a
a
( ) 02900
25
1068 51970 1050
25 1 106 8 5 2 3
.
...
a. a a
=
= − −
= − −
Finding the inverse of a square matrix
[ A ][ B ] = [ I ] = [ B ][ A ]