Example 3.  How good are the Trapezoidal rule approximations to  [Graphics:Images/SimpsonsRule2DMod_gr_87.gif]  that were calculated in Example 1?

Solution 3.

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



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

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

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

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

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

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


We can compare the error in these approximations.

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


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

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

The error for the Trapezoidal 2D rule has the form    [Graphics:../Images/SimpsonsRule2DMod_gr_98.gif]  where h and k are the step sizes for the variables x and y, respectively.
For the above examples, we have the following results.

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


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

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

Remark.  Since both the step sizes were reduced by a factor of [Graphics:../Images/SimpsonsRule2DMod_gr_102.gif] the remainder term  [Graphics:../Images/SimpsonsRule2DMod_gr_103.gif] should be reduced by approximately [Graphics:../Images/SimpsonsRule2DMod_gr_104.gif].  

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


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

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

Therefore, the 2D Trapezoidal rule is behaving as predicted.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004