Example 2.  Use Mathematica to find the analytic solution and graph for the I.V.P.  [Graphics:Images/TaylorDEMod_gr_60.gif].  

Solution  2.

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


[Graphics:../Images/TaylorDEMod_gr_62.gif]
[Graphics:../Images/TaylorDEMod_gr_63.gif]
[Graphics:../Images/TaylorDEMod_gr_64.gif]
[Graphics:../Images/TaylorDEMod_gr_65.gif]
[Graphics:../Images/TaylorDEMod_gr_66.gif]

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/TaylorDEMod_gr_67.gif]

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

[Graphics:../Images/TaylorDEMod_gr_69.gif]
[Graphics:../Images/TaylorDEMod_gr_70.gif]

Just for fun, plot the Taylor  series solution and the analytic solution. Notice that there is a difference.

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

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

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004