Dynamical Systems Notes
Dynamical Systems Notes
Prof F Nyabadza
University of Johannesburg
Department of Applied Mathematics
These notes were prepared by Prof Nyabadza for the Dynamical Systems A course for
honours students at UJ.
Dynamical Systems A Lecture Notes
Contents
1 Introduction to Dynamical Systems 3
2
Dynamical Systems A Lecture Notes
3
Dynamical Systems A Lecture Notes
Theorem 1.
The general solution to (1) is given by:
t
t 1 − α
α x0 + β if α ̸= 1
xt = 1−α
x + βt
0 if α = 1
x1 = αx0 + β
x2 = αx1 + β = α2 x0 + αβ + β
x3 = αx2 + β = α3 x0 + α2 β + αβ + β
..
.
t−1
X
xt = α t x0 + β αk
k=0
1−αt
Pt−1
The geometric series k=0 αk evaluates to 1−α
when α ̸= 1 and t when α = 1.
f (x∗ ) = x∗
β
x∗ = (for α ̸= 1)
1−α
Definition 3.
Let x∗ be a fixed point of xt+1 = f (xt ).
• x∗ is stable if for every ϵ > 0, there exists δ > 0 such that |x0 − x∗ | < δ implies
|xt − x∗ | < ϵ for all t ≥ 0.
• x∗ is asymptotically stable if it is stable and there exists δ > 0 such that |x0 −
x∗ | < δ implies limt→∞ xt = x∗ .
4
Dynamical Systems A Lecture Notes
Theorem 2.
For xt+1 = αxt + β:
Solution
Parameter Analysis:
• Growth factor: α = 1 + r
• Stability: |α| = |1 + r| > 1 for r > 0 (the fixed point is unstable), it is < 1
for r < 0 (the fixed point is stable)
Important
Dynamical Interpretation:
5
Dynamical Systems A Lecture Notes
Solution
√
Analysis for 3 with x0 = 1:
x0 = 1.000000
1 3
x1 = 1+ = 2.000000
2 1
1 3
x2 = 2+ = 1.750000
2 2
1 3
x3 = 1.75 + ≈ 1.732143
2 1.75
x4 ≈ 1.732051
x5 ≈ 1.732051
√
Rapid convergence to 3 ≈ 1.732051.
6
Dynamical Systems A Lecture Notes
Solution
We begin by forming the Characteristic Equation Assume a solution of the form
xn = λn where λ ̸= 0.
Substituting into the recurrence relation:
λn (λ2 + bλ + c) = 0
λ2 + bλ + c = 0
xn = Aλn1 + Bλn2 .
xn = (A + Bn)λn .
Example 5. ‘
The Fibonacci sequence is generated by:
Fn+2 = Fn+1 + Fn , F0 = 0, F1 = 1
Characteristic equation:
√ λ2 − λ − 1 = 0
1± 5
Roots: λ1,2 = 2 h √ n √ n i
√1 1+ 5 1− 5
General solution: Fn = 5 2
− 2
7
Dynamical Systems A Lecture Notes
Solution
Binet’s Formula:
√
ϕn − (−ϕ)−n 1+ 5
Fn = √ , ϕ= ≈ 1.618034
5 2
3. Verification of Solutions:
8
Dynamical Systems A Lecture Notes
Pn+1 = Pn + αPn (1 − Pn )
Summary
Stability Criteria
• For xn+1 = αxn : Fixed point at 0 is stable if |α| < 1
• For second-order systems: Jury conditions determine stability from the character-
istic polynomial
9
APM08X1 – Dynamical Systems A
Week 2 Notes: Orbits in Discrete Dynamical Systems
1 Introduction to Orbits
In discrete dynamical systems, we study how a quantity evolves when a rule is applied
repeatedly. Rather than solving equations explicitly, we often investigate the long-term
behaviour of repeated updates. This naturally leads to the concept of an orbit.
Orbit of a Point
Let F : R → R be a function and let x0 ∈ R be an initial value. The orbit of x0
under F is the sequence
The set
O(x0 ) = {x0 , x1 , x2 , . . . }
is called the orbit (or trajectory) starting at x0 . The initial value x0 is called the
seed.
xn+1 = F (xn ).
2 Computing Orbits
2.1 Basic Iteration
1
Example 1: Square-Root Map
√
Let F (x) = x and x0 = 144. Compute the first five points of the orbit.
Solution.
√
x1 = 144 = 12,
√
x2 = 12 ≈ 3.4641,
√
x3 = 3.4641 ≈ 1.8612,
√
x4 = 1.8612 ≈ 1.3643.
√
The orbit decreases toward 1. Since 1 = 1, the point x = 1 is a fixed point.
Second iterate:
Third iterate:
Expanding:
F 3 (x) = x8 − 8x6 + 20x4 − 16x2 + 2.
Pattern:
n
F n (x) = x2 .
2
Thus iteration doubles the exponent each time.
x1 = cos(1) ≈ 0.5403,
x2 = cos(0.5403) ≈ 0.8576,
x3 = cos(0.8576) ≈ 0.6543,
x4 = cos(0.6543) ≈ 0.7935.
x∗ ≈ 0.739.
3 Types of Orbits
3.1 Fixed Points
Fixed Point
A point x∗ is a fixed point of F if
F (x∗ ) = x∗ .
x3 − x = 0 ⇒ x(x2 − 1) = 0.
Hence
x = 0, x = 1, x = −1.
3
Example 6: Fixed Points of x sin x
Solve
x sin x = x.
x(sin x − 1) = 0.
Thus either
x=0
or
π
sin x = 1 ⇒ x = + 2kπ.
2
y = F (x) and y = x.
Example 7: F (x) = x2
Solve
x2 = x ⇒ x(x − 1) = 0.
F k (x) = x.
4
Example 9: Period-2 Cycle
Let F (x) = x2 − 1.
Orbit of 0:
0, −1, 0, −1, . . .
Hence
0→1→2→0
is a period-3 orbit.
Idea. If the graph of f lies inside the square [a, b] × [a, b], it must cross the diagonal
y = x.
Define
g(x) = f (x) − x.
f (a) ≥ a, f (b) ≤ b.
Thus
g(a) ≥ 0, g(b) ≤ 0.
If either equals zero we have a fixed point. Otherwise signs differ, so by the Interme-
diate Value Theorem there exists c ∈ (a, b) such that
g(c) = 0 ⇒ f (c) = c.
5
Example 11
Show f (x) = 1 − x2 has a fixed point in [0, 1].
Solve:
1 − x2 = x.
x2 + x − 1 = 0.
√
−1 + 5
x= ≈ 0.618.
2
Since this lies in [0, 1], a fixed point exists.
5 Tutorial 2
Basic Iteration
Algebraic Iterates
Fixed Points
Periodic Orbits
11. Construct a function f : [0, 1] → [0, 1] with exactly three fixed points.
6
Conceptual
7
Week 3 Notes:
Graphical Analysis of Discrete Dynamical Systems
APM08X1 – Dynamical Systems A
xn+1 = F (xn ),
Cobwebbing Process
Given a function F (x) and an initial value (seed) x0 , the cobwebbing procedure
is as follows:
1. Plot the graphs of y = F (x) and the diagonal line y = x on the same axes.
Fixed points occur at intersections where F (x) = x.
3. Draw a vertical line from (x0 , x0 ) to the curve y = F (x), reaching (x0 , F (x0 )).
4. Draw a horizontal line from (x0 , F (x0 )) to the line y = x, reaching (F (x0 ), F (x0 )).
This point corresponds to x1 = F (x0 ).
1
Illustrative Example
Consider the function
F (x) = sin x,
When F ′ (x∗ ) < 0 and |F ′ (x∗ )| < 1, orbits converge to x∗ via oscillatory (alter-
nating) approach. When F ′ (x∗ ) > 0 and |F ′ (x∗ )| < 1, convergence is monotone.
h = Plot[Sin[x], {x, 0, Pi}, Axes -> True, AxesOrigin -> {0, 0}]
g = Plot[x, {x, 0, Pi}, Axes -> True, AxesOrigin -> {0, 0}]
Show[h, g]
You should observe that the two curves intersect at the origin, confirming the fixed
point.
Exercises
Use Mathematica to plot the following pairs of functions and interpret their intersections
and stability:
2
2. y = rx(1 − x) and y = x, for r < 1, 0 ≤ x ≤ 1
3. y = 2x and y = x, 0 ≤ x < 5
4. y = 0.5x and y = x, 0 ≤ x ≤ 2
x
5. y = − and y = x, 0 ≤ x ≤ 2
1+x
x∗ = −1, 0, 1.
rx∗ (1 − x∗ ) = x∗ =⇒ x∗ r(1 − x∗ ) − 1 = 0.
3
• At x∗1 = 1 − 1r : F ′ 1 − 1r 1
= 2 − r. So x∗1 is stable iff
= r 1−2 1− r
|2 − r| < 1, i.e., 1 < r < 3.
Step 3: Period-2 orbits. For r > 3, the fixed point x∗1 loses stability. A period-
2 orbit {p, q} bifurcates, satisfying F (F (p)) = p. Solving F 2 (x) = x and discarding
the fixed points yields:
p
(r + 1) ± (r + 1)(r − 3)
p, q = .
2r
√
This period-2 orbit is stable for 3 < r < 1 + 6 ≈ 3.449.
Conclusion: As r increases from 1 to 4, the logistic map undergoes a period-
doubling cascade: fixed point → period-2 → period-4 → · · · → chaos. This is a
hallmark of complex dynamical behaviour arising from a simple quadratic rule.
4
For maps on an interval, the Schwarzian derivative of F is defined as
2
F ′′′ (x) 3 F ′′ (x)
SF (x) = ′ − ,
F (x) 2 F ′ (x)
wherever F ′ (x) ̸= 0.
Singer’s Theorem (1978). Let F : [a, b] → [a, b] be a C 3 map with SF (x) < 0
for all x where F ′ (x) ̸= 0. Then each stable periodic orbit of F attracts at least
one critical point of F .
Consequence for the logistic map. For F (x) = rx(1 − x), we compute:
Then
3 4r2 −6
SF (x) = 0 − · 2 2
= 2
< 0 for all x ̸= 21 .
2 r (1 − 2x) (1 − 2x)
Since F has a unique critical point at xc = 12 , Singer’s theorem implies that the
logistic map has at most one stable periodic orbit for any given r. This pow-
erful constraint, invisible from cobweb diagrams alone, severely restricts the possible
attracting behaviour.
3 Phase Portraits
A phase portrait is a global graphical representation of a discrete dynamical system on
the real line. It shows:
• Fixed points
• Direction of motion
• Stability information
Example: F (x) = x3
The fixed points are x∗ = 0, ±1.
5
This confirms that 0 is attracting, while ±1 are repelling.
Example: F (x) = x2
Fixed points are x∗ = 0 and x∗ = 1.
• If x > 1, then xn → ∞
6
1
The cobweb at c = 4
shows a characteristic “staircase” slowdown near the tangency.
4 Tutorial 3
1. Use colour coding to describe orbit behaviour for:
6. For the logistic map F (x) = rx(1 − x), find all period-2 orbits analytically by
solving F (F (x)) = x. For which values of r are these period-2 orbits stable?
Verify your answer using the derivative criterion applied to G(x) = F (F (x)) at
the period-2 points.
7
• Identify all values of c at which a bifurcation occurs among fixed points
and period-2 orbits.
• Sketch a bifurcation diagram: plot the location and stability of fixed points
and period-2 orbits as a function of c ∈ [−2, 14 ].
• Determine the value of c at which the period-2 orbit itself loses stability.
8
Week 4 Notes: Fixed Points and Their
Stability
Dynamical Systems A - APM08X1
What to expect: This week we explore the stability analysis of fixed points in discrete
dynamical systems, with applications to population models and the logistic map. We
derive stability conditions, explore bifurcations, and introduce cobweb diagrams.
f (x∗ ) = x∗
1. Point A (Valley bottom): If you slightly displace the ball, it returns to point
A. This represents a stable fixed point (attractor).
2. Point B (Hilltop): If you slightly displace the ball, it rolls away from point
B. This represents an unstable fixed point (repeller).
3. Point C (Flat plateau): The ball stays wherever placed. This represents a
neutral or indifferent fixed point.
Week 4: Fixed Points and Stability Dynamical Systems A
B (Unstable)
A (Stable) C (Neutral)
xn+1 = f (xn ), n = 0, 1, 2, . . .
Example
Example: f (x) = x2
Fixed points: x∗ = 0 and x∗ = 1 (since 02 = 0 and 12 = 1).
Behavior analysis:
• For x0 > 1: xn → ∞ as n → ∞
f ′′ (x∗ ) 2
f (x∗ + ηn ) = f (x∗ ) + f ′ (x∗ )ηn + ηn + · · ·
2!
Since f (x∗ ) = x∗ and neglecting higher-order terms for small ηn :
2
Week 4: Fixed Points and Stability Dynamical Systems A
ηn = λn η0
Therefore:
Theorem
Linear Stability Theorem for 1D Maps:
Let x∗ be a fixed point of f (x) (i.e., f (x∗ ) = x∗ ). Then:
Preliminary Concepts
Part 1: Setup and Notation
Consider the discrete dynamical system:
xn+1 = f (xn ), n = 0, 1, 2, . . .
η n = xn − x∗
This represents how far the system is from equilibrium at time step n.
Our goal is to understand how ηn evolves over time. Specifically:
x∗ + ηn+1 = f (x∗ + ηn )
3
Week 4: Fixed Points and Stability Dynamical Systems A
ηn+1 ≈ ληn
η1 = λη0
η2 = λη1 = λ2 η0
η3 = λη2 = λ3 η0
..
.
η n = λn η 0
4
Week 4: Fixed Points and Stability Dynamical Systems A
• When |λ| = 1, the linear term alone predicts |ηn | = |η0 | for all n
• However, this is misleading because higher-order terms (ηn2 , ηn3 , . . . ) become
important
• These higher-order terms can determine stability or instability
• The fixed point is non-hyperbolic or critically stable
• Linear analysis is inconclusive; we need nonlinear analysis
Proof of Lemma: Since f is continuously differentiable, for any ϵ > 0, there exists
δ > 0 such that for |x − x∗ | < δ:
f (x) − f (x∗ )
− f ′ (x∗ ) < ϵ
x − x∗
This implies:
|f (x) − x∗ | ≤ (|f ′ (x∗ )| + ϵ)|x − x∗ |
Choose ϵ small enough so that |f ′ (x∗ )| + ϵ has the desired property.
Step 8: Contraction Mapping Argument (for |λ| < 1)
5
Week 4: Fixed Points and Stability Dynamical Systems A
When |f ′ (x∗ )| < 1, choose ϵ > 0 such that ρ = |f ′ (x∗ )| + ϵ < 1. Then for x ∈
(x∗ − δ, x∗ + δ):
|f (x) − x∗ | ≤ ρ|x − x∗ |
This shows f is a contraction mapping near x∗ . By the Contraction Mapping
Theorem:
1. Starting from any x0 in this neighborhood, the sequence xn converges to x∗
2. The convergence is at least linear: |xn − x∗ | ≤ ρn |x0 − x∗ |
This proves local asymptotic stability.
Step 9: Instability Proof (for |λ| > 1)
When |f ′ (x∗ )| > 1, consider the inverse map (if it exists locally). Alternatively, use a
direct argument:
Choose ϵ > 0 such that ρ = |f ′ (x∗ )| − ϵ > 1. For sufficiently small ηn :
By induction:
|ηn | ≥ ρn |η0 |
Since ρ > 1, |ηn | → ∞ as n → ∞ for any η0 ̸= 0.
This proves instability.
ηn+1 ≈ ±ηn
This suggests the perturbation neither grows nor decays at linear order. However, the
higher-order terms can dominate:
ηn+1 = ηn + aηn2 + · · ·
The quadratic term can cause growth or decay depending on the sign of a.
• If f (x) = x∗ + (x − x∗ ) + b(x − x∗ )3 + · · · , then:
ηn+1 = ηn + bηn3 + · · ·
The cubic term determines stability (superstable if b < 0, unstable if b > 0).
6
Week 4: Fixed Points and Stability Dynamical Systems A
7
Week 4: Fixed Points and Stability Dynamical Systems A
• f ′ (0) = r
• Stability condition: |r| < 1 (since r > 0, this means 0 < r < 1)
Example
• f ′ (x) = cos(x)
• Since the cubic term is negative, x∗ = 0 is actually stable (though not linearly
determined)
Example
• f ′ (x) = 2x
8
Week 4: Fixed Points and Stability Dynamical Systems A
Key Takeaway: The derivative at a fixed point serves as a linear stability indicator
|f ′ (x∗ )| < 1: Green light (stable) |f ′ (x∗ )| > 1: Red light (unstable) |f ′ (x∗ )| = 1:
Yellow light (proceed with caution)
9
Week 4: Fixed Points and Stability Dynamical Systems A
1. At x∗1 = 0: f ′ (0) = k
b
• Stable if k
b
<1⇒k<b
• Unstable if k > b
bk bk b
f ′ (k − b) = 2
= 2 =
(b + (k − b)) k k
• Stable if b
k
< 1 ⇒ k > b (always true when it exists)
• So x∗2 is stable whenever it exists
Biological Interpretation:
• When growth rate k is less than saturation constant b, population goes extinct
(x∗ = 0 is stable)
x = rx(1 − x) ⇒ x[r(1 − x) − 1] = 0
1. At x∗1 = 0: f ′ (0) = r
2. At x∗2 = 1 − 1
r
(exists only if r > 1):
′ 1 1 2
f 1− =r 1−2 1− =r 1−2+ =2−r
r r r
10
Week 4: Fixed Points and Stability Dynamical Systems A
Bifurcation points:
1
The bracketed term gives a cubic equation. Since we know x = 1 − r
is also a
11
Week 4: Fixed Points and Stability Dynamical Systems A
p
r+1± (r + 1)(r − 3)
=
2r
These are real when (r + 1)(r − 3) ≥ 0. Since r > 0, this means r ≥ 3.
At r = 3, the period-2 cycle is born (bifurcation point), with x1,2 = 23 (initially
equal to the fixed point).
For r > 3, we have two distinct points forming a period-2 cycle.
Definition
Constructing a cobweb diagram:
6. Repeat
12
Week 4: Fixed Points and Stability Dynamical Systems A
Example
6 Tutorial Problems
Tutorial Problems
1. Classification and Fixed Points: For each equation, indicate whether it is
linear or nonlinear, and find all fixed points.
2. Stability Analysis: Determine when the following steady states are stable:
For each, sketch the function and use cobwebbing with appropriate x0 to show
solution behavior.
f (N ) = αN e−βN , α, β > 0
(a) Sketch f (N ) vs N
(b) Interpret parameters α and β biologically
(c) Show that N ∗ = ln α
β
is a fixed point
(d) Show it is stable provided |1 − ln α| < 1
(e) Find the range of α for stability
13
Week 4: Fixed Points and Stability Dynamical Systems A
(a) For r = 2.5, start with x0 = 0.1 and iterate 20 times. What do you
observe?
(b) Repeat for r = 3.2, r = 3.5, and r = 3.8
(c) For r = 3.83, find the period-3 cycle
(d) Create a bifurcation diagram for 2.5 ≤ r ≤ 4
Despite x∗1 and x∗3 having the same derivative magnitude, their stability is the
same (unstable).
14
Week 4: Fixed Points and Stability Dynamical Systems A
f ′ (0) = rπ
• The logistic map exhibits rich dynamics: fixed points → period-2 → period-4 →
chaos
15
The Logistic Map Dynamical Systems — Week 5
Dynamical Systems
Week 5 — Lecture Notes & Tutorial
The Logistic Map: Cobwebbing, Bifurcations and Chaos
1.1 Non-dimensionalisation
Introduce the dimensionless variable
N
x= =⇒ N = Kx.
K
dx 1 dN dx dN
Differentiating: = , so K = .
dt K dt dt dt
Substituting into (1):
dx dx
K = r(Kx)(1 − x) =⇒ = rx(1 − x) =: f (x).
dt dt
Since x = N/K is a ratio (population per carrying capacity), it is dimensionless. The
logistic growth equation becomes:
dx
= rx(1 − x). (2)
dt
1
The Logistic Map Dynamical Systems — Week 5
Remark. At r = 1 the two fixed points x∗1 and x∗2 coincide. The moment r passes 1, x∗2
comes into existence. If r increases to 3 then f ′ (x∗2 ) = −1, which means the gradient of
the tangent line is −1 and it is at right angles to the line y = x.
3 Cobweb Diagrams
A cobweb (staircase) diagram simultaneously displays the graph of y = f (x), the
diagonal y = x, and the orbit x0 , x1 , x2 , . . . encoded as an alternating vertical/horizontal
path.
2
The Logistic Map Dynamical Systems — Week 5
3.1 Algorithm
Starting at the point (x0 , x0 ) on the diagonal, each iteration consists of:
1. Vertical move: draw a vertical segment from (xn , xn ) to (xn , f (xn )), reading off the
new iterate xn+1 = f (xn ) on the curve.
2. Horizontal move: draw a horizontal segment from (xn , xn+1 ) to (xn+1 , xn+1 ), trans-
ferring the new value to the diagonal ready for the next step.
Reading a cobweb diagram
• Converging spiral/staircase inward ⇒ attracting fixed point.
• Diverging path outward ⇒ repelling fixed point.
• Closed rectangle with 2 corners on curve ⇒ stable 2-cycle.
• Closed path with 4 corners on curve ⇒ stable 4-cycle.
• Irregular, non-repeating dense path ⇒ chaotic orbit.
Case r x0 N Behaviour
4 Bifurcation Diagrams
A bifurcation diagram plots the long-run attractor xn (after discarding transients)
against the parameter r. Successive period-doublings are visible in the following windows:
3
The Logistic Map Dynamical Systems — Week 5
4
The Logistic Map Dynamical Systems — Week 5
dN
Fixed points satisfy = 0:
dt
1
−aN ln(bN ) = 0 =⇒ N = 0 or N = .
b
g ′ (N ) = −a ln(bN ) + 1 .
5
The Logistic Map Dynamical Systems — Week 5
Conclusion
N ∗ = 0 is an unstable fixed point. N ∗ = 1/b is a stable fixed point. All positive
initial conditions converge to the equilibrium 1/b.
The per-capita growth rate h(N ) = r − a(N − b)2 is a downward-opening parabola with:
• Maximum value r attained at N = b.
• h(N ) > 0 (population grows) for |N − b| <
p p p
r/a, i.e. N ∈ b − r/a, b + r/a .
• h(N ) < 0 (population declines) outside this interval.
The Allee effect requires a positive maximum
p at intermediate N , achieved when b > 0,
r > 0, a > 0. If additionally b > r/a, then h(N ) < 0 near N = 0: very small
populations decline — the strong Allee effect.
dN
= N r − a(N − b)2 = 0:
Fixed points of
dt
r
r
N1∗ = 0, ∗
N2,3 =b± .
a
6
The Logistic Map Dynamical Systems — Week 5
• At N1∗ = 0: F ′ (0) = r − ab2 . Stable if r < ab2 (strong Allee effect); unstable if
r > ab2 .
• At N2∗ = b − r/a: unstable — this is the Allee threshold; populations below it
p
decline to extinction.
• At N3∗ = b + r/a: stable — this is the carrying capacity K = b + r/a.
p p
7
The Logistic Map Dynamical Systems — Week 5
8
Theorem (Dynamics of fc (x) = x2 + c)
(fc2 )′ (x∗3 ) = fc′ (x∗4 ) · fc′ (x∗3 ) = 2x∗4 · 2x∗3 = 4x∗3 x∗4 .
The 2-cycle is attracting iff |4(c + 1)| < 1, i.e. −5/4 < c < −3/4. At c = −5/4:
(fc2 )′ (x∗3 ) = −1 and another period-doubling occurs, generating a 4-cycle.
Exercise 7.1 (Period-doubling cascade). Investigate the dynamics of fc (x) = x2 + c
for the following ranges. In each case, state whether there are fixed points, 2-cycles, or
neither, and whether they are attracting or repelling.
(a) −3/4 < c < 1/4
(b) c = −3/4
(c) −5/4 < c < −3/4
(d) c = −5/4
(e) c < −5/4
Use the cobwebbing method to illustrate your conclusions for representative values of c
in each range.
10
Applied Mathematics – Honours
n
Applied Mathematics – Honours
•
•
n ∈
n − n
n n
n n n n ∈
n
Applied Mathematics – Honours
n − n
n n n − n
− n n − n − n
n n − n − n
n n − n − n n − n ✓
n · n · n − n · − n
n n − n · − n
n n − n − n
n n − n
n n − n
n n ≥
Applied Mathematics – Honours
•
•
•
≤ ≤
Applied Mathematics – Honours
n n − n − n
n · n − n − n
n n − n − n
n · n − n n n − n
n n
n n − n − n n n − n − n
n
n n − n n
n
n n − n − n n n − n − n
n
n n ≜
− n − − n
n n
× ×
× ×
Applied Mathematics – Honours
×
≈
∗ ∗ ∗
n
∗
∗
− ∗ − − ∗
h i
∗ ∗ ∗ ∗
− − −
̸
h i
∗ ∗ ∗
− − − −
∗
∗ ∗
− − − − − − − − −
− − − − −
̸
√ p
∗ − ± − − − ± − − − −
,
−
∗ − −
̸
− −
p∗ / p∗3 ∈ ,
Applied Mathematics – Honours
β < x, δ
• ∗
• ∗
• ∗ ∗
′ ∗ ∗
| | ⇒
′ ∗ ∗
| | ⇒
′
−
−
′ ′
′ − −
≤ ≤
• ∗
• ∗
• ∗
̸
∗ ∗
n
n
Applied Mathematics – Honours
•
∗
•
∗
n n − n
n n
n n − n − n
∗ ∗ ∗ ∗ ∗
−
∗ ∗
p
∗ − ± − − −
,
−
− − − −
∗ − n n
− n − n
Applied Mathematics – Honours
• ∗
• ∗
• ∗
∈
∗ ′ ∗
| |
• ∗
• ∗
∗
• ∗
inconclusive ′
∗
• ∗
| ′ ∗
|
heterozygote advantage
∗
Applied Mathematics – Honours
n →
n →
∗
n → ∈
n n
∈
∗
∗
′
′ ∗
Applied Mathematics – Honours
∗ ∗
∗
∈
∗ ∗
′ ∗
| |
∗
∗ ′ ∗
n − n
n → →∞
•
2D Dynamical Systems
Consider a continuous system of interacting species in which species x is the prey and
species y is the predator. The interaction is a predator–prey interaction.
So the model is given by
dx
= rx − a12 xy ,
dt |{z} | {z }
growth of prey decline of prey
dy
= a21 xy − δy .
dt | {z } |{z}
growth of predator decline of predator
Here:
Consistency of Units
Consider
dx
= rx − a12 xy,
dt
prey 1 1
= ·prey − ·prey · pred,
|time
{z } |time{z } prey · time
| {z }
dx r a12
dt
1 1
so r = and a12 = .
time pred · time
1
Converting to a Discrete System
Converting the continuous system into a discrete system results in the following:
x∗ = f (x∗ , y ∗ ),
y ∗ = g(x∗ , y ∗ ).
xn = x∗ + un =⇒ xn+1 = x∗ + un+1 ,
yn = y ∗ + vn =⇒ yn+1 = y ∗ + vn+1 ,
where un , vn are small perturbations around the steady state.
So
2
Note that
∂f (x∗ , y ∗ ) ∂f (x∗ , y ∗ )
∂x ∂y
J = ∂g(x∗ , y ∗ ) ∂g(x∗ , y ∗ ) .
∂x ∂y
The stability of (∗) is determined by the eigenvalues of J. If the eigenvalues of J, say λi ,
satisfy:
(a) |λi | < 1 for i = 1, 2, then (∗) is stable,
(b) |λi | > 1, then (∗) is unstable,
(c) |λi | = 1, we cannot conclude.
3
Consider (∗∗):
p p
tr J + (tr J)2 − 4 det J tr J + (tr J)2 − 4 det J
< 1 =⇒ −1 < < 1,
2 2
p
=⇒ −2 < tr J + (tr J)2 − 4 det J < 2,
p
=⇒ −2 − tr J < (tr J)2 − 4 det J < |2 −{ztr J} .
| {z }
(a)
p
For (a): (tr J)2 − 4 det J < 2 − tr J. Squaring both sides:
tr J < 1 + det J.
Exercise: Use (∗ ∗ ∗) to obtain further relationships between the trace and determinant.
(A) provides the necessary and sufficient condition for the eigenvalues of J to have mag-
nitude less than 1.
The conditions in (A) are called the Jury conditions.
det J
(−3, 1) (2, 1)
1 det J = 1
Stable
tr J
−3 −2 −1 1 2 3
−1
(0, −1)
4
Love Affairs
Consider two lovers, Romeo and Juliet, where the love of Romeo at time step n is Rn and
that of Juliet is Jn .
The dynamics of their love affair is given by
)
Rn+1 = ar Rn + pr Jn
(1)
Jn+1 = aj Jn + pj Rn
At equilibrium:
R∗ = ar R∗ + pr J ∗ =⇒ (ar − 1) R∗ + pr J ∗ = 0,
J ∗ = aj J ∗ + pj R∗ =⇒ pj R∗ + (aj − 1) J ∗ = 0.
In matrix form: ∗
ar − 1 pr R 0
∗ = .
pj aj − 1 J 0
At steady state (R∗ , J ∗ ) = (0, 0).
System (1) has a unique solution (0, 0) provided det A ̸= 0, where
ar − 1 pr
A= .
pj aj − 1
A special case is when Romeo and Juliet preserve their love/hate from day to day, i.e.
ar + pj = 1 and pr + aj = 1.
5
Mathematical Modelling
Introduction
Modelling involves translating real-life scenarios into models.
Definition:
A model is a representation of a real-life scenario.
Models are classified by their representational form:
If represented physically, we have a physical model.
If represented mathematically, we have a mathematical model.
If represented statistically, we have a statistical model, and so on.
Results do not
match the problem
Conceptualisation
Interpretation &Application
Real-lifeScenario Conceptualisation:Identify Problem
Interpretation &Application
1
Step 2 — Conceptualise the Model
Identify the state variables.
Understand the dynamics/interplay and linkages between the state variables.
Set parameters — rates of flow, growth, decline, etc.
State Variables
Model
2
System (1) constitutes a mathematical model of RBC production dynamics.
Parameter summary:
Parameter Description
a Rate of loss of RBCs
β Rate of RBC production from bone marrow
ε Rate of loss of bone marrow
δ Rate of growth of bone marrow
Re Baseline (equilibrium) level of RBCs
Model Equations
3
SIR Model Equations
Tutorial Problems
Problem 1 — Red Blood Cell Precursor Model
Let Mt be the concentration of red blood cell precursors in the bone marrow, and Rt the
concentration of mature red blood cells in circulation. Consider the discrete model:
4
Problem 3 — Influenza Spread (SIR with Population)
The spread of influenza between susceptibles S, infectives I, and the recovered R is
modelled by:
St It
St+1 = St − β ,
N
St It
It+1 = It + β − δIt ,
N
Rt+1 = Rt + γIt ,
where all parameters are assumed positive and N is the total population.
(a) Interpret the parameters β and δ.
(b) Show that the total population remains constant over time.
(c) If the disease-free equilibrium is (S ∗ , 0, 0), derive the conditions for the stability of
this steady state.
5
Population Dynamics Weeks 1011
Population Dynamics
Weeks 1011: HostParasitoid Systems and Interacting Species
1. HostParasitoid Systems
Denition 1.1. A parasitoid is an insect that lays its eggs inside a host. The host is
then responsible for generating the next generation of parasitoids.
Let
where
1
Population Dynamics Weeks 1011
∗
H ∗ = kH ∗ e−aP , (1)
−aP ∗
P ∗ = cH ∗ 1 − e (2)
.
From (1):
∗ ∗
H ∗ 1 − ke−aP = 0 =⇒ H ∗ = 0 or 1 = ke−aP .
Case 1: H ∗ = 0. Substituting into (2) gives P ∗ = 0. This yields the trivial steady
state
E0 = (0, 0).
1 ∗ ∗ ln k
= e−aP =⇒ k = eaP =⇒ ln k = aP ∗ =⇒ P∗ = .
k a
ln k
Substituting P ∗ = into (2):
a
ln k ∗
−a· lnak
∗ − ln k ∗ 1 k−1
= cH ∗ ·
= cH 1 − e = cH 1 − e = cH 1 − .
a k k
Therefore
k ln k
H∗ = .
ac(k − 1)
To study the stability of the non-trivial steady state, we compute the Jacobian matrix of
system (∗) at E1 .
2
Population Dynamics Weeks 1011
∗ ∗ k ln k
Evaluating at E1 using ke−aP = 1 (i.e. e−aP = 1/k ) and H ∗ = :
ac(k − 1)
∗
J11 = ke−aP = 1,
∗ k ln k 1 k ln k
J12 = −akH ∗ e−aP = −ak · · =− ,
ac(k − 1) k c(k − 1)
−aP ∗
1 c(k − 1)
J21 =c 1−e =c 1− = ,
k k
∗ 1 k ln k ln k
J22 = ace−aP H ∗ = ac · · = .
k ac(k − 1) k−1
k ln k
1 −
c(k − 1)
(3)
JE1 =
.
c(k − 1) ln k
k k−1
The trace and determinant of JE1 are:
ln k
tr JE1 = 1 + , (4)
k−1
ln k ln k
det JE1 = + ln k = ln k + . (5)
k−1 k−1
For a 2 × 2 discrete-time map, the non-trivial steady state is locally asymptotically stable
if and only if the Jury conditions hold:
3
Population Dynamics Weeks 1011
This simplies to 0 < ln k , which holds for all k > 1. Condition 1 is satised.
Condition 2: 1 + det JE1 < 2. This requires det JE1 < 1, i.e.
ln k
ln k + < 1.
k−1
ln k
ln k + > 1.
k−1
f (1) = 1 · 0 − 1 + 1 = 0.
1
f ′ (k) = ln k + k · − 1 = ln k > 0 for k > 1.
k
So f is strictly increasing for k > 1, hence f (k) > f (1) = 0 for all k > 1. Therefore
ln k
ln k + > 1 for all k > 1,
k−1
which means det JE1 > 1 and the Jury condition 1 + det JE1 < 2 is not satised.
Instability of E1
The Jury condition 1 + det JE1 < 2 fails for all k > 1. Consequently, the coexistence
equilibrium E1 of the NicholsonBailey model is unstable.
To correct the instability of the coexistence equilibrium, the NicholsonBailey model can
be modied by introducing logistic self-regulation in the host. The adjusted model is:
4
Population Dynamics Weeks 1011
Exercise
Carry out the full stability analysis of model (∗∗).
This is a competing species model. The interaction of the two species leads to a
decline in both populations: the terms −µ3 An Bn and −µ4 An Bn represent the negative
eect each species has on the other's growth.
A∗ = µ1 A∗ − µ3 A∗ B ∗ = A∗ [µ1 − 1 − µ3 B ∗ ] ,
B ∗ = µ2 B ∗ − µ4 A∗ B ∗ = B ∗ [µ2 − 1 − µ4 A∗ ] .
µ1 − 1
From the rst equation: A∗ = 0 or B ∗ = .
µ3
µ2 − 1
From the second equation: B ∗ = 0 or A∗ = .
µ4
5
Population Dynamics Weeks 1011
Thus
λ1 ≈ 1.245, |λ1 | > 1; λ2 ≈ 0.755, |λ2 | < 1.
Since one eigenvalue lies outside the unit circle, the coexistence point is a saddle point
and hence unstable.
6
Population Dynamics Weeks 1011
The presence of each species increases the eective carrying capacity of the other
(through the terms αyn and βxn in the denominators). This is a model of symbiosis
(mutualism).
3. Tutorial Problems
Exercise
Problem 1. Consider a hostparasitoid model given by
−k
aPn
Hn+1 = f Hn 1 + ,
k (8)
H
Pn+1 = Hn − n+1 ,
f
where f , k , a are positive constants. Find the steady states and determine their
stabilities.
Exercise
Problem 2. Consider a model for leaf-eating herbivores whose population size at
stage n is Hn , living on a tree with leaf mass Vn :
k(1−Hn )
Vn+1 = Vn e
,
1 Hn
k, b > 0. (9)
Hn+1 = bHn 1 + −
,
b Vn
7
Population Dynamics Weeks 1011
Exercise
Problem 3. Consider the model
xn+1 = α xn ynβ ,
σyn α, β, σ, δ > 0. (10)
yn+1 =
,
δ + xn
(b) Find the steady states and the conditions under which they exist.
xn 1
(c) By dening Xn = and Yn = α β yn , show that model (10) transforms to
σ−δ
β
Xn+1 = Xn Yn ,
Yn (∗)
Yn+1 =
,
ε + Xn (1 − ε)
where ε is to be determined.
Exercise
Problem 4. Consider the model
Nt
Nt+1 = Nt exp r 1 −
− aPt ,
k r, k, a > 0. (11)
Pt+1 = Nt 1 − e−aPt ,
(b) Find the trivial steady state and determine its stability.
8
Practical 1 - Discrete model
Design and simulating a model for Flu
Objective: The main objective is to develop a flu model taking into account the epidemiology
of the disease and fit the designed model to data in Excel.
Model
Influenza or flu is a viral infection that is readily transmitted through the air and
causes respiratory problems in humans and other animals. It occurs seasonally
and may result in deaths among the young and old.
Draw the flow diagram of the model that takes into account the described transmission
process. SUGGEST YOUR OWN MODEL. I suggest you draw the model in power point
and paste it here.
Attach parameters to the flow diagram and then work out the DISCRETE algebraic
expressions for the word equations above. Rewrite the equations in algebraic form in the
table below:
List all the major assumptions made in this model (At least 5)
1……………………………………………………………………………………………..
2………………………………………………………………………………………………
3……………………………………………………………………………………………….
4……………………………………………………………………………………………….
5………………………………………………………………………………………………
Model Simulation
Suppose the proposed model is of the `SEIR’ type. The equation in R is often called a
redundant equation, since those in R are not involved in the transmission of the disease.
We want to simulate the SEIR model and try to fit it to data, the 1978 English boarding school
influenza outbreak. The data is for the daily number of children confined to bed in a boarding school
in North England during the outbreak in 1978 of the reemerging A/H1N1 strain. The school had 763
boys of which 512 boys were confined to bed sometime during the outbreak. The data for the
confirmed cases is shown as follows:
Assume that the control population consists of N = 763, which is based on the number of students.
Taking I0 = 3, (E0 = 4 assumed) and S0 = 756 = N -E0 - [Link] would like to simulate the model and
determine the best values of the parameters, that match the data from the model. These parameters are
key to understanding the nature of a disease.
Epidemiologists often examine what is called the basic reproduction ratio given by
which provides a measure of how rapidly a disease will spread and how much of the population will
be affected by a particular disease.
We simulate the model, finding the Least Sum of Square Errors (LSSE) by changing the
parameters, infection rate, progression rate and recovery rate. The SSE is found from the difference
between the data on the infecteds and the model simulation of In.
Instructions
Fixed points appear as intersections of y = f(x) with y = x. An attracting fixed point "pulls" the cobweb
inward (a spiral or staircase that tightens); a repelling one pushes it outward. Periodic orbits produce
closed polygonal paths that cycle repeatedly through p segments.
function logistic_cobweb_and_bifurcation()
% LOGISTIC_COBWEB_AND_BIFURCATION
% Runs a cobweb diagram (for a chosen r and x0) AND a bifurcation diagram
% for the logistic map x_{n+1} = r x_n (1 - x_n), showing chaos.
%
% Just run:
% logistic_cobweb_and_bifurcation
% =====================================================================
% COBWEB (internal)
% =====================================================================
function cobweb_diagram_internal(f, r, x0, N, x_range)
% Orbit
x = zeros(1, N+1);
x(1) = x0;
for k = 1:N
x(k+1) = f(x(k), r);
if ~isfinite(x(k+1))
error('Non-finite orbit at k=%d.', k);
end
end
% Cobweb path
cx = zeros(1, 2*N + 1);
cy = zeros(1, 2*N + 1);
for k = 1:N
cx(2*k) = x(k); cy(2*k) = x(k+1);
cx(2*k+1) = x(k+1); cy(2*k+1) = x(k+1);
end
% Plot
figure('Color','w','Name','Cobweb (Logistic Map)');
xp = linspace(x_range(1), x_range(2), 1000);
yp = f(xp, r);
% =====================================================================
% BIFURCATION DIAGRAM (Logistic Map)
% =====================================================================
function bifurcation_diagram_logistic(f, r_min, r_max, nr, burn_in, keep)
for i = 1:keep
x = f(x, r_vals);
R_plot(i, :) = r_vals;
X_plot(i, :) = x;
end
xlim([r_min r_max]);
ylim([0 1]);
grid on; box on;
end
Usage tip
The function accepts any anonymous function handle for f.
Example: cobweb_diagram(@(x) 3.5*x.*(1-x), 0.1, 100, [0 1], 'Logistic r=3.5')
Use vectorised operations (dot operators: .*, ./, .^) so that f can be evaluated on the plotting grid xp as
well as on scalars.
• Verify analytically: fixed points satisfy rx*(1−x*) = x*. Find x* and confirm |fʹ(x*)| < 1.
• Describe the shape of the cobweb (monotone staircase or oscillating spiral).
• Repeat with x₀ = 0.9. Does the orbit converge to the same fixed point?
• Count the distinct values visited. Confirm there are exactly four.
• Print x(end-8:end) in MATLAB to see the last nine iterates.
• How does the cobweb box differ visually from the period-2 case?
• Show that x* = 1 is always a fixed point of the Ricker map for any r.
• Compute fʹ(1) = 1−r. For r = 1.5, is the fixed point stable?
• What is the critical value of r at which x* = 1 loses stability?
• Find all fixed points by solving ax/(1+x²) = x. One solution is x = 0 — find the others.
• Classify each fixed point by computing fʹ(x*).
• Try x₀ = 2.0 (close to the unstable fixed point). How does the orbit behave?
• Find the nonzero fixed point x* of sin(πx) = x numerically (use MATLAB’s fzero or Newton’s
method).
• Compute |fʹ(x*)| = |π cos(πx*)| and determine its stability.
• The topological conjugacy h(x) = sin²(πx/2) maps the logistic r=4 orbit to the sine map orbit.
Verify this numerically for x₀ = 0.3.
End of Tutorial