Ordinary Differential Equations

Similar documents
Physics: spring-mass system, planet motion, pendulum. Biology: ecology problem, neural conduction, epidemics

Workshop on Theoretical Ecology and Global Change March 2009

Math 232, Final Test, 20 March 2007

Interactions. Yuan Gao. Spring Applied Mathematics University of Washington

Lecture 20/Lab 21: Systems of Nonlinear ODEs

Continuous time population models

Lotka Volterra Predator-Prey Model with a Predating Scavenger

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

Fundamentals of Dynamical Systems / Discrete-Time Models. Dr. Dylan McNamara people.uncw.edu/ mcnamarad

A Producer-Consumer Model With Stoichiometry

MATH 1014 N 3.0 W2015 APPLIED CALCULUS II - SECTION P. Perhaps the most important of all the applications of calculus is to differential equations.

DYNAMICS OF A PREDATOR-PREY INTERACTION IN CHEMOSTAT WITH VARIABLE YIELD

8 Ecosystem stability

ESAIM: M2AN Modélisation Mathématique et Analyse Numérique M2AN, Vol. 37, N o 2, 2003, pp DOI: /m2an:

Modeling Microbial Populations in the Chemostat

Modeling the Immune System W9. Ordinary Differential Equations as Macroscopic Modeling Tool

FIRST-ORDER SYSTEMS OF ORDINARY DIFFERENTIAL EQUATIONS III: Autonomous Planar Systems David Levermore Department of Mathematics University of Maryland

1 2 predators competing for 1 prey

MA 138 Calculus 2 for the Life Sciences Spring 2016 Final Exam May 4, Exam Scores. Question Score Total

2D-Volterra-Lotka Modeling For 2 Species

3.5 Competition Models: Principle of Competitive Exclusion

AN EXTENDED ROSENZWEIG-MACARTHUR MODEL OF A TRITROPHIC FOOD CHAIN. Nicole Rocco

Math 128A Spring 2003 Week 12 Solutions

Nonlinear Autonomous Dynamical systems of two dimensions. Part A

Non-Linear Models. Non-Linear Models Cont d

An Application of Perturbation Methods in Evolutionary Ecology

Linearization of Differential Equation Models

ANSWERS Final Exam Math 250b, Section 2 (Professor J. M. Cushing), 15 May 2008 PART 1

Nonlinear dynamics & chaos BECS

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

Ordinary Differential Equations

The Dynamic Behaviour of the Competing Species with Linear and Holling Type II Functional Responses by the Second Competitor

Problem set 7 Math 207A, Fall 2011 Solutions

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

ROLE OF TIME-DELAY IN AN ECOTOXICOLOGICAL PROBLEM

BIFURCATION PHENOMENA Lecture 1: Qualitative theory of planar ODEs

Population Dynamics. Max Flöttmann and Jannis Uhlendorf. June 12, Max Flöttmann and Jannis Uhlendorf () Population Dynamics June 12, / 54

Numerical bifurcation analysis of a tri-trophic food web with omnivory

Lab 5: Nonlinear Systems

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

Systems Biology in Photosynthesis INTRODUCTION

Differential Equations

Lesson 9: Predator-Prey and ode45

Math 215/255 Final Exam (Dec 2005)

Dynamics Analysis of Anti-predator Model on Intermediate Predator With Ratio Dependent Functional Responses

Lokta-Volterra predator-prey equation dx = ax bxy dt dy = cx + dxy dt

Spring /30/2013

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

Introduction to standard and non-standard Numerical Methods

Preservation of local dynamics when applying central difference methods: application to SIR model

Dynamical Systems and Chaos Part I: Theoretical Techniques. Lecture 4: Discrete systems + Chaos. Ilya Potapov Mathematics Department, TUT Room TD325

Chap. 20: Initial-Value Problems

Math 341 Fall 2006 Final Exam December 12th, Name:

Models Involving Interactions between Predator and Prey Populations

Chapter #4 EEE8086-EEE8115. Robust and Adaptive Control Systems

Functional Response to Predators Holling type II, as a Function Refuge for Preys in Lotka-Volterra Model

STABILITY. Phase portraits and local stability

NUMERICAL SOLUTION OF ODE IVPs. Overview

1 The pendulum equation

Assignment 1 Logistic equation and Lotka Volterra two species competition model

M469, Fall 2010, Practice Problems for the Final

PREDATOR-PREY MODELS WITH DISTRIBUTED TIME DELAY

Worksheet 8 Sample Solutions

Derivation of Itô SDE and Relationship to ODE and CTMC Models

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

THETA-LOGISTIC PREDATOR PREY

Nonstandard Finite Difference Methods For Predator-Prey Models With General Functional Response

Harvesting Model for Fishery Resource with Reserve Area and Modified Effort Function

Math 345 Intro to Math Biology Lecture 19: Models of Molecular Events and Biochemistry

Complex Dynamic Systems: Qualitative vs Quantitative analysis

Interacting Populations.

A Stability Analysis on Models of Cooperative and Competitive Species

Numerical Solutions to Partial Differential Equations

Introduction to Dynamical Systems

Dynamical Systems and Chaos Part II: Biology Applications. Lecture 6: Population dynamics. Ilya Potapov Mathematics Department, TUT Room TD325

The major interactions between two organisms in a mixed culture are : Competition Neutralism Mutualism Commensalism Amensalism Prey-predator

Third In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 3 December 2009 (1) [6] Given that 2 is an eigenvalue of the matrix

1.2. Introduction to Modeling. P (t) = r P (t) (b) When r > 0 this is the exponential growth equation.

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

NONSTANDARD NUMERICAL METHODS FOR A CLASS OF PREDATOR-PREY MODELS WITH PREDATOR INTERFERENCE

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

A Discrete Numerical Scheme of Modified Leslie-Gower With Harvesting Model

MA 138: Calculus II for the Life Sciences

Discrete time dynamical systems (Review of rst part of Math 361, Winter 2001)

COMPETITION OF FAST AND SLOW MOVERS FOR RENEWABLE AND DIFFUSIVE RESOURCE

2015 Holl ISU MSM Ames, Iowa. A Few Good ODEs: An Introduction to Modeling and Computation

We have two possible solutions (intersections of null-clines. dt = bv + muv = g(u, v). du = au nuv = f (u, v),

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

Exam in TMA4195 Mathematical Modeling Solutions

Coupled differential equations

Analysis of bacterial population growth using extended logistic Growth model with distributed delay. Abstract INTRODUCTION

x 2 F 1 = 0 K 2 v 2 E 1 E 2 F 2 = 0 v 1 K 1 x 1

Stable Coexistence of a Predator-Prey model with a Scavenger

Field experiments on competition. Field experiments on competition. Field experiments on competition

Initial value problems for ordinary differential equations

Predator-Prey Model with Ratio-dependent Food

Mathematical analysis of three species model and introduction of the canonical model. Isao Kawaguchi NIRS, Japan

Dynamics of a Population Model Controlling the Spread of Plague in Prairie Dogs

CDS 101/110a: Lecture 2.1 Dynamic Behavior

A NEW SOLUTION OF SIR MODEL BY USING THE DIFFERENTIAL FRACTIONAL TRANSFORMATION METHOD

Transcription:

Ordinary Differential Equations Michael H. F. Wilkinson Institute for Mathematics and Computing Science University of Groningen The Netherlands December 2005

Overview What are Ordinary Differential Equations (ODEs)? Equilibria: existence and properties. What techniques exist to solve ODEs? How do we draw up ODEs: A case study on Predator-Prey systems. A variant: Delay Differential Equations (DDEs)

Ordinary Differential Equations ODEs can be used to model the behaviour of a system through time The systems studied range from spring-mass systems to ecology and economics. ODEs have the general form: d x dt = f( x, t). (1) Quite frequently, we deal with time independent ODEs, which have the form The simplest form they can take are linear ODEs: d x dt = f( x). (2) d x dt = A x. (3) with A a matrix.

Equilibria Equilibria occur where Three types of equilibria occur: d x dt = f( x, t) = 0. (4) Stable: the system returns to the equilibrium after small perturbation. Unstable: the system diverges from the equilibrium state after small perturbation. Neutrally Stable: the system neither diverges from, nor converges towards the equilibrium after small perturbation. In the case of time independent ODEs we can determine the stability by local stability analysis quite easily. In the first step, we linearize the ODE around the equilibrium.

Equilibria Let the equilibrium point be x 0. The ODE given by d x dt = f( x) (5) can be approximated by Taylor expansion. We first introduce x = x x 0. We then approximate (5) by in which J is the Jacobian matrix: J = f 1 d x dt = J x (6) f 1 x n x 1..... f n x 1 f n x n x= x0 (7)

Equilibria The solution to such a set of linear differential equations is just x (t) = a i Ei e λ it, (8) with E i the eigenvectors of J, λ i the corresponding eigenvalues, and a i the amplitude of that particular eigenmode of the system. Clearly, if all the eigenvalues have a negative real part, the system returns to the equilibrium position and the system is stable. If one or more eigenvalues have positive real parts then it is unstable. If none have positive and one or more zero real parts it is neutrally stable.

Equilibria To determine eigenvalues we need to solve the equation f 1 f x 1 λ 1 f x 2 1 x n f 2 f 2 f det x 1 x 2 λ 2 x n = 0 (9)...... f n f x 2 n x n λ x= x0 f n x 1 This yields an n th order polynomial c 0 + c 1 λ + c 2 λ 2 +... + c n λ n = 0 (10) the roots of which are the eigenvalues. Note that if all c i are real and have the same sign, the system is stable.

Solving ODEs Usually, we are concerned with systems which are too large for analytical treatment, but can be handled numerically. Most often we are concerned with initial-value problems: given the state of the system at time t 0, compute the state at a number of points in time t n > t 0. The simplest method is the Euler method x(t n+1 ) = x(t n ) + h f( x(t n ), t n ) + O(h 2 ), (11) in which h is the time step and O(h 2 ) indicates an error which is proportional to h 2. An improvement is the midpoint method: k1 = h f( x(t n ), t) (12) x(t n+1 ) = x(t n ) + h f( x(t n ) + k 1 /2, t n + h/2) + O(h 3 ) (13)

Solving ODEs Better still is the 4 th order Runge-Kutta method: k1 = h f( x(t n ), t) (14) k2 = h f( x(t n ) + k 1 /2, t n + h/2) (15) k3 = h f( x(t n ) + k 2 /2, t n + h/2) (16) k4 = h f( x(t n ) + k 3, t n + h) (17) x(t n+1 ) = x(t n ) + k 1 6 + k 2 3 + k 3 3 + k 4 6 + O(h5 ) (18) Various strategies for computing an optimal time step h exist. Problems occur in so-called stiff ODEs. In many cases (chemistry, biology) we need to check for zero crossings!

Predator-Prey Systems One of the best studied systems is the so-called predator-prey (or host-parasite) system. It is fundamental to understanding food webs in ecology. Its general form is in which dx 1 dt = F (x 1) G(x 1, x 2 ) (19) dx 2 dt = ηg(x 1, x 2 ) H(x 2 ) (20) F (x 1 ) is the growth rate of x 1, G(x 1, x 2 ) is the rate of predation of x 1 by x 2, η is the efficiency with which prey biomass is turned predator biomass, and H(x 2 ) is the starvation rate of x 2.

Predator-Prey Systems In its simplest form, we have the Lotka-Volterra system in which ( dx 1 dt = r 1 1 x ) 1 x 1 fx 1 x 2 (21) K 1 dx 2 dt = ηfx 1x 2 d 2 x 2 (22) f determines the rate at which predator and prey encounter eachother, r 1 is the maximum relative growth rate of x 1, K 1 is the carrying capacity of the ecosystem for x 1, and d 2 is the starvation rate of x 2. This system can be stable, neutrally stable, or unstable, depending on the parameters.

Predator-Prey Systems Other models for F include the Monod-model for bacteria S F (x 1, S) = µ max K S + S x 1 (23) in which S is the substrate (food) concentration, µ max the maximum growth rate, and K S a saturation constant. Other models for G include: Holling Type II Holling Type III Jost f f x 1 K 2 +x 1 x 2 x 2 1 x K 2 +x 2 2 1 x 2 1 x K 2 +k 2 x 1 +x 2 2 1 Ivlev f(1 e kx 1)x 2 f same as Monod for vertebrates similar to above All these models try to limit maximum growth in some way.

A Bacterial Predator-Prey System Suppose we have a bacterium X 1 using resource X 0, and which is preyed upon by predator Y. We assume that these species are present in a chemostat-like environment, in which all substances are well mixed, and which has a dilution rate D. Food (X 0 ) enters at a concentration S. Uptake of food by X 1 is modelled using the Monod-form. Uptake of X 1 by Y is modelled using the Holling-type-II form. Starvation of Y takes the usual form, with d y the starvation rate.

A Bacterial Predator-Prey System The differential equations for this model are dx 0 dt = D(S X 0 ) V 1 X 0 K 1 + X 0 X 1 (24) dx 1 X 0 X 1 = µ 1 X 1 V y Y DX 1 dt K 1 + X 0 K X + X 1 (25) dy dt = µ X 1 y Y (D + d y )Y K X + X 1 (26) with V x and µ x maximum uptake and growth rates respectively, and K x saturation constants.

A Bacterial Predator-Prey System This system can be in four phases Phase 0: Insufficient food is available to allow survival of X 1 ; stable equilibrium: X 0 = S, X 1 = 0, and Y = 0. Phase I: Sufficient food for survival of X 1, but insufficient number survive to allow survival of Y. Phase II: Both X 1 and Y coexist stably. Phase III: unstable coexistence of X 1 and Y. Important question: which parameters determine outcome?

A Bacterial Predator-Prey System The equilibrium with all species present is given by X 0 = 1 2 ( S K 1 V 1 K X µ y D d y ± ( S K1 V 1 K X µ y D d y ) 2 + 4K 1 S) (27) X 1 = Y = D + d y µ y D d y D D + d y µ y V y ( µ1 V 1 (S X 0 ) X 1 ) (28) (29) Only if all three solutions are positive do we have either a phase II or phase III system. The boundary between these phases II and III is determined by local stability analysis.

A Bacterial Predator-Prey System The dynamical behaviour of the predator prey system after introduction of predator 80 70 Prey Predator 80 70 Prey Predator 60 60 Biomass (mg/l) 50 40 30 20 Biomass (mg/l) 50 40 30 20 10 10 0 0 48 96 144 192 240 288 time (h) 0 0 48 96 144 192 240 288 time (h)

A Bacterial Predator-Prey System The boundaries of the phases 0.2 0.2 0.18 I 0.18 I 0.16 0.16 D (h 1 ) 0.14 0.12 0.1 0.08 0.06 II III D (h 1 ) 0.14 0.12 0.1 0.08 0.06 II III 0.04 0.04 0.02 0.02 0 0 40 80 120 160 200 240 280 S (mg/l) 0 0 40 80 120 160 200 240 280 S (mg/l)

Decoys in Predator-Prey Systems In a simple complication, we can add a third species X 2, which does not compete with X 1 but can collide with the predator. Assume that the predator can be in three states: free, bound to X 1 and bound to X 2. We can then draw up the following set of differential equations: d[x 1 Y ] dt d[x 2 Y ] dt dy free dt = k 1 [X 1 Y ] + rx 1 Y free (30) = k 2 [X 2 Y ] + rx 2 Y free (31) = (y x + 1)k 1 [X 1 Y ] + k 2 [X 2 Y ] r(x 1 + X 2 )Y free (32)

Decoys in Predator-Prey Systems We will assume that these reactions take place at a much faster rate than the predator prey dynamics We can then in quasi-steady state analysis say that k 1 [X 1 Y ] = rx 1 Y free and k 2 [X 2 Y ] = rx 2 Y free (33) Adding all versions of Y together yields dy dt = y x k 1 X 1 Y k 1 /r + X 1 + k 1 X 2 /k 2 = µ y X 1 Y K X + X 1 + K inh X 2 (34) Thus the presence of X 2 leads to an increase in the apparent saturation constant K X = K X + K inh X 2.

Decoys in Predator-Prey Systems The dynamical behaviour of the predator prey system after introduction of predator with decoys: K X = 2K X 80 70 Prey Predator 80 70 Prey Predator Biomass (mg/l) 60 50 40 30 20 10 0 0 48 96 144 192 240 288 time (h) Biomass (mg/l) 60 50 40 30 20 10 0 0 48 96 144 192 240 288 time (h)

Decoys in Predator-Prey Systems The boundaries of the phases with decoys: K X = 2K X 0.2 0.2 0.18 I 0.18 I 0.16 0.16 0.14 0.14 D (h 1 ) 0.12 0.1 0.08 II D (h 1 ) 0.12 0.1 0.08 II 0.06 III 0.06 III 0.04 0.04 0.02 0.02 0 0 40 80 120 160 200 240 280 S (mg/l) 0 0 40 80 120 160 200 240 280 S (mg/l)

Delay Differential Equations (DDEs) In ODEs the time evolution depends only on the current state of the system In DDEs the time evolution of the system depends on the current state, plus the state of the system at one or more points some time in the past. This type of equation is useful to model systems in which there are time delays between cause and effect. Examples are: incubation times of infections in models of epidemics, delay times between penetration of host by parasites and emergence of the new parasite generation delay between mating and birth, etc.

Delay Differential Equations (DDEs) DDEs have the general form: d x dt = f( x(t), x(t τ 1 ), x(t τ 2 ),..., x(t τ N )). (35) with τ 1, τ 2,..., τ N the set of delays in the system. The stability condition becomes f( x(t), x(t), x(t),..., x(t)) = 0. (36) Finding equilibria is easy, analysis of their properties generally done numerically. Numerical treatment requires different techniques than for ODEs. Initial value problems require information about the past for initialization!

Example DDE we use the bacterial predator-prey model as before, but use a delay equation to model the predator behaviour. The prey is converted to infected prey [X 1 Y ] as in the decoy model After a time delay τ the new generation of predators is released. The differential equations for this model are dx 0 dt = D(S X 0 ) V 1 X 0 K 1 + X 0 X 1 (37) dx 1 dt = µ 1 X 0 K 1 + X 0 X 1 rx 1 Y DX 1 (38) d[x 1 Y ] = e Dτ rx dt 1Y + rx 1 Y D[X 1 Y ] (39) dy dt = e Dτ (y x + 1)rX 1Y (D + d y )Y (40) in which X 1 and Y denote the concentrations of X 1 and Y at t τ.

Example DDE The delay effect can sometimes be approaximated by an average rate of formation of new prey, leading to a Holling type II version as in the original bacterial predator-prey model. 10 8 10 8 10 7 10 7 density (cm 3 ) 10 6 10 5 10 4 density (cm 3 ) 10 6 10 5 10 4 10 3 10 3 10 2 0 50 100 150 200 250 300 time (h) (a) 10 2 0 50 100 150 200 250 300 time (h) (b) Part (a) shows the DDE appraoch, part (b) the ODE approximation.