Runge–Kutta methods

Runge–Kutta methods

In numerical analysis, the Runge–Kutta methods (pronounced IPA|/ˌʀuŋgeˈkuta/) are an important family of implicit and explicit iterative methods for the approximation of solutions of ordinary differential equations. These techniques were developed around 1900 by the German mathematicians C. Runge and M.W. Kutta.

See the article on numerical ordinary differential equations for more background and other methods. See also List of Runge-Kutta methods.

The classical fourth-order Runge–Kutta method

One member of the family of Runge–Kutta methods is so commonly used that it is often referred to as "RK4" or simply as "the" Runge–Kutta method".

Let an initial value problem be specified as follows.

: y' = f(t, y), quad y(t_0) = y_0.

Then, the RK4 method for this problem is given by the following equations:

:egin{align}y_{n+1} &= y_n + {h over 6} left(k_1 + 2k_2 + 2k_3 + k_4 ight) \t_{n+1} &= t_n + h \end{align}

where y_{n+1} is the RK4 approximation of y(t_{n+1}) , and

:egin{align} k_1 &= f left( t_n, y_n ight) \k_2 &= f left( t_n + {h over 2}, y_n + {h over 2} k_1 ight) \k_3 &= f left( t_n + {h over 2}, y_n + {h over 2} k_2 ight) \k_4 &= f left( t_n + h, y_n + h k_3 ight) \end{align}

Thus, the next value ("y""n"+1) is determined by the present value ("y""n") plus the product of the size of the interval ("h") and an estimated slope. The slope is a weighted average of slopes:

*"k"1 is the slope at the beginning of the interval;
*"k"2 is the slope at the midpoint of the interval, using slope "k"1 to determine the value of "y" at the point "t""n" + "h"/2 using Euler's method;
*"k"3 is again the slope at the midpoint, but now using the slope "k"2 to determine the "y"-value;
*"k"4 is the slope at the end of the interval, with its "y"-value determined using "k"3.

In averaging the four slopes, greater weight is given to the slopes at the midpoint:

:mbox{slope} = frac{k_1 + 2k_2 + 2k_3 + k_4}{6}.

The RK4 method is a fourth-order method, meaning that the error per step is on the order of "h"5, while the total accumulated error has order "h"4.

Note that the above formulas are valid for both scalar- and vector-valued functions (i.e., "y" can be a vector and f an operator). For example one can integrate Schrödinger's equation using the Hamiltonian operator as function f .

Explicit Runge–Kutta methods

The family of explicit Runge–Kutta methods is a generalization of the RK4 method mentioned above. It is given by: y_{n+1} = y_n + hsum_{i=1}^s b_i k_i, where: k_1 = f(t_n, y_n), , : k_2 = f(t_n+c_2h, y_n+a_{21}hk_1), , : k_3 = f(t_n+c_3h, y_n+a_{31}hk_1+a_{32}hk_2), , ::: vdots : k_s = f(t_n+c_sh, y_n+a_{s1}hk_1+a_{s2}hk_2+cdots+a_{s,s-1}hk_{s-1}). :"(Note: the above equations have different but equivalent definitions in different texts)."

To specify a particular method, one needs to provide the integer "s" (the number of stages), and the coefficients "a""ij" (for 1 &le; "j" < "i" &le; "s"), "b""i" (for "i" = 1, 2, ..., "s") and "c""i" (for "i" = 2, 3, ..., "s"). These data are usually arranged in a mnemonic device, known as a "Butcher tableau" (after John C. Butcher):

An example of a second-order method with two stages is provided by the midpoint method: y_{n+1} = y_n + hfleft(t_n+frac{h}{2},y_n+frac{h}{2}f(t_n, y_n) ight). The corresponding tableau is:

The numerical solutions correspond to the underlined values. Note that f(t_i,k_1) has been calculated to avoid recalculation in the y_is.

Adaptive Runge-Kutta methods

The adaptive methods are designed to produce an estimate of the local truncation error of a single Runge-Kutta step. This is done by having two methods in the tableau, one with order p and one with order p - 1.

The lower-order step is given by: y^*_{n+1} = y_n + hsum_{i=1}^s b^*_i k_i, where the k_i are the same as for the higher order method. Then the error is: e_{n+1} = y_{n+1} - y^*_{n+1} = hsum_{i=1}^s (b_i - b^*_i) k_i, which is O(h^p).The Butcher Tableau for this kind of method is extended to give the values of b^*_i:

The error estimate is used to control the stepsize.

Other adaptive Runge–Kutta methods are the Bogacki–Shampine method (orders 3 and 2), the Cash–Karp method and the Dormand–Prince method (both with orders 5 and 4).

Implicit Runge-Kutta methods

The implicit methods are more general than the explicit ones. The distinction shows up in the Butcher Tableau: for an implicit method, the coefficient matrix a_{ij} is not necessarily lower triangular:

:egin{array}{c|cccc}c_1 & a_{11} & a_{12}& dots & a_{1s}\c_2 & a_{21} & a_{22}& dots & a_{2s}\vdots & vdots & vdots& ddots& vdots\c_s & a_{s1} & a_{s2}& dots & a_{ss} \hline & b_1 & b_2 & dots & b_s\end{array} =

egin{array}{c|c}mathbf{c}& A\hline & mathbf{b^T} \end{array}

The approximate solution to the initial value problem reflects the greater number of coefficients:

:y_{n+1} = y_n + h sum_{i=1}^s b_i k_i,

:k_i = fleft(t_n + c_i h, y_n + h sum_{j = 1}^s a_{ij} k_j ight).

Due to the fullness of the matrix a_{ij}, the evaluation of each k_i is now considerably involved and dependent on the specific function f(t, y). Despite the difficulties, implicit methods are of great importance due to their high (possibly unconditional) stability, which is especially important in the solution of partial differential equations. The simplest example of an implicit Runge-Kutta method is the backward Euler method:

:y_{n + 1} = y_n + h f(t_n + h, y_{n + 1}),

The Butcher Tableau for this is simply:

:egin{array}{c|c}1 & 1 \hline & 1 \end{array}

It can be difficult to make sense of even this simple implicit method, as seen from the expression for k_1:

:k_1 = f(t_n + c_1 h, y_n + h a_{11} k_1) ightarrow k_1 = f(t_n + h, y_n + h k_1).

In this case, the awkward expression above can be simplified by noting that

:y_{n+1} = y_n + h k_1 ightarrow h k_1 = y_{n+1} - y_n,

so that

:k_1 = f(t_n + h, y_n + y_{n+1} - y_n) = f(t_n + h, y_{n+1}).,

from which

:y_{n + 1} = y_n + h f(t_n + h, y_{n + 1}),

follows. Though simpler then the "raw" representation before manipulation, this is an implicit relation so that the actual solution is problem dependent. Multistep implicit methods have been used with success by some researchers. The combination of stability, higher order accuracy with fewer steps, and stepping that depends only on the previous value makes them attractive; however the complicated problem-specific implementation and the fact that k_i must often be approximated iteratively means that they are not common.

References

*J. C. Butcher, "Numerical methods for ordinary differential equations", ISBN 0471967580
* George E. Forsythe, Michael A. Malcolm, and Cleve B. Moler. "Computer Methods for Mathematical Computations". Englewood Cliffs, NJ: Prentice-Hall, 1977. "(See Chapter 6.)"
* Ernst Hairer, Syvert Paul Nørsett, and Gerhard Wanner. "Solving ordinary differential equations I: Nonstiff problems", second edition. Berlin: Springer Verlag, 1993. ISBN 3-540-56670-8.
* William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling. "Numerical Recipes in C". Cambridge, UK: Cambridge University Press, 1988. "(See Sections 16.1 and 16.2.)"
* [http://numericalmethods.eng.usf.edu/topics/runge_kutta_4th_method.html Runge-Kutta 4th-order method textbook notes, PPT, Matlab Mathematica Maple Mathcad] at [http://numericalmethods.eng.usf.edu Holistic Numerical Methods Institute]
* Kendall E. Atkinson. "An Introduction to Numerical Analysis". John Wiley & Sons - 1989
* F. Cellier, E. Kofman. "Continuous System Simulation". Springer Verlag, 2006. ISBN 0-387-26102-8.

External links

* [http://www.krellinst.org/UCES/archive/modules/diffeq/node10.html Runge-Kutta]
* [http://numericalmethods.eng.usf.edu/ebooks/runge4th_08ode_ebook.pdf Runge-Kutta 4th Order Method]
* [http://math.fullerton.edu/mathews/n2003/RungeKuttaMod.html Runge Kutta Method for O.D.E.'s]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • List of Runge–Kutta methods — Runge–Kutta methods are methods for the numerical solution of the ordinary differential equation:frac{d y}{d t} = f(t, y),which take the form:y {n+1} = y n + h sum {i=1}^s b i k i,:k i = fleft(t n + c i h, y n + h sum {j = 1}^s a {ij} k j… …   Wikipedia

  • Runge-Kutta-Verfahren — Einige Runge Kutta Verfahren im Vergleich. Die s stufigen Runge Kutta Verfahren (nach Carl Runge und Martin Wilhelm Kutta) sind Einschrittverfahren zur näherungsweisen Lösung von Anfangswertproblemen in der numerischen Mathematik. Wenn von dem… …   Deutsch Wikipedia

  • Runge-Kutta — Einige Runge Kutta Verfahren im Vergleich. Die s stufigen Runge Kutta Verfahren (nach Carl Runge und Martin Wilhelm Kutta) sind Einschrittverfahren zur näherungsweisen Lösung von Anfangswertproblemen in der numerischen Mathematik. Wenn vom Runge… …   Deutsch Wikipedia

  • Runge-Kutta-Methode — Einige Runge Kutta Verfahren im Vergleich. Die s stufigen Runge Kutta Verfahren (nach Carl Runge und Martin Wilhelm Kutta) sind Einschrittverfahren zur näherungsweisen Lösung von Anfangswertproblemen in der numerischen Mathematik. Wenn vom Runge… …   Deutsch Wikipedia

  • Runge–Kutta–Fehlberg method — In mathematics, the Runge–Kutta–Fehlberg method (or Fehlberg method) is a method for the numerical solution of ordinary differential equations developed by the German mathematician Erwin Fehlberg. Based on the Runge–Kutta methods, the Fehlberg… …   Wikipedia

  • Método de Runge-Kutta — El método de Runge Kutta es un método genérico de resolución numérica de ecuaciones diferenciales. Este conjunto de métodos fue inicialmente desarrollado alrededor del año 1900 por los matemáticos C. Runge y M. W. Kutta. Contenido 1 Descripción 1 …   Wikipedia Español

  • Dynamic errors of numerical methods of ODE discretization — The dynamical characteristic of the numerical method of ordinary differential equations (ODE) discretization – is the natural logarithm of its function of stability . Dynamic characteristic is considered in three forms: – Complex dynamic… …   Wikipedia

  • Carl David Tolmé Runge — Infobox Scientist name = Carl Runge box width = 26em image width = caption = Carl David Tolmé Runge birth date = birth date|1856|8|30|mf=y birth place = Bremen, German Reich death date = death date and age|1927|1|3|1856|8|30 death place =… …   Wikipedia

  • List of mathematics-based methods — This is a list of mathematics based methods, by Wikipedia page.See also list of graphical methods.*Adams method (differential equations) *Akra Bazzi method (asymptotic analysis) *Condorcet method (voting systems) *Coombs method (voting systems)… …   Wikipedia

  • Numerical ordinary differential equations — Illustration of numerical integration for the differential equation y = y,y(0) = 1. Blue: the Euler method, green: the midpoint method, red: the exact solution, y = et. The step size is h = 1.0 …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”