Partial Differential Equations
In the fall of 1996, the course Topics in Applied Mathematics (MTH 264) dealt with partial differential equations, including numerical solutions. Topics included
- the spread of a contagious illness (the SIR model);
- vibrating strings and drums (the wave equation);
- heat diffusion (the heat and Laplace equations);
- bioassays (reaction-diffusion equation)
Students did numerical work in Mathematica notebooks in which they
studied 3D graphical solutions as well as 2D- and 3D-animations to
show solutions evolving over time. The following are brief comments
to introduce the notebooks; they are not intended to be introductions
to the mathematical subjects they represent. For an introduction,
consult general references on applied mathematics and the specific
references given.
The spread of a contagious illness
A classic model (the Kermack-McKendrick, or SIR model) dscribes how
the number of people infected with a contagious illness in a closed
population can vary over time. The model is a system of three
non-linear ordinary differential equations, and is now studied in
introductory calculus courses. For example, it appears as the first
part of chapter 1 in Calculus
in Context. There are two on-line versions:
See also chapter 14 of Jones, D. S. and B. D. Sleeman, Differential Equations and Mathematical Biology, George Allen & Unwin, London, 1983.
To construct the model, let be the
number of infected, the number of
susceptibles, and the number of
recovered (or otherwise "removed") in the population at time
. Then there are constants
and for which

However, this model does not deal with the way the infection spreads
though space. For this, partial differential equations are needed.
The book by Jones and Sleeman extends the SIR model to account for
variation over a 1-dimensional space, and the same ideas can be used
to extend the model to a 2-dimensional space:

Here and its differential equation are
unchanged, but and
are now functions of
position , and is
replaced by an expression involving two other constants related to the
rate at which the infection diffuses through space.
We can construct approximate solutions to these equations using
Euler's method. For example, with one space variable we can write

To approximate the second derivative of we then use

With a similar discrete version of the partial differential equation
for we can construct approximate numerical
solutions. We have Mathematica notebooks that do this for several
different initial conditions. In the first five notebooks, space is
1-dimensional and solutions are plotted in two different forms: as
surfaces in -space and as curves in the
-plane animated over time
. In the sixth, space is 2-dimensional and
solutions are surfaces in -space
animated over time .
You can view these Mathematica notebooks from your Web browser if it
is set up to launch Mathematica. Each
notebook has two versions:
- pre-compiled: the 3D-graphics are drawn and the animations are
ready to run;
- uncompiled: quick to load
- sir1.nb (2.7 MB): the susceptible
population is uniformly high over a line interval (uncompiled version).
- sir1b.nb (3.1 MB): the susceptible
population is uniformly low over a line interval. This time the
infection does not take hold.
- sir1c.nb (4.5 MB): inputs here are
one-tenth their values in part 1. Again the infection fails to take
hold. This means that, even though the input is a scaled-down
version of part 1, the output is not.
- sir2.nb (3.7 MB): the susceptible
population is high on one third of an interval, low on another third,
and is linearly interpolated in the middle third (uncompiled version)
- sir3.nb (5.5 MB): the susceptible
population drops linearly from a high to a low value along an
interval. This demonstrates how speed of propagation of the illness
depends on the size of the susceptible population (uncompiled version)
- sir4.nb (6.2 MB): the susceptible
population is uniformly high except for a short interval in the middle
where drops discontinuously to a low value. This demonstrates how the
illness can "tunnel" through a region where the susceptible population
is below the threshhold necessary to sustain an epidemic (uncompiled version)
- sir5.nb (0.6 MB): the susceptible
population drops discontinously from a high to a low level (uncompiled version)
- sir6.nb (35 MB): like SIR5 except on a
2-dimensional space (uncompiled version)
You can download these together in a single Unix tarfile (sir.tar or sir.tar.gz) or
in a DOS zipfile (sir.zip).
Vibrating drumhead
The partial differential equation of a vibrating membrane in
rectangular and in polar coordinates is

Here is the displacement
from rest at time and position in rectangular coordinates, and