Midpoint method

In numerical analysis, a branch of applied mathematics, the midpoint method is a one-step method for numerically solving the differential equation,
- .
The explicit midpoint method is given by the formula
the implicit midpoint method by
for Here, is the step size — a small positive number, and is the computed approximate value of The explicit midpoint method is also known as the modified Euler method,[1] the implicit method is the most simple collocation method, and, applied to Hamiltionian dynamics, a symplectic integrator.
The name of the method comes from the fact that in the formula above the function giving the slope of the solution is evaluated at (note : is ) which is the midpoint between at which the value of y(t) is known and 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's error generally decreases faster as .
The methods are examples of a class of higher-order methods known as Runge-Kutta methods.
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
For the midpoint methods, one replaces (3) with the more accurate
when instead of (2) we find
One cannot use this equation to find as one does not know at . The solution is then to use a Taylor series expansion exactly as if using the Euler method to solve for :
which, when plugged in (4), gives us
and the explicit midpoint method (1e).
The implicit method (1i) is obtained by approximating the value at the half step by the midpoint of the line segment from to
and thus
Inserting the approximation for results in the implicit Runge-Kutta method
which contains the implicit Euler method with step size as its first part.
Because of the time symmetry of the implicit method, all terms of even degree in of the local error cancel, so that the local error is automatically of order . Replacing the implicit with the explicit Euler method in the determination of results again in the explicit midpoint method.
See also
- Rectangle method
- Heun's method
- Leapfrog integration and Verlet integration
- Direct Nonlinear Analysis using DNA-Alpha method [2]
The DNA-Alpha method will find exact solutions of any nonlinear equation without iteration. The equation must be in the following form:
y = f(x), where f(x) is a high order nonlinear function in x variable
and
y'(x) = f'(x), where f'(x) is the known first derivative of the function.
Instead of using the mid-point method, it uses two previously solved values and the Mean Value Theorem to find three estimations of next step. The three pair of values will be used to form a quadratic equation and a root of the quadratic equation will become the next step. The required initial conditions are : y(0) and y'(0).
It can be used for finding all exact roots of a N-degree polynomial equation and traces the curve easily. The DNA-Alpha method can be used to solve a nonlinear equation exactly without any iteration. The time needed depends only on the evaluation time of the function to be solved. It can also be used to trace any function's curve easily.
Notes
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.
- Süli, Endre; Mayers, David (2003), An Introduction to Numerical Analysis, Cambridge University Press, ISBN 0-521-00794-1.