Symplectic integration with Runge-Kutta methods, AARMS summer school 2015

Similar documents
Backward error analysis

Geometric Numerical Integration

ENERGY PRESERVATION (DISSIPATION) IN NUMERICAL ODEs and PDEs

Modified Equations for Variational Integrators

1 Ordinary differential equations

Discontinuous Collocation Methods for DAEs in Mechanics

Efficiency of Runge-Kutta Methods in Solving Simple Harmonic Oscillators

SOME PROPERTIES OF SYMPLECTIC RUNGE-KUTTA METHODS

GEOMETRIC INTEGRATION OF ORDINARY DIFFERENTIAL EQUATIONS ON MANIFOLDS

Numerical Methods for ODEs. Lectures for PSU Summer Programs Xiantao Li

ENERGY PRESERVING METHODS FOR VOLTERRA LATTICE EQUATION

Fourth-order symplectic exponentially-fitted modified Runge-Kutta methods of the Gauss type: a review

On the construction of discrete gradients

Implicit-explicit exponential integrators

Varieties of Signature Tensors Lecture #1

SYMMETRIC PROJECTION METHODS FOR DIFFERENTIAL EQUATIONS ON MANIFOLDS

Symmetric multistep methods for charged-particle dynamics

Lecture 2: Symplectic integrators

Energy-Preserving Runge-Kutta methods

Introduction to Hamiltonian systems

Symplectic exponentially-fitted modified Runge-Kutta methods of the Gauss type: revisited

Chapter 1 Symplectic Integrator and Beam Dynamics Simulations

High-order symmetric schemes for the energy conservation of polynomial Hamiltonian problems.

Validated Explicit and Implicit Runge-Kutta Methods

Semi-implicit Krylov Deferred Correction Methods for Ordinary Differential Equations

Reducing round-off errors in rigid body dynamics

ONE- AND TWO-STAGE IMPLICIT INTERVAL METHODS OF RUNGE-KUTTA TYPE

Simple ODE Solvers - Derivation

SOLVING ODE s NUMERICALLY WHILE PRESERVING ALL FIRST INTEGRALS

Partitioned Runge-Kutta Methods for Semi-explicit Differential-Algebraic Systems of Index 2

Improved Starting Methods for Two-Step Runge Kutta Methods of Stage-Order p 3

ORDINARY DIFFERENTIAL EQUATIONS

A note on the uniform perturbation index 1

High-order Symmetric Schemes for the Energy Conservation of Polynomial Hamiltonian Problems 1 2

Solving Orthogonal Matrix Differential Systems in Mathematica

Reducing round-off errors in symmetric multistep methods

COMPARISON OF GEOMETRIC INTEGRATOR METHODS FOR HAMILTON SYSTEMS

Ruminations on exterior algebra

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods

QUATERNIONS AND ROTATIONS

1. Introduction. We consider canonical Hamiltonian systems in the form 0 I y(t 0 ) = y 0 R 2m J = I 0

Symplectic Runge-Kutta methods satisfying effective order conditions

GEOMETRIC INTEGRATION METHODS THAT PRESERVE LYAPUNOV FUNCTIONS

Accuracy Enhancement Using Spectral Postprocessing for Differential Equations and Integral Equations

Variable Step Runge-Kutta-Nyström Methods for the Numerical Solution of Reversible Systems

Runge-Kutta Theory and Constraint Programming Julien Alexandre dit Sandretto Alexandre Chapoutot. Department U2IS ENSTA ParisTech SCAN Uppsala

1 Lecture notes Classication. Denition 1. Let z be a set function on the nite set V i.e. z : 2 V R, then z is submodular if

REVERSIBLE LONG-TERM INTEGRATION WITH VARIABLE STEPSIZES. 1. Introduction. We consider the numerical treatment of systems

Application of Geometric Integration to some Mechanical Problems

ARCS IN FINITE PROJECTIVE SPACES. Basic objects and definitions

M3-4-5 A16 Notes for Geometric Mechanics: Oct Nov 2011

Kinematics of fluid motion

π X : X Y X and π Y : X Y Y

On complexified quantum mechanics and space-time

MAT 5330 Algebraic Geometry: Quiver Varieties

ORDINARY DIFFERENTIAL EQUATIONS

Chapter 2 Linear Transformations

INTRODUCTION TO COMPUTER METHODS FOR O.D.E.

Numerical Differential Equations: IVP

The collocation method for ODEs: an introduction

SPECIALIZED RUNGE-KUTTA METHODS FOR INDEX 2 DIFFERENTIAL-ALGEBRAIC EQUATIONS

Introduction to Arithmetic Geometry Fall 2013 Lecture #23 11/26/2013

Numerical Methods for Differential Equations

Numerical Analysis II. Problem Sheet 12

Parallel Methods for ODEs

Numerical Analysis II. Problem Sheet 9

Extended Runge Kutta-like formulae

Differential Equations

10. Linear Systems of ODEs, Matrix multiplication, superposition principle (parts of sections )

Enabling constant pressure hybrid Monte Carlo simulations using the GROMACS molecular simulation package

The Spinor Representation

Approximation algorithms for nonnegative polynomial optimization problems over unit spheres

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Ordinary Differential Equations (ODEs)

Critical points of the integral map of the charged 3-body problem

Lecture Notes on Numerical Differential Equations: IVP

Canonical systems of basic invariants for unitary reflection groups

Numerical Methods for Differential Equations

Algebraic structures of B-series

Entrance Exam, Differential Equations April, (Solve exactly 6 out of the 8 problems) y + 2y + y cos(x 2 y) = 0, y(0) = 2, y (0) = 4.

Lecture 4: High oscillations

Linearly Dependent Sets of Algebraic Curvature Tensors with a Nondegenerate Inner Product

Complex Numbers and Quaternions for Calc III

Geometric Integrators with Application To Hamiltonian Systems

Four Point Gauss Quadrature Runge Kuta Method Of Order 8 For Ordinary Differential Equations

LINEAR ALGEBRA BOOT CAMP WEEK 4: THE SPECTRAL THEOREM

CS520: numerical ODEs (Ch.2)

1 Systems of First Order IVP

Starting Methods for Two-Step Runge Kutta Methods of Stage-Order 3 and Order 6

sin(α + θ) = sin α cos θ + cos α sin θ cos(α + θ) = cos α cos θ sin α sin θ

Quadratic Forms. Marco Schlichting Notes by Florian Bouyer. January 16, 2012

1 Mathematical toolbox

Curves, Surfaces and Segments, Patches

Equations in Quadratic Form

Runge-Kutta and Collocation Methods Florian Landis

Background on Linear Algebra - Lecture 2

The Kernel Trick. Robert M. Haralick. Computer Science, Graduate Center City University of New York

Exercise Sheet 7 - Solutions

A SYMBOLIC-NUMERIC APPROACH TO THE SOLUTION OF THE BUTCHER EQUATIONS

A note on linear differential equations with periodic coefficients.

Transcription:

Symplectic integration with Runge-Kutta methods, AARMS summer school 2015 Elena Celledoni July 13, 2015 1 Hamiltonian systems and their properties We consider a Hamiltonian system in the form ẏ = J H(y) (1) y(0) = y 0 (2) where y R 2n, H : R 2n R, H = H(q, p) is the Hamiltonian function, and [ ] O I J := I O and I denotes the n n identity matrix. The ODE system (1) has the following properties. 1. The Hamiltonian function (also called energy) is preserved along solutions of (1). In fact we have that d dt H(y(t)) = H(y)T ẏ = H(y) T J H(y) = 0 where the last equality follows because of the skew-symmetry of the matrix J. So the Hamiltonian function must be constant along solutions of the Hamiltonian system. 2. We will prove below that the flow of (1) is a symplectic map. Denote with ϕ t the flow map of (1). Recall that the flow map is the map ϕ t : R 2n R 2n such that ϕ t (y 0 ) = y(t), and with Ψ := ϕ(y0) the derivative of the flow with respect to y 0. The variational equation is the differential equation satisfied by Ψ and is obtained as follows. Differentiating Ψ with respect to t we have d dt Ψ = d ϕ t (y 0 ) = d y(t) = ẏ(t) = J H(ϕ t (y 0 )) = JH (y(t)) ϕ t(y 0 ) = JH (y(t))ψ dt dt 1

with the initial condition Ψ(0) = I. Since the vector field JH (y(t))ψ depends on y, this equation is coupled to (1). All together the variational equation 1 for (1) reads: Theorem 1.1 The flow of (1) is a symplectic map. ẏ = J H(y) (3) y(0) = y 0 (4) Ψ = JH (y)ψ (5) Ψ(0) = I. (6) Proof. The map ϕ t is symplectic if the Ψ = ϕ(y0) is a symplectic transformation, i.e. we need to prove that Ψ T JΨ = J. To see that this is the case we differentiate Ψ T JΨ with respect to t and get using the variational equation i.e. Ψ = JH (y)ψ we get which since J T J = I and J 2 = I, gives d ( Ψ T JΨ ) dt = Ψ T JΨ + Ψ T J Ψ, (7) (8) d ( Ψ T JΨ ) = Ψ T H (y)j T JΨ + Ψ T JJH (y)ψ, (9) dt So Ψ T JΨ is constant with respect to t and so d ( Ψ T JΨ ) = O. (10) dt Ψ T JΨ = Ψ(0) T JΨ(0) = J. Which shows that the condition for symplecticity of the flow of (1) is fulfilled. 2 Preservation of linear and quadratic invariants with Runge- Kutta methods In this section we will discuss briefly the preservation of invariants for a general ordinary differential equation (ODE), as this will be used in the next sections. Consider the autonomous ODE with y(t) R m for all t. ẏ = f(y), (11) 1 For a generic autonomous ODE ẏ = f(y), y(0) = y 0, if Ψ := y(t) ẏ = f(y), y(0) = y 0, Ψ = f (y)ψ, Ψ(0) = I. the variational equations takes the form 2

Definition 2.1 A function I : R m R is a first integral (or invariant) of the ODE if and only if I(y) T f(y) = 0, y. (12) This implies that I(y(t)) = I(y 0 ) is constant along solutions of the ODE, in fact di(y(t)) dt = I(y(t)) T f(y(t)) = 0. Linear invariants Linear invariants have the form I(y) := d T y, where d R m is a fixed vector not depending on t. These are homogeneous linear polynomials in the components of y. Theorem 2.1 All RK-methods preserve linear invariants. Proof. We want to prove that for a general Runge-Kutta method s.t. y n+1 = Φ h (y n ), and a general linear invariant I(y) := d T y, we have that d T y n+1 = d T y n. To see that this holds we consider the Runge-Kutta formulae and multiply from the left with d T we obtain d T y n+1 = d T y n + h b i d T K i, K i = f(y n + h a i,j K j ), i = 1,..., s, but since I(y) T = d T, and I is an invariant of (11), using the definition of invariant we have that d T f(y) = 0, y R m and so also d T K i = 0 which concludes the proof. Quadratic invariants Quadratic invariants have the form Q(y) = y T Cy, (13) where y R m and C is a symmetric m m matrix. These are homogeneous quadratic polynomials in the components of y. Theorem 2.2 A Runge-Kutta method with coefficients {c i },...,s, {b i },...,s, {A i,j } i,,...,s satisfying the algebraic relation preserves all quadratic invariants. Proof. For a Runge-Kutta method we have y T n+1cy n+1 = (y n + h b i a i,j + b j a j,i = b i b j, i, j = 1,..., s, (14) b j K j ) T (Cy n + h = y T n Cy n + h yn T CK i + h b i CK i ) Kj T Cy n + h 2 b i b j Kj T CK i. i, 3

Using the identity y n = y n + h j a i,jk j h j a i,jk j valid for i = 1,..., s, and the fact that (y n + h j a i,j K j ) T Cf(y n + h j a i,j K j ) = 0 (satisfied because y 0 = Q(y) T f(y) = y T Cf(y)), we further obtain y T n+1cy n+1 = y T n Cy n h 2 b i a i,j Kj T CK i h 2 i, = yn T Cy n + h 2 b j a j,i Kj T CK i + h 2 j, ( ) bi a i,j b j a j,i + b i b j K T j CK i, i, b i b j Kj T CK i, and from this last expression we see that if (14) is satisfied then yn+1cy T n+1 = yn T Cy n for a generic C and so the Runge-Kutta method preserves all quadratic invariants. Exercise 2.2 The midpoint rule satisfies (14). Exercise 2.3 The function I i,j : R 2n 2n R, defined by is a quadratic invariant of the variational equation, (3)-(5). i, I i,j (Ψ) := (Ψ T JΨ) i,j (15) Proof. To see this we will write (15) in the form (13). Assume m = 2n and consider the vector of length m 2 obtained by vec(ψ) T = [Ψ T 1,..., Ψ T m] where Ψ j = Ψ e j is the j-th column of Ψ and e j denotes the j-th canonical vector of R m. We have I i,j (Ψ) = vec(ψ) T Cvec(Ψ) T where C is the m 2 m 2 symmetric block matrix C = 1 2 (e ie T j + e j e T i ) J, with denoting the Kronecker tensor product of matrices. Cubic invariants One can prove that there are no Runge-Kutta methods preserving all polynomial invariants of degree 3 or higher. We will prove this later with a counter example. 3 Symplecticity of Runge-Kutta methods Definition 3.1 A one-step method y n+1 = Φ h (y n ) is symplectic if and only if i.e. the numerical flow is a symplectic map. Ψ h := Φ h(y n ) y n, satisfies Ψ T h JΨ h = J, 4

In the following lemma we consider an autonomous ODE together with its variational equation: ẏ = f(y) y(0) = y 0, Ψ = f (16) (y)ψ Ψ(0) = I. Lemma 3.1 For Runge-Kutta methods the following diagram commutes: ẏ = f(y) ẏ = f(y) differentiaiton w.r.t. y 0 y(0) = y 0, y(0) = y 0 Ψ = f (y)ψ Φ h y 1 = Φ h (y 0, f) where Φ h denotes the Runge-Kutta method. Ψ(0) = I Φ h differentiaiton w.r.t. y 0 y 1 = Φ h (y 0, f) Ψ 1 = Φ h (Ψ 0, f (y 1 )) Proof. We first perform one step of a generic Runge-Kutta method on the ODE system ẏ = f(y) and obtain y 1 = y 0 + h b i K i, (17) K i = f(y 0 + h We then differentiate with respect to y 0 and get y 1 = I + h K i = f (y 0 + h a i,j K j ). (18) K i b i, (19) K j a i,j K j ) I + h a i,j, i = 1,..., s. (20) So this is the result of first applying Φ h and then differentiating with respect to y 0. We want to show that if we first differente with respect to y 0 and then apply Φ h we obtain the same result. So by first differentiating the equation with respect to y 0 we obtain the variational equation (top right of the diagram), we next apply the same Runge-Kutta method as before to this set of equations. The result is equations (17), (18) and in addition Ψ 1 = I + h b i Ki, (21) K i = f (y 0 + h a i,j K j ) I + h a i,j Kj, i = 1,..., s. (22) We conclude the proof observing that (20) is a system of linear equations in the unknowns Ki, i = 1,..., s, and (22) is the same system but in the unkonwns K i, i = 1,..., s. It is easily 5

seen that this system has an unique solution for sufficiently small h, so it must be Ki = K i, i = 1,..., s. From this it follows that Ψ 1 = y1, and therefore the diagram commutes. Theorem 3.2 If the coefficients of a Runge-Kutta method satisfy (14) then the Runge-Kutta method is symplectic. Proof. Consider the Hamiltonian system and its variational equation ẏ = J H(y) y(0) = y 0, Ψ = JH (y)ψ Ψ(0) = I, and apply a Runge-Kutta method satisfying (14) to it, to obtain the approximations y 1 and Ψ 1 after one step. Since Ψ T JΨ J is an invariant of the variational equation, it is exactly preserved by Runge-Kutta methods satisfying (14) so Ψ T 1 JΨ 1 = J. But invoking Lemma 3.1 we have Ψ 1 = y1 and so y1 T J y 1 = J which means that the Runge-Kutta method restricted to the equations ẏ = J H(y), y(0) = y 0, preserves symplecticity. Exercise 3.2 Prove directly, without invoking Theorem 3.2 and Theorem 2.2, that the midpoint rule is symplectic. Theorem 3.3 An irreducible 2 Runge-Kutta method is symplectic if and only if (14) holds. References [1] E. Hairer, C. Lubich, and G. Wanner. Geometric Numerical Integration, volume 31 of Springer Series in Computational Mathematics. Springer-Verlag, Berlin, second edition, 2006. Structure-Preserving Algorithms for Ordinary Differential Equations. [2] B. Leimkuhler, S. Reich. Simulating Hamiltonian Dynamics, Vol. 14 of Cambridge Monographs on Applied and Computational Mathematics. Cambridge University Press, first edition, 2004. 2 For a definition of irriducible Runge-Kutta method see [1] p. 220. 6