All Topics  
Numerical ordinary differential equations

 

   Email Print
   Bookmark   Link






 

Numerical ordinary differential equations



 
 
Numerical ordinary differential equations is the part of numerical analysis
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
 which studies the numerical solution of ordinary differential equations
Differential equation

A differential equation is a mathematics equation for an unknown function of one or several variable that relates the values of the function itself and its derivatives of various orders....
 (ODEs). This field is also known under the name numerical integration
Numerical integration

In numerical analysis, numerical integration constitutes a broad family of algorithms for calculating the numerical value of a definite integral, and by extension, the term is also sometimes used to describe the numerical ordinary differential equations....
,
but some people reserve this term for the computation of integral
Integral

Integration is an important concept in mathematics, specifically in the field of calculus and, more broadly, mathematical analysis. Given a function ƒ of a Real number variable x and an interval [ab] of the real line, the integral...
s.

Many differential equations cannot be solved analytically, in which case we have to satisfy ourselves with an approximation to the solution. The algorithm
Algorithm

In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
s studied here can be used to compute such an approximation.






Discussion
Ask a question about 'Numerical ordinary differential equations'
Start a new discussion about 'Numerical ordinary differential equations'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Numerical ordinary differential equations is the part of numerical analysis
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
 which studies the numerical solution of ordinary differential equations
Differential equation

A differential equation is a mathematics equation for an unknown function of one or several variable that relates the values of the function itself and its derivatives of various orders....
 (ODEs). This field is also known under the name numerical integration
Numerical integration

In numerical analysis, numerical integration constitutes a broad family of algorithms for calculating the numerical value of a definite integral, and by extension, the term is also sometimes used to describe the numerical ordinary differential equations....
,
but some people reserve this term for the computation of integral
Integral

Integration is an important concept in mathematics, specifically in the field of calculus and, more broadly, mathematical analysis. Given a function ƒ of a Real number variable x and an interval [ab] of the real line, the integral...
s.

Many differential equations cannot be solved analytically, in which case we have to satisfy ourselves with an approximation to the solution. The algorithm
Algorithm

In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
s studied here can be used to compute such an approximation. An alternative method is to use techniques from calculus
Calculus

Calculus is a branch of mathematics that includes the study of limit , derivatives, integrals, and infinite series, and constitutes a major part of modern university education....
 to obtain a series expansion of the solution.

Ordinary differential equations occur in many scientific disciplines, for instance in mechanics
Mechanics

Mechanics is the branch of physics concerned with the behaviour of physical body when subjected to forces or Displacement , and the subsequent effect of the bodies on their environment....
, chemistry
Chemistry

Chemistry is the science concerned with the composition, structure, and properties of matter, as well as the changes it undergoes during chemical reactions....
, biology
Biology

Biology is a branch of the natural sciences concerned with the study of living organisms and their interaction with each other and their environment ....
, and economics
Economics

File:Ballard Farmers' Market - vegetables.jpgEconomics is the Social sciences that studies the Production theory basics, Distribution , and Consumption of Good and Service ....
. In addition, some methods in numerical partial differential equations
Numerical partial differential equations

Numerical partial differential equations is the branch of numerical analysis that studies the numerical solution of partial differential equations ....
 convert the partial differential equation
Partial differential equation

In mathematics, partial differential equations are a type of differential equation, i.e., a Relation involving an unknown Function of several independent variables and its partial derivatives with respect to those variables....
 into an ordinary differential equation, which must then be solved.

The problem

We want to approximate the solution of the differential equation where f is a function that maps [t0,8) × Rd to Rd, and the initial condition y0 ? Rd is a given vector.

The above formulation is called an initial value problem
Initial value problem

In mathematics, in the field of differential equations, an initial value problem is an ordinary differential equation together with specified value, called the initial condition, of the unknown function at a given point in the domain of the solution....
 (IVP). The Picard-Lindelöf theorem states that there is a unique solution, if f is Lipschitz continuous. In contrast, boundary value problem
Boundary value problem

In mathematics, in the field of differential equations, a boundary value problem is a differential equation together with a set of additional restraints, called the boundary conditions....
s
(BVPs) specify (components of) the solution y at more than one point. Different methods need to be used to solve BVPs, for example the shooting method
Shooting method

In numerical analysis, the shooting method is a method for solving a boundary value problem by reducing it to the solution of an initial value problem....
 (and its variants) or global methods like finite difference
Finite difference

A finite difference is a mathematical expression of the form ff. If a finite difference is divided by ba, one gets a difference quotient....
s, galerkin method
Galerkin method

In mathematics, in the area of numerical analysis, Galerkin methods are a class of methods for converting a continuous operator problem to a discrete problem....
s, or collocation method
Collocation method

In mathematics, a collocation method is a method for the numerical analysis solution of ordinary differential equation and partial differential equations and integral equations....
s.

Note that we restrict ourselves to first-order differential equations (meaning that only the first derivative of y appears in the equation, and no higher derivatives). However, a higher-order equation can easily be converted to a system of first-order equations by introducing extra variables. For example, the second-order equation y = -y can be rewritten as two first-order equations: y' = z and z' = -y.

Methods

Two elementary methods are discussed to give the reader a feeling for the subject. After that, pointers are provided to other methods (which are generally more accurate and efficient). The methods mentioned here are analysed in the next section.

The Euler method


A brief explanation: From any point on a curve, you can find an approximation of a nearby point on the curve by moving a short distance along a line tangent
Tangent

In geometry, the tangent line to a curve at a given Point is the straight line that "just touches" the curve at that point . As it passes through the point of tangency, the tangent line is "going in the same direction" as the curve, and in this sense it is the best straight-line approximation to the curve at that point....
 to the curve.

Rigorous development: Starting with the differential equation (1), we replace the derivative
y' by the finite difference
Finite difference

A finite difference is a mathematical expression of the form ff. If a finite difference is divided by ba, one gets a difference quotient....
 approximation which when re-arranged yields the following formula and using (1) gives: This formula is usually applied in the following way. We choose a step size
h, and we construct the sequence t0, t1 = t0 + h, t2 = t0 + 2h, … We denote by yn a numerical estimate of the exact solution y(tn). Motivated by (3), we compute these estimates by the following recursive
Recursion

Recursion, in mathematics and computer science, is a method of defining Function in which the function being defined is applied within its own definition....
 scheme This is the
Euler method (or forward Euler method, in contrast with the backward Euler method, to be described below). The method is named after Leonhard Euler
Leonhard Euler

Leonhard Paul Euler was a pioneering Swiss mathematician and physicist who spent most of his life in Russia and Germany.Euler made important discoveries in fields as diverse as calculus and graph theory....
 who described it in 1768.

The Euler method is an example of an
explicit
Explicit and implicit methods

In applied mathematics, explicit and implicit methods are approaches used in computer simulations of physics Process , or in other words, they are numerical analysis for solving time-variable ordinary differential equation and partial differential equations....
 method. This means that the new value
yn+1 is defined in terms of things that are already known, like yn.

The backward Euler method

If, instead of (2), we use the approximation we get the
backward Euler method: The backward Euler method is an implicit
Explicit and implicit methods

In applied mathematics, explicit and implicit methods are approaches used in computer simulations of physics Process , or in other words, they are numerical analysis for solving time-variable ordinary differential equation and partial differential equations....
 method, meaning that we have to solve an equation to find
yn+1. One often uses fixed point iteration
Fixed point iteration

In numerical analysis, fixed point iteration is a method of computing fixed point of iterated functions.More specifically, given a function defined on the real numbers with real values and given a point in the domain of , the fixed point iteration is...
 or (some modification of) the Newton–Raphson method
Newton's method

In numerical analysis, Newton's method is perhaps the best known method for finding successively better approximations to the zeroes of a Real number-valued function ....
 to achieve this. Of course, it costs time to solve this equation; this cost must be taken into consideration when one selects the method to use. The advantage of implicit methods such as (6) is that they are usually more stable for solving a stiff equation
Stiff equation

In mathematics, a stiff equation is a differential equation for which certain numerical ordinary differential equations for solving the equation are numerical stability, unless the step size is taken to be extremely small....
, meaning that a larger step size
h can be used.

Generalizations

The Euler method is often not accurate enough. In more precise terms, it only has order one (the concept of
order is explained below). This caused mathematicians to look for higher-order methods.

One possibility is to use not only the previously computed value
yn to determine yn+1, but to make the solution depend on more past values. This yields a so-called multistep method. Perhaps the simplest is the Leapfrog method which is second order and (roughly speaking) relies on two time values.

Almost all practical multistep methods fall within the family of linear multistep methods, which have the form



Another possibility is to use more points in the interval [
tn,tn+1]. This leads to the family of Runge–Kutta methods, named after Carl Runge and Martin Kutta
Martin Wilhelm Kutta

Martin Wilhelm Kutta was a German mathematician.Kutta was born in Pitschen, Upper Silesia . He attended the University of Wroclaw from 1885 to 1890, and continued his studies in Munich until 1894, where he became the assistant of Walther Franz Anton von Dyck....
. One of their fourth-order methods is especially popular.

Both ideas can also be combined. The resulting methods are called
general linear methods.

Advanced features

A good implementation of one of these methods for solving an ODE entails more than the time-stepping formula.

It is often inefficient to use the same step size all the time, so
variable step-size methods have been developed. Usually, the step size is chosen such that the (local) error per step is below some tolerance level. This means that the methods must also compute an error indicator, an estimate of the local error.

An extension of this idea is to choose dynamically between different methods of different orders (this is called a
variable order method). Methods based on Richardson extrapolation
Richardson extrapolation

In numerical analysis, Richardson extrapolation is a Series acceleration method, used to improve the rate of convergence of a sequence. It is named after Lewis Fry Richardson, who introduced the technique in the early 20th century....
, such as the Bulirsch–Stoer algorithm
Bulirsch–Stoer algorithm

In numerical analysis, the Bulirsch?Stoer algorithm is a method for the numerical ordinary differential equations which combines three powerful ideas, Richardson extrapolation, the use of rational function extrapolation in Richardson-type applications, and the modified midpoint method, to obtain numerical solutions to ordinary differential eq...
, are often used to construct various methods of different orders.

Other desirable features include:
  • dense output: cheap numerical approximations for the whole integration interval, and not only at the points t0, t1, t2, ...
  • event location: finding the times where, say, a particular function vanishes.
  • support for parallel computing
    Parallel computing

    Parallel computing is a form of computing in which many calculations are carried out simultaneously, operating on the principle that large problems can often be divided into smaller ones, which are then solved Concurrency ....
    .
  • when used for integrating with respect to time, time reversibility


Alternative methods

Many methods do not fall within the framework discussed here. Some classes of alternative methods are:
  • multiderivative methods, which use not only the function f but also its derivatives. This class includes Hermite–Obreschkoff methods and Fehlberg methods
    Runge–Kutta–Fehlberg method

    In mathematics, the Runge?Kutta?Fehlberg method is an algorithm of numerical analysis for the numerical ordinary differential equations. It was developed by the Germans mathematician Erwin Fehlberg and is based on the class of Runge-Kutta methods....
    , as well as methods like the Parker–Sochacki method, which compute the coefficients of the Taylor series
    Taylor series

    In mathematics, the Taylor series is a representation of a function as an Series of terms calculated from the values of its derivatives at a single point....
     of the solution
    y recursively.
  • methods for second order ODEs. We said that all higher-order ODEs can be transformed to first-order ODEs of the form (1). While this is certainly true, it may not be the best way to proceed. In particular, Nyström methods work directly with second-order equations.
  • geometric integration methods
    Geometric integrator

    In the mathematical field of Numerical ordinary differential equations, a geometric integrator is a numerical method that preserves geometric properties of the exact Vector field#Flow curves of a differential equation....
    are especially designed for special classes of ODEs (e.g., symplectic integrator
    Symplectic integrator

    In mathematics, a symplectic integrator is a Numerical ordinary differential equations for a specific group of ordinary differential equations related to classical mechanics and symplectic geometry....
    s for the solution of Hamiltonian equations
    Hamiltonian mechanics

    Hamiltonian mechanics is a reformulation of classical mechanics that was introduced in 1833 by Irish mathematician William Rowan Hamilton. It arose from Lagrangian mechanics, a previous reformulation of classical mechanics introduced by Joseph Louis Lagrange in 1788, but can be formulated without recourse to Lagrangian mechanics using sym...
    ). They take care that the numerical solution respects the underlying structure or geometry of these classes.


Analysis

Numerical analysis
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
 is not only the design of numerical methods, but also their analysis. Three central concepts in this analysis are:
  • convergence: whether the method approximates the solution,
  • order: how well it approximates the solution, and
  • stability
    Numerical stability

    In the mathematics subfield of numerical analysis, numerical stability is a desirable property of numerical algorithms. The precise definition of stability depends on the context, but it is related to the accuracy of the algorithm....
    : whether errors are damped out.


Convergence

A numerical method is said to be
convergent if the numerical solution approaches the exact solution as the step size h goes to 0. More precisely, we require that for every ODE (1) with a Lipschitz function f and every t* > 0,

All the methods mentioned above are convergent. In fact, convergence is a condition
sine qua non
Sine qua non

Sine qua non or conditio sine qua non was originally a Latin law term for " without which it could not be" or "but for..." or "without which nothing." It refers to an indispensable and essential action, condition, or ingredient....
for any numerical scheme.

Consistency and order

Suppose the numerical method is

The
local error of the method is the error committed by one step of the method. That is, it is the difference between the result given by the method, assuming that no error was made in earlier steps, and the exact solution:

The method is said to be
consistent if The method has order if Hence a method is consistent if it has an order greater than 0. The (forward) Euler method (4) and the backward Euler method (6) introduced above both have order 1, so they are consistent. Most methods being used in practice attain higher order. Consistency is a necessary condition for convergence, but not sufficient; for a method to be convergent, it must be both consistent and zero-stable.

A related concept is the
global error, the error sustained in all the steps one needs to reach a fixed time t. Explicitly, the global error at time t is yN − y(t) where N = (tt0)/h. The global error of a pth order one-step method is O(hp); in particular, such a method is convergent. This statement is not necessarily true for multi-step methods.

Stability and stiffness

Main article: Stiff equation
Stiff equation

In mathematics, a stiff equation is a differential equation for which certain numerical ordinary differential equations for solving the equation are numerical stability, unless the step size is taken to be extremely small....
For some differential equations, application of standard methods—such as the Euler method, explicit Runge–Kutta methods
Runge–Kutta methods

In numerical analysis, the Runge?Kutta methods are an important family of implicit and explicit iterative methods for the approximation of solutions of ordinary differential equations....
, or multistep method
Multistep method

Linear multistep methods are methods used in mathematics for the numerical ordinary differential equations. One-step methods refer only to one previous value to determine the current value....
s (e.g., Adams–Bashforth methods)—exhibit instability in the solutions, though other methods may produce stable solutions. This "difficult behaviour" in the equation (which may not necessarily be complex itself) is described as
stiffness, and is often caused by the presence of different time scales in the underlying problem. Stiff problems are ubiquitous in chemical kinetics
Chemical kinetics

Chemical kinetics, also known as reaction kinetics, is the study of reaction rate of chemical processes. Chemical kinetics includes investigations of how different experimental conditions can influence the speed of a chemical reaction and yield information about the reaction mechanism and transition states, as well as the construction of ma...
, control theory
Control theory

Control theory is an interdisciplinary branch of engineering and mathematics, that deals with the behavior of dynamical systems. The desired output of a system is called the reference....
, solid mechanics
Solid mechanics

Solid mechanics is the branch of mechanics, physics, and mathematics that concerns the behavior of solid matter under external actions . It is part of a broader study known as continuum mechanics....
, weather prediction
Weather

Weather is a set of all the Phenomenon occurring in a given atmosphere at a given time. Weather phenomena lie in the hydrosphere and troposphere....
, biology
Biology

Biology is a branch of the natural sciences concerned with the study of living organisms and their interaction with each other and their environment ....
, and electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
.

History

Below is a timeline
Chronology

Chronology is a chronicle or arrangement of events in their occurrence order. General chronology is the science of locating and resolution of temporal sequence of past events in time...
 of some important developments in this field.

  • 1768 - Leonhard Euler
    Leonhard Euler

    Leonhard Paul Euler was a pioneering Swiss mathematician and physicist who spent most of his life in Russia and Germany.Euler made important discoveries in fields as diverse as calculus and graph theory....
     publishes his method.
  • 1824 - Augustin Louis Cauchy proves convergence of the Euler method. In this proof, Cauchy uses the implicit Euler method.
  • 1855 - First mention of the multistep method
    Multistep method

    Linear multistep methods are methods used in mathematics for the numerical ordinary differential equations. One-step methods refer only to one previous value to determine the current value....
    s of John Couch Adams
    John Couch Adams

    John Couch Adams , was a British mathematician and astronomer. Adams was born in Laneast, Cornwall and died in Cambridge, England. The Cornish language name Couch is pronounced "cooch"....
     in a letter written by F. Bashforth.
  • 1895 - Carl Runge publishes the first Runge–Kutta method.
  • 1905 - Martin Kutta
    Martin Wilhelm Kutta

    Martin Wilhelm Kutta was a German mathematician.Kutta was born in Pitschen, Upper Silesia . He attended the University of Wroclaw from 1885 to 1890, and continued his studies in Munich until 1894, where he became the assistant of Walther Franz Anton von Dyck....
     describes the popular fourth-order Runge–Kutta method.
  • 1910 - Lewis Fry Richardson
    Lewis Fry Richardson

    Lewis Fry Richardson, Fellow of the Royal Society   was an English mathematician, physicist, meteorologist, psychologist and pacifist who pioneered modern mathematical techniques of weather forecasting, and the application of similar techniques to studying the causes of wars and how to prevent them....
     announces his extrapolation method, Richardson extrapolation
    Richardson extrapolation

    In numerical analysis, Richardson extrapolation is a Series acceleration method, used to improve the rate of convergence of a sequence. It is named after Lewis Fry Richardson, who introduced the technique in the early 20th century....
    .
  • 1952 - Charles F. Curtiss and Joseph Oakland Hirschfelder coin the term stiff equation
    Stiff equation

    In mathematics, a stiff equation is a differential equation for which certain numerical ordinary differential equations for solving the equation are numerical stability, unless the step size is taken to be extremely small....
    s.


See also



External links


  • Joseph W. Rudmin, , 1998.
  • Dominique Tournès, , thèse de doctorat de l'université Paris 7 - Denis Diderot, juin 1996. Réimp. Villeneuve d'Ascq : Presses universitaires du Septentrion, 1997, 468 p. (Extensive online material on ODE numerical analysis history, for English-language material on the history of ODE numerical analysis, see eg the paper books by Chabert and Goldstine quoted by him.)