Semi-implicit Euler method

This is an old revision of this page, as edited by RjwilmsiBot (talk | contribs) at 20:29, 20 September 2010 (References: fixing page range dashes using AWB (7159)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In mathematics, the semi-implicit Euler method, also called symplectic Euler, semi-explicit Euler, Euler–Cromer, and Newton–Størmer–Verlet (NSV), is a modification of the Euler method for solving Hamilton's equations, a system of ordinary differential equations that arises in classical mechanics. It is a symplectic integrator and hence it yields better results than the standard Euler method.

Setting

The semi-implicit Euler method can be applied to a pair of differential equations of the form

 
 

where f and g are given functions. Here, x and v may be either scalars or vectors. The equations of motion in Hamiltonian mechanics take this form if the Hamiltonian is of the form

 

The differential equations are to be solved with the initial condition

 

The method

The semi-implicit Euler method produces an approximate discrete solution by iterating

 

where Δt is the time step and tn = t0 + nΔt is the time after n steps.

The difference with the standard Euler method is that the semi-implicit Euler method uses vn+1 in the equation for xn+1, while the Euler method uses vn.

Applying the method with negative time step to the computation of   from   and rearranging leads to the second variant of the semi-implicit Euler method

 

which has similar properties.

The semi-implicit Euler is a first-order integrator, just as the standard Euler method. This means that it commits a global error of the order of Δt. However, the semi-implicit Euler method is a symplectic integrator, unlike the standard method. As a consequence, the semi-implicit Euler method almost conserves the energy (when the Hamiltonian is time-independent). Often, the energy increases steadily when the standard Euler method is applied, making it far less accurate.

Alternating between the two variants of the semi-implicit Euler method leads in one simplification to the Störmer-Verlet integration and in a slightly different simplification to the leapfrog integration, increasing both the order of the error and the order of preservation of energy.[1]

Example

The motion of a spring satisfying Hooke's law is given by

 

The semi-implicit Euler for this equation is

 

The iteration preserves the modified energy functional   exactly, leading to stable periodic orbits that deviate by   from the exact orbits. The exact circular frequency   increases in the numerical approximation by a factor of  .

References

  1. ^ Hairer, Ernst; Lubich, Christian; Wanner, Gerhard (2003). "Geometric numerical integration illustrated by the Störmer/Verlet method". Acta Numerica. 12: 399–450. doi:10.1017/S0962492902000144.