Heun's method
In mathematics and computational science, Heun's method may refer to the improved[1] or modified Euler's method (that is, the explicit trapezoidal rule[2]), or a similar two-stage Runge–Kutta method. It is named after Karl Heun and is a numerical procedure for solving ordinary differential equations (ODEs) with a given initial value. Both variants can be seen as extensions of the Euler method into two-stage second-order Runge–Kutta methods.
The procedure for calculating the numerical solution to the initial value problem:
by way of Heun's method, is to first calculate the intermediate value and then the final approximation at the next integration point.
where is the step size and .
Hyppolite bonomi
Derivation
Using the principle that the slope of a line equates to the rise/run, the coordinates at the end of the interval can be found using the following formula:
- ,
The accuracy of the Euler method improves only linearly with the step size is decreased, whereas the Heun Method improves accuracy quadratically .[3] The scheme can be compared with the implicit trapezoidal method, but with replaced by in order to make it explicit. is the result of one step of Euler's method on the same initial value problem. So, Heun's method is a predictor-corrector method with forward Euler's method as predictor and trapezoidal method as corrector.
Runge–Kutta method
The improved Euler's method is a two-stage Runge–Kutta method, and can be written using the Butcher tableau (after John C. Butcher):
0 | |||
1 | 1 | ||
1/2 | 1/2 |
The other method referred to as Heun's method (also known as Ralston's method) has the Butcher tableau:[4]
0 | |||
2/3 | 2/3 | ||
1/4 | 3/4 |
This method minimizes the truncation error.
References
- ^ Süli, Endre; Mayers, David (2003), An Introduction to Numerical Analysis, Cambridge University Press, ISBN 0-521-00794-1.
- ^ Ascher, Uri M.; Petzold, Linda R. (1998), Computer Methods for Ordinary Differential Equations and Differential-Algebraic Equations, Philadelphia: Society for Industrial and Applied Mathematics, ISBN 978-0-89871-412-8.
- ^ "The Euler-Heun Method" (PDF). LiveToad.org. Archived from the original (PDF) on 2018-10-14.
- ^ Leader, Jeffery J. (2004), Numerical Analysis and Scientific Computation, Boston: Addison-Wesley, ISBN 0-201-73499-0.