Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Continous system: Differential equations Deterministic models derivatives instead of n(t+1)-n(t)"— Presentation transcript:

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

2 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

3 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

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

5 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

6 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)

7 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

8 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

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

10 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’

11 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)

12 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

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

14 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’

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

16 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

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

18

19 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

20 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

21 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,

22 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) = -0.51 * y(1) * y(2); Solve the equation on the interval 0-12 n [t,y] = ode45('rigid',[0 12],[0 1 1])

23 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


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

Similar presentations


Ads by Google