Example 1. Solve
the I.V.P.
.
Solution 1.
Compute the Euler and modified Euler solutions based on 25 subintervals and plot the results.
First, find Euler's solution.
![[Graphics:../Images/Euler'sMethodMod_gr_48.gif]](../Images/Euler'sMethodMod_gr_48.gif)
Second, find the modified Euler solution.
![[Graphics:../Images/Euler'sMethodMod_gr_55.gif]](../Images/Euler'sMethodMod_gr_55.gif)
Just for fun, plot both the Euler solution and the modified Euler solution. Notice that there is a difference.
![[Graphics:../Images/Euler'sMethodMod_gr_62.gif]](../Images/Euler'sMethodMod_gr_62.gif)
(c) John H. Mathews 2004