Geometric integrator explained

In the mathematical field of numerical ordinary differential equations, 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

m=1

andwhose rod is massless of length

\ell=1

. Take theacceleration due to gravity to be

g=1

. Denote by

q(t)

the angular displacement of the rod from the vertical,and by

p(t)

the pendulum's momentum. The Hamiltonian ofthe system, the sum of its kinetic and potential energies, is

H(q,p)=T(p)+U(q)=

1
2

p2-\cosq,

which gives Hamilton's equations

(
q,p)

=(\partialH/\partialp,-\partialH/\partialq)=(p,-\sinq).

Q

of all

q

to be the unitcircle

S1

, so that

(q,p)

lies on thecylinder

S1 x R

. However, we will take

(q,p)\inR2

, simply because

(q,p)

-space isthen easier to plot. Define

z(t)=(q(t),p(t))T

and

f(z)=(p,-\sinq)T

. Let us experiment byusing some simple numerical methods to integrate this system. As usual,we select a constant step size,

h

, and for an arbitrary non-negative integer

k

we write

zk:=z(kh)

.We use the following methods.

zk+1=zk+hf(zk)

(explicit Euler),

zk+1=zk+hf(zk+1)

(implicit Euler),

zk+1=zk+hf(qk,pk+1)

(symplectic Euler),

zk+1=zk+hf((zk+1+zk)/2)

(implicit midpoint rule).

(Note that the symplectic Euler method treats q by the explicit and

p

by the implicit Euler method.)

The observation that

H

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

p2/2- \cosq

. We plot, in

R2

, the exacttrajectories and the numerical solutions of the system. For the explicitand implicit Euler methods we take

h=0.2

, and z0 = (0.5, 0) and (1.5, 0) respectively; for the other two methods we take

h=0.3

, and z0 = (0, 0.7), (0, 1.4) and (0, 2.1).The explicit (resp. implicit) Euler method spirals out from (resp. in to) the origin. The other two methods show the correct qualitative behaviour, with the implicit midpoint rule agreeing with the exact solution to a greater degree than the symplectic Euler method.

Recall that the exact flow

\phit

of a Hamiltonian system with one degree of freedom isarea-preserving, in the sense that
\det\partial\phit
\partial(q0,p0)

=1

for all

t

.This formula is easily verified by hand. For our pendulumexample we see that the numerical flow

\Phi{eE,h}:zk\mapstozk+1

of the explicit Euler method is not area-preserving; viz.,
\det\partial
\partial(q0,p0)

\Phi{eE,h}(z0) =\begin{vmatrix}1&h\\-h\cosq0&1\end{vmatrix} =1+h2\cosq0.

A similar calculation can be carried out for the implicit Euler method,where the determinant is

\det\partial
\partial(q0,p0)

\Phi{iE,h}(z0) =(1+h2\cos

-1
q
1)

.

However, the symplectic Euler method is area-preserving:

\begin{pmatrix}1&-h\\0&1\end{pmatrix}\partial
\partial(q0,p0)

\Phi{sE,h}(z0) =\begin{pmatrix}1&0\\-h\cosq0&1\end{pmatrix},

thus

\det(\partial\Phi{sE,h}/\partial(q0,p0))=1

. 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.

Moving frame method

The moving frame method can be used to construct numerical methods which preserve Lie symmetries of the ODE. Existing methods such as Runge-Kutta can be modified using moving frame method to produce invariant versions.[1]

See also

Further reading

Notes and References

  1. Pilwon Kim (2006), " Invariantization of Numerical Schemes Using Moving Frames"