Symplectic Euler Method
   HOME

TheInfoList



OR:

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 In mathematics and computational science, the Euler method (also called forward Euler method) is a first-order numerical procedure for solving ordinary differential equations (ODEs) with a given initial value. It is the most basic explicit met ...
for solving
Hamilton's equations Hamiltonian mechanics emerged in 1833 as a reformulation of Lagrangian mechanics. Introduced by Sir William Rowan Hamilton, Hamiltonian mechanics replaces (generalized) velocities \dot q^i used in Lagrangian mechanics with (generalized) ''momenta ...
, a system of
ordinary differential equation In mathematics, an ordinary differential equation (ODE) is a differential equation whose unknown(s) consists of one (or more) function(s) of one variable and involves the derivatives of those functions. The term ''ordinary'' is used in contrast w ...
s that arises in
classical mechanics Classical mechanics is a physical theory describing the motion of macroscopic objects, from projectiles to parts of machinery, and astronomical objects, such as spacecraft, planets, stars, and galaxies. For objects governed by classical ...
. It is a
symplectic integrator In mathematics, a symplectic integrator (SI) is a numerical integration scheme for Hamiltonian systems. Symplectic integrators form the subclass of geometric integrators which, by definition, are canonical transformations. They are widely used in n ...
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 equation In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, an ...
s of the form :\begin &= f(t,v) \\ &= g(t,x), \end where ''f'' and ''g'' are given functions. Here, ''x'' and ''v'' may be either scalars or vectors. The equations of motion in
Hamiltonian mechanics Hamiltonian mechanics emerged in 1833 as a reformulation of Lagrangian mechanics. Introduced by Sir William Rowan Hamilton, Hamiltonian mechanics replaces (generalized) velocities \dot q^i used in Lagrangian mechanics with (generalized) ''momenta ...
take this form if the Hamiltonian is of the form : H = T(t,v) + V(t,x). \, The differential equations are to be solved with the initial condition : x(t_0) = x_0, \qquad v(t_0) = v_0.


The method

The semi-implicit Euler method produces an approximate
discrete Discrete may refer to: *Discrete particle or quantum in physics, for example in quantum theory * Discrete device, an electronic component with just one circuit element, either passive or active, other than an integrated circuit *Discrete group, a ...
solution by iterating :\begin v_ &= v_n + g(t_n, x_n) \, \Delta t\\ .3em x_ &= x_n + f(t_n, v_) \, \Delta t \end where Δ''t'' is the time step and ''tn'' = ''t''0 + ''n''Δ''t'' is the time after ''n'' steps. The difference with the standard Euler method is that the semi-implicit Euler method uses ''v''''n''+1 in the equation for ''x''''n''+1, while the Euler method uses ''vn''. Applying the method with negative time step to the computation of (x_n, v_n) from (x_, v_) and rearranging leads to the second variant of the semi-implicit Euler method :\begin x_ &= x_n + f(t_n, v_n) \, \Delta t\\ .3ex v_ &= v_n + g(t_n, x_) \, \Delta t \end 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 In mathematics, a symplectic integrator (SI) is a numerical integration scheme for Hamiltonian systems. Symplectic integrators form the subclass of geometric integrators which, by definition, are canonical transformations. They are widely used in n ...
, 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 Verlet integration () is a numerical method used to integrate Newton's equations of motion. It is frequently used to calculate trajectories of particles in molecular dynamics simulations and computer graphics. The algorithm was first used in 1791 ...
and in a slightly different simplification to the
leapfrog integration In numerical analysis, leapfrog integration is a method for numerically integrating differential equations of the form \ddot x = \frac = A(x), or equivalently of the form \dot v = \frac = A(x), \;\dot x = \frac = v, particularly in the case of a d ...
, increasing both the order of the error and the order of preservation of energy. The stability region of the semi-implicit method was presented by NiiranenNiiranen, Jouko: Fast and accurate symmetric Euler algorithm for electromechanical simulations
Proceedings of the Electrimacs'99, Sept. 14-16, 1999 Lisboa, Portugal, Vol. 1, pages 71 - 78.
although the semi-implicit Euler was misleadingly called symmetric Euler in his paper. The semi-implicit method models the simulated system correctly if the complex roots of the characteristic equation are within the circle shown below. For real roots the stability region extends outside the circle for which the criterion is s > - 2/\Delta t As can be seen, the semi-implicit method can simulate correctly both stable systems that have their roots in the left half plane and unstable systems that have their roots in the right half plane. This is clear advantage over forward (standard) Euler and backward Euler. Forward Euler tends to have less damping than the real system when the negative real parts of the roots get near the imaginary axis and backward Euler may show the system be stable even when the roots are in the right half plane.


Example

The motion of a
spring Spring(s) may refer to: Common uses * Spring (season), a season of the year * Spring (device), a mechanical device that stores energy * Spring (hydrology), a natural source of water * Spring (mathematics), a geometric surface in the shape of a ...
satisfying
Hooke's law In physics, Hooke's law is an empirical law which states that the force () needed to extend or compress a spring (device), spring by some distance () Proportionality (mathematics)#Direct_proportionality, scales linearly with respect to that ...
is given by :\begin \frac &= v(t)\\ .2em \frac &= -\frac\,x=-\omega^2\,x. \end The semi-implicit Euler for this equation is :\begin v_ &= v_n - \omega^2\,x_n\,\Delta t \\ .2em x_ &= x_n + v_ \,\Delta t. \end Substituting v_ in the second equation with the expression given by the first equation, the iteration can be expressed in the following matrix form :\begin x_ \\v_\end = \begin 1-\omega^2 \Delta t^2 & \Delta t \\ -\omega^2 \Delta t & 1 \end \begin x_ \\ v_ \end, and since the
determinant In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if and ...
of the matrix is 1 the transformation is area-preserving. The iteration preserves the modified energy functional E_h(x,v)=\tfrac12\left(v^2+\omega^2\,x^2-\omega^2\Delta t\,vx\right) exactly, leading to stable periodic orbits (for sufficiently small step size) that deviate by O(\Delta t) from the exact orbits. The exact circular frequency \omega increases in the numerical approximation by a factor of 1+\tfrac1\omega^2\Delta t^2+O(\Delta t^4).


References

* * * {{Numerical integrators Numerical differential equations