volume preservation by runge-kutta methods

99
Volume Preservation by Runge-Kutta Methods Marcus Webb University of Cambridge Joint work with P. Bader, D.I. McLaren, G.R.W. Quispel (La Trobe University, Melbourne) 15th September 2015 SciCADE 2015, Potsdam, Germany Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 1 / 24

Upload: others

Post on 26-Oct-2021

18 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Volume Preservation by Runge-Kutta Methods

Volume Preservation by Runge-Kutta Methods

Marcus Webb

University of CambridgeJoint work with P. Bader, D.I. McLaren, G.R.W. Quispel (La Trobe University, Melbourne)

15th September 2015SciCADE 2015, Potsdam, Germany

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 1 / 24

Page 2: Volume Preservation by Runge-Kutta Methods

Volume Preserving ODEs

• Consider an ODE of the form

x(t) = f (x(t)), x(0) = x0 ∈ Rn, (f ∈ C 2)

where div(f ) = 0 .

• “Divergence free vector field”.

• These systems are volume preserving...

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 2 / 24

Page 3: Volume Preservation by Runge-Kutta Methods

Volume Preserving ODEs

• Consider an ODE of the form

x(t) = f (x(t)), x(0) = x0 ∈ Rn, (f ∈ C 2)

where div(f ) = 0 .

• “Divergence free vector field”.

• These systems are volume preserving...

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 2 / 24

Page 4: Volume Preservation by Runge-Kutta Methods

Volume Preserving ODEs

• The solution to an ODE x = f (x) is a flow map,

ϕt : Rn → Rn,

for all times t ≥ 0. It maps x(0) to x(t).

• The ODE is volume preserving if for all measurable sets A ⊆ Rn

vol (ϕt(A)) = vol(A)

for all t ≥ 0.

• Equivalently,det(ϕ′t(x)) = 1

for all x ∈ Rn and all t ≥ 0. “Jacobian is 1”.

• This is because ∫ϕt(A)

dy =

∫A

det(ϕ′t(x))dx

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 3 / 24

Page 5: Volume Preservation by Runge-Kutta Methods

Volume Preserving ODEs

• The solution to an ODE x = f (x) is a flow map,

ϕt : Rn → Rn,

for all times t ≥ 0. It maps x(0) to x(t).

• The ODE is volume preserving if for all measurable sets A ⊆ Rn

vol (ϕt(A)) = vol(A)

for all t ≥ 0.

• Equivalently,det(ϕ′t(x)) = 1

for all x ∈ Rn and all t ≥ 0. “Jacobian is 1”.

• This is because ∫ϕt(A)

dy =

∫A

det(ϕ′t(x))dx

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 3 / 24

Page 6: Volume Preservation by Runge-Kutta Methods

Volume Preserving ODEs

• The solution to an ODE x = f (x) is a flow map,

ϕt : Rn → Rn,

for all times t ≥ 0. It maps x(0) to x(t).

• The ODE is volume preserving if for all measurable sets A ⊆ Rn

vol (ϕt(A)) = vol(A)

for all t ≥ 0.

• Equivalently,det(ϕ′t(x)) = 1

for all x ∈ Rn and all t ≥ 0. “Jacobian is 1”.

• This is because ∫ϕt(A)

dy =

∫A

det(ϕ′t(x))dx

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 3 / 24

Page 7: Volume Preservation by Runge-Kutta Methods

Volume Preserving ODEs

• The solution to an ODE x = f (x) is a flow map,

ϕt : Rn → Rn,

for all times t ≥ 0. It maps x(0) to x(t).

• The ODE is volume preserving if for all measurable sets A ⊆ Rn

vol (ϕt(A)) = vol(A)

for all t ≥ 0.

• Equivalently,det(ϕ′t(x)) = 1

for all x ∈ Rn and all t ≥ 0. “Jacobian is 1”.

• This is because ∫ϕt(A)

dy =

∫A

det(ϕ′t(x))dx

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 3 / 24

Page 8: Volume Preservation by Runge-Kutta Methods

Volume Preserving Methods

• For every step size h > 0 a numerical method for x = f (x) gives anumerical flow map

φh : Rn → Rn.

• The exact solution to the ODE is approximated by

ϕh(x) ≈ φh(x), ϕ2h(x) ≈ φh(φh(x)), etc.

• A numerical method is volume preserving for x = f (x) ifdet(φ′h(x)) = 1 for all x , h.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 4 / 24

Page 9: Volume Preservation by Runge-Kutta Methods

Volume Preserving Methods

• For every step size h > 0 a numerical method for x = f (x) gives anumerical flow map

φh : Rn → Rn.

• The exact solution to the ODE is approximated by

ϕh(x) ≈ φh(x), ϕ2h(x) ≈ φh(φh(x)), etc.

• A numerical method is volume preserving for x = f (x) ifdet(φ′h(x)) = 1 for all x , h.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 4 / 24

Page 10: Volume Preservation by Runge-Kutta Methods

Volume Preserving Methods

• For every step size h > 0 a numerical method for x = f (x) gives anumerical flow map

φh : Rn → Rn.

• The exact solution to the ODE is approximated by

ϕh(x) ≈ φh(x), ϕ2h(x) ≈ φh(φh(x)), etc.

• A numerical method is volume preserving for x = f (x) ifdet(φ′h(x)) = 1 for all x , h.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 4 / 24

Page 11: Volume Preservation by Runge-Kutta Methods

Runge-Kutta Methods

• An s-stage Runge-Kutta method is defined by

φh(x) = x + hs∑

i=1

bi f (ki )

k1 = x + hs∑

j=1

a1j f (kj)

...

ks = x + hs∑

j=1

asj f (kj)

• Butcher tableau: b ∈ Rs , A ∈ Rs×s

• In what situations are Runge-Kutta methods volume preserving?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 5 / 24

Page 12: Volume Preservation by Runge-Kutta Methods

Runge-Kutta Methods

• An s-stage Runge-Kutta method is defined by

φh(x) = x + hs∑

i=1

bi f (ki )

k1 = x + hs∑

j=1

a1j f (kj)

...

ks = x + hs∑

j=1

asj f (kj)

• Butcher tableau: b ∈ Rs , A ∈ Rs×s

• In what situations are Runge-Kutta methods volume preserving?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 5 / 24

Page 13: Volume Preservation by Runge-Kutta Methods

Hamiltonian Systems

• Hamiltonian Systems are volume preserving ODEs. Why?

x = J∇H(x), J =

(0 I−I 0

)∈ R2d×2d ,

• They have the special property that the flow maps are symplectic:

ϕ′t(x)>Jϕ′t(x) = J.

• Compute determinants:

det(ϕ′t(x)>)det(J)det(ϕ′t(x)) = det(J).

Hence det(ϕ′t(x))2 = 1. Note that det(ϕ′0(x)) = 1, sodet(ϕ′t(x)) = 1.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 6 / 24

Page 14: Volume Preservation by Runge-Kutta Methods

Hamiltonian Systems

• Hamiltonian Systems are volume preserving ODEs. Why?

x = J∇H(x), J =

(0 I−I 0

)∈ R2d×2d ,

• They have the special property that the flow maps are symplectic:

ϕ′t(x)>Jϕ′t(x) = J.

• Compute determinants:

det(ϕ′t(x)>)det(J)det(ϕ′t(x)) = det(J).

Hence det(ϕ′t(x))2 = 1. Note that det(ϕ′0(x)) = 1, sodet(ϕ′t(x)) = 1.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 6 / 24

Page 15: Volume Preservation by Runge-Kutta Methods

Hamiltonian Systems

• Hamiltonian Systems are volume preserving ODEs. Why?

x = J∇H(x), J =

(0 I−I 0

)∈ R2d×2d ,

• They have the special property that the flow maps are symplectic:

ϕ′t(x)>Jϕ′t(x) = J.

• Compute determinants:

det(ϕ′t(x)>)det(J)det(ϕ′t(x)) = det(J).

Hence det(ϕ′t(x))2 = 1. Note that det(ϕ′0(x)) = 1, sodet(ϕ′t(x)) = 1.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 6 / 24

Page 16: Volume Preservation by Runge-Kutta Methods

Symplectic Runge-Kutta

• For Hamiltonian problems, Symplectic Runge-Kutta methods producesymplectic maps:

φ′h(x)>Jφ′h(x) = J.

Hence Symplectic Runge-Kutta methods are volume preservingintegrators for Hamiltonian Systems.

• There are many more divergence free vector fields!

• What about non-Hamiltonian systems, and in general?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 7 / 24

Page 17: Volume Preservation by Runge-Kutta Methods

Symplectic Runge-Kutta

• For Hamiltonian problems, Symplectic Runge-Kutta methods producesymplectic maps:

φ′h(x)>Jφ′h(x) = J.

Hence Symplectic Runge-Kutta methods are volume preservingintegrators for Hamiltonian Systems.

• There are many more divergence free vector fields!

• What about non-Hamiltonian systems, and in general?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 7 / 24

Page 18: Volume Preservation by Runge-Kutta Methods

Symplectic Runge-Kutta

• For Hamiltonian problems, Symplectic Runge-Kutta methods producesymplectic maps:

φ′h(x)>Jφ′h(x) = J.

Hence Symplectic Runge-Kutta methods are volume preservingintegrators for Hamiltonian Systems.

• There are many more divergence free vector fields!

• What about non-Hamiltonian systems, and in general?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 7 / 24

Page 19: Volume Preservation by Runge-Kutta Methods

Barriers for Volume Preserving Integrators

Theorem (Kang, Zai-Jiu 1995)

No single analytic method (includes all RK methods) is volume preservingfor all divergence free systems.

Theorem (Iserles, Quispel, Tse and Chartier, Murua 2007)

No single B-Series method (includes all RK methods) is volume preservingfor all divergence free systems.

General volume preservation is hard!

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 8 / 24

Page 20: Volume Preservation by Runge-Kutta Methods

Barriers for Volume Preserving Integrators

Theorem (Kang, Zai-Jiu 1995)

No single analytic method (includes all RK methods) is volume preservingfor all divergence free systems.

Theorem (Iserles, Quispel, Tse and Chartier, Murua 2007)

No single B-Series method (includes all RK methods) is volume preservingfor all divergence free systems.

General volume preservation is hard!

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 8 / 24

Page 21: Volume Preservation by Runge-Kutta Methods

Barriers for Volume Preserving Integrators

Theorem (Kang, Zai-Jiu 1995)

No single analytic method (includes all RK methods) is volume preservingfor all divergence free systems.

Theorem (Iserles, Quispel, Tse and Chartier, Murua 2007)

No single B-Series method (includes all RK methods) is volume preservingfor all divergence free systems.

General volume preservation is hard!

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 8 / 24

Page 22: Volume Preservation by Runge-Kutta Methods

Barriers for Volume Preserving Integrators

Theorem (Kang, Zai-Jiu 1995)

No single analytic method (includes all RK methods) is volume preservingfor all divergence free systems.

Theorem (Iserles, Quispel, Tse and Chartier, Murua 2007)

No single B-Series method (includes all RK methods) is volume preservingfor all divergence free systems.

General volume preservation is hard!

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 8 / 24

Page 23: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• In their book on Geometric Numerical Integation, Hairer, Lubich andWanner consider the following systems. x ∈ Rm, y ∈ Rn(

xy

)=

(u(y)v(x)

),

for functions u : Rn → Rm, v : Rm → Rn

Theorem (Hairer,Lubich,Wanner 2006)

Systems of this form are volume perserving, and any SymplecticRunge-Kutta method with 1 or 2 stages (and compositions) is a volumepreserving integrator for these systems.

• These are many examples of non-Hamiltonian systems that havevolume preserving Runge-Kutta integrators.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 9 / 24

Page 24: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• In their book on Geometric Numerical Integation, Hairer, Lubich andWanner consider the following systems. x ∈ Rm, y ∈ Rn(

xy

)=

(u(y)v(x)

),

for functions u : Rn → Rm, v : Rm → Rn

Theorem (Hairer,Lubich,Wanner 2006)

Systems of this form are volume perserving, and any SymplecticRunge-Kutta method with 1 or 2 stages (and compositions) is a volumepreserving integrator for these systems.

• These are many examples of non-Hamiltonian systems that havevolume preserving Runge-Kutta integrators.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 9 / 24

Page 25: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• In their book on Geometric Numerical Integation, Hairer, Lubich andWanner consider the following systems. x ∈ Rm, y ∈ Rn(

xy

)=

(u(y)v(x)

),

for functions u : Rn → Rm, v : Rm → Rn

Theorem (Hairer,Lubich,Wanner 2006)

Systems of this form are volume perserving, and any SymplecticRunge-Kutta method with 1 or 2 stages (and compositions) is a volumepreserving integrator for these systems.

• These are many examples of non-Hamiltonian systems that havevolume preserving Runge-Kutta integrators.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 9 / 24

Page 26: Volume Preservation by Runge-Kutta Methods

The Main Questions

• Is there a large class of divergence free vector fields that have volumepreserving Runge-Kutta methods?

• Which Runge-Kutta methods are relevant?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 10 / 24

Page 27: Volume Preservation by Runge-Kutta Methods

The Main Questions

• Is there a large class of divergence free vector fields that have volumepreserving Runge-Kutta methods?

• Which Runge-Kutta methods are relevant?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 10 / 24

Page 28: Volume Preservation by Runge-Kutta Methods

Implicit Midpoint Rule

• The implicit midpoint rule is the only 1-stage SymplecticRunge-Kutta method:

φh(x) = x + hf ((x + φh(x)) /2)

• When is it volume preserving?

φ′h(x) = I +h

2f ′(((x + φh(x)) /2) (I + φ′h(x))(

I − h

2f ′(((x + φh(x)) /2)

)φ′h(x) = I +

h

2f ′(((x + φh(x)) /2)

det(φ′h(x)) =det(I + h

2 f ′(((x + φh(x)) /2))

det(I − h

2 f ′(((x + φh(x)) /2)) =? 1

• “The determinant condition” is the necessary and sufficientcondition for volume preservation for the implicit midpoint rule:

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 11 / 24

Page 29: Volume Preservation by Runge-Kutta Methods

Implicit Midpoint Rule

• The implicit midpoint rule is the only 1-stage SymplecticRunge-Kutta method:

φh(x) = x + hf ((x + φh(x)) /2)

• When is it volume preserving?

φ′h(x) = I +h

2f ′(((x + φh(x)) /2) (I + φ′h(x))(

I − h

2f ′(((x + φh(x)) /2)

)φ′h(x) = I +

h

2f ′(((x + φh(x)) /2)

det(φ′h(x)) =det(I + h

2 f ′(((x + φh(x)) /2))

det(I − h

2 f ′(((x + φh(x)) /2)) =? 1

• “The determinant condition” is the necessary and sufficientcondition for volume preservation for the implicit midpoint rule:

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 11 / 24

Page 30: Volume Preservation by Runge-Kutta Methods

Implicit Midpoint Rule

• The implicit midpoint rule is the only 1-stage SymplecticRunge-Kutta method:

φh(x) = x + hf ((x + φh(x)) /2)

• When is it volume preserving?

φ′h(x) = I +h

2f ′(((x + φh(x)) /2) (I + φ′h(x))

(I − h

2f ′(((x + φh(x)) /2)

)φ′h(x) = I +

h

2f ′(((x + φh(x)) /2)

det(φ′h(x)) =det(I + h

2 f ′(((x + φh(x)) /2))

det(I − h

2 f ′(((x + φh(x)) /2)) =? 1

• “The determinant condition” is the necessary and sufficientcondition for volume preservation for the implicit midpoint rule:

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 11 / 24

Page 31: Volume Preservation by Runge-Kutta Methods

Implicit Midpoint Rule

• The implicit midpoint rule is the only 1-stage SymplecticRunge-Kutta method:

φh(x) = x + hf ((x + φh(x)) /2)

• When is it volume preserving?

φ′h(x) = I +h

2f ′(((x + φh(x)) /2) (I + φ′h(x))(

I − h

2f ′(((x + φh(x)) /2)

)φ′h(x) = I +

h

2f ′(((x + φh(x)) /2)

det(φ′h(x)) =det(I + h

2 f ′(((x + φh(x)) /2))

det(I − h

2 f ′(((x + φh(x)) /2)) =? 1

• “The determinant condition” is the necessary and sufficientcondition for volume preservation for the implicit midpoint rule:

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 11 / 24

Page 32: Volume Preservation by Runge-Kutta Methods

Implicit Midpoint Rule

• The implicit midpoint rule is the only 1-stage SymplecticRunge-Kutta method:

φh(x) = x + hf ((x + φh(x)) /2)

• When is it volume preserving?

φ′h(x) = I +h

2f ′(((x + φh(x)) /2) (I + φ′h(x))(

I − h

2f ′(((x + φh(x)) /2)

)φ′h(x) = I +

h

2f ′(((x + φh(x)) /2)

det(φ′h(x)) =det(I + h

2 f ′(((x + φh(x)) /2))

det(I − h

2 f ′(((x + φh(x)) /2))

=? 1

• “The determinant condition” is the necessary and sufficientcondition for volume preservation for the implicit midpoint rule:

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 11 / 24

Page 33: Volume Preservation by Runge-Kutta Methods

Implicit Midpoint Rule

• The implicit midpoint rule is the only 1-stage SymplecticRunge-Kutta method:

φh(x) = x + hf ((x + φh(x)) /2)

• When is it volume preserving?

φ′h(x) = I +h

2f ′(((x + φh(x)) /2) (I + φ′h(x))(

I − h

2f ′(((x + φh(x)) /2)

)φ′h(x) = I +

h

2f ′(((x + φh(x)) /2)

det(φ′h(x)) =det(I + h

2 f ′(((x + φh(x)) /2))

det(I − h

2 f ′(((x + φh(x)) /2)) =? 1

• “The determinant condition” is the necessary and sufficientcondition for volume preservation for the implicit midpoint rule:

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 11 / 24

Page 34: Volume Preservation by Runge-Kutta Methods

Implicit Midpoint Rule

• The implicit midpoint rule is the only 1-stage SymplecticRunge-Kutta method:

φh(x) = x + hf ((x + φh(x)) /2)

• When is it volume preserving?

φ′h(x) = I +h

2f ′(((x + φh(x)) /2) (I + φ′h(x))(

I − h

2f ′(((x + φh(x)) /2)

)φ′h(x) = I +

h

2f ′(((x + φh(x)) /2)

det(φ′h(x)) =det(I + h

2 f ′(((x + φh(x)) /2))

det(I − h

2 f ′(((x + φh(x)) /2)) =? 1

• “The determinant condition” is the necessary and sufficientcondition for volume preservation for the implicit midpoint rule:

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 11 / 24

Page 35: Volume Preservation by Runge-Kutta Methods

The Determinant Condition

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

• What does it mean?

• Eigenvalues of f ′(x) come in positive-negative pairs e.g.(1, 2, 2, 3, 0,−1,−2,−2,−3)

• trace(f ′(x)2k+1) = 0 for k = 0, 1, 2, . . .. Note thatdiv(f ) = trace(f ′(x)).

• Hamiltonian systems satisfy this condition.

• Hairer-Lubich-Wanner separable systems satisfy this condition.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 12 / 24

Page 36: Volume Preservation by Runge-Kutta Methods

The Determinant Condition

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

• What does it mean?• Eigenvalues of f ′(x) come in positive-negative pairs e.g.

(1, 2, 2, 3, 0,−1,−2,−2,−3)

• trace(f ′(x)2k+1) = 0 for k = 0, 1, 2, . . .. Note thatdiv(f ) = trace(f ′(x)).

• Hamiltonian systems satisfy this condition.

• Hairer-Lubich-Wanner separable systems satisfy this condition.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 12 / 24

Page 37: Volume Preservation by Runge-Kutta Methods

The Determinant Condition

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

• What does it mean?• Eigenvalues of f ′(x) come in positive-negative pairs e.g.

(1, 2, 2, 3, 0,−1,−2,−2,−3)• trace(f ′(x)2k+1) = 0 for k = 0, 1, 2, . . .. Note that

div(f ) = trace(f ′(x)).

• Hamiltonian systems satisfy this condition.

• Hairer-Lubich-Wanner separable systems satisfy this condition.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 12 / 24

Page 38: Volume Preservation by Runge-Kutta Methods

The Determinant Condition

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

• What does it mean?• Eigenvalues of f ′(x) come in positive-negative pairs e.g.

(1, 2, 2, 3, 0,−1,−2,−2,−3)• trace(f ′(x)2k+1) = 0 for k = 0, 1, 2, . . .. Note that

div(f ) = trace(f ′(x)).

• Hamiltonian systems satisfy this condition.

• Hairer-Lubich-Wanner separable systems satisfy this condition.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 12 / 24

Page 39: Volume Preservation by Runge-Kutta Methods

The Determinant Condition

det(I +h

2f ′(x)) = det(I − h

2f ′(x)) for all x ∈ Rn, h > 0.

• What does it mean?• Eigenvalues of f ′(x) come in positive-negative pairs e.g.

(1, 2, 2, 3, 0,−1,−2,−2,−3)• trace(f ′(x)2k+1) = 0 for k = 0, 1, 2, . . .. Note that

div(f ) = trace(f ′(x)).

• Hamiltonian systems satisfy this condition.

• Hairer-Lubich-Wanner separable systems satisfy this condition.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 12 / 24

Page 40: Volume Preservation by Runge-Kutta Methods

Symmetry-Induced Volume Preservation

Lemma (Generalises Hamiltonian systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x)>. Then any Symplectic Runge-Kutta method isvolume preserving.

If f is Hamiltonian: f (x) = J−1∇H(x), then f ′(x) = J−1∇2H(x). HenceJf ′(x)J−1 = ∇2H(x)J−1 = −(J−1∇2H(x))> = −f ′(x)>.

Lemma (Generalises HLW separable systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x). Then any Symplectic Runge-Kutta methodwith 1 or 2 stages (and compositions) is volume preserving.

If f is a HLW system, f (x , y) = (u(y), v(x)), then

f ′(x , y) =

(0 u′(y)

v ′(x) 0

).

Hence Pf ′(x , y)P−1 = −f ′(x , y), where P =

(I 00 −I

).

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 13 / 24

Page 41: Volume Preservation by Runge-Kutta Methods

Symmetry-Induced Volume Preservation

Lemma (Generalises Hamiltonian systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x)>. Then any Symplectic Runge-Kutta method isvolume preserving.

If f is Hamiltonian: f (x) = J−1∇H(x), then f ′(x) = J−1∇2H(x). HenceJf ′(x)J−1 = ∇2H(x)J−1 = −(J−1∇2H(x))> = −f ′(x)>.

Lemma (Generalises HLW separable systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x). Then any Symplectic Runge-Kutta methodwith 1 or 2 stages (and compositions) is volume preserving.

If f is a HLW system, f (x , y) = (u(y), v(x)), then

f ′(x , y) =

(0 u′(y)

v ′(x) 0

).

Hence Pf ′(x , y)P−1 = −f ′(x , y), where P =

(I 00 −I

).

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 13 / 24

Page 42: Volume Preservation by Runge-Kutta Methods

Symmetry-Induced Volume Preservation

Lemma (Generalises Hamiltonian systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x)>. Then any Symplectic Runge-Kutta method isvolume preserving.

If f is Hamiltonian: f (x) = J−1∇H(x), then f ′(x) = J−1∇2H(x). HenceJf ′(x)J−1 = ∇2H(x)J−1 = −(J−1∇2H(x))> = −f ′(x)>.

Lemma (Generalises HLW separable systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x). Then any Symplectic Runge-Kutta methodwith 1 or 2 stages (and compositions) is volume preserving.

If f is a HLW system, f (x , y) = (u(y), v(x)), then

f ′(x , y) =

(0 u′(y)

v ′(x) 0

).

Hence Pf ′(x , y)P−1 = −f ′(x , y), where P =

(I 00 −I

).

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 13 / 24

Page 43: Volume Preservation by Runge-Kutta Methods

Symmetry-Induced Volume Preservation

Lemma (Generalises Hamiltonian systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x)>. Then any Symplectic Runge-Kutta method isvolume preserving.

If f is Hamiltonian: f (x) = J−1∇H(x), then f ′(x) = J−1∇2H(x). HenceJf ′(x)J−1 = ∇2H(x)J−1 = −(J−1∇2H(x))> = −f ′(x)>.

Lemma (Generalises HLW separable systems)

Let f : Rn → Rn be such that there exists an invertible matrix P ∈ Rn×n

with Pf ′(x)P−1 = −f ′(x). Then any Symplectic Runge-Kutta methodwith 1 or 2 stages (and compositions) is volume preserving.

If f is a HLW system, f (x , y) = (u(y), v(x)), then

f ′(x , y) =

(0 u′(y)

v ′(x) 0

).

Hence Pf ′(x , y)P−1 = −f ′(x , y), where P =

(I 00 −I

).

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 13 / 24

Page 44: Volume Preservation by Runge-Kutta Methods

Further Examples

P =

0 0 10 1 01 0 0

, Pf ′(x)P−1 = −f ′(x)>, Pf ′(x)P−1 = −f ′(x)

x = F (x − z)− 5yy = 5z − 2xz = F (x − z) + 2y

f ′(x , y , z) =

F ′(x − z) −5 −F ′(x − z)−2 0 5

F ′(x − z) 2 −F ′(x − z)

x = F (x − z) + G (y)y = H(z − x)z = F (x − z)− G (y)

f ′(x , y , z) =

(F ′(x − z) G ′(y) −F ′(x − z)−H ′(z − x) 0 H ′(z − x)F ′(x − z) −G ′(y) −F ′(x − z)

)

I don’t know of any real life examples yet.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 14 / 24

Page 45: Volume Preservation by Runge-Kutta Methods

Further Examples

P =

0 0 10 1 01 0 0

, Pf ′(x)P−1 = −f ′(x)>, Pf ′(x)P−1 = −f ′(x)

x = F (x − z)− 5yy = 5z − 2xz = F (x − z) + 2y

f ′(x , y , z) =

F ′(x − z) −5 −F ′(x − z)−2 0 5

F ′(x − z) 2 −F ′(x − z)

x = F (x − z) + G (y)y = H(z − x)z = F (x − z)− G (y)

f ′(x , y , z) =

(F ′(x − z) G ′(y) −F ′(x − z)−H ′(z − x) 0 H ′(z − x)F ′(x − z) −G ′(y) −F ′(x − z)

)

I don’t know of any real life examples yet.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 14 / 24

Page 46: Volume Preservation by Runge-Kutta Methods

The Bigger Picture: Why are SRK methods symplectic?

• The system x = f (x) is Hamiltonian if and only if for every x ∈ R2d ,

f ′(x) ∈

Ω ∈ R2d×2d : JΩ + Ω>J = 0

• This is the Symplectic Lie Algebra, sp(2d)

• From the definition of the flow map ϕt , we can show

d

dtϕ′t(x) = f ′(ϕt(x))ϕ′t(x), ϕ′0(x) = I

• For each x ∈ R2d , this is a Lie group equation for ϕ′t(x). Hence

ϕ′t(x) ∈ Sp(2d) =

Q ∈ R2d×2d : Q>JQ = J

for all times t. The Symplectic Lie Group.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 15 / 24

Page 47: Volume Preservation by Runge-Kutta Methods

The Bigger Picture: Why are SRK methods symplectic?

• The system x = f (x) is Hamiltonian if and only if for every x ∈ R2d ,

f ′(x) ∈

Ω ∈ R2d×2d : JΩ + Ω>J = 0

• This is the Symplectic Lie Algebra, sp(2d)

• From the definition of the flow map ϕt , we can show

d

dtϕ′t(x) = f ′(ϕt(x))ϕ′t(x), ϕ′0(x) = I

• For each x ∈ R2d , this is a Lie group equation for ϕ′t(x). Hence

ϕ′t(x) ∈ Sp(2d) =

Q ∈ R2d×2d : Q>JQ = J

for all times t. The Symplectic Lie Group.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 15 / 24

Page 48: Volume Preservation by Runge-Kutta Methods

The Bigger Picture: Why are SRK methods symplectic?

• The system x = f (x) is Hamiltonian if and only if for every x ∈ R2d ,

f ′(x) ∈

Ω ∈ R2d×2d : JΩ + Ω>J = 0

• This is the Symplectic Lie Algebra, sp(2d)

• From the definition of the flow map ϕt , we can show

d

dtϕ′t(x) = f ′(ϕt(x))ϕ′t(x), ϕ′0(x) = I

• For each x ∈ R2d , this is a Lie group equation for ϕ′t(x). Hence

ϕ′t(x) ∈ Sp(2d) =

Q ∈ R2d×2d : Q>JQ = J

for all times t. The Symplectic Lie Group.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 15 / 24

Page 49: Volume Preservation by Runge-Kutta Methods

The Bigger Picture: Why are SRK methods symplectic?

• The system x = f (x) is Hamiltonian if and only if for every x ∈ R2d ,

f ′(x) ∈

Ω ∈ R2d×2d : JΩ + Ω>J = 0

• This is the Symplectic Lie Algebra, sp(2d)

• From the definition of the flow map ϕt , we can show

d

dtϕ′t(x) = f ′(ϕt(x))ϕ′t(x), ϕ′0(x) = I

• For each x ∈ R2d , this is a Lie group equation for ϕ′t(x). Hence

ϕ′t(x) ∈ Sp(2d) =

Q ∈ R2d×2d : Q>JQ = J

for all times t. The Symplectic Lie Group.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 15 / 24

Page 50: Volume Preservation by Runge-Kutta Methods

The Bigger Picture: Why are SRK methods symplectic?

Theorem (Cooper 1987, Sanz-Serna 1988, Bochev, Scovel 1994)

Symplectic Runge-Kutta methods preserve quadratic first integrals of boththe solution ϕt(x) and the Jacobian ϕ′t(x).

• The constraint that ϕ′t(x) ∈ SP(2d) (i.e. ϕ′t(x)>Jϕ′t(x) = J) is a setof 4d2 quadratic constraints of ϕ′t(x). One for each entry of thematrix.

• Symplectic Runge-Kutta methods will preserve all of these firstintegrals, so “symplectic methods are symplectic”.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 16 / 24

Page 51: Volume Preservation by Runge-Kutta Methods

The Bigger Picture: Why are SRK methods symplectic?

Theorem (Cooper 1987, Sanz-Serna 1988, Bochev, Scovel 1994)

Symplectic Runge-Kutta methods preserve quadratic first integrals of boththe solution ϕt(x) and the Jacobian ϕ′t(x).

• The constraint that ϕ′t(x) ∈ SP(2d) (i.e. ϕ′t(x)>Jϕ′t(x) = J) is a setof 4d2 quadratic constraints of ϕ′t(x). One for each entry of thematrix.

• Symplectic Runge-Kutta methods will preserve all of these firstintegrals, so “symplectic methods are symplectic”.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 16 / 24

Page 52: Volume Preservation by Runge-Kutta Methods

The Bigger Picture: Why are SRK methods symplectic?

Theorem (Cooper 1987, Sanz-Serna 1988, Bochev, Scovel 1994)

Symplectic Runge-Kutta methods preserve quadratic first integrals of boththe solution ϕt(x) and the Jacobian ϕ′t(x).

• The constraint that ϕ′t(x) ∈ SP(2d) (i.e. ϕ′t(x)>Jϕ′t(x) = J) is a setof 4d2 quadratic constraints of ϕ′t(x). One for each entry of thematrix.

• Symplectic Runge-Kutta methods will preserve all of these firstintegrals, so “symplectic methods are symplectic”.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 16 / 24

Page 53: Volume Preservation by Runge-Kutta Methods

The Bigger Picture

• For vector fields satisfying this Hamiltonian type condition

Pf ′(x)P−1 = −f ′(x)>

• This is a quadratic Lie algebra condition f ′(x) ∈ gP :

gP =

Ω ∈ Rn×n : PΩ + Ω>P = 0

• The generated quadratic Lie group is

GP =

Q ∈ Rn×n : Q>PQ = P

(1)

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 17 / 24

Page 54: Volume Preservation by Runge-Kutta Methods

The Bigger Picture

• For vector fields satisfying this Hamiltonian type condition

Pf ′(x)P−1 = −f ′(x)>

• This is a quadratic Lie algebra condition f ′(x) ∈ gP :

gP =

Ω ∈ Rn×n : PΩ + Ω>P = 0

• The generated quadratic Lie group is

GP =

Q ∈ Rn×n : Q>PQ = P

(1)

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 17 / 24

Page 55: Volume Preservation by Runge-Kutta Methods

The Bigger Picture

• For vector fields satisfying this Hamiltonian type condition

Pf ′(x)P−1 = −f ′(x)>

• This is a quadratic Lie algebra condition f ′(x) ∈ gP :

gP =

Ω ∈ Rn×n : PΩ + Ω>P = 0

• The generated quadratic Lie group is

GP =

Q ∈ Rn×n : Q>PQ = P

(1)

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 17 / 24

Page 56: Volume Preservation by Runge-Kutta Methods

Quadratic Lie Groups Methods

• Just like for Hamiltonian systems (but with P instead of J) SRKmethods preserve the quadratic Lie Group structure:

φ′h(x) ∈ GP =

Q ∈ Rn×n : Q>PQ = P

• If P is invertible, then GP ⊆ SL(n):

det(φ′h(x)>) det(P) det(φ′h(x)) = det(P). (2)

• Hence det(φ′h(x)) = 1 and the method is volume preserving.

• The quadratic Lie algebraic structure induces the volumepreservation in the ODE

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 18 / 24

Page 57: Volume Preservation by Runge-Kutta Methods

Quadratic Lie Groups Methods

• Just like for Hamiltonian systems (but with P instead of J) SRKmethods preserve the quadratic Lie Group structure:

φ′h(x) ∈ GP =

Q ∈ Rn×n : Q>PQ = P

• If P is invertible, then GP ⊆ SL(n):

det(φ′h(x)>) det(P) det(φ′h(x)) = det(P). (2)

• Hence det(φ′h(x)) = 1 and the method is volume preserving.

• The quadratic Lie algebraic structure induces the volumepreservation in the ODE

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 18 / 24

Page 58: Volume Preservation by Runge-Kutta Methods

Quadratic Lie Groups Methods

• Just like for Hamiltonian systems (but with P instead of J) SRKmethods preserve the quadratic Lie Group structure:

φ′h(x) ∈ GP =

Q ∈ Rn×n : Q>PQ = P

• If P is invertible, then GP ⊆ SL(n):

det(φ′h(x)>) det(P) det(φ′h(x)) = det(P). (2)

• Hence det(φ′h(x)) = 1 and the method is volume preserving.

• The quadratic Lie algebraic structure induces the volumepreservation in the ODE

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 18 / 24

Page 59: Volume Preservation by Runge-Kutta Methods

Quadratic Lie Groups Methods

• Just like for Hamiltonian systems (but with P instead of J) SRKmethods preserve the quadratic Lie Group structure:

φ′h(x) ∈ GP =

Q ∈ Rn×n : Q>PQ = P

• If P is invertible, then GP ⊆ SL(n):

det(φ′h(x)>) det(P) det(φ′h(x)) = det(P). (2)

• Hence det(φ′h(x)) = 1 and the method is volume preserving.

• The quadratic Lie algebraic structure induces the volumepreservation in the ODE

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 18 / 24

Page 60: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• What about those systems with Pf ′(x)P−1 = −f ′(x)?

• In the paper we compute the Jacobian of a Runge-Kutta method(mega use of the chain rule).

• I just figured out that this is actually a quadratic Lie triple productspace:

LP =

Ω ∈ Rn×n : PΩ + ΩP = 0. (3)

• Note that P[[Ω1,Ω2],Ω3]P−1 = [[PΩ1P−1,PΩ2P−1],PΩ3P−1] =−[[Ω1,Ω2],Ω3].

• Conjecture: 2-stage SRK methods preserve the appropriate structures.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 19 / 24

Page 61: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• What about those systems with Pf ′(x)P−1 = −f ′(x)?

• In the paper we compute the Jacobian of a Runge-Kutta method(mega use of the chain rule).

• I just figured out that this is actually a quadratic Lie triple productspace:

LP =

Ω ∈ Rn×n : PΩ + ΩP = 0. (3)

• Note that P[[Ω1,Ω2],Ω3]P−1 = [[PΩ1P−1,PΩ2P−1],PΩ3P−1] =−[[Ω1,Ω2],Ω3].

• Conjecture: 2-stage SRK methods preserve the appropriate structures.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 19 / 24

Page 62: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• What about those systems with Pf ′(x)P−1 = −f ′(x)?

• In the paper we compute the Jacobian of a Runge-Kutta method(mega use of the chain rule).

• I just figured out that this is actually a quadratic Lie triple productspace:

LP =

Ω ∈ Rn×n : PΩ + ΩP = 0. (3)

• Note that P[[Ω1,Ω2],Ω3]P−1 = [[PΩ1P−1,PΩ2P−1],PΩ3P−1] =−[[Ω1,Ω2],Ω3].

• Conjecture: 2-stage SRK methods preserve the appropriate structures.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 19 / 24

Page 63: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• What about those systems with Pf ′(x)P−1 = −f ′(x)?

• In the paper we compute the Jacobian of a Runge-Kutta method(mega use of the chain rule).

• I just figured out that this is actually a quadratic Lie triple productspace:

LP =

Ω ∈ Rn×n : PΩ + ΩP = 0. (3)

• Note that P[[Ω1,Ω2],Ω3]P−1 = [[PΩ1P−1,PΩ2P−1],PΩ3P−1] =−[[Ω1,Ω2],Ω3].

• Conjecture: 2-stage SRK methods preserve the appropriate structures.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 19 / 24

Page 64: Volume Preservation by Runge-Kutta Methods

HLW Separable Systems

• What about those systems with Pf ′(x)P−1 = −f ′(x)?

• In the paper we compute the Jacobian of a Runge-Kutta method(mega use of the chain rule).

• I just figured out that this is actually a quadratic Lie triple productspace:

LP =

Ω ∈ Rn×n : PΩ + ΩP = 0. (3)

• Note that P[[Ω1,Ω2],Ω3]P−1 = [[PΩ1P−1,PΩ2P−1],PΩ3P−1] =−[[Ω1,Ω2],Ω3].

• Conjecture: 2-stage SRK methods preserve the appropriate structures.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 19 / 24

Page 65: Volume Preservation by Runge-Kutta Methods

Linear Foliations

DefinitionA basic foliation is a vector field of the form

f (x , y) =

(u(x)

v(x , y)

)

DefinitionA linear foliation is a vector field of the form

g(z) = Pf (P−1z),

where P is a matrix and f is a basic foliation.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 20 / 24

Page 66: Volume Preservation by Runge-Kutta Methods

Linear Foliations

DefinitionA basic foliation is a vector field of the form

f (x , y) =

(u(x)

v(x , y)

)

DefinitionA linear foliation is a vector field of the form

g(z) = Pf (P−1z),

where P is a matrix and f is a basic foliation.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 20 / 24

Page 67: Volume Preservation by Runge-Kutta Methods

Linear Foliations

f (x , y) = (u(x), v(x , y))

g(z) = Pf (P−1z)

Nice properties:

• Divergence free u, v =⇒ divergence free g .

• Determinant condition for u, v =⇒ determinant condition for g .

• Runge-Kutta methods respect linear foliations.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 21 / 24

Page 68: Volume Preservation by Runge-Kutta Methods

Linear Foliations

f (x , y) = (u(x), v(x , y))

g(z) = Pf (P−1z)

Nice properties:

• Divergence free u, v =⇒ divergence free g .

• Determinant condition for u, v =⇒ determinant condition for g .

• Runge-Kutta methods respect linear foliations.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 21 / 24

Page 69: Volume Preservation by Runge-Kutta Methods

Linear Foliations

f (x , y) = (u(x), v(x , y))

g(z) = Pf (P−1z)

Nice properties:

• Divergence free u, v =⇒ divergence free g .

• Determinant condition for u, v =⇒ determinant condition for g .

• Runge-Kutta methods respect linear foliations.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 21 / 24

Page 70: Volume Preservation by Runge-Kutta Methods

Linear Foliations

f (x , y) = (u(x), v(x , y))

g(z) = Pf (P−1z)

Nice properties:

• Divergence free u, v =⇒ divergence free g .

• Determinant condition for u, v =⇒ determinant condition for g .

• Runge-Kutta methods respect linear foliations.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 21 / 24

Page 71: Volume Preservation by Runge-Kutta Methods

Families of Volume Preserving Vector Fields

We define the following families of volume preserving vector fields:

H =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x)>,

S =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x),

F (∞) =

f (x , y) = (u(x), v(x , y))> where u ∈ H ∪ F (∞) and there exists

P such that for all x , y , P∂yv(x , y)P−1 = −∂yv(x , y)>,

F (2) =

f (x , y) = (u(x), v(x , y))> where u ∈ S ∪H ∪ F (2) and there exists

P such that for all x , y , either P∂yv(x , y)P−1 = −∂yv(x , y)> or

P∂yv(x , y)P−1 = −∂yv(x , y),

D =

vector fields with det(I +

h

2f ′(x)) = det(I − h

2f ′(x)) for all h > 0

.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 22 / 24

Page 72: Volume Preservation by Runge-Kutta Methods

Families of Volume Preserving Vector Fields

We define the following families of volume preserving vector fields:

H =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x)>,

S =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x),

F (∞) =

f (x , y) = (u(x), v(x , y))> where u ∈ H ∪ F (∞) and there exists

P such that for all x , y , P∂yv(x , y)P−1 = −∂yv(x , y)>,

F (2) =

f (x , y) = (u(x), v(x , y))> where u ∈ S ∪H ∪ F (2) and there exists

P such that for all x , y , either P∂yv(x , y)P−1 = −∂yv(x , y)> or

P∂yv(x , y)P−1 = −∂yv(x , y),

D =

vector fields with det(I +

h

2f ′(x)) = det(I − h

2f ′(x)) for all h > 0

.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 22 / 24

Page 73: Volume Preservation by Runge-Kutta Methods

Families of Volume Preserving Vector Fields

We define the following families of volume preserving vector fields:

H =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x)>,

S =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x),

F (∞) =

f (x , y) = (u(x), v(x , y))> where u ∈ H ∪ F (∞) and there exists

P such that for all x , y , P∂yv(x , y)P−1 = −∂yv(x , y)>,

F (2) =

f (x , y) = (u(x), v(x , y))> where u ∈ S ∪H ∪ F (2) and there exists

P such that for all x , y , either P∂yv(x , y)P−1 = −∂yv(x , y)> or

P∂yv(x , y)P−1 = −∂yv(x , y),

D =

vector fields with det(I +

h

2f ′(x)) = det(I − h

2f ′(x)) for all h > 0

.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 22 / 24

Page 74: Volume Preservation by Runge-Kutta Methods

Families of Volume Preserving Vector Fields

We define the following families of volume preserving vector fields:

H =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x)>,

S =

f such that there exists P such that for all x ,Pf ′(x)P−1 = −f ′(x),

F (∞) =

f (x , y) = (u(x), v(x , y))> where u ∈ H ∪ F (∞) and there exists

P such that for all x , y , P∂yv(x , y)P−1 = −∂yv(x , y)>,

F (2) =

f (x , y) = (u(x), v(x , y))> where u ∈ S ∪H ∪ F (2) and there exists

P such that for all x , y , either P∂yv(x , y)P−1 = −∂yv(x , y)> or

P∂yv(x , y)P−1 = −∂yv(x , y),

D =

vector fields with det(I +

h

2f ′(x)) = det(I − h

2f ′(x)) for all h > 0

.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 22 / 24

Page 75: Volume Preservation by Runge-Kutta Methods

Volume Preserving Runge-Kutta Methods

H F (∞) F (2) D

S

TheoremFor vector fields in F (∞), all Symplectic Runge-Kutta methods are volumepreserving.

TheoremFor vector fields in F (2), all 2-stage (and compositions) SymplecticRunge-Kutta methods are volume preserving.

TheoremFor vector fields in D (= F (1)), the 1-stage implicit midpoint rule isvolume preserving.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 23 / 24

Page 76: Volume Preservation by Runge-Kutta Methods

Volume Preserving Runge-Kutta Methods

H F (∞) F (2) D

S

TheoremFor vector fields in F (∞), all Symplectic Runge-Kutta methods are volumepreserving.

TheoremFor vector fields in F (2), all 2-stage (and compositions) SymplecticRunge-Kutta methods are volume preserving.

TheoremFor vector fields in D (= F (1)), the 1-stage implicit midpoint rule isvolume preserving.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 23 / 24

Page 77: Volume Preservation by Runge-Kutta Methods

Volume Preserving Runge-Kutta Methods

H F (∞) F (2) D

S

TheoremFor vector fields in F (∞), all Symplectic Runge-Kutta methods are volumepreserving.

TheoremFor vector fields in F (2), all 2-stage (and compositions) SymplecticRunge-Kutta methods are volume preserving.

TheoremFor vector fields in D (= F (1)), the 1-stage implicit midpoint rule isvolume preserving.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 23 / 24

Page 78: Volume Preservation by Runge-Kutta Methods

Volume Preserving Runge-Kutta Methods

H F (∞) F (2) D

S

TheoremFor vector fields in F (∞), all Symplectic Runge-Kutta methods are volumepreserving.

TheoremFor vector fields in F (2), all 2-stage (and compositions) SymplecticRunge-Kutta methods are volume preserving.

TheoremFor vector fields in D (= F (1)), the 1-stage implicit midpoint rule isvolume preserving.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 23 / 24

Page 79: Volume Preservation by Runge-Kutta Methods

Message and Beyond Volume Preservation

• Message: Runge-Kutta methods can preserve volume for a largeclass problems, but not all divergence free ones.

• Quadratic Lie algebras and Lie groups, quadratic Lie triple productspaces and symmetric spaces, linear foliations.

• We have also begun to study measure preserving Runge-Kuttamethods.

• Methods that are conjugate to volume preserving methods. Herevolume is not preserved, but the volume error does not grow.

• For quadratic vector fields f there is an interesting measurepreservation relationship between

• Trapezoidal Rule• Implicit Midpoint Rule• Kahan’s method

• Thank you for listening.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 80: Volume Preservation by Runge-Kutta Methods

Message and Beyond Volume Preservation

• Message: Runge-Kutta methods can preserve volume for a largeclass problems, but not all divergence free ones.

• Quadratic Lie algebras and Lie groups, quadratic Lie triple productspaces and symmetric spaces, linear foliations.

• We have also begun to study measure preserving Runge-Kuttamethods.

• Methods that are conjugate to volume preserving methods. Herevolume is not preserved, but the volume error does not grow.

• For quadratic vector fields f there is an interesting measurepreservation relationship between

• Trapezoidal Rule• Implicit Midpoint Rule• Kahan’s method

• Thank you for listening.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 81: Volume Preservation by Runge-Kutta Methods

Message and Beyond Volume Preservation

• Message: Runge-Kutta methods can preserve volume for a largeclass problems, but not all divergence free ones.

• Quadratic Lie algebras and Lie groups, quadratic Lie triple productspaces and symmetric spaces, linear foliations.

• We have also begun to study measure preserving Runge-Kuttamethods.

• Methods that are conjugate to volume preserving methods. Herevolume is not preserved, but the volume error does not grow.

• For quadratic vector fields f there is an interesting measurepreservation relationship between

• Trapezoidal Rule• Implicit Midpoint Rule• Kahan’s method

• Thank you for listening.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 82: Volume Preservation by Runge-Kutta Methods

Message and Beyond Volume Preservation

• Message: Runge-Kutta methods can preserve volume for a largeclass problems, but not all divergence free ones.

• Quadratic Lie algebras and Lie groups, quadratic Lie triple productspaces and symmetric spaces, linear foliations.

• We have also begun to study measure preserving Runge-Kuttamethods.

• Methods that are conjugate to volume preserving methods. Herevolume is not preserved, but the volume error does not grow.

• For quadratic vector fields f there is an interesting measurepreservation relationship between

• Trapezoidal Rule• Implicit Midpoint Rule• Kahan’s method

• Thank you for listening.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 83: Volume Preservation by Runge-Kutta Methods

Message and Beyond Volume Preservation

• Message: Runge-Kutta methods can preserve volume for a largeclass problems, but not all divergence free ones.

• Quadratic Lie algebras and Lie groups, quadratic Lie triple productspaces and symmetric spaces, linear foliations.

• We have also begun to study measure preserving Runge-Kuttamethods.

• Methods that are conjugate to volume preserving methods. Herevolume is not preserved, but the volume error does not grow.

• For quadratic vector fields f there is an interesting measurepreservation relationship between

• Trapezoidal Rule• Implicit Midpoint Rule• Kahan’s method

• Thank you for listening.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 84: Volume Preservation by Runge-Kutta Methods

Message and Beyond Volume Preservation

• Message: Runge-Kutta methods can preserve volume for a largeclass problems, but not all divergence free ones.

• Quadratic Lie algebras and Lie groups, quadratic Lie triple productspaces and symmetric spaces, linear foliations.

• We have also begun to study measure preserving Runge-Kuttamethods.

• Methods that are conjugate to volume preserving methods. Herevolume is not preserved, but the volume error does not grow.

• For quadratic vector fields f there is an interesting measurepreservation relationship between

• Trapezoidal Rule• Implicit Midpoint Rule• Kahan’s method

• Thank you for listening.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 85: Volume Preservation by Runge-Kutta Methods

Measure Preservation

• A map φ : Rn → Rn preserves the measure µ on Rn if

det(φ′(x))µ(φ(x)) = µ(x).

• This is because, for measurable A ⊂ Rn,

µ(φ(A)) =

∫φ(A)

dµ(x)

=

∫Adet(φ′(x))dµ(φ(x))

• If µ is an actual function, we can write det(φ′(x)) = µ(x)/µ(φ(x)).

• Let p(x) = φ(φ(x)). Then

det(p′(x)) = det(φ′(φ(x))) det(φ′(x)) =µ(φ(x))

µ(p(x))

µ(x)

µ(φ(x))=

µ(x)

µ(p(x))

• Similarly, det((φ · · · φ)′(x)) = µ(x)/µ((φ · · · φ)(x))

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 86: Volume Preservation by Runge-Kutta Methods

Measure Preservation

• A map φ : Rn → Rn preserves the measure µ on Rn if

det(φ′(x))µ(φ(x)) = µ(x).

• This is because, for measurable A ⊂ Rn,

µ(φ(A)) =

∫φ(A)

dµ(x)

=

∫Adet(φ′(x))dµ(φ(x))

• If µ is an actual function, we can write det(φ′(x)) = µ(x)/µ(φ(x)).

• Let p(x) = φ(φ(x)). Then

det(p′(x)) = det(φ′(φ(x))) det(φ′(x)) =µ(φ(x))

µ(p(x))

µ(x)

µ(φ(x))=

µ(x)

µ(p(x))

• Similarly, det((φ · · · φ)′(x)) = µ(x)/µ((φ · · · φ)(x))

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 87: Volume Preservation by Runge-Kutta Methods

Measure Preservation

• A map φ : Rn → Rn preserves the measure µ on Rn if

det(φ′(x))µ(φ(x)) = µ(x).

• This is because, for measurable A ⊂ Rn,

µ(φ(A)) =

∫φ(A)

dµ(x)

=

∫Adet(φ′(x))dµ(φ(x))

• If µ is an actual function, we can write det(φ′(x)) = µ(x)/µ(φ(x)).

• Let p(x) = φ(φ(x)). Then

det(p′(x)) = det(φ′(φ(x))) det(φ′(x)) =µ(φ(x))

µ(p(x))

µ(x)

µ(φ(x))=

µ(x)

µ(p(x))

• Similarly, det((φ · · · φ)′(x)) = µ(x)/µ((φ · · · φ)(x))

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 88: Volume Preservation by Runge-Kutta Methods

Measure Preservation

• A map φ : Rn → Rn preserves the measure µ on Rn if

det(φ′(x))µ(φ(x)) = µ(x).

• This is because, for measurable A ⊂ Rn,

µ(φ(A)) =

∫φ(A)

dµ(x)

=

∫Adet(φ′(x))dµ(φ(x))

• If µ is an actual function, we can write det(φ′(x)) = µ(x)/µ(φ(x)).

• Let p(x) = φ(φ(x)). Then

det(p′(x)) = det(φ′(φ(x))) det(φ′(x)) =µ(φ(x))

µ(p(x))

µ(x)

µ(φ(x))=

µ(x)

µ(p(x))

• Similarly, det((φ · · · φ)′(x)) = µ(x)/µ((φ · · · φ)(x))

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 89: Volume Preservation by Runge-Kutta Methods

Measure Preservation

• A map φ : Rn → Rn preserves the measure µ on Rn if

det(φ′(x))µ(φ(x)) = µ(x).

• This is because, for measurable A ⊂ Rn,

µ(φ(A)) =

∫φ(A)

dµ(x)

=

∫Adet(φ′(x))dµ(φ(x))

• If µ is an actual function, we can write det(φ′(x)) = µ(x)/µ(φ(x)).

• Let p(x) = φ(φ(x)). Then

det(p′(x)) = det(φ′(φ(x))) det(φ′(x)) =µ(φ(x))

µ(p(x))

µ(x)

µ(φ(x))=

µ(x)

µ(p(x))

• Similarly, det((φ · · · φ)′(x)) = µ(x)/µ((φ · · · φ)(x))

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 90: Volume Preservation by Runge-Kutta Methods

Trapezoid Rule

• Let f satisfy the determinant conditiondet(I + h

2 f ′(x)) = det(I − h2 f ′(x)) for all h > 0.

• Consider solving x = f (x) with the trapezoid rule:

φh(x) = x +h

2f (x) +

h

2f (φh(x)).

• Then

det(φ′h(x)) =det(I + h

2 f ′(x))

det(I − h2 f ′(φh(x)))

=µ(x)

µ(φh(x)),

where µ(x) = det(I ± h2 f ′(x)).

• What is so good about this?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 91: Volume Preservation by Runge-Kutta Methods

Trapezoid Rule

• Let f satisfy the determinant conditiondet(I + h

2 f ′(x)) = det(I − h2 f ′(x)) for all h > 0.

• Consider solving x = f (x) with the trapezoid rule:

φh(x) = x +h

2f (x) +

h

2f (φh(x)).

• Then

det(φ′h(x)) =det(I + h

2 f ′(x))

det(I − h2 f ′(φh(x)))

=µ(x)

µ(φh(x)),

where µ(x) = det(I ± h2 f ′(x)).

• What is so good about this?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 92: Volume Preservation by Runge-Kutta Methods

Trapezoid Rule

• Let f satisfy the determinant conditiondet(I + h

2 f ′(x)) = det(I − h2 f ′(x)) for all h > 0.

• Consider solving x = f (x) with the trapezoid rule:

φh(x) = x +h

2f (x) +

h

2f (φh(x)).

• Then

det(φ′h(x)) =det(I + h

2 f ′(x))

det(I − h2 f ′(φh(x)))

=µ(x)

µ(φh(x)),

where µ(x) = det(I ± h2 f ′(x)).

• What is so good about this?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 93: Volume Preservation by Runge-Kutta Methods

Trapezoid Rule

• Let f satisfy the determinant conditiondet(I + h

2 f ′(x)) = det(I − h2 f ′(x)) for all h > 0.

• Consider solving x = f (x) with the trapezoid rule:

φh(x) = x +h

2f (x) +

h

2f (φh(x)).

• Then

det(φ′h(x)) =det(I + h

2 f ′(x))

det(I − h2 f ′(φh(x)))

=µ(x)

µ(φh(x)),

where µ(x) = det(I ± h2 f ′(x)).

• What is so good about this?

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 94: Volume Preservation by Runge-Kutta Methods

Volume Preservation of Trapezoidal Rule

• Assume that det(I + h2 f ′(x)) = det(I − h

2 f ′(x))

• Then for k iterations of the trapezoidal rule,φh(x) = x + h

2 f (x) + h2 f (φh(x)),

det((φkh)′(x)) =µ(x)

µ(φkh(x))

=det(I + h

2 f ′(x))

det(I − h2 f ′(φkh(x)))

= 1 +h2

8tr(f ′(x)2) +

h2

8tr(f ′(φkh(x))2) + ...

• The error in volume preservation is committed by one operation atthe beginning and one at the end, no error from intermediatesteps.

• If the numerical solution stays in a region where trace(f ′(·)2) isbounded, then we have a global O(h2) error bound on our volume.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 95: Volume Preservation by Runge-Kutta Methods

Volume Preservation of Trapezoidal Rule

• Assume that det(I + h2 f ′(x)) = det(I − h

2 f ′(x))

• Then for k iterations of the trapezoidal rule,φh(x) = x + h

2 f (x) + h2 f (φh(x)),

det((φkh)′(x)) =µ(x)

µ(φkh(x))

=det(I + h

2 f ′(x))

det(I − h2 f ′(φkh(x)))

= 1 +h2

8tr(f ′(x)2) +

h2

8tr(f ′(φkh(x))2) + ...

• The error in volume preservation is committed by one operation atthe beginning and one at the end, no error from intermediatesteps.

• If the numerical solution stays in a region where trace(f ′(·)2) isbounded, then we have a global O(h2) error bound on our volume.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 96: Volume Preservation by Runge-Kutta Methods

Volume Preservation of Trapezoidal Rule

• Assume that det(I + h2 f ′(x)) = det(I − h

2 f ′(x))

• Then for k iterations of the trapezoidal rule,φh(x) = x + h

2 f (x) + h2 f (φh(x)),

det((φkh)′(x)) =µ(x)

µ(φkh(x))

=det(I + h

2 f ′(x))

det(I − h2 f ′(φkh(x)))

= 1 +h2

8tr(f ′(x)2) +

h2

8tr(f ′(φkh(x))2) + ...

• The error in volume preservation is committed by one operation atthe beginning and one at the end, no error from intermediatesteps.

• If the numerical solution stays in a region where trace(f ′(·)2) isbounded, then we have a global O(h2) error bound on our volume.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 97: Volume Preservation by Runge-Kutta Methods

Volume Preservation of Trapezoidal Rule

• Assume that det(I + h2 f ′(x)) = det(I − h

2 f ′(x))

• Then for k iterations of the trapezoidal rule,φh(x) = x + h

2 f (x) + h2 f (φh(x)),

det((φkh)′(x)) =µ(x)

µ(φkh(x))

=det(I + h

2 f ′(x))

det(I − h2 f ′(φkh(x)))

= 1 +h2

8tr(f ′(x)2) +

h2

8tr(f ′(φkh(x))2) + ...

• The error in volume preservation is committed by one operation atthe beginning and one at the end, no error from intermediatesteps.

• If the numerical solution stays in a region where trace(f ′(·)2) isbounded, then we have a global O(h2) error bound on our volume.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 98: Volume Preservation by Runge-Kutta Methods

Volume Preservation of Trapezoidal Rule

• Assume that det(I + h2 f ′(x)) = det(I − h

2 f ′(x))

• Then for k iterations of the trapezoidal rule,φh(x) = x + h

2 f (x) + h2 f (φh(x)),

det((φkh)′(x)) =µ(x)

µ(φkh(x))

=det(I + h

2 f ′(x))

det(I − h2 f ′(φkh(x)))

= 1 +h2

8tr(f ′(x)2) +

h2

8tr(f ′(φkh(x))2) + ...

• The error in volume preservation is committed by one operation atthe beginning and one at the end, no error from intermediatesteps.

• If the numerical solution stays in a region where trace(f ′(·)2) isbounded, then we have a global O(h2) error bound on our volume.

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24

Page 99: Volume Preservation by Runge-Kutta Methods

Main Reference

P. Bader, D.I. McLaren, R. Quispel, M. Webb Volume Preservation byRunge-Kutta Methods submitted, preprint available on arXiv and mywebsite

Marcus Webb ([email protected]) Volume Preservation by Runge-Kutta Methods SciCADE 2015 24 / 24