+ All Categories
Home > Documents > 2 Discrete growth models, logistic map (Murray,...

2 Discrete growth models, logistic map (Murray,...

Date post: 10-Aug-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
14
Computational Biology 1 2019 [email protected] 2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture 1 the population of non-overlapping generations can be modelled as a discrete dynamical system. This is an example of an inherently discrete dynamical system. Discrete systems can also be obtained from continuous ones: Stroboscopic map Obtain discrete dynamics by strobing con- tinuous flow at a sequence of times. Using surface of section Consider an n-dimensional contin- uous system and form an n - 1-dimensional surface of section Γ. Construct an orbit from all crossings of a trajectory with Γ ( Poincar´ e map from x τ to x τ +1 ). Example for n = 3: Surface of sections are used to visualise 3D (or 4D) dynamics in 2 (or 3) dimensions, or to visualize and identify periodic motion. Time discretisation of continuous system ˙ N = f (N ) to for example implement a continuous model on a computer. Get N (t + δt) N (t)+ δtf [N (t)] . In terms of τ = t/δt we obtain a discrete dynamical system N τ +1 = N τ + δtf [N τ ] | {z } F (N τ ) . (1) 1
Transcript
Page 1: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

2 Discrete growth models, logistic map(Murray, Chapter 2)

As argued in Lecture 1 the population of non-overlapping generationscan be modelled as a discrete dynamical system. This is an exampleof an inherently discrete dynamical system.

Discrete systems can also be obtained from continuous ones:

• Stroboscopic map Obtain discrete dynamics by strobing con-tinuous flow at a sequence of times.

• Using surface of section Consider an n-dimensional contin-uous system and form an n − 1-dimensional surface of sectionΓ. Construct an orbit from all crossings of a trajectory with Γ(Poincare map from xτ to xτ+1). Example for n = 3:

Surface of sections are used to visualise 3D (or 4D) dynamics in2 (or 3) dimensions, or to visualize and identify periodic motion.

• Time discretisation of continuous system N = f (N) to forexample implement a continuous model on a computer. Get

N(t + δt) ≈ N(t) + δtf [N(t)] .

In terms of τ = t/δt we obtain a discrete dynamical system

Nτ+1 = Nτ + δtf [Nτ ]︸ ︷︷ ︸F (Nτ )

. (1)

1

Page 2: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

Note that all continuous dynamical systems can be mapped on dis-crete dynamical systems, but the opposite is not true: Not all discretesystems corresponds to a discretization of a continuous system.

2.1 Discrete dynamics (M2.1,2.2)

Consider the system

Nτ+1 = F (Nτ)

with some map on the form F = Nτ + ∆Nτ that preserves Nτ ≥ 0.What are reasonable shapes of the map F for a growth model? For

small population sizes we assume linear growth F ∼ (r + 1)N . Dueto self-regulation when the system becomes overcrowded, we expectF to reach some maximum and then decay for large population sizes:

Note that the population increases if Nτ+1 = F (Nτ) is larger thanNτ . Graphically this translates into being in a region where F (Nτ)lies above the line F (Nτ) = Nτ .Similarly the population decreases if F (Nτ) lies below F (Nτ) = Nτ .Points where F (Nτ) cross F (Nτ) = Nτ are fixed points (steadystates). Applying the map on these points do not change the pop-ulation. In growth models we often have a fixed point at Nτ = 0 thatcan be either stable (attracting) or unstable (repelling).

The dynamics of one-dimensional maps are often visualized usingcobweb plots (left panel):

2

Page 3: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

The dynamics starting at two initial conditions (blue|green) are shown.

1. From a value Nτ , move vertically to F (Nτ).

2. Move horizontally to the line F (N) = N . The new coordinate is(F (Nτ), F (Nτ)) = (Nτ+1, Nτ+1), i.e. we have found the positionof Nτ+1 on the Nτ -axis.

3. Repeat step 1 from Nτ+1

This procedure constructs the orbit of the map (right panel above).For the case illustrated there are three fixed points: two stable atN ∗ = 0 and N ∗2 and one unstable at N ∗1 .

Depending on the shape of F the dynamics in the vicinity of a fixedpoint N ∗ changes:

3

Page 4: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

F ′(N ∗) < −1 −1 < F ′(N ∗) < 0

0 < F ′(N ∗) < 1 1 < F ′(N ∗)

We have four distinct cases depending on the ’eigenvalue’ Λ ≡ F ′(N ∗):

Unstable Stable Stable Unstableoscillations oscillations no oscillations no oscillations

−1 0 1 Λ ≡ F ′(N ∗)

Compare with the fixed points of a continuous dynamical system: sta-ble if f ′(N ∗) < 0 and unstable if f ′(N ∗) > 0, oscillations are not pos-sible in the continuous system because trajectories cannot intersect.

The global dynamics of a discrete one-dimensional system can bechaotic if all fixed points are unstable and if the dynamics is bounded:

4

Page 5: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

2.2 Bifurcations (M2.2,2.4)

Ecological growth models exhibit at least one control parameter, forexample the growth rate r. As the parameters change, the systemmay undergo a series of bifurcations where fixed points change stabil-ity. Bifurcations occur as the eigenvalue Λ = F ′(N ∗) passes through+1 or through −1 upon variation of the control parameters. The fol-lowing are examples of bifurcations with Λ = +1.Saddle-node bifurcation (called ‘tangent bifurcation’ in Murray):

Supercritical pitchfork bifurcation:

Subcritical pitchfork bifurcation:

Transcritical bifurcation:Stability changes as two fixed points ‘move through each other’:

5

Page 6: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

Bifurcations with Λ = +1 have counterparts in continuous dynamicalsystems: the time discretization (1): F (Nτ) = Nτ + δtf (Nτ) givesF ′(N ∗τ ) = 1 + δtf ′(N ∗τ ). Thus, as the stability exponent λ = f ′(N ∗τ )passes zero, the eigenvalue Λ = F ′(N ∗τ ) passes +1.

In addition to the examples above, discrete systems may also havebifurcations as Λ passes −1, for example period-doubling bifurcationswhere a stable fixed point transforms into an attracting periodic cycle.Period-doubling bifurcation:Assume map Nτ+1 = F (Nτ) has an isolated fixed point N ∗(1) and thatΛ = F ′(N ∗(1)) passes through −1 at bifurcation point r = B:

Denote fixed points of the second iterate of the map by N ∗∗(i). One fixedpoint is N ∗∗(1) = N ∗(1) because F (F (N ∗(1))) = N ∗(1). It has eigenvalue

d

dNF (F (N))|N=N∗∗

(1)= F ′(F (N ∗(1)))F

′(N ∗(1)) = Λ2 .

Thus, at r = B the eigenvalue of the second iterate passes Λ2 =(−1)2 = +1 and the second iterate (typically) undergoes a pitchforkbifurcation, forming two new stable fixed points N ∗∗(2) and N ∗∗(3) (illus-trated in right-most panel above). These form an alternating solutionto the original map: Nτ = N ∗∗(2), N

∗∗(3), N

∗∗(2), N

∗∗(3), . . . , i.e. a stable

period-two cycle of the original map. Period-doubling bifurcations arefrequent in the logistic map and other discrete growth models.

6

Page 7: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

2.3 Example: Logistic map (M2.3)

The logistic map is a discrete system having the same rate of changeof population as the logistic equation from Lecture 1

Nτ+1 = Nτ + rNτ

(1− Nτ

K

).

2.3.1 Comparison to logistic equation

The following figure shows a numerical comparison of continuous anddiscrete logistic models for two growth rates (N0 = 10, K = 750):

N(t

) K

t

r = 0.2N

(t) K

t

r = 2.2

The two models agree for small values of r. For larger values of r therecan be significant difference. In the example shown the discrete modelshows oscillations with period 2. A detailed analysis (below) showsthat the discrete map does have a fixed point at N ∗ = K, but thatthis fixed point has undergone a period-doubling bifurcation at r = 2and the dynamics is therefore attracted to a stable period-two cycle.

In conclusion, the inherent time delay of discrete models often giverise to unsteady or oscillatory behaviour (c.f. continuous delay modelsin Lecture 1) not observed in continuous models.

2.3.2 Analysis

Introduce a dimensionless population size uτ ≡ Nτr/(K(r + 1)) anddefine ρ ≡ r + 1 in the logistic map:

uτ+1 = ρuτ (1− uτ) . (2)

7

Page 8: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

Assume 0 < u0 < 1 and 0 < ρ ≤ 4 (population size may becomenegative if ρ > 4). The dimensionless logistic map (2) has two fixedpoints with corresponding eigenvalues Λ:

u∗(1) = 0 Λ = F ′(0) = ρ

u∗(2) = 1− 1

ρΛ = F ′

(1− 1

ρ

)= 2− ρ .

For 0 < ρ < 1, u∗(1) = 0 is stable and the first bifurcation (transcritical)happens at ρ = 1 where u∗(1) = 0 becomes unstable.

uτ+1

u∗

ρFor 1 < ρ < 3, u∗(1) = 0 is unstable and u∗(2) is stable.Λ = −1 for u∗(2) when ρ = 3 and the system has no stable fixed pointswhen ρ > ρ1 = 3. In order to understand the bifurcation, we mustconsider higher-order iterates of the map as follows. In general thepoints on an orbit are obtained by successive application of the map:

u1 = F (u0)

u2 = F (F (u0)) ≡ F 2(u0)...

uτ = F τ(u0) .

For the second iterate of F :

uτ+2 = F 2(uτ) = ρ[ρuτ (1− uτ)︸ ︷︷ ︸

uτ+1

](1− ρuτ (1− uτ)︸ ︷︷ ︸

uτ+1

)(3)

Denote fixed points of the map F 2 by u∗∗. When ρ passes through 3,F 2(uτ) undergoes a pitchfork bifurcation:

8

Page 9: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

uτ+2

u∗∗

ρNote that all fixed points of F (uτ) must also be fixed points of F 2(uτ),u∗∗(1) ≡ u∗(1) = 0 and u∗∗(2) ≡ u∗(2) = 1− ρ−1, but the eigenvalue may bedifferent. As we saw above, when ρ passes 3, the eigenvalue

Λ ≡ F ′(u∗(2)) = 2− ρ

decreases through −1 and u∗(2) becomes unstable. At the same time

F 2′(u∗∗(2)) =∂

∂uF (F (u))

∣∣∣∣u∗(2)

= F ′(F (u∗(2))︸ ︷︷ ︸u∗(2)

)F ′(u∗(2)) = [F ′(u∗(2))]2 = Λ2

increases through Λ2 = (−1)2 = +1 and two new stable fixed pointsu∗∗(3),(4) of F 2(uτ) are created in a pitchfork bifurcation:

u∗∗(3),(4) =ρ + 1±

√(ρ− 3)(ρ + 1)

2ρ.

These are stable (if ρ is not too large) and satisfies

F 2(u∗∗(3)) = u∗∗(3) and F 2(u∗∗(4)) = u∗∗(4)

but they are not fixed points of F :

F (u∗∗(3)) 6= u∗∗(3) and F (u∗∗(4)) 6= u∗∗(4) .

It follows that F (u∗∗(3)) = u∗∗(4) and F (u∗∗(4)) = u∗∗(3), i.e. the systemapproaches a stable period-two cycle u∗∗(3), u

∗∗(4), u

∗∗(3), u

∗∗(4), . . .

9

Page 10: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

In conclusion: exactly when the period-one fixed point u∗(2) = 1− ρ−1becomes unstable a new period-two cycle is created (period-doublingbifurcation), c.f. Section 2.3.1.

Note that the eigenvalues of u∗∗(3),(4) must be equal because they forma cycle for the original map:

Λ3 ≡ F 2′(u∗∗(3)) =∂

∂uF (F (u))

∣∣∣∣u∗∗(3)

= F ′(F (u∗∗(3))︸ ︷︷ ︸u∗∗(4)

)F ′(u∗∗(3)) = F ′(u∗∗(3))F′(u∗∗(4)) .

In the same way

Λ4 ≡ F 2′(u∗∗(4)) = F ′(u∗∗(3))F′(u∗∗(4)) .

As ρ passes ρ2 ≈ 3.45 the eigenvalues Λ3 = Λ4 simultaneously pass−1 and another period-doubling bifurcation occurs (four new stablefixed points are formed in the map F 4), creating an attracting period-four cycle in the original map (stable up to ρ3 ≈ 3.54):

uτ+4

u∗∗∗∗

ρSubsequent period doubling bifurcations give rise to a period-doubling

cascade, consisting of bifurcation values ρi, i = 1, 2, . . . , where period2i-cycles are formed. The stable attracting cycle is obtained by plot-ting large-time iterates of the map:

ρ

− ln(ρ∞ − ρ)

10

Page 11: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

The figure shows the attractor (long term limiting behaviour for mostinitial conditions) of the logistic map for different values of ρ. Unsta-ble fixed points and cycles are only visited for a discrete set of isolatedinitial conditions and are not shown.

Feigenbaum (1978) showed that

ρn − ρn−1ρn+1 − ρn

→ 4.669 · · · = δ

as n→∞. Also

ρn → 3.56995 ≡ ρ∞

as n→∞. These results imply

|ρ∞ − ρn| ∼ δ−n .

Extending the range up to ρ = 4:

ρ

reveals complicated dynamics: when ρ > ρ∞ attractors are either pe-riodic cycles or aperiodic attractors. For ρ = 4 the aperiodic attractorfills the entire interval. For other values of ρ the aperiodic attractorsplits to fill a number of smaller intervals, e.g. 2 bands at ρ ≈ 3.63.Such aperiodic attractors are characterized by

1. Apparently irregular orbit

2. Re-appearance of the full pattern in small windows (fractal struc-ture):

11

Page 12: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

ρ

3. Enhanced sensitivity to changes in initial condition u0

This behaviour is called deterministic chaos: the dynamics appearsirregular despite being deterministic. More precisely: Deterministicchaos describes aperiodic, bounded deterministic dynamics with en-hanced sensitivity to small changes of initial conditions.

The period-doubling cascade leading to chaotic behavior shown hereis a common route to chaos. It shows several universal features, forexample δ = 4.669 . . . takes the same value for many systems.

2.4 Higher dimensional discrete maps

The graphical analysis for the one-dimensional discrete systems of theprevious sections is here complemented with an analytical formulation,valid also for higher dimensions. Consider a general map

xτ+1 = F (xτ) .

What happens to a small perturbation x∗+δx after many iterations?Let F n(x) ≡ F (F (· · ·F (x))) denote a map applied n times. First

evaluate the derivative of F n(x) at a fixed point x∗. First d = 1:

∂xF n(x)

∣∣∣∣x=x∗

=∂

∂xF (F n−1(x))

∣∣∣∣x=x∗

=∂F

∂x(F n−1(x∗)︸ ︷︷ ︸

x∗

)∂

∂xF n−1(x)

∣∣∣∣∣∣x=x∗

=

[∂F

∂x(x∗)

]n

12

Page 13: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

General dimension

∂xF n(x)

∣∣∣∣x=x∗

= [J(x∗)]n ,

with J the gradient matrix ∂F /∂x.⇒ to first order we have

F n(x∗ + δx) ≈ F n(x∗)︸ ︷︷ ︸x∗

+∂

∂xF n(x∗)︸ ︷︷ ︸

[J(x∗)]n

δx = x∗ + [J(x∗)]nδx

Let Λi and ei be eigenvalues and eigendirections of J(x∗):

J(x∗)ei = Λiei .

It follows

[J(x∗)]nei = Λni ei .

By decomposition of δx in terms of ei, i.e. δx =∑

i aiei it follows

[J(x∗)]nδx =∑i

aiΛni ei .

• Eigendirections with |Λi| < 1 contracting for large n

• Eigendirections with |Λi| > 1 expanding for large n

• Eigendirections with |Λi| = 1 marginal for large n

The fixed point is stable if all |Λi| < 1.If any |Λi| > 1 the fixed point is unstable.

2.4.1 p-cycles

As found above, discrete maps may show periodic motion. The fixedpoints of a map applied twice: Nτ+2 = F (F (Nτ)) are 2-cycles i.e. theorbit is N0, N1, N0, . . . .Any fixed point of the map satisfies F p(N ∗) = N ∗ for any p.Fixed points of Nτ+p = F p(Nt) are cycles of period p.The shortest cycle of Nτ is called prime cycle (p-cycle)

13

Page 14: 2 Discrete growth models, logistic map (Murray, …fy.chalmers.se/~f99krgu/CompBioA/CompBioLecture2.pdf2 Discrete growth models, logistic map (Murray, Chapter 2) As argued in Lecture

Computational Biology 1 2019 [email protected]

Summary: Comparison maps and flows -

Flo

wf

Map

FS

yste

mC

onti

nuou

sO

DE

Dis

cret

ed

iffer

ence

equ

atio

ns

x=f

(x)

xτ+1

=F

(xτ)

Sol

uti

onT

raje

ctor

yx

(t)

Orb

it{x

0,x

1,.

..}

Per

iod

icso

luti

onC

lose

dor

bitx

(t)

=x

(t+T

)C

yclexτ+T

=xτ

(fixe

dp

oint

ofF

T(x

τ))

Fix

edp

oint

con

d.

f(x∗ )

=0

F(x∗ )

=x∗

Ch

aos

pos

sib

leIfd>

2d

=1

ifn

on-i

nver

tib

lem

apot

her

wis

ed>

1Ja

cob

ian

Jij

=∂f i/∂xj

Jij

=∂Fi/∂xj

Are

ap

rese

rvin

gif

∇·x

=trJ

=0

det

J=

1E

igen

valu

esat

fixed

poi

ntλi

(Re[λi]

det

erm

ines

stab

ility

)Λi

(|Λi|

det

erm

ines

stab

ility

)S

tab

len

ode

(2D

)λ1<λ2<

0an

dIm

[λ1,2

]=

0|Λ

1|<|Λ

2|<

1an

dIm

[Λ1,2]

=0

Un

stab

len

ode

(2D

)λ1>λ2>

0an

dIm

[λ1,2

]=

0|Λ

1|>|Λ

2|>

1an

dIm

[Λ1,2]

=0

Sad

dle

(un

stab

le)

(2D

)λ1<

0<λ2

andIm

[λ1,2]

=0|Λ

1|<

1<|Λ

2|a

ndIm

[Λ1,2]

=0

Sta

ble

spir

al(2

D)

λ1,2

=µ±

iωan

dµ<

1,2

=ρe±

iθan

dρ<

1U

nst

able

spir

al(2

D)

λ1,2

=µ±

iωan

dµ>

1,2

=ρe±

iθan

dρ>

1C

ente

r(2

D)

λ1,2

iωΛ

1,2

=e±

14


Recommended