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

Similar documents
Numerical Algorithms as Dynamical Systems

ODE Runge-Kutta methods

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

Backward error analysis

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

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

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

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

ME8230 Nonlinear Dynamics

Lecture Note 1: Background

Differential Equations

Symplectic Runge-Kutta methods satisfying effective order conditions

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo

Introduction to Hamiltonian systems

Numerical Methods for the Solution of Differential Equations

Fundamentals Physics

2007 Summer College on Plasma Physics

CDS 101/110a: Lecture 2.1 Dynamic Behavior

The family of Runge Kutta methods with two intermediate evaluations is defined by

CDS 101 Precourse Phase Plane Analysis and Stability

CDS 101/110a: Lecture 2.1 Dynamic Behavior

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Lecture 20/Lab 21: Systems of Nonlinear ODEs

Dynamical Systems & Lyapunov Stability

Uncovering the Lagrangian from observations of trajectories

Introduction to multiscale modeling and simulation. Explicit methods for ODEs : forward Euler. y n+1 = y n + tf(y n ) dy dt = f(y), y(0) = y 0

Math 266: Ordinary Differential Equations

10.34: Numerical Methods Applied to Chemical Engineering. Lecture 19: Differential Algebraic Equations

Differential Equations

SYMMETRIC PROJECTION METHODS FOR DIFFERENTIAL EQUATIONS ON MANIFOLDS

Hamiltonian Dynamics In The Theory of Abstraction

EECS 700: Exam # 1 Tuesday, October 21, 2014

Passive control. Carles Batlle. II EURON/GEOPLEX Summer School on Modeling and Control of Complex Dynamical Systems Bertinoro, Italy, July

Identification Methods for Structural Systems. Prof. Dr. Eleni Chatzi Lecture March, 2016

ACM/CMS 107 Linear Analysis & Applications Fall 2016 Assignment 4: Linear ODEs and Control Theory Due: 5th December 2016

Physics 106a, Caltech 13 November, Lecture 13: Action, Hamilton-Jacobi Theory. Action-Angle Variables

Cyber-Physical Systems Modeling and Simulation of Continuous Systems

Modeling & Control of Hybrid Systems Chapter 4 Stability

Scientific Computing II

High performance computing and numerical modeling

PHYSICS 110A : CLASSICAL MECHANICS

AIMS Exercise Set # 1

SYSTEMS OF ODES. mg sin ( (x)) dx 2 =

Chaotic motion. Phys 750 Lecture 9

Lecture 4: Numerical solution of ordinary differential equations

Parallel-in-time integrators for Hamiltonian systems

Variation Principle in Mechanics

Energy-Preserving Runge-Kutta methods

CS520: numerical ODEs (Ch.2)

Interactions. Yuan Gao. Spring Applied Mathematics University of Washington

Lecture 4: Numerical Solution of SDEs, Itô Taylor Series, Gaussian Approximations

Numerical Algorithms for ODEs/DAEs (Transient Analysis)

Ordinary Differential Equations

Butcher tableau Can summarize an s + 1 stage Runge Kutta method using a triangular grid of coefficients

Lecture 4: Numerical Solution of SDEs, Itô Taylor Series, Gaussian Process Approximations

Electric and Magnetic Forces in Lagrangian and Hamiltonian Formalism

SOLVING ODE s NUMERICALLY WHILE PRESERVING ALL FIRST INTEGRALS

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

Ordinary differential equations - Initial value problems

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

Hamiltonian Dynamics

Mathematics Qualifying Exam Study Material

Feedback Basics. David M. Auslander Mechanical Engineering University of California at Berkeley. copyright 1998, D.M. Auslander

Stability lectures. Stability of Linear Systems. Stability of Linear Systems. Stability of Continuous Systems. EECE 571M/491M, Spring 2008 Lecture 5

Solution: In standard form (i.e. y + P (t)y = Q(t)) we have y t y = cos(t)

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

LMI Methods in Optimal and Robust Control

Geometric Integrators with Application To Hamiltonian Systems

Design of optimal Runge-Kutta methods

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Chaotic motion. Phys 420/580 Lecture 10

2 Lyapunov Stability. x(0) x 0 < δ x(t) x 0 < ɛ

Numerical Methods for Engineers

CP1 REVISION LECTURE 3 INTRODUCTION TO CLASSICAL MECHANICS. Prof. N. Harnew University of Oxford TT 2017

Ordinary Differential Equations II

Advanced Vibrations. Elements of Analytical Dynamics. By: H. Ahmadian Lecture One

Math 660 Lecture 4: FDM for evolutionary equations: ODE solvers

Outline. Calculus for the Life Sciences. What is a Differential Equation? Introduction. Lecture Notes Introduction to Differential Equa

Introduction to numerical methods for Ordinary Differential Equations

Modeling and Experimentation: Compound Pendulum

2D-Volterra-Lotka Modeling For 2 Species

Brownian Motion and Langevin Equations

Solving Ordinary Differential equations

CPS 5310: Parameter Estimation. Natasha Sharma, Ph.D.

Runge - Kutta Methods for first and second order models

Ordinary Differential Equations (ODEs)

Physics 115/242 The leapfrog method and other symplectic algorithms for integrating Newton s laws of motion

Geometric Numerical Integration

Runga-Kutta Schemes. Exact evolution over a small time step: Expand both sides in a small time increment: d(δt) F (x(t + δt),t+ δt) Ft + FF x ( t)

7 Planar systems of linear ODE

Introduction to Modern Control MT 2016

Nonlinear Autonomous Dynamical systems of two dimensions. Part A

Physics 115/242 The leapfrog method and other symplectic algorithms for integrating Newton s laws of motion

Solution of ordinary Differential Equations

Efficiency of Runge-Kutta Methods in Solving Simple Harmonic Oscillators

The Geometry of Euler s equation. Introduction

Math 128A Spring 2003 Week 12 Solutions

CHAPTER 10: Numerical Methods for DAEs

Transcription:

Numerical Methods for ODEs Lectures for PSU Summer Programs Xiantao Li

Outline Introduction Some Challenges Numerical methods for ODEs Stiff ODEs Accuracy Constrained dynamics Stability Coarse-graining Applications Preserving invariants Preserving symmetry Multiple time scales Statistical mechanics Preserving geometric structures

Ordinary Differential Equations General form x 0 = f(x, t) Applications Mechanics Molecular models Chemical reactions Discretization of PDEs Examples from 251 Mass-spring model, population model, motion in space For most ODEs, the solutions can be obtained from analytical methods.

Numerical Solutions Exact solution x(t) = (t, x(0)) Numerical solution x(t) = (t, x(0); t) Numerical methods Time discretization = {t 0,t 1,,t N } [0,T] Example: uniform step size: Euler s method: t j = j t, j 0 x(t j+1 ) x(t j ) t = f(x(t j ),t j )

A Two-Stage Runge-Kutta Method First stage: k 1 = f(x(t j ),t j ),x(t j+1 ) = x(t j )+ tk 1 Second stage: k 2 = f(x(t j+1 ),t j+1 ), x(t j+1 )=x(t j )+ t k1 + k 2 2 Numerical error k (t) (t)k apple t 2 e Lt. Higher order RK methods are available (try rk45 in Matlab)

Inheritance of Asymptotic Stability For a linear system, x 0 = Ax, x =0 eigenvalues of A are negative. is stable if all For a nonlinear system, x 0 = f(x), an equilibrium x 0 is stable if the eigenvalues of rf(x 0 ) are negative. A numerical method is stable if the stability of the linear system is inherited. Typically, the step size has to be sufficiently small (inverse proportional to the eigenvalues) in order for the method to be stable. The problem becomes stiff when some eigenvalues are large.

Many-Particle Models Coordinate and Momentum The equations: Linear momentum: Angular momentum: Total energy: Conservation:

First Integrals (Invariants) In general, for is a first integral if Most numerical methods preserve linear invariant Only some methods preserve quadratic invariants In general, it is not possible to exactly preserve invariants of higher order.

Symmetry If the function is symmetric wrt The solutions of the ODEs will be called ρ- reversible For example, A numerical method is ρ- reversible if the solution satisfies the same properties. Explicit RK methods are not symmetric.

Symplectic Structure A linear mapping A is symplectic if A nonlinear mapping g is symplectic if

Hamiltonian systems Hamilton s principle Examples: mass spring model, many-body problems, pendulum model, Lotka-Volterra model etc. The mapping is symplectic A numerical method is symplectic if it defines a symplectic mapping

Symmetric and symplectic methods Symmetric methods Order of accuracy is always even Very convenient for an extrapolation procedure Symplectic methods Very good energy conservation properties Promising accuracy over long time integration Provide good statistics.

Dimension Reduction: I A Hamiltonian system Imposing constraints y 0 = JrH(y) c(y) =0,c: R N! R N n Effectively, there are only n free variables Example: flexible pendulum H = K + U = 1 2 (mv2 1 + mv 2 2)+mgx 2 + 1 2ɛ 2 ( x 2 1 + x2 2 l)2,

Dimension Reduction: II A large system x 0 = Ax, x 2 R N,A2 R N N,N 1. Some quantities of interest y = Bx,y 2 R n,b 2 R n N Remaining degrees of freedom: z = Cx, z 2 R N n,b 2 R (N n) N Effective equation: My 0 = Ky + S(t): memory function Z t 0 S(t s)y(s)ds + R(t) R(t): random noise

Summer Project I Minimum energy path (MEP) The most efficient path from one stable state to another The most probable path Represents rare but important events ODEs with boundary conditions

Summer Project II ODEs with multiple time scales An example, x 0 = f(x, y) y 0 = 1 " (y '(x)) A multiscale method targeting the slow variables only Large time step size