splitting methods and energy preservation for separable ...symplectic rk methods conserve quadratic...

56
Splitting methods and energy preservation for separable Hamiltonians Fasma Diele, Brigida Pace Istituto per le Applicazioni del Calcolo “M. Picone”, CNR, Bari, Italy Splitting Methods for Differential Equations Castell´ on, September 6–8, 2010 Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 1 / 57

Upload: others

Post on 11-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Splitting methods and energy preservation for separableHamiltonians

Fasma Diele, Brigida Pace

Istituto per le Applicazioni del Calcolo “M. Picone”, CNR, Bari, Italy

Splitting Methods for Differential EquationsCastellon, September 6–8, 2010

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 1 / 57

Page 2: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Outline

Energy-preservation vs symplecticity

Energy-preserving methods:I The Average Vector Field (AVF) methodI Extended collocation methods (for polynomial Hamiltonians)I Energy-preserving variant of collocation methodsI B-series methods

Explicit symplectic methods:I Splitting and composition schemes as explicit, symplectic, partitioned

Runge-Kutta methodsI Order conditions of ESPRK schemesI One-parameter families of order two and fourI Minimum energy error methodsI Examples of energy preservation

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 2 / 57

Page 3: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Energy-preservation vs symplecticity

We consider the numerical integration of (autonomous)Hamiltonian systems

y = J−1∇H(y), J =

(

0 −I

I 0

)

,

where the Hamiltonian function H(y) is assumed to besufficiently differentiable.

Main properties: Energy-preservation AND symplecticityof the flow (ϕt(y0) = y(t), if y(0) = y0)

H = 0,

ϕ′

tT J ϕ

t = J .

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 3 / 57

Page 4: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Looking for: symplectic AND energy-preservingintegrators yn+1 = Φh(yn) satisfying both the followingproperties:

the one-step map Φh(yn) is symplectic (the Jacobianmatrix satisfies Φ

h(yn)T J Φ

h(yn) = J),

H(yn+1) = H(yn) for all n and h > 0.

No chance: Symplectic integrators, in general, do notexactly conserve the Hamiltonian.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 4 / 57

Page 5: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Backward error analysis

Symplectic one-step methods nearly conserve theHamiltonian (of an arbitrary system) over exponentiallylong times. The sequence H(yn) displays an oscillating

behavior and the amplitude of oscillation is bounded withrespect to the time and of size O(hp).

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 5 / 57

Page 6: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Stormer/Verlet scheme

10−1

100

101

102

0.2344

0.2345

0.2346

0.2347

0.2348

0.2349

0.235

0.2351

LOG(t)

H

Hamiltonian plot

Exact Hamiltonian

Stormer/Verlet

Figure: Energy function H4(pn, qn) =12p

2n +

12q

2n − 1

24q4n, h = 0.1, t = [0, 100],

[q0, p0] = [0.7, 0]

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 6 / 57

Page 7: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Implicit Midpoint Rule (1-stage, Gauss method)

10−1

100

101

102

0.245

0.245

0.245

0.245

0.245

0.245

0.245

0.245

LOG(t)

H

Hamiltonian plot

Exact HamiltonianImplicit Midpoint Rule

Figure: Energy function H2(pn, qn) =12p

2n +

12q

2n, h = 0.1, t = [0, 100],

[q0, p0] = [0.7, 0]

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 7 / 57

Page 8: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Symplectic RK methods conserve quadratic Hamiltonianfunctions:

H(y) =1

2yTCy

but fail to yield conservation for higher degrees.

Symplectic B-series methods preserve quadratic invariants.P. Chartier, E. Faou, A. Murua, Numer. Math. 103, 2006.

However, in general, symplecticity does not guarantee thepreservation of the energy!

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 8 / 57

Page 9: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Energy-preserving methods

A few years ago, the unfruitful attempts to deviseenergy-preserving RK methods culminated in the generalfeeling that they should be symplectic and they could notpreserve polynomial Hamiltonians of degree higher thentwo.

(A. Iserles and A. Zanna, Preserving algebraic invariants withRunge-Kutta methods, J. Comput. Appl. Math., 125, 2000, 69–81).

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 9 / 57

Page 10: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Average Vector Field integrator

The AVF method is defined as

yn+1 = yn + h

∫ 1

0

J−1∇H(ξyn+1 + (1− ξ)yn) dξ

Main property: Energy preservation in Hamiltoniansystem.

R.I McLachlan, G.R.W. Quispel, N. Robidoux, J.R. Soc. Lond.Philos. Trans. Ser. A Math. Phys. Eng. Sci. 1999.

G.R.W. Quispel, D.I. McLaren, J.Phys. A: Math. Theor. 41,2008.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 10 / 57

Page 11: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Proof

Let σ(ξ) = ξyn+1 + (1− ξ)yn the segment joining yn andyn+1, with ξ ∈ [0, 1] then

H(yn+1)− H(yn) =

σ

∇H(z) dz =

∫ 1

0

∇H(σ(ξ))T σ(ξ) dξ =

∫ 1

0

∇H(σ(ξ))T (yn+1 − yn) dξ =

h

∫ 1

0

∇H(σ(ξ))T dξ

∫ 1

0

J−1∇H(σ(ξ)) dξ = 0.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 11 / 57

Page 12: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Polynomial Hamiltonians

Consider polynomial Hamiltonian functions, then theintegral appearing in the AVF method can be exactlyreplaced by a suitable quadrature formula.For example, suppose H quadratic, then the 2-stages Lobattoquadrature formula leads to

yn+1 − yn = h1

2J−1 (∇H(yn) +∇H(yn+1))

that is the Trapezoidal method (not symplectic).Similarly, 1-stage Gauss method leads to

yn+1 − yn = h J−1

(

∇H(1

2(yn + yn+1))

)

that is the Implicit Midpoint method (symplectic: no surprise since H

is quadratic).Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 12 / 57

Page 13: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

The Discrete Average Vector Field integrators

The DAVF method is defined as

yn+1 = yn + h

s∑

i=1

biJ−1∇H(ciyn+1 + (1− ci)yn)

where bi and ci are weigths and knots of a quadratureformula of degree m.It is a Runge-Kutta method with Butcher tableauA = cbT .

Main property: Energy preservation for polynomialHamiltonians of degree m + 1.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 13 / 57

Page 14: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Proof,againLet σ(c) = cyn+1 + (1− c)yn the segment joining yn andyn+1, with c ∈ [0, 1] then

H(yn+1)− H(yn) =

σ

∇H(z) dz =

∫ 1

0

∇H(σ(c))T σ(c) dc =

∫ 1

0

∇H(σ(c))T (yn+1−yn) dc =

h

∫ 1

0

∇H(σ(c))T dc

s∑

i=1

bi J−1∇H(σ(ci)) =

h

s∑

j=1

bj∇H(σ(cj))T

s∑

i=1

bi J−1∇H(σ(ci)) = 0

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 14 / 57

Page 15: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Example: DAVF 2-steps Radau IIA: exact on polynomialsof second degree

yn+1 − yn = J−1

(

3

4∇H(Y1/3) +

1

4∇H(Y1)

)

, Y1/3 =1

3yn+1 +

2

3yn, Y1 = yn+1,

10−1

100

101

102

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878Hamiltonian plot

LOG(t)

H

Exact Hamiltonian

DAVF 2-steps Radau IIA

Figure: Energy function H3(pn, qn) =12p

2 + 12q

2 − 16q

3, h = 0.1, t = [0, 100],[q0, p0] = [0.7, 0]Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 15 / 57

Page 16: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

REMARK

All these methods have only a second order accuracy...

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 16 / 57

Page 17: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Generalizations:

Extended collocation methods (for polynomialHamiltonian)

Energy-preserving variant of collocation methods

B-series methods

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 17 / 57

Page 18: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Extended collocation methods: sketch of the idea

Improve the order accuracy by

increasing the degree of the polynomial curve σ(c)

considering quadrature formula that takes intoaccount the degree of ∇H(σ(c))T σ(c)

With respect to classical collocation methods, extendedcollocation methods increase the number of inner stagesfor assuring the energy-preservation.

B. Pace. PhD thesis, 2008., F. Iavernaro, B. Pace., AIP Conf. Proc., 2007and 2008, F. Iavernaro and D. Trigiante, JNAIAM 4, 2009.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 18 / 57

Page 19: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Example: 5-stages extended Lobatto IIIA

order 4energy-preservation of polynomial Hamiltonian of degree 3.

10−1

100

101

102

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

LOG(t)

HHamiltonian plot

Exact Hamiltonian

5-stages Extended Lobatto IIIA

Figure: Energy function H3(pn, qn) =12p

2n +

12q

2n − 1

6q3n, h = 0.1, t = [0, 100],

[q0, p0] = [0.7, 0]

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 19 / 57

Page 20: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Energy-preserving variant of collocation methods: sketchof the idea

For generic Hamiltonian do not replace the integral bya quadrature formula,

Consider the AVF method as a RK scheme with acontinuum of stages lying on a straigth line:

yn+1 = yn + h

∫ 1

0

J−1∇H(Yξ) dξ,

Yξ = ξyn+1 + (1− ξ)yn (≈ y(tn + ξ h)),

generalize to polynomial curves of degree s > 1.

E. Hairer, JNAIAM, 2010.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 20 / 57

Page 21: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Example: 4-order energy-preserving collocation method

u(tn + ξ h) = yn + (yn+1 − yn) ξ + 2(yn+1 − 2Y1/2 + yn)ξ (ξ − 1)

Y1/2 = yn + h

∫ 1

0

(5

4− 3

2ξ) J−1∇H(u(tn + ξ h)) dξ

yn+1 = yn + h

∫ 1

0

J−1∇H(u(tn + ξ h)) dξ.

Remark: By approximating the integrals by 5 stages Lobattoquadrature rule we obtain the 5-stages extended Lobatto IIIA method.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 21 / 57

Page 22: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

B-series methods: sketch of the idea

Consider the AVF method as a B-series method thatconserve energy in Hamiltonian system.

Prove that AVF method is a B-series second-ordermethod.

Increase the order by considering compositions of AVFmethod with its adjoint.

E. Celledoni, R.I. McLachlan, D.I. McLaren, B.Owren, G.R.W. Quispel,W.M. Wright., ESAIM: M2AN 43, 2009.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 22 / 57

Page 23: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Explicit symplectic integrators

We have seen that the energy-preserving methods areimplicit and requires the evaluation of an exact integral

(or a suitable approximation in case of polynomialHamiltonians).

In case of separable Hamiltonians, we are giving up to usesymplectic, explicit methods of mimimum effective error.

R.I. McLachlan, SIAM J. Sci. Comput., 16, 1995.

S. Blanes, P.C. Moan, JCAM, 142, 2002.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 23 / 57

Page 24: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Splitting methods as symplectic partitioned Runge-KuttamethodsSeparable Hamiltonians H(p, q) = T (p) + U(q): interpret H as thesum of two Hamiltonians T (p) and U(q) and solve exactly thecorresponding Hamiltonian systems. If the flows of the two systemsare denoted as ϕT

t and ϕUt , then

ϕTh ◦ ϕU

h

is the symplectic Euler method. This is equivalent to the RungeKutta partitioned method

0 01

1 11

applied to the Hamiltonian system with stepsize h (p variableimplicit and q variable explicit).

q = Tp(p)p = −Uq(q)

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 24 / 57

Page 25: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

More in general a splitting method with 2s + 1 free parameters ai andbi ,

ϕUbs+1h

◦ ϕTash

◦ · · · ◦ ϕUb2h

◦ ϕTa1h

◦ ϕUb1h,

is equivalent to the following s + 1 stages PRK scheme

c(a)1 0

c(a)2 a1 0

c(a)3 a1 a2 0

......

.... . .

c(a)s+1 a1 a2 . . . as 0

a1 a2 . . . . . . 0

c(b)1 b1

c(b)2 b1 b2

c(b)3 b1 b2 b3

......

.... . .

c(b)s+1 b1 b2 b3 . . . bs+1

b1 b2 . . . . . . bs+1

Splitting methods are esplicit, symplectic methods.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 25 / 57

Page 26: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

The simplecticity of the method can be verified (also) viaPRK theory:

PRK schemes based on two k stages RK methods(aij , bi , ci) and (aij , bi , ci), applied on separableHamiltonian, if they satisfy

bi aij + bjaij = bi bj , i , j = 1, . . . , k ,

are symplectic.

This is our case.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 26 / 57

Page 27: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Effective order of a splitting method

We consider as measure of the error of a p-order methodthe effective error

Ef = s

(

m∑

i=1

C 2i

)(1/2m)

where Ci , for i = 1, . . . ,m are the determining orderequations for achieving an accuracy up to order p + 1.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 27 / 57

Page 28: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Determining order conditions: C (τ) = Φ(τ)− 1γ(τ) = 0

Table: Elementary weights and density function values up to order five

Φ(τ) γ(τ) Φ(τ) γ(τ)s+1∑

i=1

bi 1s∑

i=1

ai 1

s+1∑

i

bic(a)i

2

s+1∑

i

bi (c(a)i

)2 3

s+1∑

i=1

i−1∑

j=1

biajc(b)j

6s+1∑

i=1

i−1∑

j=1

biaj (c(b)j

)2 12

s+1∑

i=1

bi (c(a)i

)3 4s+1∑

i=1

i−1∑

j=1

i∑

k=1

biajbkc(a)k

24

s+1∑

i=1

bi (c(a)i

)4 5s+1∑

i=1

i−1∑

j=1

j∑

l=1

l−1∑

k=1

biajblakc(b)k

120

s+1∑

i=1

i−1∑

j=1

j∑

l=1

bic(a)i

ajblc(a)l

30

s+1∑

i=1

i−1∑

j=1

j∑

l=1

biajbl (c(a)l

)2 60

s+1∑

i=1

i−1∑

j=1

j∑

l=1

biajc(b)j

blc(a)l

40

s+1∑

i=1

i−1∑

j=1

biaj (c(b)j

)3 20

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 28 / 57

Page 29: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Symmetric methods

bs+2−i = bi , i = 1, . . . s + 1, as+1−i = ai i = 1, . . . s.

free parameters ai and bi reduce to s + 1

parameters that satisfy odd orders of accuracy p,automatically verify the conditions for the even orderp + 1.

For example, two conditions of the first order, assure the second order:

s+1∑

i=1

bi = 1,s∑

i=1

ai = 1

It is enough to take s = 1, and solve a1 = 1 and 2 b1 = 1 withb1 = b2 to define the Stormer-Verlet scheme ϕU

h/2 ◦ ϕTh ◦ ϕU

h/2

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 29 / 57

Page 30: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

One-parameter second-order methods

In order to preserve one degree of freedom, take s = 2 and solve thesystem

2b1 + b2 = 1, 2a1 = 1.

with respect to b2 and a1 considering b = b1 as a free parameter.We obtain the class of second order methods defined as

ϕUbh ◦ ϕT

h/2 ◦ ϕU(1−2b)h ◦ ϕT

h/2 ◦ ϕUbh

The effective error is given by

Ef (b) =4

4 b4 − 8 b3 + 19/3 b2 − 5/3 b + 5/36

By setting y =3

36 + 2√326, it achieves its minimum value at

bopt ML =2 + 6y − y2

12y≈ 0.1932 (MLS2 scheme).

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 30 / 57

Page 31: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Second-order methods with minimum error in energy

Instead of minimizing the effective error, search for thevalues of b = bn which minimizes the error on energy,

at each timestep tn.

Starting form y0 at t0 = 0, the method at tn = n h, searches for

minbn |H(yn+1)− H(y0)|with

yn+1 = ψ(n)h (yn), ψ

(n)h = ϕU

bnh◦ ϕT

h/2 ◦ ϕU(1−2bn)h

◦ ϕTh/2 ◦ ϕU

bnh

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 31 / 57

Page 32: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Remark

Provided that, for each n, there exists a minimumequal to zero, the method gives a second-order,energy-preserving integrator.

If not, the method provides a second-order integratorwith minimum error in energy.

From a computational point of view it requires, foreach n, the search for a zero of a scalar function withrespect to a scalar variable.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 32 / 57

Page 33: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Example: linear oscillator

y = J−1∇H(y), H(y) =yT y

2, y ∈ R

2.

Evaluate the numerical solution as

y1 = ψ(0)h (y0) = K (b1, h)y0.

with

K (b1, h) =1

8

[

p(b1, h) e(b1, h) + q(b1, h)

e(b1, h)− q(b1, h) p(b1, h)

]

p = p(b1, h) = 8 − 4h2 + 2h4b1 − 4h4b21e = e(b1, h) = h3( 2h2 b31 − (4 + h2) b21 + 6 b1 − 1 )q = q(b1, h) = h(8− h2) − 2h3b1 + h3(4 + h2)b21 − 2h5b31

withdet(K )− 1 = p2 + q2 − e2 − 64 = 0

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 33 / 57

Page 34: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Evaluate

H(y1)− H(y0) =1

2yT0 (KT K − I ) y0

with

KT K =1

64

[

p2 + (e − q)2 2 p e

2 p e p2 + (e + q)2

]

.

Seek for solutions of H(y1)− H(y0) = 0 which do not depend on y0;

it is easy to see that it is enough to find the (real) roots of the thirdorder polynomial e since, from det(K ) = 1, it follows thatp2 + q2 − 64 = 0.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 34 / 57

Page 35: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Theorem Set h > 0 and let br a real root of the third orderpolynomial

e(b, h) = 2h2 b3 − (4 + h2) b2 + 6 b − 1,

then, the scheme

ϕUbr h

◦ ϕTh/2 ◦ ϕU

(1−2br ) h ◦ ϕTh/2 ◦ ϕU

br

is an explicit, symplectic, energy preserving, second orderscheme for the linear oscillator

q = p, p = −q

.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 35 / 57

Page 36: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

What about the efficiency? Plot the real roots of e(b, h) forh ∈ ]0 , 1].

0 0.2 0.4 0.6 0.8 110

−1

100

101

102

103

h

LO

G(b

0(h))

Real Roots

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

10−0.72

10−0.71

10−0.7

h

LO

G(b

0(h

))

Real Roots

h ≈ 0.65486

boptML

Figure: Real roots of e(b, h) for h ∈]0 , 1],

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 36 / 57

Page 37: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

It turns out that, by choosing b∗ as the real root whichsatisfies

minbr

|br − bopt ML| = |b∗ − bopt ML|

we find the optimal energy-preserving (symmetric)second order scheme (EPS2).

Moreover, for value of h ≈ 0.65486 the MLS2 and EPS2schemes coincide, hence MLS2 scheme behaves as anenergy-preserving scheme for the linear oscillator.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 37 / 57

Page 38: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

0 20 40 60 80 1000.2449

0.245

0.245

0.2451

0.2451

0.2452

0.2452

0.2453

t

H

Hamiltonian plot

Exact HamiltonianMLS2

EPS2

0 20 40 60 80 1000.245

0.245

0.245

0.245

0.245

0.245

0.245

0.245

t

H

Hamiltonian plot

Exact Hamiltonian

MLS2

EPS2

Figure: Energy function H2(qn, pn) =12p

2n +

12q

2n, t = [0, 100], [q0, p0] = [0.7, 0],

h = 0.8 (left) and h = 0.6548603813333458 (right)

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 38 / 57

Page 39: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Higher-order polynomial Hamiltonians

Suppose H(p, q) = 1/2p2 +∑sq

i=0 bi qi , sq ≥ 3, sq ∈ N .

The degree of the polynomialH(pn+1, qn+1)− H(pn, qn), with respect to bn, is2(s2q − sq + 1).

The roots will depend also on pn and qn and thesymplecticity can be lost.

Real roots may not exist.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 39 / 57

Page 40: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

It is not possible to develope the analysis done on thelinear oscillator...

Let us use an algorithm for finding a minimum ofnonlinear scalar functions.

The values bn = bopt ML will be the starting guesses forour method, for each n.

The accuracy of the optimization algorithm plays a crucialrole.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 40 / 57

Page 41: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

0 10 20 30 40 50 60 70 80 90 1000.245

0.245

0.245

0.245

0.245

0.245

0.245

t

H

Hamiltonian plot

Exact HamiltonianEPS2

O(10−10)

0 20 40 60 80 1000.1943

0.1943

0.1943

0.1943

0.1943

0.1943

0.1943

0.1943

0.1943

b0

t

b 0Figure: Use fsolve Matlab built in function. Energy functionH2(pn, qn) =

12p

2n +

12q

2n, h = 0.8, t = [0, 100], [q0, p0] = [0.7, 0] (left) and values

bn (right).

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 41 / 57

Page 42: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

100

101

102

0.1874

0.1875

0.1876

0.1877

0.1878

0.1879

0.188

Hamiltonian plot

LOG(t)

H

Exact Hamiltonian

MLS2

EPS2

100

101

102

0.1874

0.1875

0.1876

0.1877

0.1878

0.1879

0.188

LOG(t)

H

Hamiltonian plot

Exact Hamiltonian

MLS2

EPS2

Figure: Energy function H3(pn, qn) =12p

2n +

12q

2n − 1

6q3n, t = [0, 100], h = 0.5,

[q0, p0] = [0.7, 0] (left: exact, rigth: use fsolve)

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 42 / 57

Page 43: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

10−1

100

101

102

0.235

0.235

0.235

0.235

0.235

0.235

0.235

0.235

0.235Hamiltonian plot

LOG(t)

H

Exact Hamiltonian

MLS2

0 20 40 60 80 1000.188

0.1885

0.189

0.1895

0.19

0.1905

0.191

0.1915

bn plot

t

b n

Figure: Energy function H4(pn, qn) =12p

2n +

12q

2n − 1

24q4n, h = 0.1, t = [0, 100],

[q0, p0] = [0.7, 0] (left) and values bn (right)

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 43 / 57

Page 44: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

For polynomial Hamiltonians considered, the proposedmethod behaves as

second-order energy-preserving integrators.

What happens for general non linear Hamiltonians?

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 44 / 57

Page 45: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

An example: Perturbed Kepler problem

10−1

100

101

102

−0.582

−0.58

−0.578

−0.576

−0.574

−0.572

−0.57

−0.568

−0.566

−0.564

LOG(t)

H

Hamiltonian plot

Exact Hamiltonian

MLS2

EPS2

0 20 40 60 80 100 12010

−3

10−2

10−1

100

bn plot

t

LOG

(bn)

Figure: Energy function H(qn, pn) =12p

Tn pn − 1

‖qn‖2− ε

3‖qn‖32, ε = 0.015, h = 0.1,

t = [0, 120], q0 = [1− e, 0], p0 = [0,√

1+e1−e

],e = 0.6

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 45 / 57

Page 46: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

For the considered non linear Hamiltonian problem, theproposed method behaves as a second-order integratorswith minimum error in energy preservation.

Let us increase the order.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 46 / 57

Page 47: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Fourth-order methods with minimum error in energyTwo additional conditions:

s+1∑

i

bi(c(a)i )2 − 1

3= 0,

s+1∑

i=1

i−1∑

j=1

biajc(b)j − 1

6= 0.

By setting s = 4 we obtain two families of fourth-order methodsdepending on one parameter an.

ϕUb1(an)h

◦ϕTanh

◦ϕUb2(an)h

◦ϕT1−2an

2 h◦ϕU

(1−2(b1(an)+b2(n)))h◦ϕT

1−2an2 h

◦ϕUb2(an)h

◦ϕTanh

◦ϕUb1(an)h

where an > 1/2, an 6= 1+√5

4 ≈ 0.809 and

b1(an) = (24a3n − 20a2n +2an ±√2α (1−2an))

12an(4a2n − 2an−1)

b2(an) = (−4an +8a2n ∓√2α)

−12an(1+8a3n −8a2n);

with α = α(an) =√

an(8an − 24a2n + 24a3n − 1).The optimal one-parameter fourth order splitting method in the secondfamily (MLS4) is achieved in correspondence of an = aoptML ≈ 0.5532.Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 47 / 57

Page 48: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Linear oscillator

Again, the numerical solution can be expressed as

y1 = ψ(0)h (y0) = K (a1, h)y0.

with

K (a1, h) =

[

p(a1, h) e(a1, h) + q(a1, h)

e(a1, h)− q(a1, h) p(a1, h)

]

.

Unfortunately, e(a1, h) shows a not-polynomial dependence a1 due topresence of α(a1).

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 48 / 57

Page 49: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Choose the second family of methods

0.529 0.53 0.531 0.532 0.533 0.534 0.535 0.536−2

−1.5

−1

−0.5

0

0.5

1

1.5

2

a

e(a,

h)

e(a,h) plot

h=0.1

h=0.2

h=0.3

h=0.4

h=0.5

h=0.6

h=0.7

h=0.8

h=0.9

h=1.0

Figure: e(a, h), for different values of h

For values of h → 0, e(a, h) = 0 for a ≈ 0.5361.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 49 / 57

Page 50: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Theorem Set h > 0 and denote with ar the (real) zero of the

function e(a, h) for 12< a < 1+

√5

4then, the scheme

ϕUb1(ar )h

◦ϕTarh

◦ϕUb2(ar )h

◦ϕT1−2ar

2 h◦ϕU

(1−2(b1(ar )+b2(ar )))h◦ϕT

1−2ar2 h

◦ϕUb2(ar )h

◦ϕTarh

◦ϕUb1(ar )h

is an explicit, symplectic, energy preserving, fourth orderscheme for the linear oscillator

q = p, p = −q.

Notice that the accuracy encreases for decreasing values of h.Differently from the second order method, this scheme cannot assumethe optimal value related to a = aoptML ≈ 0.5532.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 50 / 57

Page 51: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Linear oscillator

10−1

100

101

102

0.245

0.245

0.245

0.245

0.245

0.245

0.245

0.245

0.245

0.245

Hamiltonian plot

LOG(t)

H

Exact Hamiltonian

EPS4

0 20 40 60 80 1000.536

0.5361

0.5362

t

an

an plot

Figure: Energy function H2(pn, qn) =12p

2n +

12q

2n, h = 0.1, t = [0, 100],

[q0, p0] = [0.7, 0]

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 51 / 57

Page 52: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Higher degree polynomials: cubic Hamiltonian

10−1

100

101

102

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878

0.1878Hamiltonian plot

LOG(t)

H

Exact Hamiltonian

EPS4

O(10−10)

0 20 40 60 80 1000.5

1

1.5

2

2.5

3

3.5

4

an plot

t

a n

Figure: Energy function H3(pn, qn) =12p

2n +

12q

2n − 1

6q3n, t = [0, 100], h = 0.5,

[q0, p0] = [0.7, 0]

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 52 / 57

Page 53: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Quartic Hamiltonian

100

101

102

0.235

0.235

0.235

0.235

0.235

0.235

0.235

0.235

0.235

0.235Hamiltonian plot

LOG(t)

H

Exact Hamiltonian

EPS4

O(10−10)

0 20 40 60 80 1000

10

20

30

40

50

60

70

80

90

100

an plot

t

a n

Figure: Energy function H4(pn, qn) =12p

2n +

12q

2n − 1

24q4n, h = 0.1, t = [0, 100],

[q0, p0] = [0.7, 0] (left) and values bn (right)

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 53 / 57

Page 54: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Perturbed Kepler problem

10−1

100

101

102

−0.5781

−0.5781

−0.5781

−0.5781

−0.5781

−0.5781

−0.5781

−0.5781

−0.5781

−0.5781

−0.5781Hamiltonian plot

LOG(t)

H

Exact Hamiltonian

MLS4

EPS4

O(10−6)

0 20 40 60 80 100 1200

10

20

30

40

50

60

an plot

t

an

Figure: Energy function H(qn, pn) =12p

Tn pn − 1

‖qn‖2− ε

3‖qn‖32, ε = 0.015, h = 0.1,

t = [0, 100], q0 = [1− e, 0], p0 = [0,√

1+e1−e

],e = 0.6

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 54 / 57

Page 55: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

CONCLUSIONS

We propose second and fourth order splitting schemes forseparable Hamiltonians featured by minimum error in energypreservation.

In case of the linear oscillator they are explicit, symplectic,energy-preserving integrators.

In case of polynomial Hamiltonians the schemes (seems to)behave as energy-preserving methods, in the general case theyare methods with minimum error in energy. However, an efficientoptimization algorithm is required.

Energy-preserving methods with complex coefficients, higherorder methods as well as the generalization to non-separableHamiltonians will be the subject of our future research.

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 55 / 57

Page 56: Splitting methods and energy preservation for separable ...Symplectic RK methods conserve quadratic Hamiltonian functions: H(y) = 1 2 yTCy but fail to yield conservation for higher

Thanks to all for your attention!

Fasma Diele, Brigida Pace (IAC-CNR) Energy preservation 6/09/2010 56 / 57