next up previous
Next: Summary Up: Numerical O.D.E.'s Previous: Runge-Kutte Methods

Mathematica and Solutions to Ordinary Differential Equations

In many ways, Mathematica provides a nice ``black box'' solver for various types of differential equations, providing both analytic and numerical solutions under many instances. An analytic (or `` symbolic'') solution can be obtained using Mathematica's DSolve function. DSolve can also be used to generate a ``pure function'', but this output is not discussed here. The example below demonstrates the functionality of Mathematica's DSolve function.

  example1343

    Mathematica will also permit numerical solutions to a given differential equation. In contrast to the limited discussion of numerical solutions presented here, the scheme that Mathematica uses dynamically determines the (now variable length) step size as it performs the computation. Default components of the numerical solution such as accuracy and maximum step size are used by Mathematica unless overridden by the user. One of the Mathematica functions used to produce a numerical solution is NDSolve, which is a natural counterpart to the DSolve method introduced in example 5.11. The NDSolve function of Mathematica is illustrated below.

  example1368
 


Paul Gray

Wed Oct 28 11:42:13 EST 1998