Continous system: Differential equations Deterministic models derivatives instead of n(t+1)-n(t)

Slides:



Advertisements
Similar presentations
Chapter 6 Differential Equations
Advertisements

Differential Equations
Technique of nondimensionalization Aim: –To remove physical dimensions –To reduce the number of parameters –To balance or distinguish different terms in.
F(x,y) = x 2 y + y y  f — = f x =  x 2xyx 2 + 3y y ln2 z = f(x,y) = cos(xy) + x cos 2 y – 3  f — = f y =  y  z —(x,y) =  x – y sin(xy)
Section 2.9 Linear Approximations and Differentials Math 1231: Single-Variable Calculus.
Modeling with Systems of Differential Equations
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Lotka-Volterra, Predator-Prey Model J. Brecker April 01, 2013.
Chapter 6 Models for Population Population models for single species –Malthusian growth model –The logistic model –The logistic model with harvest –Insect.
Dynamics of a Ratio- Dependent Predator-Prey Model with Nonconstant Harvesting Policies Catherine Lewis and Benjamin Leard August 1 st, 2007.
Åbo Akademi University & TUCS, Turku, Finland Ion PETRE Andrzej MIZERA COPASI Complex Pathway Simulator.
7.4 Predator–Prey Equations We will denote by x and y the populations of the prey and predator, respectively, at time t. In constructing a model of the.
Kliah Soto Jorge Munoz Francisco Hernandez. and.
Ch 9.4: Competing Species In this section we explore the application of phase plane analysis to some problems in population dynamics. These problems involve.
Ch 9.1: The Phase Plane: Linear Systems
Ordinary Differential Equations
Boyce/DiPrima 9th ed, Ch 2.5: Autonomous Equations and Population Dynamics Elementary Differential Equations and Boundary Value Problems, 9th edition,
First-Order Differential Equations
Ch 2.1: Linear Equations; Method of Integrating Factors
Math 3C Practice Midterm #1 Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Jochen Triesch, UC San Diego, 1 Review of Dynamical Systems Natural processes unfold over time: swinging of a pendulum.
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 02: The First Order Differential Equations.
Differential Equations
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Numerical Solution of Ordinary Differential Equation
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Calculus and Analytic Geometry II Cloud County Community College Spring, 2011 Instructor: Timothy L. Warkentin.
Section 6.1: Euler’s Method. Local Linearity and Differential Equations Slope at (2,0): Tangent line at (2,0): Not a good approximation. Consider smaller.
Ch 2.2: Separable Equations In this section we examine a subclass of linear and nonlinear first order equations. Consider the first order equation We can.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Taylor Series.
Continous system: differential equations Deterministic models derivatives instead of n(t+1)-n(t)
Population Modeling Mathematical Biology Lecture 2 James A. Glazier (Partially Based on Brittain Chapter 1)
Ch 2.2: Separable Equations In this section we examine a subclass of linear and nonlinear first order equations. Consider the first order equation We can.
Romantic Relationships Background –Life would be very dull without the excitement (and sometimes pain) of romance! –Love affairs can be modelled by differential.
Math 3120 Differential Equations with Boundary Value Problems
Ch 9.5: Predator-Prey Systems In Section 9.4 we discussed a model of two species that interact by competing for a common food supply or other natural resource.
Dynamical Systems 1 Introduction Ing. Jaroslav Jíra, CSc.
Constructing the Antiderivative Solving (Simple) Differential Equations The Fundamental Theorem of Calculus (Part 2) Chapter 6: Calculus~ Hughes-Hallett.
Computational Method in Chemical Engineering (TKK-2109)
Math 3120 Differential Equations with Boundary Value Problems
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-2: Separable Variables.
Differential Equations. Definition A differential equation is an equation involving derivatives of an unknown function and possibly the function itself.
6 Differential Equations
CEE162/262c Lecture 2: Nonlinear ODEs and phase diagrams1 CEE162 Lecture 2: Nonlinear ODEs and phase diagrams; predator-prey Overview Nonlinear chaotic.
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
First-Order Differential Equations CHAPTER 2. CH2_2 Contents  2.1 Solution Curves Without a Solution 2.1 Solution Curves Without a Solution  2.2 Separable.
Differential Equations Copyright © Cengage Learning. All rights reserved.
Section 7.5: The Logistic Equation Practice HW from Stewart Textbook (not to hand in) p. 542 # 1-13 odd.
CEE262C Lecture 3: Predator-prey models1 CEE262C Lecture 3: The predator- prey problem Overview Lotka-Volterra predator-prey model –Phase-plane analysis.
Ch 1.3: Classification of Differential Equations
Fall 2009 IB Workshop Series sponsored by IB academic advisors IB Opportunities in C-U Tuesday, Sept. 15 4:00-5:00pm 135 Burrill There are many local opportunities.
Section 1.7 BIFURCATIONS. More harvesting Today, we’ll be looking at the harvesting model where P is the size of the population at time t and C is the.
Lecture 11: Linearization
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
Only One Word for Review Review Engineering Differential Equations The Second Test.
Solving First-Order Differential Equations A first-order Diff. Eq. In x and y is separable if it can be written so that all the y-terms are on one side.
Boyce/DiPrima 9 th ed, Ch1.3: Classification of Differential Equations Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Various Applications of Hopf Bifurcations Matt Mulvehill, Kaleb Mitchell, Niko Lachman.
Math 4B Systems of Differential Equations Population models Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
MA2213 Lecture 10 ODE. Topics Importance p Introduction to the theory p Numerical methods Forward Euler p. 383 Richardson’s extrapolation.
Math 206 – Differential Equations Andy Rosen PLEASE SIGN IN.
1.5 Linear ODEs. Bernoulli Equation. Population Dynamics
Differential Equations
FIRST ORDER DIFFERENTIAL EQUATIONS
Problem of the Day (Calculator Allowed)
Differential Equations
Differential Equations
Numerical solution of first-order ordinary differential equations
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Presentation transcript:

Continous system: Differential equations Deterministic models derivatives instead of n(t+1)-n(t)

Determine the equation n Decide what have an effect on the system n Determine whether the parameters are positive or negative, i. e. give growth or reduction n Determine whether the parameter is linear or nonlinear in relation to your entity (often population density or amount of a compound) Population x rx growth Population x bx birth -dx deaths i immigration

Determine the equation n What act on the system, entity: sign, constant or linear/nonlinear relation: rx is positive, linear n What act on the system, entity: sign, constant or linear/nonlinear relation: bx, positive, linear dx, negative, linear i, positive, constant Population x rx tillväxt Population x bx birth -dx deaths i immigration

Differential equations, part 2 n Geometrical analysis n Nonlinear Differential Equations

What is differential equations? n Derivatives in an equation, i e both y and y’ in the very same equation n Example: Both concentration and change of concentration n To solve this one how to maken some kind of integration, that is make y’ to y. n Note: most of the differential equations is not possible to solve analytically, one is referred to numerical solutions

Geometric analysis: study phaseplane n Phase line diagram: u put y’ versus y u y’=f(y) y y’ K derivatives, y’, is positive on interval [0,K] x y Arrows indicate if x’ resp y’ is positive or negative, direction of solution y’=0 x’=0 n Phase plane: system of 2 diff equations, x and y u put y versus x when y’=0, x’=0 u y’=f(y,x)=0 => y=h(x) x’=g(y,x)=0 => x=i(x)

Further development of the logistic model: allee effect n dn/dt K Allee effect, is there a threshold, a, under which the density is too low: equation of third order a

Further development of the logistic model:  -logistisk  term change the shape of the curve y’, makes the growth to increase or decrease more or less versus population density n n’ K  =3  =1  =0.5  =1 gives the general logistic equation

Phase plane, system of nonlinear equations x y y’=0 x’=0 [t,y]=ode45('fasplan',[0 10],[ ]); » plot(y(:,2),y(:,1))

Harvest: withdrawal of the population n Harvest of a population with logistic growth n y’ - yield, (withdrawal) n h – harvest effort n The yield increase with increasing effort until the line reaches the max, and from h’’ the yiled decrease with effort n x’ x’’ is the equilibrium of population at resp harvest effort x dy/dx K h’x h’’x x’’x’ y’’ y’

Harvest: yield of the population x dx/dt K h’x h’’x x’’x’ y’’ y’ How does the yield increse with h, (with effort)

Harvest: yield of the population n From a population with Alle effect n Depending on the density it can either turn into extinction or equlibrium, h’ n At too high effort the population is exterminated, h’’ n dn/dt K a Not stable eq. h’x h’’x

Linearize around the eq. point Linearize around the eq. point, hence determine the tangent at the point Determine the partial derivatives at that point

Linearize around the eq. point Linearize around the eq. point, hence when f(x’,y’)=0 and g(x’,y’)=0, Move the point to origo, u=x-x’ and v=y-y’

Linearize around the eq. point, kind of quilibrium s 260, once again, determines the character of the eq. by eigenvalues Jacobian matrix

Classical Predator-Prey model (Lotka-Volterra) n Simplest nonlinear system of diff eq. n Only term xy x-prey, y-Predator a- growth prey b-predation efficiency c-prey turn over to predator growth/fecundity d-death rate of predator

x-prey, y-Predator a- growth prey b-predation efficiency c-prey turn over to predator growth/fecundity d-death rate of predator

Most equations can be approximated with linear functions over a short interval n equations that are possible to derivate, that is continous over an interval, can be approximated with a Taylor expansion. Using the derivatives n The first tem of the Taylor expansion is a linear term and hence it possible to approximate n The interval is smaller the larger derivative

Numeriska lösningar n De flesta diffentialekvationer går ej att lösa analytiskt. n Man får bestämma sin lösning m h a numeriska metoder n Eulers metod är att göra om diff ekv till differens ekvation med lämplig steglängd n Mer raffinerade metoder, som Runge Kutta, utnyttjar ett antal derivator vid resp punkt. På detta sätt förbättras riktningen, dvs värdet vid nästa steg

numerical solutions n Most differential equations is not possible to solve analytically. n One have to solve it by numerical methods n Euler method is a way to make a diff ekv to a difference equation with appropriate step-length n With more refined methods, like Runge Kutta, uses a set of derivatives at each point. In this way the direction of the solution is improved for each step,

Matlab: numerical solutions n [t,y] =ode45(’function',timeinterval,initialvalues); Create a m-fil rigid.m function dy = rigid(t,y) dy = zeros(3,1); % a column vector dy(1) = y(2) * y(3); dy(2) = -y(1) * y(3); dy(3) = * y(1) * y(2); Solve the equation on the interval 0-12 n [t,y] = ode45('rigid',[0 12],[0 1 1])

Matlab: numerical solutions n [t,y] = ode45('rigid',[0 12],[0 1 1]) n plot(t,y(:,1),'-',t,y(:,2),'-.',t,y(:,3),'.') n Remake rigid.m and test different equations n Some kinds of diff equations, so called stiff equations, should be solved by ode15s(…) n stiff diff equations