TOPICS
Search

Numerical Solution of Ordinary Differential Equations


The numerical solution of ordinary differential equations uses finite computations to approximate solutions of ordinary differential equations. In an initial value problem, an equation y^'(t)=f(t,y(t)) specifies the derivative of y(t) with respect to t, and a value y(t_0)=y_0 specifies the starting state. Many methods advance the approximation y_n at time t_n to a new approximation at t_(n+1)=t_n+h.

The Euler forward method uses the rate at the start of the step,

 y_(n+1)=y_n+hf(t_n,y_n).

A Runge-Kutta method combines evaluations at several trial states to improve accuracy. Adaptive methods use an estimate of the error to choose the step size. When f depends only on t, advancing y reduces to numerical integration of a known function. In general, the rate also depends on the unknown state, so the solver must approximate that state during the calculation (Hairer et al. 1993).

In the Wolfram Language, NDSolve and NDSolveValue compute numerical solutions and represent the result by interpolating functions.


See also

Initial Value Problem, Numerical Integration, Ordinary Differential Equation, Runge-Kutta Method

Explore with Wolfram|Alpha

References

Hairer, E.; Nørsett, S. P.; and Wanner, G. Solving Ordinary Differential Equations I: Nonstiff Problems, 2nd ed. Berlin, Germany: Springer-Verlag, 1993. https://doi.org/10.1007/978-3-540-78862-1.

Cite this as:

Weisstein, Eric W. "Numerical Solution of Ordinary Differential Equations." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/NumericalSolutionofOrdinaryDifferentialEquations.html

Subject classifications