Differential Equations Project

Computer Lab Modules

 

Numerical Approximation Methods for D.E.'s

  

 

Background. Numerical methods are useful in constructing solutions to differential equations.
For illustration, we consider Euler's method.

Algorithm. Euler's Method. To approximate the solution of the initial value problem
[Graphics:e7.txtgr1.gif]with [Graphics:e7.txtgr2.gif] over [Graphics:e7.txtgr3.gif] by computing
[Graphics:e7.txtgr4.gif]for [Graphics:e7.txtgr5.gif].

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr6.gif]
 

Computer Lab Work.

 

Exercise 1. Consider the initial value problem [Graphics:e7.txtgr8.gif] with y(0) = 1 over [0, 0.95].
Use Euler's method and compute and graph a numerical solution.
(a) Use 19 steps of size h = 0.05 , include the list of points.
(b) Use 38 steps of size h = 0.025 , include the list of points.
(c) Use 76 steps of size h = 0.0125 , omit the list of points.
(d) Use 152 steps of size h = 0.00625 , omit the list of points.
(e) Observe that the sequence of solutions (a)-(d) appear to be converging.

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr9.gif]
 

Exercise 2. Consider the initial value problem [Graphics:e7.txtgr10.gif] with y(0) = 1 over [0, 0.95].
Use Mathematica's built in procedure NDSolve to compute a numerical solution, and then
use Mathematica's Evaluate function to plot the solution
Observe that we need not be aware how the computations are done.

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr11.gif]
 

Exercise 3. Consider the initial value problem [Graphics:e7.txtgr12.gif] with y(0) = 1 over [0, 0.95].
Continue this investigation only if you feel comfortable with someone telling you that the
"analytic solution" is represented with the following "special function."

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr13.gif]
 

Exercise 4. For those who are curious, we can do a little investigation regarding this solution.
First, an exploration regarding the Gamma function (which is o.k. for x > 0).

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr14.gif]

Second, check out the initial value for the proposed solution.

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr15.gif]

Third, check out the location of the vertical asymptote of the proposed solution.

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr16.gif]

Fourth, like Tan[t], the function f[t] is actually defined past the asymptote.

[Graphics:e7.txtgr7.gif][Graphics:e7.txtgr17.gif]

You don't need to worry about the fractional Bessel function in this course.

 

Solutions.

 



Return to the Differential Equations Project

Return to the Numerical Analysis Project

Return to the Complex Analysis Project

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews, 1998