Example 3.  Plot the error for Runge-Kutta's method.

Solution 3.

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

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

[Graphics:../Images/RungeKuttaMod_gr_56.gif]
[Graphics:../Images/RungeKuttaMod_gr_57.gif]

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004