Validated Explicit and Implicit Runge-Kutta Methods

Size: px
Start display at page:

Download "Validated Explicit and Implicit Runge-Kutta Methods"

Transcription

1 Validated Explicit and Implicit Runge-Kutta Methods Alexandre Chapoutot joint work with Julien Alexandre dit Sandretto and Olivier Mullier U2IS, ENSTA ParisTech 8th Small Workshop on Interval Methods, Praha June, 205

2 Initial Value Problem of Ordinary Differential Equations Consider an IVP for ODE, over the time interval [0, T ] ẏ = f (y) with y(0) = y 0 IVP has a unique solution y(t; y 0 ) if f : R n R n is Lipschitz in y but for our purpose we suppose f smooth enough i.e., of class C k Goal of numerical integration Compute a sequence of time instants: t 0 = 0 < t < < t n = T Compute a sequence of values: y 0, y,..., y n such that i [0, n], y i y(t i ; y 0 ). s.t. y n+ y(t n + h; y n ) with an error O(h p+ ) where h is the integration step-size p is the order of the method true with localization assumption i.e., yn = y(t n; y 0). 2 / 26

3 Validated solution of IVP for ODE Goal of validated numerical integration Compute a sequence of time instants: t 0 = 0 < t < < t n = T Compute a sequence of values: [y 0 ], [y ],..., [y n ] such that i [0, n], [y i ] y(t i ; y 0 ). A two-step approach Exact solution of ẏ = f (y(t)) with y(0) Y 0 Safe approximation at discrete time instants Safe approximation between time instants 3 / 26

4 State of the art Taylor methods They have been developed since 60 s (Moore, Lohner, Makino and Berz, Rhim, Jackson and Nedialkov, etc.) prove the existence and uniqueness: high order interval Picard-Lindelöf works very well on various kinds of problems: non stiff and moderately stiff linear and non-linear systems, with thin uncertainties on initial conditions with (a writing process) thin uncertainties on parameters very efficient with automatic differentiation techniques wrapping effect fighting: interval centered form and QR decomposition many software: AWA, COSY infinity, VNODE-LP, CAPD, etc. Some extensions Taylor polynomial with Hermite-Obreskov (Jackson and Nedialkov) Taylor polynomial in Chebyshev basis (T. Dzetkulic) 4 / 26

5 One question Why bother to define new methods? 5 / 26

6 Answer : it may fail A chemical reaction simulated with VNODE-LP ẏ = z { y(0) = 0 ż = z 2 3 with z(0) = y 2 and t [0, 50] Result: it is stuck around t = with various order between 5 and 40. With validated Lobatto-3C (order 4) method with tolerance 0 0, we get in about 7.6s (Intel i7 3.4Ghz) width(y (50.0)) = width(y 2 (50.0)) = Note: CAPD can solve this problem 6 / 26

7 Answer 2: there is no silver bullet Numerical solutions of IVP for ODEs are produced by Adams-Bashworth/Moulton methods BDF methods Runge-Kutta methods etc. each of these methods is adapted to a particular class of ODEs Runge-Kutta methods have strong stability properties for various kinds of problems (A-stable, L-stable, algebraic stability, etc.) may preserve quadratic algebraic invariant (symplectic methods) can produce continuous output (polynomial approximation of y(t)) Can we benefit these properties in validated computations? 7 / 26

8 Examples of Runge-Kutta methods k 2 = f(t 0 + h, y 0 + hk ) ( ) y = y 0 + h 2 k + k 2 k y These methods have a nice geometric interpre two pictures of Fig..2 for a famous problem Single-step fixed step-size explicit Runge-Kutta of polygonal lines, method which assume the slopes p evaluated at previous points. e.g. explicit Trapzoidal method (or Heun s method) Idea is of defined Heun (900) by: and Kutta (90):compu ing at y 0 and assuming the various slopes k j o which are proportional to some given constan k = f (t n, y n ), k 2 = f (t n + h n, y n + hkgon ) evaluate a new0 slope k ( y n+ = y n + h 2 k + ) i.thelastofthes mines the numerical 2 k solution y (see the third 2 the class of explicit Runge Kutta methods, i. for i j. 2 2 Intuition ẏ = t 2 + y 2 y 0 = 0.46 h =.0 dotted line is the exact solution. y k y 0 expl. trap. rule 2 t y k 2 y expl. midp. k k 2 y 0 2 Fig..2. Runge Kutta methods for ẏ = t 2 + y 2, y example coming from Geometric Numerical Integration, Hairer, Lubich and Wanner. 8 / 26

9 Examples of Runge-Kutta methods Single-step fixed step-size implicit Runge-Kutta method e.g. Runge-Kutta Gauss method (order 4) is defined by: k = f k 2 = f ( ( t n + t n + ) 3 2 h n, 6 ) h n, 6 ) ( ( ( y n+ = y n + h 2 k + 2 k 2 y n + h y n + h ( ( ) )) 4 k k 2 6 (( ) )) k k 2 (a) (b) (c) Remark: A non-linear system of equations must be solved at each step. 8 / 26

10 Runge-Kutta methods s-stage Runge-Kutta methods are described by a Butcher tableau c a a 2 a s.... c s a s a s2 a ss b b 2 b s b b 2 b s (optional) Which induces the following recurrence: ( ) s k i = f t n + c i h n, y n + h a ij k j j= Explicit method (ERK) if a ij = 0 is i j y n+ = y n + h i j s b i k i (2) Diagonal Implicit method (DIRK) if a ij = 0 is i j and at least one a ii 0 Implicit method (IRK) otherwise i= 9 / 26

11 Validated Runge-Kutta methods Challenges. Computing with sets of values taking into account dependency problem and wrapping effect; 2. Bounding the approximation error of Runge-Kutta formula. Our approach Problem is solved using affine arithmetic avoiding centered form and QR decomposition Problem 2 is solved by bounding the Local truncation error of Runge-Kutta method based on B-series We focus on Problem 2 in this talk 0 / 26

12 Order condition for Runge-Kutta methods Method order of Runge-Kutta methods and Local Truncation Error (LTE) we want to bound this! y(t n ; y n ) y n = C O ( h p+) with C R. Order condition This condition states that a method of Runge-Kutta family is of order p iff the Taylor expansion of the exact solution and the Taylor expansion of the numerical methods have the same p + first coefficients. Consequence The LTE is the difference of Lagrange remainders of two Taylor expansions... but how to compute it? / 26

13 A quick view of Runge-Kutta order condition theory 2 Starting from y (q) = (f (y)) (q ) and with the Chain rule, we have High order derivatives of exact solution y ẏ = f (y) ÿ = f (y)ẏ y (3) = f (y)(ẏ, ẏ) + f (y)ÿ y (4) = f (y)(ẏ, ẏ, ẏ) + 3f (y)(ÿ, ẏ) + f (y)y (3) y (5) = f (4) (y)(ẏ, ẏ, ẏ, ẏ) + 6f (y)(ÿ, ẏ, ẏ) + 4f (y)(y (3), ẏ) + 3f (y)(ÿ, ÿ) + f (y)y (4).. f (y) is a linear map f (y) is a bi-linear map f (y) is a tri-linear map. 2 strongly inspired from Geometric Numerical Integration, Hairer, Lubich and Wanner. 2 / 26

14 A quick view of Runge-Kutta order condition theory 2 Inserting the value of ẏ, ÿ,..., we have: High order derivatives of exact solution y ẏ = f ÿ = f (f ) y (3) = f (f, f ) + f (f (f )) y (4) = f (f, f, f ) + 3f (f f, f ) + f (f (f, f )) + f (f (f (f ))). Elementary differentials, are denoted by F (τ) Remark a tree structure is made apparent in these computations 2 strongly inspired from Geometric Numerical Integration, Hairer, Lubich and Wanner. 2 / 26

15 A quick view of Runge-Kutta order condition theory 2 Rooted trees f is a leaf f is a tree with one branch,..., f (k) is a tree with k branches Example f (f f, f ) is associated to f f f Remark: this tree is not unique e.g., symmetry f 2 strongly inspired from Geometric Numerical Integration, Hairer, Lubich and Wanner. 2 / 26

16 A quick view of Runge-Kutta order condition theory 2 Theorem (Butcher, 963) The qth derivative of the exact solution is given by y (q) = r(τ)=q α(τ)f (τ)(y 0) with We can do the same for the numerical solution r(τ) the order of τ i.e., number of nodes α(τ) a positive integer Theorem 2 (Butcher, 963) The qth derivative of the numerical solution is given by y (q) = r(τ)=q γ(τ)φ(τ)α(τ)f (τ)(y 0) with γ(τ) a positive integer φ(τ) depending on a Butcher tableau Theorem 3, order condition (Butcher, 963) A Runge-Kutta method has order p iff φ(τ) = γ(τ) τ, r(τ) p 2 strongly inspired from Geometric Numerical Integration, Hairer, Lubich and Wanner. 2 / 26

17 LTE formula for explicit and implicit Runge-Kutta From Theorem and Theorem 2, if a Runge-Kutta has order p then y(t n ; y n ) y n = hp+ (p + )! r(τ)=p+ α(τ) [ γ(τ)φ(τ)] F (τ)(y(ξ)) ξ [t n, t n ] α(τ) and γ(τ) are positive integer (with some combinatorial meaning) φ(τ) function of the coefficients of the RK method, Example ( ) φ is associated to s b i a ij c j with c j = i,j= Note: y(ξ) may be over-approximated using Interval Picard-Lindelöf operator. s k= a jk 3 / 26

18 Implementation of LTE formula Elementary differentials F (τ)(y) = f (m) (y) (F (τ )(y),..., F (τ m )(y)) for τ = [τ,..., τ m ] translate as a sum of partial derivatives of f associated to sub-trees Notations n the state-space dimension p the order of a Rung-Kutta method Two ways of computing F (τ). Direct form (current): complexity O(n p+ ) 2. Factorized form (under test): complexity O(n(p + ) 5 2 ) based on the work of Ferenc Bartha and Hans Munthe-Kaas Computing of B-series by automatic differentiation, / 26

19 Experimentation Toy example ) ( ) (ẏ y2 = ẏ 2 y with ( ) y (0) = [0, 0.] y 2 (0) = [0.95,.05] Validated RK4 method with tolerance 0 8 we get in about 3s (Intel i7 3.4Ghz) width(y (00.0)) = width(y 2 (00.0)) = / 26

20 Experimentation Usefulness of affine arithmetic ẏ =, y (0) = 0 ẏ 2 = y 3, y 2 (0) = 0 ẏ 3 = 6 y 2 3 y sin(p y ) with p [2.78, 2.79], y 3 (0) = 0. Validated RK4 method with tolerance 0 6 we get in about 2.3s (Intel i7 3.4Ghz) width(y (0.0)) = width(y 2 (0.0)) = width(y 3 (0.0)) = Note: none of the method in the Vericomp benchmark can reach 0s Note 2: CAPD can solve it 6 / 26

21 Experimentation Based on Vericomp benchmark 3 (around 70 problems) simple (A) Uncertain (U) or not linear (L) moderate (B) IVP non-stiff (P.I) complicate (C) nonlinear (L) idem with the following metrics: c5t: user time taken to simulate the problem for second. c5w: the final diameter of the solution (infinity norm is used). c6t: the time to breakdown the method with a maximal limit of 0 seconds. c6w: the diameter of the solution a the breakdown time / 26

22 Summary RK vs Vnode-LP c5w Vnode-LP: order 5, 20, 25 (tolerances 0 4 ) RK4, LC3, LA3: tolerances 0 8 to 0 4 (order 4) 8 / 26

23 Summary RK vs Vnode-LP c6w Vnode-LP: order 5, 20, 25 (tolerances 0 4 ) RK4, LC3, LA3: tolerances 0 8 to 0 4 (order 4) 9 / 26

24 Conclusion We presented a new approach to validate Runge-Kutta methods a new formula to compute LTE based on B-series fully parametrized by a Butcher tableau affine arithmetic avoiding QR decomposition implementation as a plugin of IBEX, code name DynIbex, available at chapoutot/dynibex/ Future work finish testing the implementation of LTE with automatic differentiation implement new a priori enclosure methods based on Runge-Kutta define new methods mixing different Runge-Kutta in one simulation solve new IVP problems such as for DAE (next talk) or DDE 20 / 26

25 BACKUP 2 / 26

26 Note on the number of trees (up to order (left)): Number of Rooted Trees (total 3047) 22 / 26

27 Quick remainder: Taylor series method Taylor series development of y(t) (assume y(t n ) [y n ]) Challenges N h i d i y y(t n+ ) = y(t n ) + i! dt i (t n) + hn n+ d Nx N! dt N (t ) i= N [y n ] + h i f [i ]( y(t n ) ) + h N f [N ]( y(t ) ) i= N [y n ] + h i f [i ] ([y n ]) + h N f [N ] ([ỹ n ]) [y n+ ] i= Computation of [ỹ n ] such that t [t n, t n+ ], y(t) [ỹ n ] Solution: interval Picard-Lindelöf operator With that formula: width([y n+ ]) width([y n ]) Solutions: interval centered form + QR decomposition 23 / 26

28 Variable step-size explicit Runge-Kutta methods Single-step variable step-size explicit Runge-Kutta method e.g. Bogacki-Shampine (ode23) is defined by: k = f (t n, y n ) k 2 = f (t n + 2 h n, y n + 2 hk ) k 3 = f (t n h n, y n hk 2) ( 2 y n+ = y n + h 9 k + 3 k ) 9 k 3 k 4 = f (t n + h n, y n+ ) ( 7 z n+ = y n + h 24 k + 4 k k 3 + ) 8 k Remark: the step-size h is adapted following y n+ z n+ tol / 26

29 Gauss-Legendre methods Single-step fixed step-size implicit Runge-Kutta method e.g. Runge-Kutta Gauss method (order 4) is defined by: k = f k 2 = f ( ( t n + t n + ( ) 3 2 h n, 6 ) h n, 6 ) ( ( y n+ = y n + h 2 k + 2 k 2 y n + h y n + h ( ( ) )) 4 k k 2 6 (( ) )) k k 2 (3a) (3b) (3c) Remark: A non-linear system of equations must be solved at each step. 25 / 26

30 Note on building IRK Gauss method tn+ ẏ = f (y) with y(0) = y 0 y(t) = y 0 + f (y(s))ds t n We solve this equation using quadrature formula. IRK Gauss method is associated to a collocation method (polynomial approximation of the integral) such that for i, j =,..., s: a ij = ci 0 t c k c j c k l j (t)dt and b j = 0 l j (t)dt with l j (t) = k j the Lagrange polynomial. And the c i are chosen as the solution of the Shifted Legendre polynomial of degree s: s ( )( ) s s + k P s (x) = ( ) s ( x) k k s k=0 Example:, 2x, 6x 2 6x +, 20x 3 30x 2 + 2x, etc. 26 / 26

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

Runge-Kutta Theory and Constraint Programming Julien Alexandre dit Sandretto Alexandre Chapoutot. Department U2IS ENSTA ParisTech SCAN Uppsala Runge-Kutta Theory and Constraint Programming Julien Alexandre dit Sandretto Alexandre Chapoutot Department U2IS ENSTA ParisTech SCAN 2016 - Uppsala Contents Numerical integration Runge-Kutta with interval

More information

Runge Kutta Theory and Constraint Programming

Runge Kutta Theory and Constraint Programming Runge Kutta Theory and Constraint Programming Julien Alexandre dit Sandretto julien.alexandre-dit-sandretto@ensta-paristech.fr U2IS, ENSTA ParisTech, Université Paris-Saclay, 828 bd des Maréchaux, 9762

More information

Multistage Methods I: Runge-Kutta Methods

Multistage Methods I: Runge-Kutta Methods Multistage Methods I: Runge-Kutta Methods Varun Shankar January, 0 Introduction Previously, we saw that explicit multistep methods (AB methods) have shrinking stability regions as their orders are increased.

More information

Interval Methods and Taylor Model Methods for ODEs

Interval Methods and Taylor Model Methods for ODEs Interval Methods and Taylor Model Methods for ODEs Markus Neher, Dept. of Mathematics KARLSRUHE INSTITUTE OF TECHNOLOGY (KIT) 0 TM VII, Key West KIT University of the State of Baden-Wuerttemberg and Interval

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations Numerical Methods for Differential Equations Chapter 2: Runge Kutta and Multistep Methods Gustaf Söderlind Numerical Analysis, Lund University Contents V4.16 1. Runge Kutta methods 2. Embedded RK methods

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations Numerical Methods for Differential Equations Chapter 2: Runge Kutta and Linear Multistep methods Gustaf Söderlind and Carmen Arévalo Numerical Analysis, Lund University Textbooks: A First Course in the

More information

CHAPTER 10: Numerical Methods for DAEs

CHAPTER 10: Numerical Methods for DAEs CHAPTER 10: Numerical Methods for DAEs Numerical approaches for the solution of DAEs divide roughly into two classes: 1. direct discretization 2. reformulation (index reduction) plus discretization Direct

More information

Deterministic Global Optimization for Dynamic Systems Using Interval Analysis

Deterministic Global Optimization for Dynamic Systems Using Interval Analysis Deterministic Global Optimization for Dynamic Systems Using Interval Analysis Youdong Lin and Mark A. Stadtherr Department of Chemical and Biomolecular Engineering University of Notre Dame, Notre Dame,

More information

Tuning PI controllers in non-linear uncertain closed-loop systems with interval analysis

Tuning PI controllers in non-linear uncertain closed-loop systems with interval analysis Tuning PI controllers in non-linear uncertain closed-loop systems with interval analysis J. Alexandre dit Sandretto, A. Chapoutot and O. Mullier U2IS, ENSTA ParisTech SYNCOP April 11, 2015 Closed-loop

More information

Applied Math for Engineers

Applied Math for Engineers Applied Math for Engineers Ming Zhong Lecture 15 March 28, 2018 Ming Zhong (JHU) AMS Spring 2018 1 / 28 Recap Table of Contents 1 Recap 2 Numerical ODEs: Single Step Methods 3 Multistep Methods 4 Method

More information

Part IB Numerical Analysis

Part IB Numerical Analysis Part IB Numerical Analysis Definitions Based on lectures by G. Moore Notes taken by Dexter Chua Lent 206 These notes are not endorsed by the lecturers, and I have modified them (often significantly) after

More information

Numerical Methods - Initial Value Problems for ODEs

Numerical Methods - Initial Value Problems for ODEs Numerical Methods - Initial Value Problems for ODEs Y. K. Goh Universiti Tunku Abdul Rahman 2013 Y. K. Goh (UTAR) Numerical Methods - Initial Value Problems for ODEs 2013 1 / 43 Outline 1 Initial Value

More information

Euler s Method applied to the control of switched systems

Euler s Method applied to the control of switched systems Euler s Method applied to the control of switched systems FORMATS 2017 - Berlin Laurent Fribourg 1 September 6, 2017 1 LSV - CNRS & ENS Cachan L. Fribourg Euler s method and switched systems September

More information

Runge-Kutta and Collocation Methods Florian Landis

Runge-Kutta and Collocation Methods Florian Landis Runge-Kutta and Collocation Methods Florian Landis Geometrical Numetric Integration p.1 Overview Define Runge-Kutta methods. Introduce collocation methods. Identify collocation methods as Runge-Kutta methods.

More information

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

The family of Runge Kutta methods with two intermediate evaluations is defined by AM 205: lecture 13 Last time: Numerical solution of ordinary differential equations Today: Additional ODE methods, boundary value problems Thursday s lecture will be given by Thomas Fai Assignment 3 will

More information

Energy-Preserving Runge-Kutta methods

Energy-Preserving Runge-Kutta methods Energy-Preserving Runge-Kutta methods Fasma Diele, Brigida Pace Istituto per le Applicazioni del Calcolo M. Picone, CNR, Via Amendola 122, 70126 Bari, Italy f.diele@ba.iac.cnr.it b.pace@ba.iac.cnr.it SDS2010,

More information

Fourth Order RK-Method

Fourth Order RK-Method Fourth Order RK-Method The most commonly used method is Runge-Kutta fourth order method. The fourth order RK-method is y i+1 = y i + 1 6 (k 1 + 2k 2 + 2k 3 + k 4 ), Ordinary Differential Equations (ODE)

More information

Validated Solutions of Initial Value Problems for Parametric ODEs

Validated Solutions of Initial Value Problems for Parametric ODEs Validated Solutions of Initial Value Problems for Parametric ODEs Youdong Lin and Mark A. Stadtherr Department of Chemical and Biomolecular Engineering University of Notre Dame, Notre Dame, IN 46556, USA

More information

Solving Ordinary Differential equations

Solving Ordinary Differential equations Solving Ordinary Differential equations Taylor methods can be used to build explicit methods with higher order of convergence than Euler s method. The main difficult of these methods is the computation

More information

Propagation of Uncertainties in Nonlinear Dynamic Models

Propagation of Uncertainties in Nonlinear Dynamic Models Propagation of Uncertainties in Nonlinear Dynamic Models Youdong Lin 1, Scott Ferson 2, George F. Corliss 3 and Mark A. Stadtherr 1 1 Department of Chemical and Biomolecular Engineering, University of

More information

Linear Multistep Methods I: Adams and BDF Methods

Linear Multistep Methods I: Adams and BDF Methods Linear Multistep Methods I: Adams and BDF Methods Varun Shankar January 1, 016 1 Introduction In our review of 5610 material, we have discussed polynomial interpolation and its application to generating

More information

NUMERICAL SOLUTION OF ODE IVPs. Overview

NUMERICAL SOLUTION OF ODE IVPs. Overview NUMERICAL SOLUTION OF ODE IVPs 1 Quick review of direction fields Overview 2 A reminder about and 3 Important test: Is the ODE initial value problem? 4 Fundamental concepts: Euler s Method 5 Fundamental

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 9 Initial Value Problems for Ordinary Differential Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign

More information

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

Partitioned Runge-Kutta Methods for Semi-explicit Differential-Algebraic Systems of Index 2 Partitioned Runge-Kutta Methods for Semi-explicit Differential-Algebraic Systems of Index 2 A. Murua Konputazio Zientziak eta A. A. Saila, EHU/UPV, Donostia-San Sebastián email ander@si.ehu.es December

More information

Consistency and Convergence

Consistency and Convergence Jim Lambers MAT 77 Fall Semester 010-11 Lecture 0 Notes These notes correspond to Sections 1.3, 1.4 and 1.5 in the text. Consistency and Convergence We have learned that the numerical solution obtained

More information

Implicit-explicit exponential integrators

Implicit-explicit exponential integrators Implicit-explicit exponential integrators Bawfeh Kingsley Kometa joint work with Elena Celledoni MaGIC 2011 Finse, March 1-4 1 Introduction Motivation 2 semi-lagrangian Runge-Kutta exponential integrators

More information

Round-off Error Analysis of Explicit One-Step Numerical Integration Methods

Round-off Error Analysis of Explicit One-Step Numerical Integration Methods Round-off Error Analysis of Explicit One-Step Numerical Integration Methods Sylvie Boldo, Florian Faissole, Alexandre Chapoutot To cite this version: Sylvie Boldo, Florian Faissole, Alexandre Chapoutot

More information

2 Numerical Methods for Initial Value Problems

2 Numerical Methods for Initial Value Problems Numerical Analysis of Differential Equations 44 2 Numerical Methods for Initial Value Problems Contents 2.1 Some Simple Methods 2.2 One-Step Methods Definition and Properties 2.3 Runge-Kutta-Methods 2.4

More information

CS520: numerical ODEs (Ch.2)

CS520: numerical ODEs (Ch.2) .. CS520: numerical ODEs (Ch.2) Uri Ascher Department of Computer Science University of British Columbia ascher@cs.ubc.ca people.cs.ubc.ca/ ascher/520.html Uri Ascher (UBC) CPSC 520: ODEs (Ch. 2) Fall

More information

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9 Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T. Heath Chapter 9 Initial Value Problems for Ordinary Differential Equations Copyright c 2001. Reproduction

More information

1 Ordinary differential equations

1 Ordinary differential equations Numerical Analysis Seminar Frühjahrssemester 08 Lecturers: Prof. M. Torrilhon, Prof. D. Kressner The Störmer-Verlet method F. Crivelli (flcrivel@student.ethz.ch May 8, 2008 Introduction During this talk

More information

CHAPTER 5: Linear Multistep Methods

CHAPTER 5: Linear Multistep Methods CHAPTER 5: Linear Multistep Methods Multistep: use information from many steps Higher order possible with fewer function evaluations than with RK. Convenient error estimates. Changing stepsize or order

More information

Lecture 4: Numerical solution of ordinary differential equations

Lecture 4: Numerical solution of ordinary differential equations Lecture 4: Numerical solution of ordinary differential equations Department of Mathematics, ETH Zürich General explicit one-step method: Consistency; Stability; Convergence. High-order methods: Taylor

More information

Numerical Differential Equations: IVP

Numerical Differential Equations: IVP Chapter 11 Numerical Differential Equations: IVP **** 4/16/13 EC (Incomplete) 11.1 Initial Value Problem for Ordinary Differential Equations We consider the problem of numerically solving a differential

More information

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

Butcher tableau Can summarize an s + 1 stage Runge Kutta method using a triangular grid of coefficients AM 205: lecture 13 Last time: ODE convergence and stability, Runge Kutta methods Today: the Butcher tableau, multi-step methods, boundary value problems Butcher tableau Can summarize an s + 1 stage Runge

More information

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations Finite Differences for Differential Equations 28 PART II Finite Difference Methods for Differential Equations Finite Differences for Differential Equations 29 BOUNDARY VALUE PROBLEMS (I) Solving a TWO

More information

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes Jim Lambers MAT 772 Fall Semester 21-11 Lecture 21 Notes These notes correspond to Sections 12.6, 12.7 and 12.8 in the text. Multistep Methods All of the numerical methods that we have developed for solving

More information

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

Symplectic integration with Runge-Kutta methods, AARMS summer school 2015 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)

More information

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1 Lectures - Week 11 General First Order ODEs & Numerical Methods for IVPs In general, nonlinear problems are much more difficult to solve than linear ones. Unfortunately many phenomena exhibit nonlinear

More information

Southern Methodist University.

Southern Methodist University. Title: Continuous extensions Name: Lawrence F. Shampine 1, Laurent O. Jay 2 Affil./Addr. 1: Department of Mathematics Southern Methodist University Dallas, TX 75275 USA Phone: +1 (972) 690-8439 E-mail:

More information

B-Series and their Cousins - A. Contemporary Geometric View

B-Series and their Cousins - A. Contemporary Geometric View B-Series and their Cousins - A Contemporary Geometric View Hans Munthe-Kaas 1 Department of Mathematics University of Bergen Norway url: hans.munthe-kaas.no mail: hans.munthe-kaas@uib.no SciCADE Bath,

More information

Chapter 6 - Ordinary Differential Equations

Chapter 6 - Ordinary Differential Equations Chapter 6 - Ordinary Differential Equations 7.1 Solving Initial-Value Problems In this chapter, we will be interested in the solution of ordinary differential equations. Ordinary differential equations

More information

Introduction to standard and non-standard Numerical Methods

Introduction to standard and non-standard Numerical Methods Introduction to standard and non-standard Numerical Methods Dr. Mountaga LAM AMS : African Mathematic School 2018 May 23, 2018 One-step methods Runge-Kutta Methods Nonstandard Finite Difference Scheme

More information

TMA4215: Lecture notes on numerical solution of ordinary differential equations.

TMA4215: Lecture notes on numerical solution of ordinary differential equations. TMA45: Lecture notes on numerical solution of ordinary differential equations. Anne Kværnø November, 6 Contents Eulers method. 3 Some background on ODEs. 6 3 Numerical solution of ODEs. 8 3. Some examples

More information

Round-off Error Analysis of Explicit One-Step Numerical Integration Methods

Round-off Error Analysis of Explicit One-Step Numerical Integration Methods Round-off Error Analysis of Explicit One-Step Numerical Integration Methods 24th IEEE Symposium on Computer Arithmetic Sylvie Boldo 1 Florian Faissole 1 Alexandre Chapoutot 2 1 Inria - LRI, Univ. Paris-Sud

More information

High-Order Representation of Poincaré Maps

High-Order Representation of Poincaré Maps High-Order Representation of Poincaré Maps Johannes Grote, Martin Berz, and Kyoko Makino Department of Physics and Astronomy, Michigan State University, East Lansing, MI, USA. {grotejoh,berz,makino}@msu.edu

More information

Ordinary Differential Equations II

Ordinary Differential Equations II Ordinary Differential Equations II CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Justin Solomon CS 205A: Mathematical Methods Ordinary Differential Equations II 1 / 29 Almost Done! No

More information

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by Numerical Analysis A Comprehensive Introduction H. R. Schwarz University of Zürich Switzerland with a contribution by J. Waldvogel Swiss Federal Institute of Technology, Zürich JOHN WILEY & SONS Chichester

More information

Efficiency of Runge-Kutta Methods in Solving Simple Harmonic Oscillators

Efficiency of Runge-Kutta Methods in Solving Simple Harmonic Oscillators MATEMATIKA, 8, Volume 3, Number, c Penerbit UTM Press. All rights reserved Efficiency of Runge-Kutta Methods in Solving Simple Harmonic Oscillators Annie Gorgey and Nor Azian Aini Mat Department of Mathematics,

More information

Semi-implicit Krylov Deferred Correction Methods for Ordinary Differential Equations

Semi-implicit Krylov Deferred Correction Methods for Ordinary Differential Equations Semi-implicit Krylov Deferred Correction Methods for Ordinary Differential Equations Sunyoung Bu University of North Carolina Department of Mathematics CB # 325, Chapel Hill USA agatha@email.unc.edu Jingfang

More information

Geometric Numerical Integration

Geometric Numerical Integration Geometric Numerical Integration (Ernst Hairer, TU München, winter 2009/10) Development of numerical ordinary differential equations Nonstiff differential equations (since about 1850), see [4, 2, 1] Adams

More information

The Initial Value Problem for Ordinary Differential Equations

The Initial Value Problem for Ordinary Differential Equations Chapter 5 The Initial Value Problem for Ordinary Differential Equations In this chapter we begin a study of time-dependent differential equations, beginning with the initial value problem (IVP) for a time-dependent

More information

Advanced methods for ODEs and DAEs

Advanced methods for ODEs and DAEs Advanced methods for ODEs and DAEs Lecture 8: Dirk and Rosenbrock Wanner methods Bojana Rosic, 14 Juni 2016 General implicit Runge Kutta method Runge Kutta method is presented by Butcher table: c1 a11

More information

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

High-order symmetric schemes for the energy conservation of polynomial Hamiltonian problems. High-order symmetric schemes for the energy conservation of polynomial Hamiltonian problems. Felice Iavernaro and Donato Trigiante Abstract We define a class of arbitrary high order symmetric one-step

More information

Numerical solution of ODEs

Numerical solution of ODEs Numerical solution of ODEs Arne Morten Kvarving Department of Mathematical Sciences Norwegian University of Science and Technology November 5 2007 Problem and solution strategy We want to find an approximation

More information

The collocation method for ODEs: an introduction

The collocation method for ODEs: an introduction 058065 - Collocation Methods for Volterra Integral Related Functional Differential The collocation method for ODEs: an introduction A collocation solution u h to a functional equation for example an ordinary

More information

1 Ordinary Differential Equations

1 Ordinary Differential Equations Ordinary Differential Equations.0 Mathematical Background.0. Smoothness Definition. A function f defined on [a, b] is continuous at ξ [a, b] if lim x ξ f(x) = f(ξ). Remark Note that this implies existence

More information

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

Improved Starting Methods for Two-Step Runge Kutta Methods of Stage-Order p 3 Improved Starting Methods for Two-Step Runge Kutta Methods of Stage-Order p 3 J.H. Verner August 3, 2004 Abstract. In [5], Jackiewicz and Verner derived formulas for, and tested the implementation of two-step

More information

Module 4: Numerical Methods for ODE. Michael Bader. Winter 2007/2008

Module 4: Numerical Methods for ODE. Michael Bader. Winter 2007/2008 Outlines Module 4: for ODE Part I: Basic Part II: Advanced Lehrstuhl Informatik V Winter 2007/2008 Part I: Basic 1 Direction Fields 2 Euler s Method Outlines Part I: Basic Part II: Advanced 3 Discretized

More information

COMMENTS ON HIGH ORDER INTEGRATORS EMBEDDED WITHIN INTEGRAL DEFERRED CORRECTION METHODS

COMMENTS ON HIGH ORDER INTEGRATORS EMBEDDED WITHIN INTEGRAL DEFERRED CORRECTION METHODS COMMENTS ON HIGH ORDER INTEGRATORS EMBEDDED WITHIN INTEGRAL DEFERRED CORRECTION METHODS ANDREW CHRISTLIEB, BENJAMIN ONG, AND JING-MEI QIU Abstract. Spectral deferred correction (SDC) methods for solving

More information

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

High-order Symmetric Schemes for the Energy Conservation of Polynomial Hamiltonian Problems 1 2 European Society of Computational Methods in Sciences and Engineering (ESCMSE) Journal of Numerical Analysis, Industrial and Applied Mathematics (JNAIAM) vol 4, no -2, 29, pp 87- ISSN 79 84 High-order

More information

Ordinary Differential Equations

Ordinary Differential Equations CHAPTER 8 Ordinary Differential Equations 8.1. Introduction My section 8.1 will cover the material in sections 8.1 and 8.2 in the book. Read the book sections on your own. I don t like the order of things

More information

Introduction to the Numerical Solution of IVP for ODE

Introduction to the Numerical Solution of IVP for ODE Introduction to the Numerical Solution of IVP for ODE 45 Introduction to the Numerical Solution of IVP for ODE Consider the IVP: DE x = f(t, x), IC x(a) = x a. For simplicity, we will assume here that

More information

Study the Numerical Methods for Solving System of Equation

Study the Numerical Methods for Solving System of Equation Study the Numerical Methods for Solving System of Equation Ravi Kumar 1, Mr. Raj Kumar Duhan 2 1 M. Tech. (M.E), 4 th Semester, UIET MDU Rohtak 2 Assistant Professor, Dept. of Mechanical Engg., UIET MDU

More information

On linear and non-linear equations. (Sect. 1.6).

On linear and non-linear equations. (Sect. 1.6). On linear and non-linear equations. (Sect. 1.6). Review: Linear differential equations. Non-linear differential equations. The Picard-Lindelöf Theorem. Properties of solutions to non-linear ODE. The Proof

More information

Lecture Notes on Numerical Differential Equations: IVP

Lecture Notes on Numerical Differential Equations: IVP Lecture Notes on Numerical Differential Equations: IVP Professor Biswa Nath Datta Department of Mathematical Sciences Northern Illinois University DeKalb, IL. 60115 USA E mail: dattab@math.niu.edu URL:

More information

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

Four Point Gauss Quadrature Runge Kuta Method Of Order 8 For Ordinary Differential Equations International journal of scientific and technical research in engineering (IJSTRE) www.ijstre.com Volume Issue ǁ July 206. Four Point Gauss Quadrature Runge Kuta Method Of Order 8 For Ordinary Differential

More information

COMBINED EXPLICIT-IMPLICIT TAYLOR SERIES METHODS

COMBINED EXPLICIT-IMPLICIT TAYLOR SERIES METHODS COMBINED EXPLICIT-IMPLICIT TAYLOR SERIES METHODS S.N. Dimova 1, I.G. Hristov 1, a, R.D. Hristova 1, I V. Puzynin 2, T.P. Puzynina 2, Z.A. Sharipov 2, b, N.G. Shegunov 1, Z.K. Tukhliev 2 1 Sofia University,

More information

Mathematics for chemical engineers. Numerical solution of ordinary differential equations

Mathematics for chemical engineers. Numerical solution of ordinary differential equations Mathematics for chemical engineers Drahoslava Janovská Numerical solution of ordinary differential equations Initial value problem Winter Semester 2015-2016 Outline 1 Introduction 2 One step methods Euler

More information

Initial value problems for ordinary differential equations

Initial value problems for ordinary differential equations AMSC/CMSC 660 Scientific Computing I Fall 2008 UNIT 5: Numerical Solution of Ordinary Differential Equations Part 1 Dianne P. O Leary c 2008 The Plan Initial value problems (ivps) for ordinary differential

More information

Ordinary Differential Equations II

Ordinary Differential Equations II Ordinary Differential Equations II CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Justin Solomon CS 205A: Mathematical Methods Ordinary Differential Equations II 1 / 33 Almost Done! Last

More information

Ordinary Differential Equations

Ordinary Differential Equations Ordinary Differential Equations Professor Dr. E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro September 19, 2014 1 / 55 Motivation

More information

Numerical Algorithms for ODEs/DAEs (Transient Analysis)

Numerical Algorithms for ODEs/DAEs (Transient Analysis) Numerical Algorithms for ODEs/DAEs (Transient Analysis) Slide 1 Solving Differential Equation Systems d q ( x(t)) + f (x(t)) + b(t) = 0 dt DAEs: many types of solutions useful DC steady state: state no

More information

Affine Arithmetic: Concepts and Applications

Affine Arithmetic: Concepts and Applications SCAN 2002 Affine Arithmetic: Concepts and Applications Luiz Henrique de Figueiredo (IMPA) Jorge Stolfi (UNICAMP) Outline What is affine arithmetic? The dependency problem in interval arithmetic Main concepts

More information

ACCELERATION OF RUNGE-KUTTA INTEGRATION SCHEMES

ACCELERATION OF RUNGE-KUTTA INTEGRATION SCHEMES ACCELERATION OF RUNGE-KUTTA INTEGRATION SCHEMES PHAILAUNG PHOHOMSIRI AND FIRDAUS E. UDWADIA Received 24 November 2003 A simple accelerated third-order Runge-Kutta-type, fixed time step, integration scheme

More information

You may not use your books, notes; calculators are highly recommended.

You may not use your books, notes; calculators are highly recommended. Math 301 Winter 2013-14 Midterm 1 02/06/2014 Time Limit: 60 Minutes Name (Print): Instructor This exam contains 8 pages (including this cover page) and 6 problems. Check to see if any pages are missing.

More information

AN INTERVAL METHOD FOR INITIAL VALUE PROBLEMS IN LINEAR ORDINARY DIFFERENTIAL EQUATIONS

AN INTERVAL METHOD FOR INITIAL VALUE PROBLEMS IN LINEAR ORDINARY DIFFERENTIAL EQUATIONS AN INTERVAL METHOD FOR INITIAL VALUE PROBLEMS IN LINEAR ORDINARY DIFFERENTIAL EQUATIONS NEDIALKO S. NEDIALKOV Abstract. Interval numerical methods for initial value problems (IVPs) for ordinary differential

More information

Solving scalar IVP s : Runge-Kutta Methods

Solving scalar IVP s : Runge-Kutta Methods Solving scalar IVP s : Runge-Kutta Methods Josh Engwer Texas Tech University March 7, NOTATION: h step size x n xt) t n+ t + h x n+ xt n+ ) xt + h) dx = ft, x) SCALAR IVP ASSUMED THROUGHOUT: dt xt ) =

More information

Initial value problems for ordinary differential equations

Initial value problems for ordinary differential equations Initial value problems for ordinary differential equations Xiaojing Ye, Math & Stat, Georgia State University Spring 2019 Numerical Analysis II Xiaojing Ye, Math & Stat, Georgia State University 1 IVP

More information

Modified Equations for Variational Integrators

Modified Equations for Variational Integrators Modified Equations for Variational Integrators Mats Vermeeren Technische Universität Berlin Groningen December 18, 2018 Mats Vermeeren (TU Berlin) Modified equations for variational integrators December

More information

Advanced methods for ODEs and DAEs

Advanced methods for ODEs and DAEs Lecture : Implicit Runge Kutta method Bojana Roić, 9. April 7 What you need to know before thi lecture numerical integration: Lecture from ODE iterative olver: Lecture 5-8 from ODE 9. April 7 Bojana Roić

More information

Do not turn over until you are told to do so by the Invigilator.

Do not turn over until you are told to do so by the Invigilator. UNIVERSITY OF EAST ANGLIA School of Mathematics Main Series UG Examination 216 17 INTRODUCTION TO NUMERICAL ANALYSIS MTHE612B Time allowed: 3 Hours Attempt QUESTIONS 1 and 2, and THREE other questions.

More information

CS 257: Numerical Methods

CS 257: Numerical Methods CS 57: Numerical Methods Final Exam Study Guide Version 1.00 Created by Charles Feng http://www.fenguin.net CS 57: Numerical Methods Final Exam Study Guide 1 Contents 1 Introductory Matter 3 1.1 Calculus

More information

Chapter 5 Exercises. (a) Determine the best possible Lipschitz constant for this function over 2 u <. u (t) = log(u(t)), u(0) = 2.

Chapter 5 Exercises. (a) Determine the best possible Lipschitz constant for this function over 2 u <. u (t) = log(u(t)), u(0) = 2. Chapter 5 Exercises From: Finite Difference Methods for Ordinary and Partial Differential Equations by R. J. LeVeque, SIAM, 2007. http://www.amath.washington.edu/ rjl/fdmbook Exercise 5. (Uniqueness for

More information

Mini project ODE, TANA22

Mini project ODE, TANA22 Mini project ODE, TANA22 Filip Berglund (filbe882) Linh Nguyen (linng299) Amanda Åkesson (amaak531) October 2018 1 1 Introduction Carl David Tohmé Runge (1856 1927) was a German mathematician and a prominent

More information

Ordinary Differential Equations

Ordinary Differential Equations Chapter 7 Ordinary Differential Equations Differential equations are an extremely important tool in various science and engineering disciplines. Laws of nature are most often expressed as different equations.

More information

ON TAYLOR MODEL BASED INTEGRATION OF ODES

ON TAYLOR MODEL BASED INTEGRATION OF ODES ON TAYLOR MODEL BASED INTEGRATION OF ODES M. NEHER, K. R. JACKSON, AND N. S. NEDIALKOV Abstract. Interval methods for verified integration of initial value problems (IVPs for ODEs have been used for more

More information

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of Scientific Computing with Case Studies SIAM Press, 2009 http://www.cs.umd.edu/users/oleary/sccswebpage Lecture Notes for Unit V Solution of Differential Equations Part 1 Dianne P. O Leary c 2008 1 The

More information

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

SPECIALIZED RUNGE-KUTTA METHODS FOR INDEX 2 DIFFERENTIAL-ALGEBRAIC EQUATIONS MATHEMATICS OF COMPUTATION Volume 75, Number 254, Pages 641 654 S 0025-5718(05)01809-0 Article electronically published on December 19, 2005 SPECIALIZED RUNGE-KUTTA METHODS FOR INDEX 2 DIFFERENTIAL-ALGEBRAIC

More information

Backward error analysis

Backward error analysis Backward error analysis Brynjulf Owren July 28, 2015 Introduction. The main source for these notes is the monograph by Hairer, Lubich and Wanner [2]. Consider ODEs in R d of the form ẏ = f(y), y(0) = y

More information

Euler s Method, Taylor Series Method, Runge Kutta Methods, Multi-Step Methods and Stability.

Euler s Method, Taylor Series Method, Runge Kutta Methods, Multi-Step Methods and Stability. Euler s Method, Taylor Series Method, Runge Kutta Methods, Multi-Step Methods and Stability. REVIEW: We start with the differential equation dy(t) dt = f (t, y(t)) (1.1) y(0) = y 0 This equation can be

More information

Solving Orthogonal Matrix Differential Systems in Mathematica

Solving Orthogonal Matrix Differential Systems in Mathematica Solving Orthogonal Matrix Differential Systems in Mathematica Mark Sofroniou 1 and Giulia Spaletta 2 1 Wolfram Research, Champaign, Illinois, USA. marks@wolfram.com 2 Mathematics Department, Bologna University,

More information

Applied Numerical Analysis

Applied Numerical Analysis Applied Numerical Analysis Using MATLAB Second Edition Laurene V. Fausett Texas A&M University-Commerce PEARSON Prentice Hall Upper Saddle River, NJ 07458 Contents Preface xi 1 Foundations 1 1.1 Introductory

More information

MTH 452/552 Homework 3

MTH 452/552 Homework 3 MTH 452/552 Homework 3 Do either 1 or 2. 1. (40 points) [Use of ode113 and ode45] This problem can be solved by a modifying the m-files odesample.m and odesampletest.m available from the author s webpage.

More information

Notes for Numerical Analysis Math 5466 by S. Adjerid Virginia Polytechnic Institute and State University (A Rough Draft) Contents Numerical Methods for ODEs 5. Introduction............................

More information

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

REVERSIBLE LONG-TERM INTEGRATION WITH VARIABLE STEPSIZES. 1. Introduction. We consider the numerical treatment of systems SIAM J. SCI. COMPUT. c 1997 Society for Industrial and Applied Mathematics Vol. 18, No. 1, pp. 257 269, January 1997 014 REVERSIBLE LONG-TERM INTEGRATION WITH VARIABLE STEPSIZES ERNST HAIRER AND DANIEL

More information

multistep methods Last modified: November 28, 2017 Recall that we are interested in the numerical solution of the initial value problem (IVP):

multistep methods Last modified: November 28, 2017 Recall that we are interested in the numerical solution of the initial value problem (IVP): MATH 351 Fall 217 multistep methods http://www.phys.uconn.edu/ rozman/courses/m351_17f/ Last modified: November 28, 217 Recall that we are interested in the numerical solution of the initial value problem

More information

Advanced methods for ODEs and DAEs

Advanced methods for ODEs and DAEs Advanced methods for ODEs and DAEs Lecture 13: Overview Bojana Rosic, 13. Juli 2016 Dynamical system is a system that evolves over time possibly under external excitations: river flow, car, etc. The dynamics

More information

Discontinuous Collocation Methods for DAEs in Mechanics

Discontinuous Collocation Methods for DAEs in Mechanics Discontinuous Collocation Methods for DAEs in Mechanics Scott Small Laurent O. Jay The University of Iowa Iowa City, Iowa, USA July 11, 2011 Outline 1 Introduction of the DAEs 2 SPARK and EMPRK Methods

More information