- Geometric integrator
In the mathematical field of numerical ODEs, a geometric integrator is a numerical method that preserves geometric properties of the exact flow of a differential equation.
Pendulum example
We can motivate the study of geometric integrators by considering the motion of a pendulum.
Assume that we have a pendulum whose bob has mass andwhose rod is massless of length . Take theacceleration due to gravity to be . Denote by the angular displacement of the rod from the vertical,and by the pendulum's momentum. The Hamiltonian ofthe system, the sum of its kinetic and potential energies, is:,which gives
Hamilton's equations :.It is natural to take theconfiguration space of all to be the unitcircle , so that lies on thecylinder . However, we will take, simply because -space isthen easier to plot. Define and . Let us experiment byusing some simple numerical methods to integrate this system. As usual,we select a constant step-size and write for .We use the following methods.: (explicit Euler),: (implicit Euler),: (symplectic Euler),: (implicit midpoint rule).(Note that the symplectic Euler method treats by theexplicit and by the implicit Euler method.)The observation that is constant along the solutioncurves of the Hamilton's equations allows us to describe the exacttrajectories of the system: they are the level curves of . We plot, in , the exacttrajectories and the numerical solutions of the system. For the explicitand implicit Euler methods we take , and and respectively; for the other twomethods we take , and , and .The explicit (resp. implicit) Euler method spirals out from (resp. into) the origin. The other two methods show the correct qualitativebehaviour, with the implicit midpoint rule agreeing with the exactsolution to a greater degree than the symplectic Euler method.
Recall that the exact flow of a Hamiltonian system with one degree of freedom isarea-preserving, in the sense that: for all .This formula is easily verified by hand. For our pendulumexample we see that the numerical flow of the explicit Euler method is not area-preserving; viz.,:.A similar calculation can be carried out for the implicit Euler method,where the determinant is:.However, the symplectic Euler method is area-preserving::,thus . The implicit midpoint rule has similar geometric properties.
To summarize: the pendulum example shows that, besides the explicit andimplicit Euler methods not being good choices of method to solve theproblem, the symplectic Euler method and implicit midpoint rule agreewell with the exact flow of the system, with the midpoint rule agreeingmore closely. Furthermore, these latter two methods are area-preserving,just as the exact flow is; they are two examples of geometric (in fact, symplectic) integrators.
References
*Ernst Hairer, Christian Lubich and Gerhard Wanner, "Geometric Numerical Integration: Structure-Preserving Algorithms for Ordinary Differential Equations." Springer, Berlin, 2002. ISBN 3-540-43003-2.
*Ben Leimkuhler and Sebastian Reich, "Simulating Hamiltonian Dynamics." Cambridge University Press, 2005. ISBN 0-521-77290-7.
Wikimedia Foundation. 2010.