You are on page 1of 51

Chaos and the Logistic Map

PHYS220 2004 by Lesa Moore


DEPARTMENT OF PHYSICS

Macquarie University

Different Types of Growth


Arithmetic Growth
70 60 50 40 y 30 20 10 0 0 5 10 15
Macquarie University

y = 2x + 10

20

25

30
2

Quadratic Growth
1200 1000 800 y(x) 600 400 200 0 0 5 10 15 x 20

y = x 2 - 2E-13x

25

30

35

Macquarie University

Cycl c
1.5 1 0.5 y(x) 0 0 -0.5 -1 -1.5 1 2

ow h & Decay

Macquarie University

Geometric Gro th
45 40 35 30 y(x) 25 20 15 10 5 0 0 2 4 x 6

y=e

0.4055x

10

Macquarie University

A Population Example


Every generation, the population of fish in a lake grows by 10%.


  

Nn is the population of generation n. r=1.1 is the constant growth rate. The difference equation is: Nn+1=rNn.

The population sequence for N1=100 is: 100, 110, 121, 133, 146, 161,
Macquarie University 6

The Analytical Solution




The rate of change of population N is:


dN ! EN dt

 

Separating the variables: And integrating both sides:

dN ! Edt N

dN ' N ' !E dt ' 0 N0 N ! Et ln N 0

Macquarie University

Final Steps


Exponentiating both sides:

N ! eEt N 0

Yields:

N ! N 0e

Et

This example exhibits geometric growth and the analytic solution is an exponential function.
Macquarie University 8

These Systems are Predictable




Arithmetic, quadratic and geometric growth, and cyclic growth and decay are predictable systems with analytical solutions. The state x(t) at time t may be predicted from the state at time t=0 using an analytical formula. Predictable for bank loans, filling a water tank, a simple pendulum.
Macquarie University 9

Linearity


Linear systems are easy to understand: double the input yields double the output.

Macquarie University

10

Unpredictability
 

Not all systems are predictable. Some systems have no analytical solutions. We now consider a different type of growth, known as logistic growth, which we will see is not predictable.


This system is an example of nonlinear dynamics.


Macquarie University 11

Logistic Growth


Describes the behaviour of a population that has limited resources (food, water, space). Growth of the population is limited by a carrying capacity K. The population increases, but becomes saturated as it gets closer to the carrying capacity forcing the rate of growth to decrease.
Macquarie University 12

Effect of the Limit




  

We want to know how the population N behaves when it gets close to the carrying capacity K. Will it level off and stabilise at N=K ? N<K ? Will it overshoot and settle back down? Will it go into an oscillation? Will it do something else?
Macquarie University 13

Logistic Growth Variables


 

How can we model this in Excel? Consider a population N and saturation level K such that 0 N K. Also introduce a variable x where:

N x| K


Think of x as a fraction of possible population .


Macquarie University 14

e.g.
 

Suppose that for Australia, K = 100,000,000. If the current population is Nn = 20,000,000 then:

Nn 1 xn | ! ! 0. 2 K 5


Of course, 0 xn 1 always and the remaining capacity is 1 - xn.


Macquarie University 15

The Logistic Difference Equation




   

Assume that the growth rate is not constant but proportional to the r w 1  xn remaining capacity: Growth rate term is now r (1-xn). For small xn growth rate is ~r. For large xn growth rate is ~0. Population from generation n to generation n+1 is given by: xn+1 = r (1-xn)xn .
Macquarie University 16

What is r ?


r remains as a parameter in the growth rate term {r (1-xn) }, but r itself is a variable. Its lower bound is zero (if r=0, population goes straight to zero; r<0 as cannot have a negative population).

Macquarie University

17

The Growth Rate Term




If you multiply existing population xn by 1, you get back the same population (stable). If r (1-xn) < 1, the population will decrease. If r (1-xn) > 1, the population will increase. Is there an upper bound to r ?
Macquarie University 18

Let s try r=1.5 Growth rate is 1.5(1-xn)


r = 1.5, N(0)=0.1, x(0)=0.1
4 3.5 3

Population

2.5 2 1.5 1 0.5 0 0 1 2 3 4 5 6 7 8 9 Geometric (N) Logistic (x=N/K)

Generations
Macquarie University 19

Population reaches equilibrium




When the growth rate is equal to 1.5 times the remaining population, saturation pushes the population into equilibrium at x=0.33. Is equilibrium a normal condition for all values of r ? We have used an initial population fraction of x0=0.1. What if we change the initial population?
Macquarie University 20

Next try r=2.8 Growth rate is 2.8(1-xn)


r = 2.8
0.8 0.7 0.6 0.5 x(n) 0.4 0.3 0.2 0.1 0 0 5 10 n
Macquarie University 21

x(0)=0.1 x(0)=0.2 x(0)=0.3

15

20

25

An Attractor


It appears that no matter what initial population x0 we start with, the population reaches the same equilibrium value (after transients die out) for r=2.8. When a population settles like this, for any starting value, the eventual behaviour is known as an attractor.
Macquarie University 22

r=3.14 Growth rate is 3.14(1-xn)


r = 3.14
0.9 0.8 0.7 0.6 x(n) 0.5 0.4 0.3 0.2 0.1 0 0 5 10 n
Macquarie University 23

x 0)=0.1 x 0)=0.2 x 0)=0.3

15

20

25

r=3.45 Growth rate is 3.45(1-xn)


r = 3.45
1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 5 10 15 20 25 30 35 40 45 50 55 n
Macquarie University 24

x(n)

x(0)=0.2 x(0)=0.3

r=3.45 4-cycle
r = 3.45
1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 5 10 15 20 25 30 35 40 45 50 55 n
Macquarie University 25

x(n)

x=0.2

r=3.8 Growth rate is 3.8(1-xn)


r = 3.8
1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 20 40 n
Macquarie University 26

x(n)

x 0)=0.2 x 0)=0.3

60

80

100

Attractors


Attractors have different behaviours and values depending on value of r.


r = 3.14 r = 3.45 4-cycle oscillates r = 3.8 aperiodic appears random
27

r = 2.8

equilibrium 2-cycle constant oscillates

Macquarie University

Mapping the Attractor




It can be shown mathematically that r=4 is a limit for this model. Can we create a map in Excel that displays the long-term behaviour of the attractor for 0 r 4 ? For each r, we can plot a sequence of values of xn for large n (after transients have died out).
Macquarie University 28

The Spreadsheet Formula


A n 0 1 2 3 4 B r x(0) C D 0.1 0.1 E 0.2 0.1 F 0.3 0.1

1 2 3 4 5 6

0 0.1 =C$1*(1-C2)*C2

Macquarie University

29

Fill the Spreadsheet


1 2 3 4 5 6 7 8 A n 0 1 2 3 4 5 6 B r x(0) C D E F 0 0.1 0.2 0.3 0.1 0.1 0.1 0.1 0 0.009 0.018 0.027 0 0.000892 0.003535 0.007881 0 8.91E-05 0.000705 0.002346 0 8.91E-06 0.000141 0.000702 0 8.91E-07 2.82E-05 0.00021 0 8.91E-08 5.63E-06 6.31E-05

Macquarie University

30


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J . . .


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

                                    
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .


.

Onl pl t data aft r transi nts hav di d out

r x( )

Macquari Univ rsit

The Logistic Map


1.

0.8 The Attractor

0.6

0.4

0.

0 0 1 .1 . .48 r .55 .59 .69 .79 .89 .99

Macquari Univ rsit

The Logistic Map


1 0.9 0.8 0.7 0.6 0.5 0.4 0. 0.2 0.1 0 0 1 2 .1 .2 .48 r .55 .59 .69 .79 .89 .99

The Attractor

Macquari Univ rsit

The Logistic Map




The Logistic Map looks the same for all values of starting population fraction x0 (because the whole map is an attractor, and we are looking at the long-term behaviour). But if we look at r=3.8, for example, the values for x0=0.1 and x0=0.2 are very different at later times.
Macquarie University 34

Sensitive Dependence on Initial Conditions (SDOIC)




A small difference in the value of r or x0 can make a huge difference in the outcome of the system at generation n ( butterfly effect ). No formula can tell us what x will be at some specified generation n even if we know the initial conditions. The system is unpredictable!!
Macquarie University 35

Stephen Hawking:


We already know the physical laws that govern everything we experience in everyday life It is a tribute to how far we have come in theoretical physics that it now takes enormous machines and a great deal of money to perform an experiment whose results we cannot predict.
Macquarie University 36

CHAOS


The attractor branches into two, then four, then eight and so on. The sequence follows a geometric progression, but soon looks like a mess. Messy regions are cyclically interspersed with clear windows . Existence of period-3 windows implies chaos.
Macquarie University 37

Features of Chaos
 

Period 3 region. Chaotic systems show self-similarity or fractal behaviour. SDOIC points that start off close together can be widely separated at a later time (also referred to as mixing ).

Macquarie University

38

Period-Doubling


Constant > period-two > period-4 > period-8 > > chaos > Bifurcations mark the transition from order into chaos. Bifurcations follow a pattern, occurring closer and closer together, ad infinitum. Look at their relative separations
Macquarie University 39

Measuring Feigenbau 's Nu ber


1 .9 .8 .7 .6 .5 . .3 .2 1

r1

r2 r3

this l n th

z this l n th

2 r
Macquari Univ rsit

Feigenbaum s Constant


Feigenbaum s constant is:

rn  rn 1 ! 4.669201660910299097... lim n pg r n 1  rn


The Feigenbaum point is at r=3.5699456


Macquarie University 41

Universality in Chaos
Feigenbaum s number is observed in all chaotic systems.  Measured in physical systems:

  

Dripping taps. Oscillation of liquid helium. Fluctuation of gypsy moth populations.

Macquarie University

42

Another Chaotic System




The logistic map is a quadratic map in one dimension the one variable is x(r). Chaos can involve multi-dimensional systems. An example is the mapping that generates the attractor of Hnon.
Macquarie University 43

Attractor of Hnon


Make two columns, one for x and one for y values. Can choose (0,0) 2 xn 1 ! yn  axn  1 as starting point. Generate subsequent y n 1 ! bxn rows using formulae: Changing parameters a ! 7 / 5 a and b will generate b ! 3 / 10 different attractors.
Macquarie University 44

Attractor with parameters a=7/5, b=3/10


Attractor of Henon
0.5 0.4

0.3

0.2

0.1

0 -1.5 -1 -0.5 -0.1 0 0.5 1 1.5

-0.2

-0.3

-0.4

-0.5

Macquarie University

45

The 3-lane feature


Attractor of non
!  
0. 0. 5

0.

0. 5

0.

0.05

Macquarie University

&

0.

0.

0.

0.

0.5

0.

0.

0.

0.

"

46

Chaos is Everywhere


Perfect systems may be easily modelled according to the laws of physics : with the massless ropes, frictionless surfaces and perfect vacuum of physics textbook problems. Real systems have friction, airresistance and physical variations that make them unpredictable.
Macquarie University 47

Examples of Chaos
    

Laser instabilities. Fluid turbulence. Progression to heart attack. Population biology. Weather.

Macquarie University

48

Bifurcation = Branching


Branching is important for life:




Trees, but also blood vessels, nerves. Branches are not pre-determined; DNA codes for branching capability; Makes the code economical.

Clones are not identical:


  

Non-living systems snowflakes.

lightning,

Macquarie University

49

Landmark Publications


Lorentz, Edward N., Deterministic Nonperiodic Flow, J. Atmos. Sci. 20 (1963) 130-141. Li, Tien-Yien & Yorke, James A., Period 3 Implies Chaos, American Mathematical Monthly 82 (1975) 343-344. Hnon, Michel, A two-dimensional mapping with a strange attractor, Comm. Math. Phys. 50 (1976) 6977. May, Robert M., Simple mathematical models with very complicated dynamics, Nature 261 (1976) 459467. Feigenbaum, Mitchell J., Quantitative universality for a class of nonlinear transformations, J. Stat. Phys. 19 (1978) 25-52. Mandelbrot, Benoit B., Fractal aspects of the iteration of z Pz(1-z) for complex P and z, Annals NY Acad. 0) 249-257. Sci nc s 357 (
Macquarie University

50

Acknowledgements


This presentation was based on lecture material for PHYS220 presented by Prof. Barry Sanders, 2000-2003. Additional References:


Peitgen, Jrgens & Saupe, Chaos and Fractals: New Frontiers of Science, 1992. Gleick, Chaos: Making a New Science, 1987.
Macquarie University 51

You might also like