BVP examples of the AnalyticalApproximations`LdeApprox` package
Copyright © 2003-2017 DigiArea, Inc.. All rights reserved.
This notebook illustrates AnalyticalApproximations`LdeApprox` package capability of working with BVPs.
This loads the package.
In[31]:=
![]()
Example 1
Boundary value problem.
In[32]:=
![]()
Out[32]=
![]()
Finding polynomial approximation for solution of the BVP.
In[33]:=
![]()
Out[33]=

Using Mathematica function DSolve to get exact solution of the BVP.
In[34]:=
![]()
Out[34]=
![]()
Comparing exact and approximate results for
using Mathematica function Plot.
In[35]:=
![]()
Out[35]=

Example 2
Boundary value problem.
In[36]:=
![]()
Out[36]=
![]()
Finding polynomial approximation for solution of the BVP.
In[37]:=
![]()
Out[37]=

Using Mathematica function DSolve to get exact solution of the BVP.
In[38]:=
![]()
Out[38]=
![]()
Comparing exact and approximate results using Mathematica function Plot3D.
In[39]:=
![]()
Out[39]=

Example 3
Boundary value problem.
In[40]:=
![]()
Out[40]=
![]()
Finding polynomial approximation for solution of the BVP.
In[41]:=
![]()
Out[41]=

Using Mathematica function DSolve to get exact solution of the BVP.
In[42]:=
![]()
Out[42]=

Comparing exact and approximate results using Mathematica function Plot3D.
In[43]:=
![]()
Out[43]=

Example 4
Boundary value problem.
In[44]:=
![]()
Out[44]=
![]()
Trying to find polynomial approximation for solution of the BVP.
In[45]:=
![]()
![]()
Out[45]=
![]()
Using ToRatCoeffs function to get rational coefficients of the LDE on interval [0,1].
In[46]:=
![]()
Out[46]=
![]()
Finding polynomial approximation for solution of the BVP.
In[47]:=
![]()
Out[47]=
![]()
Using Mathematica function DSolve to get exact solution of the BVP.
In[48]:=
![]()
Out[48]=
![]()
Comparing exact and approximate results using Mathematica function Plot.
In[49]:=
![]()
Out[49]=

Example 5
Boundary value problem.
In[50]:=
![]()
Out[50]=
![]()
Finding polynomial approximation for solution of the BVP.
In[51]:=
![]()
Out[51]=

Using Mathematica function DSolve to get exact solution of the BVP.
In[52]:=
![]()
Out[52]=
![]()
Comparing exact and approximate results using Mathematica function Plot.
In[53]:=
![]()
Out[53]=

Example 6
Boundary value problem.
In[54]:=
![]()
Out[54]=
![]()
Finding polynomial approximation for solution of the BVP.
In[55]:=
![]()
Out[55]=

Using Mathematica function DSolve to get exact solution of the BVP.
In[56]:=
![]()
Out[56]=
![]()
Comparing exact and approximate results using Mathematica function Plot.
In[57]:=
![]()
Out[57]=

Example 7
Boundary value problem.
In[58]:=
![]()
Out[58]=
![]()
Finding polynomial approximation for solution of the BVP.
In[59]:=
![]()
Out[59]=

Using Mathematica function DSolve to get exact solution of the BVP.
In[60]:=
![]()
Out[60]=

Comparing exact and approximate results using Mathematica function Plot3D.
In[61]:=
![]()
Out[61]=

Example 8
Boundary value problem.
In[62]:=
![]()
Out[62]=
![]()
Finding polynomial approximation for solution of the BVP.
In[63]:=
![]()
Out[63]=
![]()
Using Mathematica function DSolve to get exact solution of the BVP.
In[64]:=
![]()
Out[64]=
![]()
Comparing exact and approximate results.
In[65]:=
![]()
Out[65]=
![]()
Example 9
Polynomial approximation of solution of boundary value problem
.
The boundary value problem.
In[66]:=
![]()
Out[66]=
![]()
Finding polynomial approximation for solution of the BVP.
In[67]:=
![]()
![]()
![]()
Out[67]=

Finding normalized polynomial approximation for solution of the BVP on interval [0,1].
In[68]:=
![]()
Out[68]=

Unfortunately DSolve can not find exact solution of the BVP because it contains parameter α.
In[69]:=
![]()
Out[69]=
![]()
As the BVP is homogeneous one then to get the exact solution we can use the following technic. First of all we find exact solution for the following problem
. After that we find constant α. And finally we normalize the result to get exact solution of the initial BVP.
In[70]:=
![]()
Out[70]=
![]()
Finding constant α using the exact solution.
In[71]:=
![]()
Out[71]=
![]()
In[72]:=
![]()
Out[72]=
![]()
Comparing exact and approximate results for constant α.
In[73]:=
![]()
Out[73]=
![]()
Finding normalized exact solution of the BVP on interval [0,1].
In[74]:=
![]()
Out[74]=

Comparing normalized exact and approximate results using Mathematica function Plot.
In[75]:=
![]()
Out[75]=

