Midpoint method
|
|
It has been suggested that this article or section be merged with Riemann Integral. (Discuss) Proposed since February 2012. |
In numerical analysis, a branch of applied mathematics, the midpoint method is a one-step method for solving the differential equation
numerically, and is given by the formula
for
Here, h is the step size — a small positive number, tn = t0 + nh, and yn is the computed approximate value of y(tn).
The name of the method comes from the fact that in the formula above the function f is evaluated at t = tn + h / 2, which is the midpoint between tn at which the value of y(t) is known and tn + 1 at which the value of y(t) needs to be found.
The local error at each step of the midpoint method is of order
, giving a global error of order
. Thus, while more computationally intensive than Euler's method, the midpoint method generally gives more accurate results.
The method is an example of a class of higher-order methods known as Runge-Kutta methods.
[edit] Derivation of the midpoint method
The midpoint method is a refinement of the Euler's method
and is derived in a similar manner. The key to deriving Euler's method is the approximate equality
which is obtained from the slope formula
and keeping in mind that y' = f(t,y).
For the midpoint method, one replaces (3) with the more accurate
when instead of (2) we find
One cannot use this equation to find y(t + h) as one does not know y at t + h / 2. The solution is then to use a Taylor series expansion exactly as if using the Euler method to solve for y(t + h / 2):
which, when plugged in (4), gives us
and the midpoint method (1).
[edit] See also
[edit] References
- Griffiths,D. V.; Smith, I. M. (1991). Numerical methods for engineers: a programming approach. Boca Raton: CRC Press. p. 218. ISBN 0-8493-8610-1.








