MCS 471 Computer Problem 4: Numerical Solution of ODEs using Maple
Due: Friday 26 April 1996
(revised 25 April 1996 for extra credit only)
Background Reading: Gerald and Wheatley, Chapter 5 & 6
Topics
5.3 Euler Methods
5.4 Runge-Kutta Methods
5.5 Multistep Methods
5.7 Adams-Moulton Multistep Method
5.9-5.10 Convergence and Errors
6.1-6.2 Shooting Method and Solution of Sets of Equations
Maple Computer Problem:
Comparison of Several Numerical ODE System Methods
You can use either Maple for this assignment.
You must hand in a Maple worksheet that is well documented with
comments and plots of integrand functions.
Refer to the Class Maple Pages, or in particular to the
See also the Maple Language Help for DEtools, DEplot and their options.
The Model:
Find the solution of the following two-dimensional ODE system:
- x'(t) = 1 - (1 + b(t) - a*x(t)*y(t))*x(t)
- y'(t) = (b(t) - a*x(t)*y(t))*x(t)
where
- a=(2*pi)**2;
- pi=4*atan(1.0e0);
- b(t)=(2 + a)*(1 + 0.5*sin(pi*t))
with initial conditions (IC):
Remark 1: Since ODE methods work as well for systems of vector ODEs,
you should compare the results for the following methods with
starting value t = 0.00 and stepsize h = 0.02 until t = 2.00.
Use the following three methods of the Maple DEtools package with DEplot:
The Methods:
- YEM:. Euler's method (EM; called 'method=euler' option in DEplot).
- YMODEM:. Modified Euler's method (ModEM; called Improved or
'method=impeuler' option in DEplot).
- YRK4:. Runge-Kutta 4th order method (RK4, default method in DEplot).
- (revised) Extra Credit ONLY: YPECE. Adams "PECE" method using
y(n,i) for i = 1 to 2 components, n = 0 from the initial conditions, and n = 1
to 3 from an RK4 subroutine of your own as needed to start it up.
(PECE = predict+evaluate+correct+(re-)evaluate). You will have
to use a Maple Procedure such as in the Maple Example ODE worksheet:
Note that you will need to hand in plots along with Maple worksheets for this
assignments.
Web Source: http://www.math.uic.edu/~hanson/M471/mcs471cp4.html
Email Comments or Questions to
hanson@math.uic.edu
Click Here For Class HomePage