Modified a-method examples of the AnalyticalApproximations`LdeApprox` package
Copyright © 2003-2011DigiArea, Inc.. All rights reserved..
This notebook illustrates AnalyticalApproximations`LdeApprox` package capability of doing polynomial approximation of an LDE solution using modified a-method.
This loads the package.
In[76]:=
![]()
This loads Graphics`Legend package (just for best presentation of the results).
In[77]:=
![]()
Example 1
Initial value problem.
In[78]:=
![]()
Out[78]=
![]()
Finding polynomial approximation for solution of the IVP.
In[79]:=
![]()
Out[79]=
![]()
Finding polynomial approximation for solution of the IVP using modified method with k = 1.
In[80]:=
![]()
Out[80]=
![]()
Finding polynomial approximation for solution of the IVP using modified method with k = 2.
In[81]:=
![]()
Out[81]=
![]()
Using Mathematica function DSolve tot find exact solution of the IVP.
In[82]:=
![]()
Out[82]=
![]()
Comparing exact and approximate results using Mathematica function Plot. In this case modified method (for k=2) gives more uniform and pricise appoximation.
In[83]:=

Out[83]=

Example 2
Initial value problem.
In[84]:=
![]()
Out[84]=
![]()
Finding polynomial approximation for solution of the IVP.
In[85]:=
![]()
Out[85]=
![]()
In[86]:=
![]()
Out[86]=
![]()
In[87]:=
![]()
Out[87]=
![]()
Using Mathematica function DSolve tot find exact solution of the IVP.
In[88]:=
![]()
Out[88]=

Comparing exact and approximate results using Mathematica function Plot. In this case modified method gives quite bad appoximation.
In[89]:=

Out[89]=

Example 3
Initial value problem.
In[90]:=
![]()
Out[90]=
![]()
Finding polynomial approximation for solution of the IVP.
In[91]:=
![]()
Out[91]=
![]()
Modified method is not avilable if leading polynom (coefficient of higher derivative) has zeros on the interval of approximation.
In[92]:=
![]()
![]()
Out[92]=
![]()
Using Mathematica function DSolve tot find exact solution of the IVP.
In[93]:=
![]()
Out[93]=
![]()
