Example 2.  Find the inverse of the 5×5 Hilbert matrix  [Graphics:Images/InverseMatrixMod_gr_72.gif].  

Solution 2.

Enter the matrix using the Table command and the formula for [Graphics:../Images/InverseMatrixMod_gr_73.gif].  

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


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

Form the augmented matrix [A, I] and store it in the variable AI.

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


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

Construct the inverse matrix using Gauss-Jordan elimination.
Remark.  All the computations are printed too !

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




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

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

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

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

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

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

Extract the inverse matrix B. from the augmented matrix M = [I,B].

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


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

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

Verify that B is the inverse of A.

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



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

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

Aside.  We can compare our result with Mathematica's built in procedure.  

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


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

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

Aside.  If a numerical answer is required, then we can convert the "exact" matrix to a decimal approximation.

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



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

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


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



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

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

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

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

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

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

Extract the inverse matrix B. from the augmented matrix M = [I,B].

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


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

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

Verify that B is the inverse of A.

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


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

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

Notice that the final computation contains entries that are "close to zero."  We can chop them off.

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


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

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

Aside.  We can compare our result with Mathematica's built in procedure.  

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


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

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

Remark.  What we do not see is that the numerical calculations were carried out using multiple precision arithmetic and there are about 17 decimal places used in Mathematica's calculations.

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



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

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

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

Caveat.

    Even for the case of the 5×5 Hilbert matrix we should observe that we are encountering propagation of round off error in the calculations.  

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


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

It is easy to determine that the error is getting as large as  [Graphics:../Images/InverseMatrixMod_gr_122.gif].

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

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

The next example will illustrate how bad things really are.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004