Example 3.  Plot the error for Heun's method.

Solution 3.

[Graphics:../Images/Heun'sMethodMod_gr_53.gif]

[Graphics:../Images/Heun'sMethodMod_gr_54.gif]

[Graphics:../Images/Heun'sMethodMod_gr_55.gif]
[Graphics:../Images/Heun'sMethodMod_gr_56.gif]

Since we have the analytic or "true solution" at hand, we can run experiments to verify that Heun's method has order  [Graphics:../Images/Heun'sMethodMod_gr_57.gif].   Reduce the step size by  [Graphics:../Images/Heun'sMethodMod_gr_58.gif] and see what happens to the error.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004