Example 3.  Solve the linear system  AX = B  by finding the  A = LU  factorization with the Doolittle method, where:
        [Graphics:Images/CholeskyMod_gr_79.gif],  and  [Graphics:Images/CholeskyMod_gr_80.gif].  
Then solve the lower-triangular system  LY = B  for  Y,  then solve the upper-triangular system  UX = Y  for  X.
Use the forward substitution and back substitution subroutines.  

Solution 3.

Enter the matrix and vector and invoke the subroutine Doolittle.  

[Graphics:../Images/CholeskyMod_gr_81.gif]
[Graphics:../Images/CholeskyMod_gr_82.gif] [Graphics:../Images/CholeskyMod_gr_83.gif]

First, solve the lower-triangular system    LY = B  for  Y.

[Graphics:../Images/CholeskyMod_gr_84.gif]

[Graphics:../Images/CholeskyMod_gr_85.gif]

Verify that  LY = B.

[Graphics:../Images/CholeskyMod_gr_86.gif]

[Graphics:../Images/CholeskyMod_gr_87.gif]

Second, solve the upper-triangular system    UX = Y  for  X.

[Graphics:../Images/CholeskyMod_gr_88.gif]

[Graphics:../Images/CholeskyMod_gr_89.gif]

Verify that  UX = Y.  

[Graphics:../Images/CholeskyMod_gr_90.gif]

[Graphics:../Images/CholeskyMod_gr_91.gif]

Therefore X is the solution to  LUX = B. and hence AX = B
And we can verify that it is the solution.

[Graphics:../Images/CholeskyMod_gr_92.gif]

[Graphics:../Images/CholeskyMod_gr_93.gif]


[Graphics:../Images/CholeskyMod_gr_94.gif]

[Graphics:../Images/CholeskyMod_gr_95.gif]

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2003