tutorial: non-linear dynamics - leonardo pacciani-mori

270
Tutorial: non-linear dynamics Winter School on Quantitative Systems Biology: Quantitative Approaches in Ecosystem Ecology Leonardo Pacciani-Mori (University of Padua, Italy) November 30th and December 1st, 2020

Upload: others

Post on 16-Apr-2022

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Tutorial: non-linear dynamics

Winter School on Quantitative Systems Biology:Quantitative Approaches in Ecosystem Ecology

Leonardo Pacciani-Mori (University of Padua, Italy)November 30th and December 1st, 2020

Page 2: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Structure of the tutorial

Introduction: why is non-linearity interesting?

→ Examples of non-linearity in ecology

Stream plots

→ How to get a sense of the behavior of a non-linear system without solving it

Stability in non-linear systems

→ Lyapunov functions

→ Spectral analysis

Examples

Important

The aim of these tutorials is also to encourage discussion: please don’t hesitate to interrupt meand ask questions if you have them!!!

1

Page 3: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Structure of the tutorial

Introduction: why is non-linearity interesting?

→ Examples of non-linearity in ecology

Stream plots

→ How to get a sense of the behavior of a non-linear system without solving it

Stability in non-linear systems

→ Lyapunov functions

→ Spectral analysis

Examples

Important

The aim of these tutorials is also to encourage discussion: please don’t hesitate to interrupt meand ask questions if you have them!!!

1

Page 4: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Structure of the tutorial

Introduction: why is non-linearity interesting?

→ Examples of non-linearity in ecology

Stream plots

→ How to get a sense of the behavior of a non-linear system without solving it

Stability in non-linear systems

→ Lyapunov functions

→ Spectral analysis

Examples

Important

The aim of these tutorials is also to encourage discussion: please don’t hesitate to interrupt meand ask questions if you have them!!!

1

Page 5: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Structure of the tutorial

Introduction: why is non-linearity interesting?

→ Examples of non-linearity in ecology

Stream plots

→ How to get a sense of the behavior of a non-linear system without solving it

Stability in non-linear systems

→ Lyapunov functions

→ Spectral analysis

Examples

Important

The aim of these tutorials is also to encourage discussion: please don’t hesitate to interrupt meand ask questions if you have them!!!

1

Page 6: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Structure of the tutorial

Introduction: why is non-linearity interesting?

→ Examples of non-linearity in ecology

Stream plots

→ How to get a sense of the behavior of a non-linear system without solving it

Stability in non-linear systems

→ Lyapunov functions

→ Spectral analysis

Examples

Important

The aim of these tutorials is also to encourage discussion: please don’t hesitate to interrupt meand ask questions if you have them!!!

1

Page 7: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Structure of the tutorial

Introduction: why is non-linearity interesting?

→ Examples of non-linearity in ecology

Stream plots

→ How to get a sense of the behavior of a non-linear system without solving it

Stability in non-linear systems

→ Lyapunov functions

→ Spectral analysis

Examples

Important

The aim of these tutorials is also to encourage discussion: please don’t hesitate to interrupt meand ask questions if you have them!!!

1

Page 8: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Introduction

We would like to solve non-linear differential equations (nLDE), i.e.:

x = f (x) (1)

where f (x) is a non-linear function. For example:

x = sinx (2a)

x2 = xy y =xy

(2b)

xx = −y y = x2 (2c)

Why are nLDE important?

Every interesting and/or non-trivial phenomenon is described by nLDE.

2

Page 9: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Introduction

We would like to solve non-linear differential equations (nLDE), i.e.:

x = f (x) (1)

where f (x) is a non-linear function.

For example:

x = sinx (2a)

x2 = xy y =xy

(2b)

xx = −y y = x2 (2c)

Why are nLDE important?

Every interesting and/or non-trivial phenomenon is described by nLDE.

2

Page 10: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Introduction

We would like to solve non-linear differential equations (nLDE), i.e.:

x = f (x) (1)

where f (x) is a non-linear function. For example:

x = sinx (2a)

x2 = xy y =xy

(2b)

xx = −y y = x2 (2c)

Why are nLDE important?

Every interesting and/or non-trivial phenomenon is described by nLDE.

2

Page 11: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Introduction

We would like to solve non-linear differential equations (nLDE), i.e.:

x = f (x) (1)

where f (x) is a non-linear function. For example:

x = sinx (2a)

x2 = xy y =xy

(2b)

xx = −y y = x2 (2c)

Why are nLDE important?

Every interesting and/or non-trivial phenomenon is described by nLDE.

2

Page 12: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

IntroductionExamples

1 Pendulum equation:

θ = −g

`sinθ (3)

2 Navier-Stokes equations (→ fluiddynamics). For an incompressible fluid:

∂~u∂t

+ (~u · ~∇)~u − ν∇2~u = −~∇w+ ~g (4)

3 Logistic growth equation:

x = rx(1− x

K

)(5)

4 Lotka-Volterra equations:

x = αx − βxy (6a)

y = δxy −γy (6b)

where:x > 0→ prey’s population, y > 0→predator’s population; α > 0→ prey’sgrowth rate, β > 0→ predation rate, δ > 0→ predator’s growth rate, γ > 0→predator’s death rate.If written as ~z = f (~z), with ~z = (x,y), f (~z) isnon-linear.

3

Page 13: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

IntroductionExamples

1 Pendulum equation:

θ = −g

`sinθ (3)

2 Navier-Stokes equations (→ fluiddynamics). For an incompressible fluid:

∂~u∂t

+ (~u · ~∇)~u − ν∇2~u = −~∇w+ ~g (4)

3 Logistic growth equation:

x = rx(1− x

K

)(5)

4 Lotka-Volterra equations:

x = αx − βxy (6a)

y = δxy −γy (6b)

where:x > 0→ prey’s population, y > 0→predator’s population; α > 0→ prey’sgrowth rate, β > 0→ predation rate, δ > 0→ predator’s growth rate, γ > 0→predator’s death rate.If written as ~z = f (~z), with ~z = (x,y), f (~z) isnon-linear.

3

Page 14: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

IntroductionExamples

1 Pendulum equation:

θ = −g

`sinθ (3)

2 Navier-Stokes equations (→ fluiddynamics). For an incompressible fluid:

∂~u∂t

+ (~u · ~∇)~u − ν∇2~u = −~∇w+ ~g (4)

3 Logistic growth equation:

x = rx(1− x

K

)(5)

4 Lotka-Volterra equations:

x = αx − βxy (6a)

y = δxy −γy (6b)

where:x > 0→ prey’s population, y > 0→predator’s population; α > 0→ prey’sgrowth rate, β > 0→ predation rate, δ > 0→ predator’s growth rate, γ > 0→predator’s death rate.If written as ~z = f (~z), with ~z = (x,y), f (~z) isnon-linear.

3

Page 15: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

IntroductionExamples

1 Pendulum equation:

θ = −g

`sinθ (3)

2 Navier-Stokes equations (→ fluiddynamics). For an incompressible fluid:

∂~u∂t

+ (~u · ~∇)~u − ν∇2~u = −~∇w+ ~g (4)

3 Logistic growth equation:

x = rx(1− x

K

)(5)

4 Lotka-Volterra equations:

x = αx − βxy (6a)

y = δxy −γy (6b)

where:x > 0→ prey’s population, y > 0→predator’s population; α > 0→ prey’sgrowth rate, β > 0→ predation rate, δ > 0→ predator’s growth rate, γ > 0→predator’s death rate.If written as ~z = f (~z), with ~z = (x,y), f (~z) isnon-linear.

3

Page 16: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

IntroductionExamples

1 Pendulum equation:

θ = −g

`sinθ (3)

2 Navier-Stokes equations (→ fluiddynamics). For an incompressible fluid:

∂~u∂t

+ (~u · ~∇)~u − ν∇2~u = −~∇w+ ~g (4)

3 Logistic growth equation:

x = rx(1− x

K

)(5)

4 Lotka-Volterra equations:

x = αx − βxy (6a)

y = δxy −γy (6b)

where:x > 0→ prey’s population, y > 0→predator’s population; α > 0→ prey’sgrowth rate, β > 0→ predation rate, δ > 0→ predator’s growth rate, γ > 0→predator’s death rate.If written as ~z = f (~z), with ~z = (x,y), f (~z) isnon-linear.

3

Page 17: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 18: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 19: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 20: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 21: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 22: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 23: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 24: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Equilibria

nLDE are (almost) never solvable analytically(there is no theorem that can help us in general)

QuestionCan we obtain some information on anon-linear system without solving itanalytically?

One of the most interesting properties of dynamical systems are their equilibria:

x = f (x) ⇒ x∗ is an equilibrium if f (x∗) = 0 . (7)

“Informal” definitions

An equilibrium x∗ is said to be stable if any given solution x(t) with x0 = x(0) “closeenough” to x∗ will always remain “close” to x∗

An equilibrium x∗ is said to be unstable if there are solutions x(t) with x0 = x(0) “closeenough” to x∗ which go “away” from x∗

Question (revisited)

Can we obtain some information on a non-linear system’s equilibria (and their stability)without solving it analytically?

There are several ways we can do so. A very simple yet useful one is drawing stream plots, i.e.drawing trajectories of the system in the state space.

4

Page 25: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s see how to do this in a particular case:

x = x3 − x2 − 2x (8)

f (x) = x3 − x2 − 2x = x(x − 2)(x+ 1) (9a)

Therefore, the equilibria are:

x∗ = −1 x∗ = 0 x∗ = 2 (9b)

When f (x) > 0, x > 0 so x increases, and vicev-ersa x decreases when f (x) < 0.

We can get a sense of which equilibria are stableand which are unstable:

x∗ = 0→ stable; x∗ = −1, x∗ = 2→ unstable.

5

Page 26: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s see how to do this in a particular case:

x = x3 − x2 − 2x (8)

f (x) = x3 − x2 − 2x = x(x − 2)(x+ 1) (9a)

Therefore, the equilibria are:

x∗ = −1 x∗ = 0 x∗ = 2 (9b)

When f (x) > 0, x > 0 so x increases, and vicev-ersa x decreases when f (x) < 0.

We can get a sense of which equilibria are stableand which are unstable:

x∗ = 0→ stable; x∗ = −1, x∗ = 2→ unstable.

5

Page 27: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s see how to do this in a particular case:

x = x3 − x2 − 2x (8)

x

f (x)f (x) = x3 − x2 − 2x = x(x − 2)(x+ 1) (9a)

Therefore, the equilibria are:

x∗ = −1 x∗ = 0 x∗ = 2 (9b)

When f (x) > 0, x > 0 so x increases, and vicev-ersa x decreases when f (x) < 0.

We can get a sense of which equilibria are stableand which are unstable:

x∗ = 0→ stable; x∗ = −1, x∗ = 2→ unstable.

5

Page 28: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s see how to do this in a particular case:

x = x3 − x2 − 2x (8)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x = x(x − 2)(x+ 1) (9a)

Therefore, the equilibria are:

x∗ = −1 x∗ = 0 x∗ = 2 (9b)

When f (x) > 0, x > 0 so x increases, and vicev-ersa x decreases when f (x) < 0.

We can get a sense of which equilibria are stableand which are unstable:

x∗ = 0→ stable; x∗ = −1, x∗ = 2→ unstable.

5

Page 29: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s see how to do this in a particular case:

x = x3 − x2 − 2x (8)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x = x(x − 2)(x+ 1) (9a)

Therefore, the equilibria are:

x∗ = −1 x∗ = 0 x∗ = 2 (9b)

When f (x) > 0, x > 0 so x increases, and vicev-ersa x decreases when f (x) < 0.

We can get a sense of which equilibria are stableand which are unstable:

x∗ = 0→ stable; x∗ = −1, x∗ = 2→ unstable.

5

Page 30: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s see how to do this in a particular case:

x = x3 − x2 − 2x (8)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x = x(x − 2)(x+ 1) (9a)

Therefore, the equilibria are:

x∗ = −1 x∗ = 0 x∗ = 2 (9b)

When f (x) > 0, x > 0 so x increases, and vicev-ersa x decreases when f (x) < 0.

We can get a sense of which equilibria are stableand which are unstable:

x∗ = 0→ stable; x∗ = −1, x∗ = 2→ unstable.

5

Page 31: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s see how to do this in a particular case:

x = x3 − x2 − 2x (8)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x = x(x − 2)(x+ 1) (9a)

Therefore, the equilibria are:

x∗ = −1 x∗ = 0 x∗ = 2 (9b)

When f (x) > 0, x > 0 so x increases, and vicev-ersa x decreases when f (x) < 0.

We can get a sense of which equilibria are stableand which are unstable:

x∗ = 0→ stable; x∗ = −1, x∗ = 2→ unstable.

5

Page 32: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see another example:

x = cosx (10)

f (x) = cosx (11a)

Therefore, the equilibria are:

x∗ = ±(2k + 1)π2

k = 0,1,2, . . . (11b)

k even and x∗ > 0, or k odd and x∗ < 0→ stable;k odd and x∗ > 0, or k even and x∗ < 0→ unstable

6

Page 33: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see another example:

x = cosx (10)

f (x) = cosx (11a)

Therefore, the equilibria are:

x∗ = ±(2k + 1)π2

k = 0,1,2, . . . (11b)

k even and x∗ > 0, or k odd and x∗ < 0→ stable;k odd and x∗ > 0, or k even and x∗ < 0→ unstable

6

Page 34: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see another example:

x = cosx (10)

x

f (x)f (x) = cosx (11a)

Therefore, the equilibria are:

x∗ = ±(2k + 1)π2

k = 0,1,2, . . . (11b)

k even and x∗ > 0, or k odd and x∗ < 0→ stable;k odd and x∗ > 0, or k even and x∗ < 0→ unstable

6

Page 35: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see another example:

x = cosx (10)

x

f (x)

π2

−π2

32π−3

f (x) = cosx (11a)

Therefore, the equilibria are:

x∗ = ±(2k + 1)π2

k = 0,1,2, . . . (11b)

k even and x∗ > 0, or k odd and x∗ < 0→ stable;k odd and x∗ > 0, or k even and x∗ < 0→ unstable

6

Page 36: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see another example:

x = cosx (10)

x

f (x)

π2

−π2

32π−3

f (x) = cosx (11a)

Therefore, the equilibria are:

x∗ = ±(2k + 1)π2

k = 0,1,2, . . . (11b)

k even and x∗ > 0, or k odd and x∗ < 0→ stable;k odd and x∗ > 0, or k even and x∗ < 0→ unstable

6

Page 37: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see another example:

x = cosx (10)

x

f (x)

π2

−π2

32π−3

f (x) = cosx (11a)

Therefore, the equilibria are:

x∗ = ±(2k + 1)π2

k = 0,1,2, . . . (11b)

k even and x∗ > 0, or k odd and x∗ < 0→ stable;k odd and x∗ > 0, or k even and x∗ < 0→ unstable

6

Page 38: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 39: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 40: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 41: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 42: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

tspace

x

x0 = K

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 43: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

tspace

x

x0 = K

x0 = 0

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 44: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

tspace

x

x0 = Kx0 = K

x0 = 0

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 45: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

tspace

x

x0 = Kx0 = Kx0 < K

x0 = 0

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 46: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

tspace

x

x0 = Kx0 = Kx0 < K

x0 > K

x0 = 0

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 47: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plots

Let’s see an ecologically relevant case wherewe can compare the analytic solution with thestream plot, the logistic equation:

x = rx(1− x

K

)(12)

We can solve the equation analytically:

x(t) =Kx0

x0 + (K − x0)e−rt(13)

Properties

x(t)t→∞−−−−→ K

x0 = 0⇒ x(t) = 0 or x0 = K ⇒ x(t) = K

Therefore, the behavior of the analytic solu-tion is the following:

tspace

x

x0 = Kx0 = Kx0 < K

x0 > K

x0 = 0

The maximal population that the system cansustain is K (→ carrying capacity).

7

Page 48: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsCan we study the behavior of the system without the analytical solution?

x = rx(1− x

K

)(14)

f (x) = rx(1− x

K

)= rx − r

Kx2 (15a)

Therefore, the equilibria are:

x∗ = 0 x∗ = K (15b)

x∗ = 0→ unstable; x∗ = K → stable.

ConclusionWe have indeed recovered the same behavior!

8

Page 49: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsCan we study the behavior of the system without the analytical solution?

x = rx(1− x

K

)(14)

f (x) = rx(1− x

K

)= rx − r

Kx2 (15a)

Therefore, the equilibria are:

x∗ = 0 x∗ = K (15b)

x∗ = 0→ unstable; x∗ = K → stable.

ConclusionWe have indeed recovered the same behavior!

8

Page 50: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsCan we study the behavior of the system without the analytical solution?

x = rx(1− x

K

)(14)

x

f (x)

f (x) = rx(1− x

K

)= rx − r

Kx2 (15a)

Therefore, the equilibria are:

x∗ = 0 x∗ = K (15b)

x∗ = 0→ unstable; x∗ = K → stable.

ConclusionWe have indeed recovered the same behavior!

8

Page 51: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsCan we study the behavior of the system without the analytical solution?

x = rx(1− x

K

)(14)

x

f (x)

0K

f (x) = rx(1− x

K

)= rx − r

Kx2 (15a)

Therefore, the equilibria are:

x∗ = 0 x∗ = K (15b)

x∗ = 0→ unstable; x∗ = K → stable.

ConclusionWe have indeed recovered the same behavior!

8

Page 52: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsCan we study the behavior of the system without the analytical solution?

x = rx(1− x

K

)(14)

x

f (x)

0K

f (x) = rx(1− x

K

)= rx − r

Kx2 (15a)

Therefore, the equilibria are:

x∗ = 0 x∗ = K (15b)

x∗ = 0→ unstable; x∗ = K → stable.

ConclusionWe have indeed recovered the same behavior!

8

Page 53: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsCan we study the behavior of the system without the analytical solution?

x = rx(1− x

K

)(14)

x

f (x)

0K

f (x) = rx(1− x

K

)= rx − r

Kx2 (15a)

Therefore, the equilibria are:

x∗ = 0 x∗ = K (15b)

x∗ = 0→ unstable; x∗ = K → stable.

ConclusionWe have indeed recovered the same behavior!

8

Page 54: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsCan we study the behavior of the system without the analytical solution?

x = rx(1− x

K

)(14)

x

f (x)

0K

f (x) = rx(1− x

K

)= rx − r

Kx2 (15a)

Therefore, the equilibria are:

x∗ = 0 x∗ = K (15b)

x∗ = 0→ unstable; x∗ = K → stable.

ConclusionWe have indeed recovered the same behavior!

8

Page 55: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 56: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 57: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 58: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 59: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 60: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

x > 0 x > 0

x < 0 x < 0

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 61: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

x > 0 x > 0

x < 0 x < 0

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 62: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

x > 0y < 0

x > 0y > 0

x < 0y < 0

x < 0y > 0

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 63: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

x > 0y < 0

x > 0y > 0

x < 0y < 0

x < 0y > 0

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 64: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stream plotsLet’s apply the same principle to the Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

):= f

(xy

),

x, y > 0α,β,γ,δ > 0 (16)

The equilibria are:(x∗

y∗

)=

(00

) (x∗

y∗

)=

(γ/δα/β

)(17)

We can see immediately that:

x0 = 0⇒(xy

)=

(0−γy

), y0 = 0⇒

(xy

)=

(αx0

)(18a)

x > 0 ⇒ x(α − βy) > 0 ⇒ y < α/β (18b)

y > 0 ⇒ y(δx −γ) > 0 ⇒ x > γ/δ (18c)

0 x

y

(γ/δα/β

)

x > 0y < 0

x > 0y > 0

x < 0y < 0

x < 0y > 0

0

The trajectories oscillate around theequilibrium (γ/δ,α/β)!

9

Page 65: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stability in non-linear systems

Stream plots are a very useful tool, particularly to get a sense of the system

Stream plots don’t give certain information about the stability of the equilibria

How can we study the stability of equilibria without solving a non-linear system?

There are two possible approaches:

Using Lyapunov functions

Spectral analysis

10

Page 66: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stability in non-linear systems

Stream plots are a very useful tool, particularly to get a sense of the system

Stream plots don’t give certain information about the stability of the equilibria

How can we study the stability of equilibria without solving a non-linear system?

There are two possible approaches:

Using Lyapunov functions

Spectral analysis

10

Page 67: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stability in non-linear systems

Stream plots are a very useful tool, particularly to get a sense of the system

Stream plots don’t give certain information about the stability of the equilibria

How can we study the stability of equilibria without solving a non-linear system?

There are two possible approaches:

Using Lyapunov functions

Spectral analysis

10

Page 68: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stability in non-linear systems

Stream plots are a very useful tool, particularly to get a sense of the system

Stream plots don’t give certain information about the stability of the equilibria

How can we study the stability of equilibria without solving a non-linear system?

There are two possible approaches:

Using Lyapunov functions

Spectral analysis

10

Page 69: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stability in non-linear systems

Stream plots are a very useful tool, particularly to get a sense of the system

Stream plots don’t give certain information about the stability of the equilibria

How can we study the stability of equilibria without solving a non-linear system?

There are two possible approaches:

Using Lyapunov functions

Spectral analysis

10

Page 70: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stability in non-linear systems

Stream plots are a very useful tool, particularly to get a sense of the system

Stream plots don’t give certain information about the stability of the equilibria

How can we study the stability of equilibria without solving a non-linear system?

There are two possible approaches:

Using Lyapunov functions

Spectral analysis

10

Page 71: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Stability in non-linear systems

Stream plots are a very useful tool, particularly to get a sense of the system

Stream plots don’t give certain information about the stability of the equilibria

How can we study the stability of equilibria without solving a non-linear system?

There are two possible approaches:

Using Lyapunov functions

Spectral analysis

10

Page 72: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 73: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 74: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 75: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A.

In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 76: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗.

Graphically:

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 77: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 78: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

A

x∗

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 79: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

AA

x∗B

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 80: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

AA

x∗

x(0)

B

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 81: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

AA

x∗

x(0)

B

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 82: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

AA

x∗

x(0)

B

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 83: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: stable equilibrium

The equilibrium x∗ is said to be stable if, for every neighborhood A of x∗ there is a neighborhood B ⊂ Asuch that the solutions starting from points in B will always remain inside A. In other words, x∗ isstable if every solution starting “close” to x∗ always remains “close” to x∗. Graphically:

AA

x∗

x(0)

B

If x∗ is stable not only ∀t ≥ 0, but∀t ∈ R, x∗ is said to be stable at alltimes.

If x∗ is stable and limt→∞ x(t) = x∗, x∗ issaid to be asymptotically stable.

11

Page 84: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: unstable equilibrium

The equilibrium x∗ is said to be unstable if it is not stable, i.e. if it exists one neighborhood A of x∗

such that for any choice of B ⊂ A there is always (at least) one initial condition x(0) ∈ B such that itssolution goes out of A.In other words, x∗ is unstable if there are solutions starting “close” to x∗ that eventually go “faraway” from x∗. Graphically:

A

x∗

x(0)

B

12

Page 85: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: unstable equilibrium

The equilibrium x∗ is said to be unstable if it is not stable, i.e. if it exists one neighborhood A of x∗

such that for any choice of B ⊂ A there is always (at least) one initial condition x(0) ∈ B such that itssolution goes out of A.

In other words, x∗ is unstable if there are solutions starting “close” to x∗ that eventually go “faraway” from x∗. Graphically:

A

x∗

x(0)

B

12

Page 86: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: unstable equilibrium

The equilibrium x∗ is said to be unstable if it is not stable, i.e. if it exists one neighborhood A of x∗

such that for any choice of B ⊂ A there is always (at least) one initial condition x(0) ∈ B such that itssolution goes out of A.In other words, x∗ is unstable if there are solutions starting “close” to x∗ that eventually go “faraway” from x∗.

Graphically:

A

x∗

x(0)

B

12

Page 87: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Some formal definitions

Let x∗ be an equilibrium for the system x = f (x), with x ∈Rn and f :D ⊂Rn→R

n is continuous.

Definition: unstable equilibrium

The equilibrium x∗ is said to be unstable if it is not stable, i.e. if it exists one neighborhood A of x∗

such that for any choice of B ⊂ A there is always (at least) one initial condition x(0) ∈ B such that itssolution goes out of A.In other words, x∗ is unstable if there are solutions starting “close” to x∗ that eventually go “faraway” from x∗. Graphically:

A

x∗

x(0)

B

12

Page 88: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functions

The principle behind this approach is the following:

Assume we have a system x = f (x) and x∗ isan equilibrium

Assume we can define a functionW : V →R (with V neighborhood of x∗)that is differentiable and has a relativeminimum in x∗

Let’s consider a solution x(t) of the system,and calculateW (x(t)). Then:→ ifW (x(t)) decreases, i.e. W < 0, x(t) will

move towards x∗, so x∗ is asymptoticallystable

→ ifW (x(t)) increases, i.e. W > 0, then x(t)will move away from x∗, and so x∗ isunstable

13

Page 89: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functions

The principle behind this approach is the following:

Assume we have a system x = f (x) and x∗ isan equilibrium

Assume we can define a functionW : V →R (with V neighborhood of x∗)that is differentiable and has a relativeminimum in x∗

Let’s consider a solution x(t) of the system,and calculateW (x(t)). Then:→ ifW (x(t)) decreases, i.e. W < 0, x(t) will

move towards x∗, so x∗ is asymptoticallystable

→ ifW (x(t)) increases, i.e. W > 0, then x(t)will move away from x∗, and so x∗ isunstable

x

W

x∗

x0

13

Page 90: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functions

The principle behind this approach is the following:

Assume we have a system x = f (x) and x∗ isan equilibrium

Assume we can define a functionW : V →R (with V neighborhood of x∗)that is differentiable and has a relativeminimum in x∗

Let’s consider a solution x(t) of the system,and calculateW (x(t)). Then:→ ifW (x(t)) decreases, i.e. W < 0, x(t) will

move towards x∗, so x∗ is asymptoticallystable

→ ifW (x(t)) increases, i.e. W > 0, then x(t)will move away from x∗, and so x∗ isunstable

x

WW

Vx∗

x0

13

Page 91: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functions

The principle behind this approach is the following:

Assume we have a system x = f (x) and x∗ isan equilibrium

Assume we can define a functionW : V →R (with V neighborhood of x∗)that is differentiable and has a relativeminimum in x∗

Let’s consider a solution x(t) of the system,and calculateW (x(t)).

Then:→ ifW (x(t)) decreases, i.e. W < 0, x(t) will

move towards x∗, so x∗ is asymptoticallystable

→ ifW (x(t)) increases, i.e. W > 0, then x(t)will move away from x∗, and so x∗ isunstable

x

WW

Vx∗

x0

13

Page 92: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functions

The principle behind this approach is the following:

Assume we have a system x = f (x) and x∗ isan equilibrium

Assume we can define a functionW : V →R (with V neighborhood of x∗)that is differentiable and has a relativeminimum in x∗

Let’s consider a solution x(t) of the system,and calculateW (x(t)). Then:→ ifW (x(t)) decreases, i.e. W < 0, x(t) will

move towards x∗, so x∗ is asymptoticallystable

→ ifW (x(t)) increases, i.e. W > 0, then x(t)will move away from x∗, and so x∗ isunstable

x

WW

Vx∗

x0x0

13

Page 93: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functions

The principle behind this approach is the following:

Assume we have a system x = f (x) and x∗ isan equilibrium

Assume we can define a functionW : V →R (with V neighborhood of x∗)that is differentiable and has a relativeminimum in x∗

Let’s consider a solution x(t) of the system,and calculateW (x(t)). Then:→ ifW (x(t)) decreases, i.e. W < 0, x(t) will

move towards x∗, so x∗ is asymptoticallystable

→ ifW (x(t)) increases, i.e. W > 0, then x(t)will move away from x∗, and so x∗ isunstable

x

WW

Vx∗

x0 x0

13

Page 94: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗.

Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 95: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 96: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 97: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 98: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 99: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 100: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 101: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 102: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 103: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsLyapunov’s second theorem

Let x∗ be an equilibrium of the system x = f (x), V a neighborhood of x∗ andW : V →R adifferentiable function with a local minimum in x∗. Then:

1 If W (x(t)) = 0⇒ x∗ is stable at all times

2 If W (x(t)) ≤ 0⇒ x∗ is stable

3 If W (x(t)) < 0⇒ x∗ is asymptotically stable

4 If W (x(t)) > 0⇒ x∗ is unstable

A functionW with the aforementioned properties is called Lyapunov function for x∗.

Pros and cons

This method can give a lot of information on equilibria

It only gives sufficient and not necessary conditions for (in)stability: an equilibrium can be(un)stable without having a Lyapunov function

It is not always easy to find Lyapunov functions (exception: conserved quantities)

14

x

W

Vx∗

Page 104: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s see if we can find a Lyapunov functions for the Lotka-Volterra equations.

dxdt

= αx − βxydy

dt= δxy −γy (19)

Dividing the first equation by the second:

dxdy

=αx − βxyδxy −γy

=xy·α − βyδx −γ

⇒ dxδx −γx

= dyα − βyy

⇒ dx(δ −

γ

x

)= dy

(αy− β

)(20)

Integrating on both sides:

δx −γ lnx+ const. = α lny − βy + const. ⇒ W := δx −γ lnx+ βy −α lny = const. (21)

Important

There is no “general recipe” to find a system’s Lyapunov function!

15

Page 105: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s see if we can find a Lyapunov functions for the Lotka-Volterra equations.

dxdt

= αx − βxydy

dt= δxy −γy (19)

Dividing the first equation by the second:

dxdy

=αx − βxyδxy −γy

=xy·α − βyδx −γ

⇒ dxδx −γx

= dyα − βyy

⇒ dx(δ −

γ

x

)= dy

(αy− β

)(20)

Integrating on both sides:

δx −γ lnx+ const. = α lny − βy + const. ⇒ W := δx −γ lnx+ βy −α lny = const. (21)

Important

There is no “general recipe” to find a system’s Lyapunov function!

15

Page 106: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s see if we can find a Lyapunov functions for the Lotka-Volterra equations.

dxdt

= αx − βxydy

dt= δxy −γy (19)

Dividing the first equation by the second:

dxdy

=αx − βxyδxy −γy

=xy·α − βyδx −γ

⇒ dxδx −γx

= dyα − βyy

⇒ dx(δ −

γ

x

)= dy

(αy− β

)(20)

Integrating on both sides:

δx −γ lnx+ const. = α lny − βy + const. ⇒ W := δx −γ lnx+ βy −α lny = const. (21)

Important

There is no “general recipe” to find a system’s Lyapunov function!

15

Page 107: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s see if we can find a Lyapunov functions for the Lotka-Volterra equations.

dxdt

= αx − βxydy

dt= δxy −γy (19)

Dividing the first equation by the second:

dxdy

=αx − βxyδxy −γy

=xy·α − βyδx −γ

⇒ dxδx −γx

= dyα − βyy

⇒ dx(δ −

γ

x

)= dy

(αy− β

)(20)

Integrating on both sides:

δx −γ lnx+ const. = α lny − βy + const. ⇒ W := δx −γ lnx+ βy −α lny = const. (21)

Important

There is no “general recipe” to find a system’s Lyapunov function!

15

Page 108: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s see if we can find a Lyapunov functions for the Lotka-Volterra equations.

dxdt

= αx − βxydy

dt= δxy −γy (19)

Dividing the first equation by the second:

dxdy

=αx − βxyδxy −γy

=xy·α − βyδx −γ

⇒ dxδx −γx

= dyα − βyy

⇒ dx(δ −

γ

x

)= dy

(αy− β

)(20)

Integrating on both sides:

δx −γ lnx+ const. = α lny − βy + const.

⇒ W := δx −γ lnx+ βy −α lny = const. (21)

Important

There is no “general recipe” to find a system’s Lyapunov function!

15

Page 109: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s see if we can find a Lyapunov functions for the Lotka-Volterra equations.

dxdt

= αx − βxydy

dt= δxy −γy (19)

Dividing the first equation by the second:

dxdy

=αx − βxyδxy −γy

=xy·α − βyδx −γ

⇒ dxδx −γx

= dyα − βyy

⇒ dx(δ −

γ

x

)= dy

(αy− β

)(20)

Integrating on both sides:

δx −γ lnx+ const. = α lny − βy + const. ⇒ W := δx −γ lnx+ βy −α lny = const. (21)

Important

There is no “general recipe” to find a system’s Lyapunov function!

15

Page 110: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s see if we can find a Lyapunov functions for the Lotka-Volterra equations.

dxdt

= αx − βxydy

dt= δxy −γy (19)

Dividing the first equation by the second:

dxdy

=αx − βxyδxy −γy

=xy·α − βyδx −γ

⇒ dxδx −γx

= dyα − βyy

⇒ dx(δ −

γ

x

)= dy

(αy− β

)(20)

Integrating on both sides:

δx −γ lnx+ const. = α lny − βy + const. ⇒ W := δx −γ lnx+ βy −α lny = const. (21)

Important

There is no “general recipe” to find a system’s Lyapunov function!

15

Page 111: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny.

Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 112: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 113: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 114: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 115: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .

Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 116: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 117: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq=

0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 118: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0

(23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 119: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

We have found the functionW = δx −γ lnx+ βy −α lny. Let’s find its extrema:(∂xW∂yW

)=

(δ −γ/xβ −α/y

)= 0 ⇔

x = γ/δy = α/β

⇒(γ/δα/β

)is the minimum ofW (22)

NoticeThe partial derivatives ofW diverge for (x,y) = (0,0)!

→ The equilibrium of the Lotka-Volterra equations is a (global) minimum forW .Let’s see howW behaves on the trajectories of the system:

W = δx −γ xx

+ βy −αy

y

L-V eq= 0 (23)

ConclusionThe equilibrium (γ/δ,α/β) of the Lotka-Volterra equations is stable at all times.We can’t say anything on the equilibrium (0,0).

16

Page 120: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s take a look at the trajectories of the Lotka-Volterra equations:

0 1 2 3 4 5 6x (preys)

0

2

4

6

8

10

y (p

reda

tors

)

x *

0

Trajectories of the Lotka-Volterra equations

0 5 10 15 20 25 30Time

1.0

1.5

2.0

2.5

3.0

3.5

4.0

Popu

latio

n

Solution of the Lotka-Volterra equationx (preys)y (predators)

x0 = y0 = 3

Simulations with α = 2/3, β = 1/3, γ = 2, δ = 1.

17

Page 121: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Lyapunov functionsExample

Let’s take a look at the trajectories of the Lotka-Volterra equations:

0 1 2 3 4 5 6x (preys)

0

2

4

6

8

10

y (p

reda

tors

)

x *

0

Trajectories of the Lotka-Volterra equations

0 5 10 15 20 25 30Time

1.0

1.5

2.0

2.5

3.0

3.5

4.0

Popu

latio

n

Solution of the Lotka-Volterra equationx (preys)y (predators)

x0 = y0 = 3

Simulations with α = 2/3, β = 1/3, γ = 2, δ = 1.

17

Page 122: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysis

The simplest approach that can be taken to study the stability of a non-linear system islinearizing it around its equilibria.

The underlying principle is that a non-linear system can be approximated by a linear one, if weare close enough to an equilibrium x∗:

x = f (x) = f (x∗)︸︷︷︸=0

+J(x − x∗) +H(x − x∗)2 +O(‖x − x∗‖3) ⇒ x ∼ J(x − x∗) (24)

where J is the Jacobian matrix of f computed in x∗:

Jij =∂if

∂xj(x∗) (f : Ω ⊂R

n→Rn) (25)

The eigenvalues of the jacobian matrix give us valuable information on the stability of x∗.

18

Page 123: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysis

The simplest approach that can be taken to study the stability of a non-linear system islinearizing it around its equilibria.

The underlying principle is that a non-linear system can be approximated by a linear one, if weare close enough to an equilibrium x∗:

x = f (x) = f (x∗)︸︷︷︸=0

+J(x − x∗) +H(x − x∗)2 +O(‖x − x∗‖3) ⇒ x ∼ J(x − x∗) (24)

where J is the Jacobian matrix of f computed in x∗:

Jij =∂if

∂xj(x∗) (f : Ω ⊂R

n→Rn) (25)

The eigenvalues of the jacobian matrix give us valuable information on the stability of x∗.

18

Page 124: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysis

The simplest approach that can be taken to study the stability of a non-linear system islinearizing it around its equilibria.

The underlying principle is that a non-linear system can be approximated by a linear one, if weare close enough to an equilibrium x∗:

x = f (x) = f (x∗)︸︷︷︸=0

+J(x − x∗) +H(x − x∗)2 +O(‖x − x∗‖3) ⇒ x ∼ J(x − x∗) (24)

where J is the Jacobian matrix of f computed in x∗:

Jij =∂if

∂xj(x∗) (f : Ω ⊂R

n→Rn) (25)

The eigenvalues of the jacobian matrix give us valuable information on the stability of x∗.

18

Page 125: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysis

The simplest approach that can be taken to study the stability of a non-linear system islinearizing it around its equilibria.

The underlying principle is that a non-linear system can be approximated by a linear one, if weare close enough to an equilibrium x∗:

x = f (x) = f (x∗)︸︷︷︸=0

+J(x − x∗) +H(x − x∗)2 +O(‖x − x∗‖3)

⇒ x ∼ J(x − x∗) (24)

where J is the Jacobian matrix of f computed in x∗:

Jij =∂if

∂xj(x∗) (f : Ω ⊂R

n→Rn) (25)

The eigenvalues of the jacobian matrix give us valuable information on the stability of x∗.

18

Page 126: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysis

The simplest approach that can be taken to study the stability of a non-linear system islinearizing it around its equilibria.

The underlying principle is that a non-linear system can be approximated by a linear one, if weare close enough to an equilibrium x∗:

x = f (x) = f (x∗)︸︷︷︸=0

+J(x − x∗) +H(x − x∗)2 +O(‖x − x∗‖3) ⇒ x ∼ J(x − x∗) (24)

where J is the Jacobian matrix of f computed in x∗:

Jij =∂if

∂xj(x∗) (f : Ω ⊂R

n→Rn) (25)

The eigenvalues of the jacobian matrix give us valuable information on the stability of x∗.

18

Page 127: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysis

The simplest approach that can be taken to study the stability of a non-linear system islinearizing it around its equilibria.

The underlying principle is that a non-linear system can be approximated by a linear one, if weare close enough to an equilibrium x∗:

x = f (x) = f (x∗)︸︷︷︸=0

+J(x − x∗) +H(x − x∗)2 +O(‖x − x∗‖3) ⇒ x ∼ J(x − x∗) (24)

where J is the Jacobian matrix of f computed in x∗:

Jij =∂if

∂xj(x∗) (f : Ω ⊂R

n→Rn) (25)

The eigenvalues of the jacobian matrix give us valuable information on the stability of x∗.

18

Page 128: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysis

The simplest approach that can be taken to study the stability of a non-linear system islinearizing it around its equilibria.

The underlying principle is that a non-linear system can be approximated by a linear one, if weare close enough to an equilibrium x∗:

x = f (x) = f (x∗)︸︷︷︸=0

+J(x − x∗) +H(x − x∗)2 +O(‖x − x∗‖3) ⇒ x ∼ J(x − x∗) (24)

where J is the Jacobian matrix of f computed in x∗:

Jij =∂if

∂xj(x∗) (f : Ω ⊂R

n→Rn) (25)

The eigenvalues of the jacobian matrix give us valuable information on the stability of x∗.

18

Page 129: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 130: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 131: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable

2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 132: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 133: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 134: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 135: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 136: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 137: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 138: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.

3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 139: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisLyapunov’s first theorem

Let x∗ be an equilibrium of the non-linear system x = f (x), x ∈Rn. Then:

1 All eigenvalues of J have negative real part⇒ x∗ is asymptotically stable2 At least one eigenvalue of J has positive real part⇒ x∗ is unstable

Pros and cons

This approach can be used in any non-linear system

The stability properties of a non-linear system are the same of its linearization

If at least one of the eigenvalues has null real part (i.e., it’s 0 or purely imaginary) and allothers have negative real part, we can’t say anything on x∗ (→ higher orders)

Marginal stability

An equilibrium is said to be marginally stable if it is neither asymptotically stable nor unstable.3 All the eigenvalues of J are purely imaginary⇒ x∗ is marginally stable

19

Page 140: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s see a couple of general examples.

x = x3 − x2 − 2x (26)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x (27a)

In this case the Jacobian is simply the derivative:

f ′(x) = 3x2 − 2x − 2 (27b)

and computing it in the three equilibria:

f ′(−1) = 3 f ′(0) = −2 f ′(2) = 6 (27c)

Therefore:x∗ = −1,x∗ = 2→ unstablex∗ = 0→ asymptotically stable

20

Page 141: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s see a couple of general examples.

x = x3 − x2 − 2x (26)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x (27a)

In this case the Jacobian is simply the derivative:

f ′(x) = 3x2 − 2x − 2 (27b)

and computing it in the three equilibria:

f ′(−1) = 3 f ′(0) = −2 f ′(2) = 6 (27c)

Therefore:x∗ = −1,x∗ = 2→ unstablex∗ = 0→ asymptotically stable

20

Page 142: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s see a couple of general examples.

x = x3 − x2 − 2x (26)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x (27a)

In this case the Jacobian is simply the derivative:

f ′(x) = 3x2 − 2x − 2 (27b)

and computing it in the three equilibria:

f ′(−1) = 3 f ′(0) = −2 f ′(2) = 6 (27c)

Therefore:x∗ = −1,x∗ = 2→ unstablex∗ = 0→ asymptotically stable

20

Page 143: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s see a couple of general examples.

x = x3 − x2 − 2x (26)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x (27a)

In this case the Jacobian is simply the derivative:

f ′(x) = 3x2 − 2x − 2 (27b)

and computing it in the three equilibria:

f ′(−1) = 3 f ′(0) = −2 f ′(2) = 6 (27c)

Therefore:x∗ = −1,x∗ = 2→ unstablex∗ = 0→ asymptotically stable

20

Page 144: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s see a couple of general examples.

x = x3 − x2 − 2x (26)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x (27a)

In this case the Jacobian is simply the derivative:

f ′(x) = 3x2 − 2x − 2 (27b)

and computing it in the three equilibria:

f ′(−1) = 3 f ′(0) = −2 f ′(2) = 6 (27c)

Therefore:x∗ = −1,x∗ = 2→ unstablex∗ = 0→ asymptotically stable

20

Page 145: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s see a couple of general examples.

x = x3 − x2 − 2x (26)

x

f (x)

0 2−1

f (x) = x3 − x2 − 2x (27a)

In this case the Jacobian is simply the derivative:

f ′(x) = 3x2 − 2x − 2 (27b)

and computing it in the three equilibria:

f ′(−1) = 3 f ′(0) = −2 f ′(2) = 6 (27c)

Therefore:x∗ = −1,x∗ = 2→ unstablex∗ = 0→ asymptotically stable

20

Page 146: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

What happens if k < 0 or k = 0?

Page 147: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

What happens if k < 0 or k = 0?

Page 148: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

What happens if k < 0 or k = 0?

Page 149: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

What happens if k < 0 or k = 0?

Page 150: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

What happens if k < 0 or k = 0?

Page 151: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

x

y

x > 0y < 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

0

21

What happens if k < 0 or k = 0?

Page 152: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

x

y

x > 0y < 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

0

21

What happens if k < 0 or k = 0?

Page 153: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

x

y

x > 0y < 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

x > 0y < 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

0

21

What happens if k < 0 or k = 0?

Page 154: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

x

y

x > 0y < 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

x > 0y < 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

0

21

What happens if k < 0 or k = 0?

Page 155: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

-2 -1 0 1 2

-2

-1

0

1

2

x

y

What happens if k < 0 or k = 0?

Page 156: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

-2 -1 0 1 2

-2

-1

0

1

2

x

y

What happens if k < 0 or k = 0?

Page 157: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

x = −x y = ky3 with k > 0 (28)

f

(xy

)=

(−xky3

)(29a)

The only equilibrium is (x,y) = (0,0), and the ja-cobian matrix is:

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(29b)

Therefore, the eigenvalues are −1 and 0 → wecan’t say anything about the equilibrium!

What if we draw the stream plot?

The equilibrium is unstable.In this case (0,0) is called saddle point.

21

-2 -1 0 1 2

-2

-1

0

1

2

x

y

What happens if k < 0 or k = 0?

Page 158: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.

Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 159: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)

⇒ f ′(x) = r − 2rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 160: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 161: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable,

f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 162: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.

Lotka-Volterra equations:(xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 163: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:

(xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 164: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)

⇒ J =(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 165: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 166: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)

⇒(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 167: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 168: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium:

J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 169: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 170: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 171: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα

→ this equilibrium is marginally stable.

22

Page 172: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Spectral analysisExamples

Let’s study both the logistic equation and the Lotka-Volterra system with the spectral analysis.Logistic equation:

x = f (x) = rx(1− x

K

)⇒ f ′(x) = r − 2

rKx (30)

Therefore: f ′(K) = −r < 0⇒ x∗ = K is asymptotically stable, f ′(0) = r > 0⇒ x∗ = 0 is unstable.Lotka-Volterra equations:(

xy

)=

(αx − βxyδxy −γy

)⇒ J =

(α − βy −βxδy δx −γ

)|x=0,y=0

=(α 00 −γ

)⇒

(00

)is unstable (31)

Let’s look at the other equilibrium: J =(α − βy −βxδy δx −γ

)|x=γ/δ,y=α/β

=(

0 −βγ/δδα/β 0

)(32)

Eigenvalues: ±i√γα→ this equilibrium is marginally stable.

22

Page 173: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable. This is an example of bistability.

23

Page 174: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

x

f (x)

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable. This is an example of bistability.

23

Page 175: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

x

f (x)

0 1−1

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable. This is an example of bistability.

23

Page 176: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

x

f (x)

0 1−1

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable. This is an example of bistability.

23

Page 177: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

x

f (x)

0 1−1

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable. This is an example of bistability.

23

Page 178: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

x

f (x)

0 1−1

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable. This is an example of bistability.

23

Page 179: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

x

f (x)

0 1−1

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable.

This is an example of bistability.

23

Page 180: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Another exampleLet’s see some other interesting examples.

x = −x3 + x = −x(x2 − 1) = f (x) (33)

x

f (x)

0 1−1

The equilibria are x∗ = 0 and x∗ = ±1.

The stream plot already suggests that x∗ = ±1 arestable, while x∗ = 0 is unstable. Using spectralanalysis:

f ′(x) = −3x2 + 1 (34a)

and computing it in the three equilibria:

f ′(0) = 1 f ′(±1) = −2 (34b)

Therefore, x∗ = ±1 are indeed stable, while x∗ =0 is unstable. This is an example of bistability.

23

Page 181: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Bistability

If we look at the system as a particle in a potential:

x = −V ′(x) with V (x) =x4

4− x

2

2⇒

(xv

)=

(v

−V ′(x)

)=

(v

−x3 + x

)(35)

x

V (x)

0 1−1

The system has two alternative stable equilibria.

External perturbations can move the systemfrom one equilibrium to the other.

24

Page 182: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Bistability

If we look at the system as a particle in a potential:

x = −V ′(x) with V (x) =x4

4− x

2

2

⇒(xv

)=

(v

−V ′(x)

)=

(v

−x3 + x

)(35)

x

V (x)

0 1−1

The system has two alternative stable equilibria.

External perturbations can move the systemfrom one equilibrium to the other.

24

Page 183: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Bistability

If we look at the system as a particle in a potential:

x = −V ′(x) with V (x) =x4

4− x

2

2⇒

(xv

)=

(v

−V ′(x)

)=

(v

−x3 + x

)(35)

x

V (x)

0 1−1

The system has two alternative stable equilibria.

External perturbations can move the systemfrom one equilibrium to the other.

24

Page 184: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Bistability

If we look at the system as a particle in a potential:

x = −V ′(x) with V (x) =x4

4− x

2

2⇒

(xv

)=

(v

−V ′(x)

)=

(v

−x3 + x

)(35)

x

V (x)

0 1−1

The system has two alternative stable equilibria.

External perturbations can move the systemfrom one equilibrium to the other.

24

Page 185: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Bistability

If we look at the system as a particle in a potential:

x = −V ′(x) with V (x) =x4

4− x

2

2⇒

(xv

)=

(v

−V ′(x)

)=

(v

−x3 + x

)(35)

x

V (x)

0 1−1

The system has two alternative stable equilibria.

External perturbations can move the systemfrom one equilibrium to the other.

24

Page 186: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Bistability

If we look at the system as a particle in a potential:

x = −V ′(x) with V (x) =x4

4− x

2

2⇒

(xv

)=

(v

−V ′(x)

)=

(v

−x3 + x

)(35)

x

V (x)

0 1−1

The system has two alternative stable equilibria.

External perturbations can move the systemfrom one equilibrium to the other.

24

Page 187: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separation

A technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 188: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.

In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 189: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 190: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different

→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 191: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.

Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 192: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast

⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 193: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly

⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 194: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0

⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 195: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x)

⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 196: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 197: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 198: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationA technique that is often useful in studying non-linear systems is that of timescale separation.In abstract, assume a system is described by two sets of variables xi and yj :

xi = fi(~x,~y) yj = gj (~x,~y) with i = 1, . . . ,Nx j = 1, . . . ,Ny (36)

It often happens that the timescales of the two variables are very different→ we can distinguishbetween “slow” and “fast” variables.Let’s assume xi → slow, yj → fast⇒ yj reach their stationary value very quickly⇒ we assumeyj = 0. Therefore:

yj = gj (~x,~y) = 0 ⇒ ~y = g−1(~x) ⇒ xi = fi(~x,g−1(~x)) (37)

This allows us to write the system only with xi .

NoticeThe validity of this approach depends on the system considered. We need somephenomenological knowledge on the system to justify this separation of timescales.

25

Page 199: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 200: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions.

For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 201: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 202: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 203: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0

⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 204: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by)

⇒ y = −(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 205: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 206: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 207: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0

⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 208: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2

⇒ x = a+cde− bdex2 (40)

26

Page 209: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

An example where this is often done is chemical reactions. For example, Gierer-Meinhardt’sactivator-inhibitor equations:

x = a− by + cx2

yy = d · x2 − ey (38)

(x→ activator, y → inhibitor).

1 The activator is much faster than the inhibitor:

x = 0 ⇒ x2 =1cy(−a+ by) ⇒ y = −

(adc

+ e)y +

bdcy2 (39)

2 The inhibitor is much faster than the activator:

y = 0 ⇒ y =dex2 ⇒ x = a+

cde− bdex2 (40)

26

Page 210: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s see an ecologically relavant example: MacArthur’s consumer-resource model.

It describes a system of NS speciescompeting for NR resources

The resources are supplied with constantrates, and the species uptake the resources

No other interaction between the species ispresent

The equations of the model are:

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (41)

where:ri(ci) =

cici +Ki

and σ = 1, . . . ,NS and i = 1, . . . ,NR (42)

How is the consumer-resource model built?

27

Page 211: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s see an ecologically relavant example: MacArthur’s consumer-resource model.

It describes a system of NS speciescompeting for NR resources

The resources are supplied with constantrates, and the species uptake the resources

No other interaction between the species ispresent

The equations of the model are:

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (41)

where:ri(ci) =

cici +Ki

and σ = 1, . . . ,NS and i = 1, . . . ,NR (42)

How is the consumer-resource model built?

27

Page 212: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s see an ecologically relavant example: MacArthur’s consumer-resource model.

It describes a system of NS speciescompeting for NR resources

The resources are supplied with constantrates, and the species uptake the resources

No other interaction between the species ispresent

The equations of the model are:

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (41)

where:ri(ci) =

cici +Ki

and σ = 1, . . . ,NS and i = 1, . . . ,NR (42)

How is the consumer-resource model built?

27

Page 213: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s see an ecologically relavant example: MacArthur’s consumer-resource model.

It describes a system of NS speciescompeting for NR resources

The resources are supplied with constantrates, and the species uptake the resources

No other interaction between the species ispresent

The equations of the model are:

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (41)

where:ri(ci) =

cici +Ki

and σ = 1, . . . ,NS and i = 1, . . . ,NR (42)

How is the consumer-resource model built?

27

Page 214: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s see an ecologically relavant example: MacArthur’s consumer-resource model.

It describes a system of NS speciescompeting for NR resources

The resources are supplied with constantrates, and the species uptake the resources

No other interaction between the species ispresent

The equations of the model are:

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (41)

where:ri(ci) =

cici +Ki

and σ = 1, . . . ,NS and i = 1, . . . ,NR (42)

How is the consumer-resource model built?27

Page 215: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (43)

It is often assumed that the resources ci are faster than the populations nσ (→ the moleculardynamics is faster than the population dynamics). Therefore:

ci = 0 ⇒ ri(ci) =si∑NS

σ=1nσασi⇒ nσ = nσ

NR∑i=1

viασisi∑NS

ρ=1nραρi− δσ

(44)

We can therefore describe the system using only the species’ populations.

28

Page 216: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (43)

It is often assumed that the resources ci are faster than the populations nσ (→ the moleculardynamics is faster than the population dynamics).

Therefore:

ci = 0 ⇒ ri(ci) =si∑NS

σ=1nσασi⇒ nσ = nσ

NR∑i=1

viασisi∑NS

ρ=1nραρi− δσ

(44)

We can therefore describe the system using only the species’ populations.

28

Page 217: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (43)

It is often assumed that the resources ci are faster than the populations nσ (→ the moleculardynamics is faster than the population dynamics). Therefore:

ci = 0

⇒ ri(ci) =si∑NS

σ=1nσασi⇒ nσ = nσ

NR∑i=1

viασisi∑NS

ρ=1nραρi− δσ

(44)

We can therefore describe the system using only the species’ populations.

28

Page 218: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (43)

It is often assumed that the resources ci are faster than the populations nσ (→ the moleculardynamics is faster than the population dynamics). Therefore:

ci = 0 ⇒ ri(ci) =si∑NS

σ=1nσασi

⇒ nσ = nσ

NR∑i=1

viασisi∑NS

ρ=1nραρi− δσ

(44)

We can therefore describe the system using only the species’ populations.

28

Page 219: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

nσ = nσ

NR∑i=1

viασiri(ci)− δσ

ci = si −NS∑σ=1

nσασiri(ci) (43)

It is often assumed that the resources ci are faster than the populations nσ (→ the moleculardynamics is faster than the population dynamics). Therefore:

ci = 0 ⇒ ri(ci) =si∑NS

σ=1nσασi⇒ nσ = nσ

NR∑i=1

viασisi∑NS

ρ=1nραρi− δσ

(44)

We can therefore describe the system using only the species’ populations.

28

Page 220: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s now consider the consumer-resource model with some slight changes:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici (45)

If we apply again the separation of timescales so that ci are the fast variables:

ci = 0 ⇒ ci =Qi

1− 1gi

NS∑σ=1

nσασi

(46)

Substituting in nσ and rearranging , we get:

nσ = nσλσ

1−NS∑ρ=1

βρσnρ

where: λσ =NR∑i=1

viασiQi − δσ βρσ =1λσ

NR∑i=1

viQigiασiαρi (47)

These are called generalized Lotka-Volterra equations.

29

Page 221: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s now consider the consumer-resource model with some slight changes:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici (45)

If we apply again the separation of timescales so that ci are the fast variables:

ci = 0 ⇒ ci =Qi

1− 1gi

NS∑σ=1

nσασi

(46)

Substituting in nσ and rearranging , we get:

nσ = nσλσ

1−NS∑ρ=1

βρσnρ

where: λσ =NR∑i=1

viασiQi − δσ βρσ =1λσ

NR∑i=1

viQigiασiαρi (47)

These are called generalized Lotka-Volterra equations.

29

Page 222: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s now consider the consumer-resource model with some slight changes:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici (45)

If we apply again the separation of timescales so that ci are the fast variables:

ci = 0 ⇒ ci =Qi

1− 1gi

NS∑σ=1

nσασi

(46)

Substituting in nσ and rearranging , we get:

nσ = nσλσ

1−NS∑ρ=1

βρσnρ

where: λσ =NR∑i=1

viασiQi − δσ βρσ =1λσ

NR∑i=1

viQigiασiαρi (47)

These are called generalized Lotka-Volterra equations.

29

Page 223: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s now consider the consumer-resource model with some slight changes:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici (45)

If we apply again the separation of timescales so that ci are the fast variables:

ci = 0 ⇒ ci =Qi

1− 1gi

NS∑σ=1

nσασi

(46)

Substituting in nσ and rearranging , we get:

nσ = nσλσ

1−NS∑ρ=1

βρσnρ

where: λσ =NR∑i=1

viασiQi − δσ βρσ =1λσ

NR∑i=1

viQigiασiαρi (47)

These are called generalized Lotka-Volterra equations.

29

Page 224: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Timescale separationExamples

Let’s now consider the consumer-resource model with some slight changes:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici (45)

If we apply again the separation of timescales so that ci are the fast variables:

ci = 0 ⇒ ci =Qi

1− 1gi

NS∑σ=1

nσασi

(46)

Substituting in nσ and rearranging , we get:

nσ = nσλσ

1−NS∑ρ=1

βρσnρ

where: λσ =NR∑i=1

viασiQi − δσ βρσ =1λσ

NR∑i=1

viQigiασiαρi (47)

These are called generalized Lotka-Volterra equations.

29

Page 225: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

That’s all!

Questions?

Page 226: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Backup slides

Page 227: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)

⇒ dxx (1− x/K)

= rdt ⇒ dxx

+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt ⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 228: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt

⇒ dxx

+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt ⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 229: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt ⇒ dx

x+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt ⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 230: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt ⇒ dx

x+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3

⇒ lnx

1− x/K= c+ rt ⇒ x

1− x/K= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 231: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt ⇒ dx

x+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt

⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 232: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt ⇒ dx

x+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt ⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 233: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt ⇒ dx

x+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt ⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 234: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt ⇒ dx

x+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt ⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert

⇒ x(t) =Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 235: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Solution of the logistic equationLet’s see how we can solve the logistic equation analytically:

x = rx(1− x

K

)⇒ dx

x (1− x/K)= rdt ⇒ dx

x+dx/K

1− x/K= rdt (48)

Integrating on both sides:

lnx+ c1 − ln(1− x

K

)+ c2 = rt + c3 ⇒ ln

x1− x/K

= c+ rt ⇒ x1− x/K

= ec+rt = Cert (49)

We can determine the value of C by computing this expression at t = 0:

C =x0

1− x0/K=

Kx0

K − x0(50)

Therefore, with simple rearrangements:

x1− x/K

=Kx0

K − x0ert ⇒ x(t) =

Kx0

x0 + (K − x0)e−rt(51)

Back to original slide

1

Page 236: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

Back to original slide

Page 237: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

Back to original slide

Page 238: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.

Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

Back to original slide

Page 239: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.

The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

Back to original slide

Page 240: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.

The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

Back to original slide

Page 241: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.

The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

0

Back to original slide

Page 242: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.

The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

0

Back to original slide

Page 243: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.

The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

x > 0y > 0

x < 0y > 0

x > 0y < 0

x < 0y < 0

0

Back to original slide

Page 244: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.

The equilibrium is asymptotically stable!Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

x > 0y > 0

x < 0y > 0

x > 0y < 0

x < 0y < 0

0

Back to original slide

Page 245: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!

Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

-2 -1 0 1 2

-2

-1

0

1

2

x

y

Back to original slide

Page 246: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.

Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!

Let’s draw the stream plot for k = 0.

All points with x = 0 are equilibria.

x

y

-2 -1 0 1 2

-2

-1

0

1

2

x

y

Back to original slide

Page 247: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.

Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!

Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

Back to original slide

Page 248: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.

Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!

Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

x > 0y = 0

x < 0y = 0

x > 0y = 0

x < 0y = 0

Back to original slide

Page 249: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.

Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!

Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

x

y

x

y

x > 0y > 0

x < 0y < 0

x > 0y > 0

x < 0y > 0

x > 0y = 0

x < 0y = 0

x > 0y = 0

x < 0y = 0

Back to original slide

Page 250: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.

Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!

Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

-2 -1 0 1 2

-2

-1

0

1

2

x

y

Back to original slide

Page 251: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

Example on spectral analysis

2

x = −x y = ky3 with k < 0 and k = 0 (52)

J =(−1 00 3ky2

)|y=0

=(−1 00 0

)(53a)

The jacobian matrix is always the same→→ it doesn’t depend on k.

Let’s draw the stream plot for k < 0.The equilibrium is asymptotically stable!

Let’s draw the stream plot for k = 0.All points with x = 0 are equilibria.

-2 -1 0 1 2

-2

-1

0

1

2

x

y

Back to original slide

Page 252: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built.

We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates siTherefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 253: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built. We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates siTherefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 254: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built. We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates siTherefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 255: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built. We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates siTherefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 256: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built. We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates siTherefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 257: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built. We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates siTherefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 258: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built. We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates si

Therefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 259: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

Let’s see how the consuemr-resource model is built. We start from a very general form:

nσ = nσ (growth−death) ci = supply−uptake (54)

We assume that:

each species σ uptakes resource i with a rate Jσi

this uptake is converted proportionally to a growth contribution, i.e. g(i)σ = viJσi

the total growth rate is the sum of all these contributions, i.e. gσ =∑NRi=1 g

(i)σ

the death rates δσ are constant

the resurces are supplied with constant rates siTherefore:

nσ = nσ

NR∑i=1

viJσi − δσ

ci = si −NS∑σ=1

Jσinσ (55)

3

Page 260: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

4

Page 261: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

We need some assumption for the uptake rates Jσi .

We use:

Jσi = ασic

ci +Ki(56)

This way the uptake rate saturates at high resource concentrations. Therefore:

nσ = nσ

NR∑i=1

viασic

ci +Ki− δσ

ci = si −NS∑σ=1

nσασic

ci +Ki, (57)

Alternatively, we can assume Jσi = ασici , but we need a logistic term instead of si to limit theuptake rates:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici , (58)

Back to original slide

5

Page 262: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

We need some assumption for the uptake rates Jσi . We use:

Jσi = ασic

ci +Ki(56)

This way the uptake rate saturates at high resource concentrations.

Therefore:

nσ = nσ

NR∑i=1

viασic

ci +Ki− δσ

ci = si −NS∑σ=1

nσασic

ci +Ki, (57)

Alternatively, we can assume Jσi = ασici , but we need a logistic term instead of si to limit theuptake rates:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici , (58)

Back to original slide

5

Page 263: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

We need some assumption for the uptake rates Jσi . We use:

Jσi = ασic

ci +Ki(56)

This way the uptake rate saturates at high resource concentrations. Therefore:

nσ = nσ

NR∑i=1

viασic

ci +Ki− δσ

ci = si −NS∑σ=1

nσασic

ci +Ki, (57)

Alternatively, we can assume Jσi = ασici , but we need a logistic term instead of si to limit theuptake rates:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici , (58)

Back to original slide

5

Page 264: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

The consumer-resource model

We need some assumption for the uptake rates Jσi . We use:

Jσi = ασic

ci +Ki(56)

This way the uptake rate saturates at high resource concentrations. Therefore:

nσ = nσ

NR∑i=1

viασic

ci +Ki− δσ

ci = si −NS∑σ=1

nσασic

ci +Ki, (57)

Alternatively, we can assume Jσi = ασici , but we need a logistic term instead of si to limit theuptake rates:

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici , (58)

Back to original slide

5

Page 265: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

From C-R to generalized L-V

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici

ci = 0 ⇒ ci =Qi

1− 1gi

NS∑σ=1

nσασi

(59)

Substituting in nσ :

nσ =

NR∑i=1

viασiQi −NR∑i=1

viασiQigi

NS∑ρ=1

nραρi − δσ

=

= nσ

NR∑i=1

viασiQi − δσ

1− 1∑NR

i=1 viασiQi − δσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(60)

6

Page 266: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

From C-R to generalized L-V

nσ = nσ

NR∑i=1

viασici − δσ

ci = gici

(1− ci

Qi

)−NS∑σ=1

nσασici

ci = 0 ⇒ ci =Qi

1− 1gi

NS∑σ=1

nσασi

(59)

Substituting in nσ :

nσ =

NR∑i=1

viασiQi −NR∑i=1

viασiQigi

NS∑ρ=1

nραρi − δσ

=

= nσ

NR∑i=1

viασiQi − δσ

1− 1∑NR

i=1 viασiQi − δσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(60)

6

Page 267: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

From C-R to generalized L-V

nσ = nσ

NR∑i=1

viασiQi − δσ

1− 1∑NR

i=1 viασiQi − δσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(61)

Then:

λσ :=NR∑i=1

viασiQi − δσ ⇒ nσ = nσλσ

1− 1λσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(62)

Finally:

βρσ :=1λσ

NS∑i=1

viQigiασiαρi ⇒ nσ = nσλσ

1−NS∑ρ=1

βρσnρ

(63)

Back to original slide

7

Page 268: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

From C-R to generalized L-V

nσ = nσ

NR∑i=1

viασiQi − δσ

1− 1∑NR

i=1 viασiQi − δσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(61)

Then:

λσ :=NR∑i=1

viασiQi − δσ

⇒ nσ = nσλσ

1− 1λσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(62)

Finally:

βρσ :=1λσ

NS∑i=1

viQigiασiαρi ⇒ nσ = nσλσ

1−NS∑ρ=1

βρσnρ

(63)

Back to original slide

7

Page 269: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

From C-R to generalized L-V

nσ = nσ

NR∑i=1

viασiQi − δσ

1− 1∑NR

i=1 viασiQi − δσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(61)

Then:

λσ :=NR∑i=1

viασiQi − δσ ⇒ nσ = nσλσ

1− 1λσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(62)

Finally:

βρσ :=1λσ

NS∑i=1

viQigiασiαρi ⇒ nσ = nσλσ

1−NS∑ρ=1

βρσnρ

(63)

Back to original slide

7

Page 270: Tutorial: non-linear dynamics - Leonardo Pacciani-Mori

From C-R to generalized L-V

nσ = nσ

NR∑i=1

viασiQi − δσ

1− 1∑NR

i=1 viασiQi − δσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(61)

Then:

λσ :=NR∑i=1

viασiQi − δσ ⇒ nσ = nσλσ

1− 1λσ

NS∑ρ=1

NS∑i=1

viQigiασiαρi

(62)

Finally:

βρσ :=1λσ

NS∑i=1

viQigiασiαρi ⇒ nσ = nσλσ

1−NS∑ρ=1

βρσnρ

(63)

Back to original slide

7