Runge–Kutta–Fehlberg Numerical Method for Solving ODEsby admin in Differential Equations , Math, Statistics, and Optimization , MATLAB Family on April 3, 2019
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 identical function evaluations are used in conjunction with each other to create methods of varying order and similar error constants. 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). 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.
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:
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.
The code implements these tabulated values to solve a given ODE equation. The code also compare a high-accurate solution with our solution and plot them on one chart. You can change the equation and put yours as the initial conditions and the interval.