Delay Differential Equations Part I: Constant Lags

Size: px
Start display at page:

Download "Delay Differential Equations Part I: Constant Lags"

Transcription

1 Delay Differential Equations Part I: Constant Lags L.F. Shampine Department of Mathematics Southern Methodist University Dallas, Texas

2 Delay Differential Equations Delay differential equations (DDEs) with constant lags τ j > 0 for j = 1,...,k have the form y (t) = f(t,y(t),y(t τ 1 ),...,y(t τ k )) An early model of the El Niño/Southern Oscillation phenomenon with a physical parameter α > 0 is T (t) = T(t) αt(t τ) A nonlinear ENSO model with periodic forcing is h (t) = a tanh[κh(t τ)] + b cos(2π ω t)

3 Analytical Solutions and Stability Linear, homogeneous, constant-coefficient ODEs have solutions of the form y(t) = e λt. Any root λ of the characteristic equation provides a solution. This polynomial equation has a finite number of roots. The characteristic equation for linear, homogeneous, constant-coefficient DDEs is transcendental. Generally there are infinitely many roots λ. El sgol ts and Norkin give asymptotic expressions for these roots. The differential equation is stable if all roots of the characteristic equation satisfy Re(λ) β < 0. It is unstable if for some root, Re(λ) > 0.

4 Example Substituting y(t) = e λt into the neutral DDE leads first to y (t) = y (t 1) + y(t) y(t 1) λe λt = λe λt λ + e λt e λt λ and then to the characteristic equation ( (λ 1) 1 e λ) = 0 The roots are 1 and 2πin for integer n. cos(2πnt) and sin(2πnt) are solutions for any integer n.

5 History An initial value y(a) = φ(a) is not enough to define a unique solution of y (t) = f(t,y(t),y(t τ 1 ),...,y(t τ k )) on an interval a t b. We must specify y(t) = φ(t) for t a so that y(t τ j ) is defined when a t a + τ j. The function φ(t) is called the history of the solution. The Fortran 90 program dde_solver and the two MATLAB programs allow the history argument to be provided as either a constant vector or a function.

6 Solving DDEs in MATLAB dde23 solves DDEs with constant lags on [a,b]. This is much like solving ODEs with ode23, but You must input the lags and the history. The end points must satisfy a < b. Output is always in the form of a solution structure. Solution values are available at mesh points as fields in the structure and anywhere in a t b using deval.

7 T (t) = T(t) 2T(t 1) function Ex1 lags = 1; tspan = [0 6]; sol1 = dde23(@dde,lags,@history,tspan); sol2 = dde23(@dde,lags,1,tspan); tplot = linspace(0,6,100); T1 = deval(sol1,tplot); T2 = deval(sol2,tplot); tplot = [-1 tplot]; T1 = [1 T1]; T2 = [2 T2]; plot(tplot,t1,tplot,t2,0,1, o ) %--Subfunctions function dydt = dde(t,t,z) dydt = T - 2*Z; function s = history(t) s = 1 - t;

8 Output of Program

9 Coding the DDEs The lag τ j in f(t,y(t),y(t τ 1 ),...,y(t τ k )) is defined as component j of an input vector lags. f is to be evaluated in a function of the form function dydt = ddes(t,y,z) If there are d equations, y is a d 1 vector that approximates y(t). Z is a d k array. Z(:,j) approximates y(t τ j ). ezdde23 is a variant of dde23 with a different syntax for evaluation of the equations: function dydt = ddes(t,y,ylag1,...,ylagk) The d 1 vector ylagj approximates y(t τ j ).

10 Method of Steps For simplicity we discuss the first-order system y (t) = f(t,y(t),y(t τ)), y(t) = φ(t) for t a On [a,a + τ], this is the ODE y (t) = f(t,y(t),φ(t τ)), y(a) = φ(a) With mild assumptions on f there is a unique solution. On [a + τ,a + 2τ], the term y(t τ) in f is known and the initial value y(a + τ) is known. Repetition shows the existence, uniqueness, and continuous dependence on the data of a solution for all of [a,b].

11 Propagation of Discontinuities Generally the solution y(t) of y (t) = f(t,y(t),y(t τ)), y(t) = φ(t) for t 0 has a jump discontinuity in y (t) at the initial point lim t 0 y (t) = φ (0) lim t 0+ y (t) = f(0,φ(0),φ(0 τ)) The initial discontinuity propagates. The second derivative has a jump at τ, the third derivative has a jump at 2τ, etc. Discontinuities increase in order for retarded DDEs, but generally they do not if there are delayed terms involving derivatives, neutral DDEs.

12 Discontinuity Tree Because discontinuities in y (m) (t) affect numerical methods greatly, it is important to track them. Multiple lags interact. 0 {τ 1,τ 2 } {2τ 1,τ 1 + τ 2, 2τ 2 } {3τ 1, 2τ 1 + τ 2,τ 1 + 2τ 2, 3τ 2 }... Numerical methods do not see discontinuities with m sufficiently big, so when solving retarded DDEs, we can cut off branches in the tree of discontinuities. On entry, dde23 works out the tree for its low order RK formulas. It merges values that are close, e.g., lags 2/3 and 2 lead to discontinuities at 2/3 + 2/3 + 2/3 and 2 that are not quite the same.

13 Special Discontinuities Hairer, Nørsett, Wanner discuss Marchuk s immunology model with φ(t) = max(0, t) for t 0 They ignore the discontinuity in φ (t), but dde23 provides for discontinuities in φ(t). It tracks them into [a, b]. dde23 assumes that y(a) = φ(a), but sometimes we need a different value for y(a). An example will be discussed later. dde23 provides for y(a) φ(a). The jump in y(a) takes longer to smooth out than the usual jump in y (a).

14 Runge Kutta (RK) Formulas To solve y (t) = f(t,y(t)), start with t 0 = a, y 0 = φ(a). Step from y n y(t n ) to y n+1 y(t n+1 ) at t n+1 = t n + h n. Explicit RK starts with y n,1 = y n, f n,1 = f(t n,y n,1 ) (= y n). Then for j = 2, 3,...,s it forms j 1 y n,j = y n + h n k=1 Finally, y n+1 = y n + h n s j=1 γ jf n,j. β j,k f n,k, f n,j = f(t n + α j h n,y n,j ) If f is smooth enough on [t n,t n+1 ], a formula of order p has y(t n+1 ) = y n+1 + O(h p+1 n ). Step to discontinuities so that f is smooth.

15 Continuous Extensions Apply a method for ODEs to y (t) = f(t,y(t),y(t τ)). Explicit RK deals well with discontinuities, but how do we approximate the solution at arguments that are not mesh points in terms like y(t n + α m h n τ)? Continuous extensions provide values on t n t t n+1. Cubic Hermite interpolation to y n, y n, y n+1, y n+1 in ode23 is C 1 [a,b] and preserves order of accuracy. dde_solver uses y n+θ = y n + θh s n j=1 γ j (θ)f n,j to approximate y(t n + θh n ). The stages f n,j are reused, but a few more are needed to preserve the accuracy of higher order formulas. Its continuous extension is C 1 [a,b].

16 Short Lags For efficiency, we want to use the biggest step size h n that will provide an accurate result. If h n is bigger than a lag τ j, one of the arguments of y(t n + α m h n τ j ) may be bigger than t n. The term is then not defined and the explicit RK formula is implicit. Some codes limit h n to make the formula explicit, but this can be very inefficient. Predict values for the delayed terms using the continuous extension of the last step. Use them to evaluate the formula and form the continuous extension for the current step. Use it to correct the delayed terms. Iterate as needed.

17 Solution Structure A structure (MATLAB) or derived type (Fortran 90) is used to hold all the information needed to evaluate y(t) anywhere from the initial point a to the current point. In dde23, this is just {t n,y n,y n}. This is used for delayed terms during the integration and on return, for evaluating y(t) with deval. Saaty discusses a model of biological reaction to x-rays that has the form y (t) = ay(t) + b[c y(t τ)] for 0 t T and the form y (t) = b[c y(t τ)] for T t. A good way to deal with this is to restart the integration at t = T. By saving the history function (vector), a solution structure can be used as the history argument of dde23. The matter is handled with an auxiliary function in dde_solver.

18 Rocking Suitcase A two wheeled suitcase often starts to rock from side to side as it is pulled. You try to return it to the vertical by twisting the handle, but your response is delayed. This is modeled as a second order equation in the angle θ(t) of the suitcase to the vertical. Write as a first order system with y 1 (t) = θ(t) and y 2 (t) = θ (t), y 1(t) = y 2 (t) y 2(t) = sin(y 1 (t)) sign(y 1 (t))γ cos(y 1 (t)) β y 1 (t τ) + A sin(ωt + η) The initial history is the constant vector zero.

19 Nested Function for DDEs The DDEs are coded in a straightforward way using a global variable state which is sign(y 1 (t)). Parameters would be defined in the main program for parameter studies. We could write Z(1) here instead of Z(1,1). function yp = ddes(t,y,z) gamma = 0.248; beta = 1; A = 0.75; omega = 1.37; yp = [y(2); 0]; yp(2) = sin(y(1)) -... state*gamma*cos(y(1))- beta*z(1,1) +... A*sin(omega*t + asin(gamma/a)); end % ddes

20 Event Location A wheel hits the ground (the suitcase is vertical) when y 1 (t) = 0. The integration is then to be restarted with y 1 (t) = 0 and y 2 (t) multiplied by a coefficient of restitution, here The suitcase is considered to have fallen over when y 1 (t) = π/2. Like the ODE solvers, dde23 has event location. This means that during an integration, you can locate solutions of a collection of algebraic equations 0 = g i (t,y,z) by testing for a change of sign and calculating roots with y(t),y(t τ 1 ),...,y(t τ k ) evaluated using continuous extensions.

21 Nested Function for Events The event function is coded in a straightforward way using the global variable state. When y 1 (t) = 0 we change the sign of state and start another integration. Specifying direction allows us to start from this value. isterminal indicates whether the event is to terminate the integration. function [value,isterminal,direction] =... events(t,y,z) value = [y(1); abs(y(1))-pi/2]; isterminal = [1; 1]; direction = [-state; 0]; end % events

22 Program, Part I Just like odeset, the function ddeset is used to set options, here events and a more stringent relative error tolerance. function suitcase state = +1; opts = ddeset( Events,@events,... RelTol,1e-5); sol = dde23(@ddes,0.1,[0; 0],[0 12],opts); fprintf([ Kind of Event:,... time\n ]);

23 Program, Part II while sol.x(end) < 12 if sol.ie(end) == 1 fprintf([ A wheel hit the ground.,... %10.4f\n ],sol.x(end)); state = - state; opts = ddeset(opts, InitialY,... [ 0; 0.913*sol.y(2,end)]); sol = dde23(@ddes,0.1,sol,... [sol.x(end) 12],opts); else fprintf([ The suitcase fell over.,... %10.4f\n ],sol.x(end)); break end end

24 Program, Part III Note the field for y(t n ). With default tolerances a phase plane plot using just mesh points is a little rough. Nested functions must appear in the body of the main function which must end with end. They make it easy to pass global variables like state and parameters. plot(sol.y(1,:),sol.y(2,:)) xlabel( \theta(t) ) ylabel( \theta (t) ) axis([ ]) % THE NESTED FUNCTIONS APPEAR HERE. end % suitcase

25 Output Kind of Event: time A wheel hit the ground A wheel hit the ground The suitcase fell over θ (t) θ(t)

Delay Differential Equations Part II: Time and State dependent Lags

Delay Differential Equations Part II: Time and State dependent Lags Delay Differential Equations Part II: Time and State dependent Lags L.F. Shampine Department of Mathematics Southern Methodist University Dallas, Texas 75275 shampine@smu.edu www.faculty.smu.edu/shampine

More information

Delay Differential Equations with Constant Lags

Delay Differential Equations with Constant Lags Delay Differential Equations with Constant Lags L.F. Shampine Mathematics Department Southern Methodist University Dallas, TX 75275 shampine@smu.edu S. Thompson Department of Mathematics & Statistics Radford

More information

Solving DDEs in MATLAB

Solving DDEs in MATLAB Applied Numerical Mathematics 37 (2001) 441 458 Solving DDEs in MATLAB L.F. Shampine a,, S. Thompson b a Mathematics Department, Southern Methodist University, Dallas, TX 75275, USA b Department of Mathematics

More information

Solving DDEs in Matlab

Solving DDEs in Matlab Solving DDEs in Matlab L.F. Shampine Mathematics Department Southern Methodist University Dallas, TX 75275 lshampin@mail.smu.edu S. Thompson Department of Mathematics & Statistics Radford University Radford,

More information

Solving ODEs and PDEs in MATLAB. Sören Boettcher

Solving ODEs and PDEs in MATLAB. Sören Boettcher 16.02.2009 Introduction Quick introduction to syntax ODE in the form of Initial Value Problems (IVP) what equations can handle how to code into how to choose the right solver how to get the solver to do

More information

DDAEs in Control Theory

DDAEs in Control Theory DDAEs in Control Theory L.F. Shampine P. Gahinet March 17, 2004 Abstract Linear time invariant systems are basic models in control theory. When they are generalized to include state delays, the resulting

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

Syntax. Arguments. Solve m oderately stifo DEsand DAEs;trapezoidalrule. 1 of :34

Syntax. Arguments. Solve m oderately stifo DEsand DAEs;trapezoidalrule. 1 of :34 1 of 8 09.01.2016 09:34 Solve m oderately stifo DEsand DAEs;trapezoidalrule Syntax [T,Y] = solver(odefun,tspan,y0) [T,Y] = solver(odefun,tspan,y0,options) [T,Y,TE,YE,IE] = solver(odefun,tspan,y0,options)

More information

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25.

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25. Logistics Week 12: Monday, Apr 18 HW 6 is due at 11:59 tonight. HW 7 is posted, and will be due in class on 4/25. The prelim is graded. An analysis and rubric are on CMS. Problem du jour For implicit methods

More information

sing matlab Farida Mosally Mathematics Department King Abdulaziz University

sing matlab Farida Mosally Mathematics Department King Abdulaziz University Solve ode, dde & pde us sing matlab Farida Mosally Mathematics Department King Abdulaziz University 2014 Outline 1. Ordinary Differential Equations (ode) 1.1 Analytic Solutions 1.2 Numerical Solutions

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

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

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

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for solving higher order ODEs and

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

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

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

Summer School on Delay Differential Equations and Applications

Summer School on Delay Differential Equations and Applications Summer School on Delay Differential Equations and Applications Dobbiaco (BZ), Italy, June 26 30, 2006 The numerical solution of delay differential equations Page 1 of 211 M. Zennaro Dipartimento di Matematica

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 75 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP. Use MATLAB solvers for solving higher order ODEs and systems

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

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

Multistep Methods for IVPs. t 0 < t < T

Multistep Methods for IVPs. t 0 < t < T Multistep Methods for IVPs We are still considering the IVP dy dt = f(t,y) t 0 < t < T y(t 0 ) = y 0 So far we have looked at Euler s method, which was a first order method and Runge Kutta (RK) methods

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MATLAB sessions: Laboratory 4 MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for

More information

Vector Fields and Solutions to Ordinary Differential Equations using Octave

Vector Fields and Solutions to Ordinary Differential Equations using Octave Vector Fields and Solutions to Ordinary Differential Equations using Andreas Stahel 6th December 29 Contents Vector fields. Vector field for the logistic equation...............................2 Solutions

More information

24, B = 59 24, A = 55

24, B = 59 24, A = 55 Math 128a - Homework 8 - Due May 2 1) Problem 8.4.4 (Page 555) Solution: As discussed in the text, the fourth-order Adams-Bashforth formula is a formula of the type x n+1 = x n + h[af n + Bf n 1 + Cf n

More information

Parameter Estimation of Mathematical Models Described by Differential Equations

Parameter Estimation of Mathematical Models Described by Differential Equations Parameter Estimation p.1/12 Parameter Estimation of Mathematical Models Described by Differential Equations Hossein Zivaripiran Department of Computer Science University of Toronto Outline Parameter Estimation

More information

Validated Explicit and Implicit Runge-Kutta Methods

Validated Explicit and Implicit Runge-Kutta Methods 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,

More information

Chapter 12 Ramsey Cass Koopmans model

Chapter 12 Ramsey Cass Koopmans model Chapter 12 Ramsey Cass Koopmans model O. Afonso, P. B. Vasconcelos Computational Economics: a concise introduction O. Afonso, P. B. Vasconcelos Computational Economics 1 / 33 Overview 1 Introduction 2

More information

PHYSICS 210 SOLUTION OF THE NONLINEAR PENDULUM EQUATION USING FDAS

PHYSICS 210 SOLUTION OF THE NONLINEAR PENDULUM EQUATION USING FDAS PHYSICS 210 SOLUTION OF THE NONLINEAR PENDULUM EQUATION USING FDAS 1. PHYSICAL & MATHEMATICAL FORMULATION O θ L r T m W 1 1.1 Derivation of the equation of motion O Consider idealized pendulum: Mass of

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

Differential Equations (Mathematics) Evaluate the numerical solution using output of ODE solvers.

Differential Equations (Mathematics) Evaluate the numerical solution using output of ODE solvers. Differential Equations (Mathematics) Página 1 de 2 Mathematics ODE Function Summary Initial Value ODE Problem Solvers These are the MATLAB initial value problem solvers. The table lists the kind of problem

More information

Modified Milne Simpson Method for Solving Differential Equations

Modified Milne Simpson Method for Solving Differential Equations Modified Milne Simpson Method for Solving Differential Equations R. K. Devkate 1, R. M. Dhaigude 2 Research Student, Department of Mathematics, Dr. Babasaheb Ambedkar Marathwada University, Aurangabad,

More information

MECH : a Primer for Matlab s ode suite of functions

MECH : a Primer for Matlab s ode suite of functions Objectives MECH 4-563: a Primer for Matlab s ode suite of functions. Review the fundamentals of initial value problems and why numerical integration methods are needed.. Introduce the ode suite of numerical

More information

Richarson Extrapolation for Runge-Kutta Methods

Richarson Extrapolation for Runge-Kutta Methods Richarson Extrapolation for Runge-Kutta Methods Zahari Zlatevᵃ, Ivan Dimovᵇ and Krassimir Georgievᵇ ᵃ Department of Environmental Science, Aarhus University, Frederiksborgvej 399, P. O. 358, 4000 Roskilde,

More information

Report on Numerical Approximations of FDE s with Method of Steps

Report on Numerical Approximations of FDE s with Method of Steps Report on Numerical Approximations of FDE s with Method of Steps Simon Lacoste-Julien May 30, 2001 Abstract This is a summary of a meeting I had with Hans Vangheluwe on Thursday May 24 about numerical

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

Exponentially Fitted Error Correction Methods for Solving Initial Value Problems

Exponentially Fitted Error Correction Methods for Solving Initial Value Problems KYUNGPOOK Math. J. 52(2012), 167-177 http://dx.doi.org/10.5666/kmj.2012.52.2.167 Exponentially Fitted Error Correction Methods for Solving Initial Value Problems Sangdong Kim and Philsu Kim Department

More information

Quadratic SDIRK pair for treating chemical reaction problems.

Quadratic SDIRK pair for treating chemical reaction problems. Quadratic SDIRK pair for treating chemical reaction problems. Ch. Tsitouras TEI of Chalkis, Dept. of Applied Sciences, GR 34400 Psahna, Greece. I. Th. Famelis TEI of Athens, Dept. of Mathematics, GR 12210

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

Ordinary Differential Equations

Ordinary Differential Equations Ordinary Differential Equations Introduction: first order ODE We are given a function f(t,y) which describes a direction field in the (t,y) plane an initial point (t 0,y 0 ) We want to find a function

More information

Superconvergence analysis of multistep collocation method for delay Volterra integral equations

Superconvergence analysis of multistep collocation method for delay Volterra integral equations Computational Methods for Differential Equations http://cmde.tabrizu.ac.ir Vol. 4, No. 3, 216, pp. 25-216 Superconvergence analysis of multistep collocation method for delay Volterra integral equations

More information

Dense Output. Introduction

Dense Output. Introduction ense Output 339 ense Output Lawrence F. Shampine 1 and Laurent O. Jay 2 1 epartment of Mathematics, Southern Methodist University, allas, TX, USA 2 epartment of Mathematics, The University of Iowa, Iowa

More information

Solving ODEs and DDEs with Impulses 1

Solving ODEs and DDEs with Impulses 1 European Society of Computational Methods in Sciences and Engineering (ESCMSE) Journal of Numerical Analysis, Industrial and Applied Mathematics (JNAIAM) vol. 3, no. 1-, 008, pp. 139-149 ISSN 1790 8140

More information

Error Estimation and Control for ODEs

Error Estimation and Control for ODEs Error Estimation and Control for ODEs L.F. Shampine Mathematics Department Southern Methodist University Dallas, TX 75275 lshampin@mail.smu.edu February 3, 2004 Abstract This article is about the numerical

More information

Study guide: Generalizations of exponential decay models

Study guide: Generalizations of exponential decay models Study guide: Generalizations of exponential decay models Hans Petter Langtangen 1,2 Center for Biomedical Computing, Simula Research Laboratory 1 Department of Informatics, University of Oslo 2 Sep 13,

More information

Fast Step-response Evaluation of Linear Continuous-time Systems With Time Delay in the Feedback Loop

Fast Step-response Evaluation of Linear Continuous-time Systems With Time Delay in the Feedback Loop Proceedings of the 7th World Congress The International Federation of Automatic Control Seoul, Korea, July 6-, 28 Fast Step-response Evaluation of Linear Continuous-time Systems With Time Delay in the

More information

Ordinary Differential Equations: Initial Value problems (IVP)

Ordinary Differential Equations: Initial Value problems (IVP) Chapter Ordinary Differential Equations: Initial Value problems (IVP) Many engineering applications can be modeled as differential equations (DE) In this book, our emphasis is about how to use computer

More information

Ordinary differential equations - Initial value problems

Ordinary differential equations - Initial value problems Education has produced a vast population able to read but unable to distinguish what is worth reading. G.M. TREVELYAN Chapter 6 Ordinary differential equations - Initial value problems In this chapter

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

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

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations Supplemental Unit S5. Solving Initial Value Differential Equations Defining the Problem This supplemental unit describes how to solve a set of initial value ordinary differential equations (ODEs) numerically.

More information

Numerical Integration of Ordinary Differential Equations for Initial Value Problems

Numerical Integration of Ordinary Differential Equations for Initial Value Problems Numerical Integration of Ordinary Differential Equations for Initial Value Problems Gerald Recktenwald Portland State University Department of Mechanical Engineering gerry@me.pdx.edu These slides are a

More information

Initial-Value Problems for ODEs. Introduction to Linear Multistep Methods

Initial-Value Problems for ODEs. Introduction to Linear Multistep Methods Initial-Value Problems for ODEs Introduction to Linear Multistep Methods Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University

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

Introduction to Divide and Conquer

Introduction to Divide and Conquer Introduction to Divide and Conquer Sorting with O(n log n) comparisons and integer multiplication faster than O(n 2 ) Periklis A. Papakonstantinou York University Consider a problem that admits a straightforward

More information

Maths III - Numerical Methods

Maths III - Numerical Methods Maths III - Numerical Methods Matt Probert matt.probert@york.ac.uk 4 Solving Differential Equations 4.1 Introduction Many physical problems can be expressed as differential s, but solving them is not always

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

(again assuming the integration goes left to right). Standard initial value techniques are not directly applicable to delay problems since evaluation

(again assuming the integration goes left to right). Standard initial value techniques are not directly applicable to delay problems since evaluation Stepsize Control for Delay Differential Equations Using Continuously Imbedded Runge-Kutta Methods of Sarafyan Skip Thompson Radford University Radford, Virginia Abstract. The use of continuously imbedded

More information

AM205: Assignment 3 (due 5 PM, October 20)

AM205: Assignment 3 (due 5 PM, October 20) AM25: Assignment 3 (due 5 PM, October 2) For this assignment, first complete problems 1, 2, 3, and 4, and then complete either problem 5 (on theory) or problem 6 (on an application). If you submit answers

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

I. Numerical Computing

I. Numerical Computing I. Numerical Computing A. Lectures 1-3: Foundations of Numerical Computing Lecture 1 Intro to numerical computing Understand difference and pros/cons of analytical versus numerical solutions Lecture 2

More information

Solving systems of ODEs with Matlab

Solving systems of ODEs with Matlab Solving systems of ODEs with Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University October 20, 2013 Outline 1 Systems of ODEs 2 Setting Up

More information

Numerical bifurcation analysis of delay differential equations

Numerical bifurcation analysis of delay differential equations Numerical bifurcation analysis of delay differential equations Dirk Roose Dept. of Computer Science K.U.Leuven Dirk.Roose@cs.kuleuven.be Acknowledgements Many thanks to Koen Engelborghs Tatyana Luzyanina

More information

MATH 100 Introduction to the Profession

MATH 100 Introduction to the Profession MATH 100 Introduction to the Profession Differential Equations in MATLAB Greg Fasshauer Department of Applied Mathematics Illinois Institute of Technology Fall 2012 fasshauer@iit.edu MATH 100 ITP 1 What

More information

Study guide: Generalizations of exponential decay models. Extension to a variable coecient; Crank-Nicolson

Study guide: Generalizations of exponential decay models. Extension to a variable coecient; Crank-Nicolson Extension to a variable coecient; Forward and Backward Euler Study guide: Generalizations of exponential decay models Hans Petter Langtangen 1,2 Center for Biomedical Computing, Simula Research Laboratory

More information

Ordinary Differential Equations (ODE)

Ordinary Differential Equations (ODE) Ordinary Differential Equations (ODE) Why study Differential Equations? Many physical phenomena are best formulated mathematically in terms of their rate of change. Motion of a swinging pendulum Bungee-jumper

More information

Topic 5: The Difference Equation

Topic 5: The Difference Equation Topic 5: The Difference Equation Yulei Luo Economics, HKU October 30, 2017 Luo, Y. (Economics, HKU) ME October 30, 2017 1 / 42 Discrete-time, Differences, and Difference Equations When time is taken to

More information

INTRODUCTION TO COMPUTER METHODS FOR O.D.E.

INTRODUCTION TO COMPUTER METHODS FOR O.D.E. INTRODUCTION TO COMPUTER METHODS FOR O.D.E. 0. Introduction. The goal of this handout is to introduce some of the ideas behind the basic computer algorithms to approximate solutions to differential equations.

More information

MATH 350: Introduction to Computational Mathematics

MATH 350: Introduction to Computational Mathematics MATH 350: Introduction to Computational Mathematics Chapter VII: Numerical Differentiation and Solution of Ordinary Differential Equations Greg Fasshauer Department of Applied Mathematics Illinois Institute

More information

The Milne error estimator for stiff problems

The Milne error estimator for stiff problems 13 R. Tshelametse / SAJPAM. Volume 4 (2009) 13-28 The Milne error estimator for stiff problems Ronald Tshelametse Department of Mathematics University of Botswana Private Bag 0022 Gaborone, Botswana. E-mail

More information

Math Ordinary Differential Equations

Math Ordinary Differential Equations Math 411 - Ordinary Differential Equations Review Notes - 1 1 - Basic Theory A first order ordinary differential equation has the form x = f(t, x) (11) Here x = dx/dt Given an initial data x(t 0 ) = x

More information

THE θ-methods IN THE NUMERICAL SOLUTION OF DELAY DIFFERENTIAL EQUATIONS. Karel J. in t Hout, Marc N. Spijker Leiden, The Netherlands

THE θ-methods IN THE NUMERICAL SOLUTION OF DELAY DIFFERENTIAL EQUATIONS. Karel J. in t Hout, Marc N. Spijker Leiden, The Netherlands THE θ-methods IN THE NUMERICAL SOLUTION OF DELAY DIFFERENTIAL EQUATIONS Karel J. in t Hout, Marc N. Spijker Leiden, The Netherlands 1. Introduction This paper deals with initial value problems for delay

More information

Ordinary Differential Equations (ode)

Ordinary Differential Equations (ode) Ordinary Differential Equations (ode) Numerical Methods for Solving Initial condition (ic) problems and Boundary value problems (bvp) What is an ODE? =,,...,, yx, dx dx dx dx n n 1 n d y d y d y In general,

More information

AMS 27L LAB #8 Winter 2009

AMS 27L LAB #8 Winter 2009 AMS 27L LAB #8 Winter 29 Solving ODE s in Matlab Objectives:. To use Matlab s ODE Solvers 2. To practice using functions and in-line functions Matlab s ODE Suite Matlab offers a suite of ODE solvers including:

More information

Review for Exam 2 Ben Wang and Mark Styczynski

Review for Exam 2 Ben Wang and Mark Styczynski Review for Exam Ben Wang and Mark Styczynski This is a rough approximation of what we went over in the review session. This is actually more detailed in portions than what we went over. Also, please note

More information

Chapter 9 Implicit Methods for Linear and Nonlinear Systems of ODEs

Chapter 9 Implicit Methods for Linear and Nonlinear Systems of ODEs Chapter 9 Implicit Methods for Linear and Nonlinear Systems of ODEs In the previous chapter, we investigated stiffness in ODEs. Recall that an ODE is stiff if it exhibits behavior on widelyvarying timescales.

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

COMP 382: Reasoning about algorithms

COMP 382: Reasoning about algorithms Fall 2014 Unit 4: Basics of complexity analysis Correctness and efficiency So far, we have talked about correctness and termination of algorithms What about efficiency? Running time of an algorithm For

More information

Manifesto on Numerical Integration of Equations of Motion Using Matlab

Manifesto on Numerical Integration of Equations of Motion Using Matlab Manifesto on Numerical Integration of Equations of Motion Using Matlab C. Hall April 11, 2002 This handout is intended to help you understand numerical integration and to put it into practice using Matlab

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

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

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo 2008-11-07 Graded Project #1 Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo This homework is due to be handed in on Wednesday 12 November 2008 before 13:00 in the post box of the numerical

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

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

Assignment on iterative solution methods and preconditioning

Assignment on iterative solution methods and preconditioning Division of Scientific Computing, Department of Information Technology, Uppsala University Numerical Linear Algebra October-November, 2018 Assignment on iterative solution methods and preconditioning 1.

More information

Solving Ordinary Differential Equations

Solving Ordinary Differential Equations Solving Ordinary Differential Equations Sanzheng Qiao Department of Computing and Software McMaster University March, 2014 Outline 1 Initial Value Problem Euler s Method Runge-Kutta Methods Multistep Methods

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

2 Solving Ordinary Differential Equations Using MATLAB

2 Solving Ordinary Differential Equations Using MATLAB Penn State Erie, The Behrend College School of Engineering E E 383 Signals and Control Lab Spring 2008 Lab 3 System Responses January 31, 2008 Due: February 7, 2008 Number of Lab Periods: 1 1 Objective

More information

Simple ODE Solvers - Derivation

Simple ODE Solvers - Derivation Simple ODE Solvers - Derivation These notes provide derivations of some simple algorithms for generating, numerically, approximate solutions to the initial value problem y (t =f ( t, y(t y(t 0 =y 0 Here

More information

Theory, Solution Techniques and Applications of Singular Boundary Value Problems

Theory, Solution Techniques and Applications of Singular Boundary Value Problems Theory, Solution Techniques and Applications of Singular Boundary Value Problems W. Auzinger O. Koch E. Weinmüller Vienna University of Technology, Austria Problem Class z (t) = M(t) z(t) + f(t, z(t)),

More information

MAT 275 Laboratory 6 Forced Equations and Resonance

MAT 275 Laboratory 6 Forced Equations and Resonance MAT 275 Laboratory 6 Forced Equations and Resonance In this laboratory we take a deeper look at second-order nonhomogeneous equations. We will concentrate on equations with a periodic harmonic forcing

More information

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

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester HIGHER ORDER METHODS School of Mathematics Semester 1 2008 OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE

More information

Physics 584 Computational Methods

Physics 584 Computational Methods Physics 584 Computational Methods Introduction to Matlab and Numerical Solutions to Ordinary Differential Equations Ryan Ogliore April 18 th, 2016 Lecture Outline Introduction to Matlab Numerical Solutions

More information

Best constants in Markov-type inequalities with mixed Hermite weights

Best constants in Markov-type inequalities with mixed Hermite weights Best constants in Markov-type inequalities with mixed Hermite weights Holger Langenau Technische Universität Chemnitz IWOTA August 15, 2017 Introduction We consider the inequalities of the form D ν f C

More information

NUMERICAL ANALYSIS 2 - FINAL EXAM Summer Term 2006 Matrikelnummer:

NUMERICAL ANALYSIS 2 - FINAL EXAM Summer Term 2006 Matrikelnummer: Prof. Dr. O. Junge, T. März Scientific Computing - M3 Center for Mathematical Sciences Munich University of Technology Name: NUMERICAL ANALYSIS 2 - FINAL EXAM Summer Term 2006 Matrikelnummer: I agree to

More information

Laboratory 10 Forced Equations and Resonance

Laboratory 10 Forced Equations and Resonance MATLAB sessions: Laboratory 9 Laboratory Forced Equations and Resonance ( 3.6 of the Edwards/Penney text) In this laboratory we take a deeper look at second-order nonhomogeneous equations. We will concentrate

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

Solving Delay Differential Equations (DDEs) using Nakashima s 2 Stages 4 th Order Pseudo-Runge-Kutta Method

Solving Delay Differential Equations (DDEs) using Nakashima s 2 Stages 4 th Order Pseudo-Runge-Kutta Method World Applied Sciences Journal (Special Issue of Applied Math): 8-86, 3 ISSN 88-495; IDOSI Publications, 3 DOI:.589/idosi.wasj.3..am.43 Solving Delay Differential Equations (DDEs) using Naashima s Stages

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

Suboptimal feedback control of PDEs by solving Hamilton-Jacobi Bellman equations on sparse grids

Suboptimal feedback control of PDEs by solving Hamilton-Jacobi Bellman equations on sparse grids Suboptimal feedback control of PDEs by solving Hamilton-Jacobi Bellman equations on sparse grids Jochen Garcke joint work with Axel Kröner, INRIA Saclay and CMAP, Ecole Polytechnique Ilja Kalmykov, Universität

More information

A modification of Kaldor-Kalecki model and its analysis

A modification of Kaldor-Kalecki model and its analysis A modification of Kaldor-Kalecki model and its analysis 1 Introduction Jan Kodera 1, Jarmila Radová 2, Tran Van Quang 1 Abstract. This paper studies the investment cycle as an endogenous phenomenon using

More information