Presentation is loading. Please wait.

Presentation is loading. Please wait.

Phase Plane Diagrams ENT 420 Biological System Modeling Lecturer Engr. Mohd Yusof bin Baharuddin MBiomedEng (Melbourne) BBiomedEng (Malaya)

Similar presentations


Presentation on theme: "Phase Plane Diagrams ENT 420 Biological System Modeling Lecturer Engr. Mohd Yusof bin Baharuddin MBiomedEng (Melbourne) BBiomedEng (Malaya)"— Presentation transcript:

1 Phase Plane Diagrams ENT 420 Biological System Modeling Lecturer Engr. Mohd Yusof bin Baharuddin MBiomedEng (Melbourne) BBiomedEng (Malaya)

2 Motivation Graphical methods for exploring systems of ODEs Phase plane diagrams Example/tutorial: Chemostats Numerical software: xppaut Limit cycles, oscillators Introduce the FH-N class of models The Hopf Bifurcation ENT 420 Biological System Modeling Objectives

3 ENT 420 Biological System Modeling The story so far…. Difference equations Systems of ODEs Model type General form Steady state condition Stability condition Graphical exploration Cobweb graph Phase plane diagrams

4 ENT 420 Biological System Modeling Graphical interpretation of ODEs Consider When y=0 and y=1, t y 1 0

5 ENT 420 Biological System Modeling When 0<y<1, When 1<y, Graphical interpretation of ODEs

6 ENT 420 Biological System Modeling t y 1 0 t y 1 0 Graphical interpretation of ODEs

7 ENT 420 Biological System Modeling x t y y x We could produce a 3D plot i.e. with axis (x,y,t) t Too hard! What about systems of ODEs?

8 ENT 420 Biological System Modeling Instead let’s look at how the slope and direction of the vector (dx/dt,dy/dt) varies within a plane (x-y 2D plot) e.g. x Slope of vector given by x yy A phase plane graph Graphical interpretation of ODEs

9 ENT 420 Biological System Modeling Phase plane graph Example: Recall the Lotka-Volterra predator-prey model  1 prey predator Oscillatory neutral stable steady state

10 ENT 420 Biological System Modeling Phase plane graph Instead of graphing the behaviour of both predator and prey populations as a function of time, we instead can look at the change in prey populations versus change in predator populations on a phase plane plot. That is…..

11 ENT 420 Biological System Modeling Phase plane graph Rearrange to and integrate rearrange

12 ENT 420 Biological System Modeling Phase plane graph u v 0 1 1  1 prey predator Neutrally stable c4c4 c3c3 c2c2 c1c1 Can’t always integrate to get exact solution like in this example.

13 ENT 420 Biological System Modeling A more systematic approach to phase plane diagrams Let’s look at a previous example These define the nullclines Steady states (singularities) occur at the intersection between x nullclines and y nullclines x- nullclines y-nullclines Draw the nullclines: x y steady states x=1 y=1 X - nullclines y - nullclines

14 ENT 420 Biological System Modeling A more systematic approach Assign direction along the nullclines according to vector: Note one component of the vector will be zero on a nullcline. Arrows on y nullclines parallel to x axis Arrows on x nullclines parallel to y axis

15 ENT 420 Biological System Modeling A more systematic approach We can start to see the flow patterns already Dramatic local changes in the flow pattern can really only occur in the vicinity of steady states Nullclines separate the phase plane plot into regions in which the flow is in the same general direction Begin to see global behaviour i.e. behaviour not local to steady states

16 ENT 420 Biological System Modeling Flow patterns around (linear) steady states in phase plane diagrams Image from Fall et al. “Computational Cell Biology” (2002).

17 ENT 420 Biological System Modeling Murray (2002)

18 ENT 420 Biological System Modeling Gorillas again These define the nullclines Steady states occur at the intersection between x nullclines and y nullclines N steady state Identify and draw nullclines H N=0 H=k/m 0 H=rN/j

19 ENT 420 Biological System Modeling N steady state Assign flow direction arrows along nullclines H N=0 H=k/m 0 H=rN/j When N=0 When H=k/m 0 When H=rN/j Gorillas again

20 ENT 420 Biological System Modeling Gorillas again N steady state H N=0 H=k/m 0 H=rN/j What kind of steady state do we have? Can’t tell just from phase plane plot!

21 ENT 420 Biological System Modeling k=1.1 at t=0 N=1000 and H=5 m 0 =0.1 r=0.01 j=0.1

22 ENT 420 Biological System Modeling Tutorial Example: Chemostat Bacterial growth in a Chemostat A chemostat is a device for harvesting bacteria. Stock nutrient of concentration c 0 enters the bacterial culture chamber with a flowrate F. For mass conservation there is an equal flow rate F out of the culture chamber. V is the volume of the culture chamber and N is the number density (number per volume) of bacteria in the culture chamber F c0c0 c N V F

23 ENT 420 Biological System Modeling Bacterial growth in a Chemostat The equations for the rate of change of the nutrient concentration and bacteria number density are as follows: F c0c0 cN V F k(c) is the concentration dependent reproduction rate of the bacteria α is units of nutrients consumed in producing one unit of population growth Note F has units of volume/time, FN/V has units number density of bacteria per time.

24 ENT 420 Biological System Modeling Example: Chemostat Bacterial growth in a Chemostat The rate of growth of bacteria increases with nutrient availability only up to some limiting value. (The poor little individual bacterium can only consume nutrient and reproduce at some limited rate.) c k(c) k max c 1/2 0.5k max Michaelis-Menton kinetics (more next week or the week after)

25 ENT 420 Biological System Modeling Bacterial growth in a Chemostat Non-linear ODE: We can non-dimensionalise these equations to make them look neater and to reduce the number of parameters. Let t=t * V/F, c=c * c 1/2 and N=N * c 1/2 F/(αVk max ), where N *, C * and t * denote dimensionless bacteria density, nutrient concentration and time. We can then write the ODEs as: where α 1 =Vk max /F and α 2 =c 0 /c 1/2

26 ENT 420 Biological System Modeling Example: Chemostat For simplicity of mathematics let’s drop the superscript * and let’s assume that α 1 =2 and α 2 =3

27 ENT 420 Biological System Modeling Tutorial: Phase plane diagram of chemostat model Find nullclines: N nullclines -> c nullclines -> N c 0,0

28 ENT 420 Biological System Modeling Example: Chemostat Bacterial growth in a Chemostat Non-linear ODE: Steady states:

29 ENT 420 Biological System Modeling Example: Chemostat Bacterial growth in a Chemostat Stability of steady states: Recall Linearise our equation to obtain the A matrix: where

30 ENT 420 Biological System Modeling Example: Chemostat Bacterial growth in a Chemostat Stability of steady states: Linearise our equation to obtain the A matrix: Find eigenvalues at each steady state by

31 ENT 420 Biological System Modeling Example: Chemostat Stability of steady states: When

32 ENT 420 Biological System Modeling Example: Chemostat When

33 ENT 420 Biological System Modeling Example: Chemostat

34 XPPAUT (freeware) (http://www.math.pitt.edu/~bard/xpp/xpp.html)http://www.math.pitt.edu/~bard/xpp/xpp.html a tool for solving –differential equations, (up to 590 differential equations) –difference equations, –delay equations, –functional equations, –boundary value problems, and –stochastic equations. Also creates phase plane diagrams, cobweb graphs does stability and bifurcation analysis etc (unlike Matlab) ENT 420 Biological System Modeling Software

35 ENT 420 Biological System Modeling Xppaut Program Write program in a text editor The following is program for a linear system of 2 ODEs. # equations dx/dt=a*x+b*y dy/dt=c*x+d*y # parameters par a=0, b=1, c=-1, d=0 # intial conditions init x=1, y=0 # that's all folks done dx/dt=a*x+b*y dy/dt=c*x+d*y par a, b, c, d done Minimum program

36 ENT 420 Biological System Modeling Write program in a text editor The following is program for the Lotka-Volterra system du/dt=u*(1-v) dv/dt=a*v*(u-1) par a=1 done u v 0 1 1  1 prey predator Xppaut Program

37 ENT 420 Biological System Modeling Write program in a text editor The following is program for the system considered at the start of this lecture du/dt=u*v-v dv/dt=v*u-u done Xppaut Program

38 ENT 420 Biological System Modeling Write program in a text editor The following is program for the chemostat N c dN/dt=alpha1*(c/(1+c))*N-N dc/dt=-(c/(1+c))*N-c+alpha2 par alpha1=5, alpha2=0.5 @ xp=N, yp=C, xlo=-.25, xhi=3, ylo=-.1, yhi=1, total=100 @maxstor=10000 done Xppaut Program

39 ENT 420 Biological System Modeling Write program in a text editor The following is program for the cancer model in lecture 5 dc/dt=delta*c*(w*c/(1+I)-1) dI/dt=sig+b*(gamma*c-I) par delta=1, W=1, sig=0, b=1, gamma=0.2 @ xp=c, yp=I, xlo=0, xhi=3, ylo=0, yhi=3, total=100 done Xppaut Program

40 ENT 420 Biological System Modeling At critical points S, R, Q the vector V is zero, and corresponds to stationary points Closed paths like C correspond to periodic solutions Simmons, G. (1991) “Differential equations with applications and historical notes”

41 ENT 420 Biological System Modeling Poincaré-Bendixson theorem If the phase plane contains a domain, enclosed by a boundary B on which the vector always points into the domain, and the domain contains a singular point P which is an unstable spiral or node then any phase trajectory cannot tend towards the singularity or leave the domain. The Poincaré-Bendixson theorem says that as the trajectory will tend to a limit cycle Murray (2002)

42 ENT 420 Biological System Modeling Oscillators, excitability and FitzHugh-Nagumo Models FitzHugh and Nagumo independently proposed a simplified model of the Hodgkin-Huxley equations that are used to describe the variation in sodium and potassium ions across a cell membrane of a nerve cell (neuron). Now, FH-N models are those with one linear nullcline for the “slow variable” and a cubic nullcline with an inverted “N” shape for the “fast variable”

43 ENT 420 Biological System Modeling Example: x represents the excitation variable “fast variable” y represents the recovery variable “slow variable” Parameters a, b and c in the model are assumed to be positive with the following restrictions z is a stimulus intensity Oscillators, excitability and FitzHugh-Nagumo Models

44 ENT 420 Biological System Modeling Phase plane diagram of FH-N model Two Nullclines: x y z=0 z=-0.4 x y Slight shift in curve

45 ENT 420 Biological System Modeling Stability? For the trace to be negative and the determinant positive i.e. a stable steady state or Oscillators, excitability and FitzHugh-Nagumo Models

46 ENT 420 Biological System Modeling Note: The stability condition of the steady state does not change with z, but the steady state itself does. That is the steady state is not stable if it falls within the region Since the requirement for a real value steady state not being stable is just Imaginary number Oscillators, excitability and FitzHugh-Nagumo Models

47 ENT 420 Biological System Modeling Xppaut Program Write program in a text editor The following is program for the FH-N model du/dt=c*(v+u-(1/3)*u^3+zed) dv/dt=-(1/c)*(u-a+b*v) par a=0.7, b=0.8, c=3, zed @ xp=u, yp=v, xlo=-3, xhi=3, ylo=-3, yhi=3, total=100 @maxstor=10000 done

48 ENT 420 Biological System Modeling

49 ENT 420 Biological System Modeling The Hopf Bifurcation Hopf Bifurcation Theorem predicts the appearance of a limits cycle about any steady state that undergoes a transition from a stable to an unstable focus (spiral) as some parameter is varied.

50 ENT 420 Biological System Modeling The Hopf Bifurcation Consider A steady state occurs at At this steady state

51 ENT 420 Biological System Modeling The Hopf Bifurcation du/dt=v dv/dt=-v^3+r*v-u par r @ xp=u, yp=v, xlo=-3, xhi=3, ylo=-3, yhi=3, total=100 @maxstor=10000 done

52 ENT 420 Biological System Modeling Summary  Phase plane diagrams, nullclines, shapes of flow patterns near various linear steady states  Examples: Chemostat, gorillas  Xppaut  Limit cycles  Excitability  FH-N models

53 ENT 420 Biological System Modeling Somewhere people still eating once a day…. ~Yusof~


Download ppt "Phase Plane Diagrams ENT 420 Biological System Modeling Lecturer Engr. Mohd Yusof bin Baharuddin MBiomedEng (Melbourne) BBiomedEng (Malaya)"

Similar presentations


Ads by Google