Example 8.  Reduce the step size by  [Graphics:Images/RungeKuttaMod_gr_99.gif] and see what happens to the error.
Recalculate points for Runge-Kutta's method, and the analytic solution using twice as many subintervals.
Then Plot the error for Runge-Kutta's method.

Solution 8.

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

The error for Runge-Kutta's method.

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

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

[Graphics:../Images/RungeKuttaMod_gr_103.gif]
[Graphics:../Images/RungeKuttaMod_gr_104.gif]

Compare the error for Runge-Kutta's method with 50 and 100 subintervals.
Question 1. When the step size is reduced by [Graphics:../Images/RungeKuttaMod_gr_105.gif] estimate how much is the error reduced ?  (Theoretically is is [Graphics:../Images/RungeKuttaMod_gr_106.gif].)  

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

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

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004