The methods of Runge-Kutta are methods of numerical Analyze of approximation of solutions of differential equations. They bear the name of the mathematicians Carl Runge and Martin Wilhelm Kutta. These methods rest on the principle of the Itération, i.e. a first estimate of the solution is used to calculate one second estimate, more precise, and so on.

Method of Runge-Kutta of order 1 (RK1)

This method is equivalent to the Méthode of Euler.

Let us consider the following problem:

y' = F (T, there), \ quad there (t_0) = y_0

Method RK1 is given by the equation

y_ {n+1} = y_n + H F \ left (X, y_n \ right)

where h is the step of the iteration.

Method of Runge-Kutta traditional of order four (RK4)

It is a particular case of very frequent use, indicated RK4.

Let us consider the following problem:

y' = F (T, there), \ quad there (t_0) = y_0

Method RK4 is given by the equation:

y_ {n+1} = y_n + {H \ over 6} (k_1 + 2k_2 + 2k_3 + k_4)

where

k_1 = F \ left (t_n, y_n \ right)

k_2 = F \ left (t_n + {H \ over 2}, y_n + {H \ over 2} k_1 \ right)

k_3 = F \ left (t_n + {H \ over 2}, y_n + {H \ over 2} k_2 \ right)

k_4 = F \ left (t_n + H, y_n + H k_3 \ right)

The idea is that the following value ( there N +1) is approached by the sum of the current value ( there N ) and of the product of the size of the interval ( H ) by the estimated slope. The slope is obtained by a weighted average of slopes:

  • K 1 is the slope at the beginning of the interval;

  • K 2 is the slope in the middle of the interval, by using the slope K 1 to calculate the value of there at the point T N + H /2 by the means of the Méthode of Euler;
  • K 3 is again the slope in the middle of the interval, but obtained this time by using the slope K 2 to calculate there ;
  • K 4 is the slope at the end of the interval, with the value of there calculated by using K 3.

In the average of the four slopes, a larger weight is given to the slopes at the point medium.

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

Method RK4 is a method of order 4, which means that the error made with each stage is about H 5, whereas the accumulated total error is about H 4.

These formulas are also valid for functions with vectorial values.

See too

Random links:Ptolémée Kéraunos | Henry de Jouvenel | Rhogeessa | The Crown (Rhone delta) | François Hippolyte Collombel

© 2007-2008 speedlook.com; article text available under the terms of GFDL, from fr.wikipedia.org