Module for Forward Substitution and Back Substitution

Check out the new Numerical Analysis Projects page.

 

    We will now develop the back-substitution algorithm, which is useful for solving a linear system of equations that has an upper-triangular coefficient matrix.

Definition (Upper-Triangular Matrix).  An [Graphics:Images/BackSubstitutionMod_gr_1.gif] matrix [Graphics:Images/BackSubstitutionMod_gr_2.gif] is called upper-triangular provided that the elements satisfy [Graphics:Images/BackSubstitutionMod_gr_3.gif] whenever [Graphics:Images/BackSubstitutionMod_gr_4.gif].  The  [Graphics:Images/BackSubstitutionMod_gr_5.gif] matrix [Graphics:Images/BackSubstitutionMod_gr_6.gif] is called lower-triangular provided that [Graphics:Images/BackSubstitutionMod_gr_7.gif] whenever [Graphics:Images/BackSubstitutionMod_gr_8.gif].  

    We will develop a method for constructing the solution to upper-triangular linear systems of equations an leave the investigation of lower-triangular systems to the reader.  If A is an upper-triangular matrix, then [Graphics:Images/BackSubstitutionMod_gr_9.gif] is said to be an upper-triangular system of linear equations and has the form

    [Graphics:Images/BackSubstitutionMod_gr_10.gif]    

 

Theorem (Back Substitution).  Suppose that [Graphics:Images/BackSubstitutionMod_gr_11.gif] is an upper-triangular system with the form given above.  
If  [Graphics:Images/BackSubstitutionMod_gr_12.gif] for [Graphics:Images/BackSubstitutionMod_gr_13.gif] then there exists a unique solution to the linear system.

Constructive Proof.

 

The back substitution algorithm.  To solve the upper-triangular system [Graphics:Images/BackSubstitutionMod_gr_28.gif] by the method of back-substitution. Proceed with the method only if all the diagonal elements are nonzero. Use the "generalized rule"  

    [Graphics:Images/BackSubstitutionMod_gr_29.gif]   for  [Graphics:Images/BackSubstitutionMod_gr_30.gif]

where the "understood convention" is that [Graphics:Images/BackSubstitutionMod_gr_31.gif] is an "empty summation" because the lower index of summation is greater than the upper index of summation.

 

The evolution of Mathematica programming for back substitution.

Mathematica Subroutine (Back Substitution).

[Graphics:Images/BackSubstitutionMod_gr_45.gif]

Example 1 (a). Use the back-substitution method to solve the upper-triangular linear system  [Graphics:Images/BackSubstitutionMod_gr_46.gif], where [Graphics:Images/BackSubstitutionMod_gr_47.gif] and [Graphics:Images/BackSubstitutionMod_gr_48.gif].  
Solution 1 (a)

 

Example 1 (b). Use the back-substitution method to solve the upper-triangular linear system  [Graphics:Images/BackSubstitutionMod_gr_57.gif], where [Graphics:Images/BackSubstitutionMod_gr_58.gif] and [Graphics:Images/BackSubstitutionMod_gr_59.gif].  
Solution 1 (b)

 

 

Lower-triangular systems.    

    Constructing the solution to a lower-triangular linear system  [Graphics:Images/BackSubstitutionMod_gr_82.gif].  

The forward substitution method.

Forward Substitution. To solve the lower-triangular system  

    [Graphics:Images/BackSubstitutionMod_gr_83.gif]  

Proceed with the method only if all the diagonal elements are non-zero.  First compute  

    [Graphics:Images/BackSubstitutionMod_gr_84.gif]  

and then use the rule  

    [Graphics:Images/BackSubstitutionMod_gr_85.gif]  for  [Graphics:Images/BackSubstitutionMod_gr_86.gif].  

Remark. The loop control structure will permit us to use one formula.  

Mathematica Subroutine (Forward Substitution).

[Graphics:Images/BackSubstitutionMod_gr_87.gif]

Example 2. Use the forward-substitution method to solve the lower-triangular linear system  [Graphics:Images/BackSubstitutionMod_gr_88.gif].  
Use the menu "Input" then submenu "Create Table/Matrix/Palette" to enter matrix A and vector B.
Solution 2.

 

 

Research Experience for Undergraduates

Triangular Systems and Back Substitution  Triangular Systems and Back Substitution  
Internet hyperlinks to web sites and a bibliography of articles.  

 

Downloads (Forward Substitution and Back Substitution Forward Substitution and Back Substitution).  
Download this Mathematica notebook.  

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2003