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 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 I(t) be the number of infected, S(t) the number of susceptibles, and R(t) the number of recovered (or otherwise "removed") in the population at time t. Then there are constants a and b for which

align4

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:


align10

Here R and its differential equation are unchanged, but I(t, x, y) and S(t, x, y) are now functions of position (x, y), and a 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 x we can write


align4

To approximate the second derivative of I we then use


align10

With a similar discrete version of the partial differential equation for I 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 (t, x, z)-space and as curves in the (x, z)-plane animated over time t. In the sixth, space is 2-dimensional and solutions are surfaces in (x, y, z)-space animated over time t.

You can view these Mathematica notebooks from your Web browser if it is set up to launch Mathematica. Each notebook has two versions:

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

align4

Here u(t, x, y) is the displacement from rest at time t and position (x, y) in rectangular coordinates, and U is the same in polar coordinates. If we use the polar form for a circular drumhead, we can find basic solutions by separating the variables; then the ordinary differential equation for the radial variable r is the Bessel equation.


gather30

In the resulting basic solution Sn,k, bn,k is the k-th positive root of the Bessel function Jn. For any k, the solution Sn,k has n nodal diameters--that is, n equally-spaced diameters that remain motionless during the oscillation of the drum head.

The following are 3-D animations of a circular drumhead with 0, 1, 2, or 3 nodal diameters. The first-mentioned version in each case is compiled and ready-to-run, but large.


Vibrating string

There are two notebooks concerning Fourier series solutions to the one-dimensional wave equation--the "vibrating string." You can download the vibrating drum and string notebooks together in a single Unix tarfile (vibrate.tar or vibrate.tar.gz) or in a DOS zipfile (vibrate.zip).


Heat diffusion

While the temperature u(t, x, y) at a point (x, y) in a 2-dimensional region evolves over time t, it satisfies the heat equation; in the steady-state, it satisfies the Laplace equation:

align4

The heat equation is a diffusion equation like the SIR model, and we can get approximate numerical solutions the same way, using Euler's method.

Solutions u(x, y)to Laplace's equation (harmonic functions) satisfy the average value property: u(a, b) equals the average value of u on any circle centered at (a, b). Therefore, in a square grid in the (x, y)-plane, the value of u at a point is approximately equal to its average value at the four immediately neighboring points on the grid.

Therefore, using the given boundary values of u and assuming u = 0 at every interior point, a new value can be obtained for u at each grid point by averaging the current values at the four neighboring points. By repeating these calculations until they stabilize, we obtain an approximate solution to Laplace's equation on the grid points.

The following Mathematica notebooks construct approximate solutions to the 2-dimensional heat and Laplace equations. In each case the domain is a square, while the boundary conditions vary.

You can download these together in a single Unix tarfile (heat.tar or heat.tar.gz) or in a DOS zipfile (heat.zip).


Mutagen bioassays

References: A bioassay is used to test the capability of a suspected carcinogen to cause genetic mutations. Bacteria are first grown on an agar nutrient medium (on a circular Petri dish) and then a small amount of the suspected mutagen is added at the center. It diffuses radially outward, and its concentation eventually stabilizes as a decreasing function of the radius. Concentric rings appear revealing the different levels of effect that the substance has on the bacteria.

Awerbuch, et al. modelled the diffusion of the substance by a partial differential equation:


align12

They go on to derive an approximate solution. In assay1.nb we solve a discrete version of the diffusion equation and compare it to the Awerbuch approximation.