Top Qs
Timeline
Chat
Perspective
Runge–Kutta–Fehlberg method
Algorithm in numerical analysis From Wikipedia, the free encyclopedia
Remove ads
Remove ads
In mathematics, the Runge–Kutta–Fehlberg method (or Fehlberg method) is an algorithm in numerical analysis for the numerical solution of ordinary differential equations. It was developed by the German mathematician Erwin Fehlberg and is based on the large class of Runge–Kutta methods.
The novelty of Fehlberg's method is that it is an embedded method from the Runge–Kutta family, meaning that it reuses the same intermediate calculations to produce two estimates of different accuracy, allowing for automatic error estimation. The method presented in Fehlberg's 1969 paper has been dubbed the RKF45 method, and is a method of order O(h4) with an error estimator of order O(h5).[1] By performing one extra calculation, the error in the solution can be estimated and controlled by using the higher-order embedded method that allows for an adaptive stepsize to be determined automatically.
Remove ads
Butcher tableau for Fehlberg's 4(5) method
Any Runge–Kutta method is uniquely identified by its Butcher tableau. The embedded pair proposed by Fehlberg[2]
0 | |||||||
1/4 | 1/4 | ||||||
3/8 | 3/32 | 9/32 | |||||
12/13 | 1932/2197 | −7200/2197 | 7296/2197 | ||||
1 | 439/216 | −8 | 3680/513 | −845/4104 | |||
1/2 | −8/27 | 2 | −3544/2565 | 1859/4104 | −11/40 | ||
16/135 | 0 | 6656/12825 | 28561/56430 | −9/50 | 2/55 | ||
25/216 | 0 | 1408/2565 | 2197/4104 | −1/5 | 0 |
The first row of coefficients at the bottom of the table gives the fifth-order accurate method, and the second row gives the fourth-order accurate method.

Remove ads
Implementing an RK4(5) Algorithm
Summarize
Perspective
The coefficients found by Fehlberg for Formula 1 (derivation with his parameter α2=1/3) are given in the table below:
Fehlberg[2] outlines a solution to solving a system of n differential equations of the form: to iterative solve for where h is an adaptive stepsize to be determined algorithmically:
The solution is the weighted average of six increments, where each increment is the product of the size of the interval, , and an estimated slope specified by function f on the right-hand side of the differential equation.
Then the weighted average is:
The estimate of the truncation error is:
At the completion of the step, a new stepsize is calculated:[3]
If , then replace with and repeat the step. If , then the step is completed. Replace with for the next step.
The coefficients found by Fehlberg for Formula 2 (derivation with his parameter α2 = 3/8) are given in the table below, using array indexing of base 1 instead of base 0 to be compatible with most computer languages:
In another table in Fehlberg,[2] coefficients for an RKF4(5) derived by D. Sarafyan are given:
Remove ads
See also
Notes
References
Further reading
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads