Example 2. Use
Mathematica to find the analytic solution and graph for the
I.V.P.
.
Solution 2.
Dig out the formula for the solution out of the data structure
of solset and put it in f[t].
Plot the analytic solution at the same sample points that were used
for the numerical approximations.
![[Graphics:../Images/RungeKuttaMod_gr_48.gif]](../Images/RungeKuttaMod_gr_48.gif)
Just for fun, plot the Runge-Kutta solution and the analytic solution. Notice that there is a difference.
![[Graphics:../Images/RungeKuttaMod_gr_52.gif]](../Images/RungeKuttaMod_gr_52.gif)
(c) John H. Mathews 2004