Fundamentals of Dynamical Systems / Discrete-Time Models. Dr. Dylan McNamara people.uncw.edu/ mcnamarad

Similar documents
Physics: spring-mass system, planet motion, pendulum. Biology: ecology problem, neural conduction, epidemics

MATH 415, WEEKS 14 & 15: 1 Recurrence Relations / Difference Equations

Problem set 7 Math 207A, Fall 2011 Solutions

Chapter 6 Nonlinear Systems and Phenomena. Friday, November 2, 12

Nonlinear dynamics & chaos BECS

1 / 5. Stability of 2 2 Systems of Differential Equations April 2014

Modeling the Immune System W9. Ordinary Differential Equations as Macroscopic Modeling Tool

B5.6 Nonlinear Systems

One Dimensional Dynamical Systems

Dynamical Systems and Chaos Part I: Theoretical Techniques. Lecture 4: Discrete systems + Chaos. Ilya Potapov Mathematics Department, TUT Room TD325

Lab 5: Nonlinear Systems

Nonlinear Autonomous Systems of Differential

Unit Ten Summary Introduction to Dynamical Systems and Chaos

Autonomous Systems and Stability

Linearization of Differential Equation Models

Complex Dynamic Systems: Qualitative vs Quantitative analysis

COSMOS: Making Robots and Making Robots Intelligent Lecture 3: Introduction to discrete-time dynamics

2D-Volterra-Lotka Modeling For 2 Species

Chaos and Liapunov exponents

Stability of Dynamical systems

8.1 Bifurcations of Equilibria

Lecture 1: A Preliminary to Nonlinear Dynamics and Chaos

Non-Dimensionalization of Differential Equations. September 9, 2014

Chapter #4 EEE8086-EEE8115. Robust and Adaptive Control Systems

2 Discrete Dynamical Systems (DDS)

LECTURE 8: DYNAMICAL SYSTEMS 7

(Refer Slide Time: 00:32)

Solutions to homework Assignment #6 Math 119B UC Davis, Spring 2012

Coordinate Curves for Trajectories

16 Period doubling route to chaos

Lecture 3. Dynamical Systems in Continuous Time

Models Involving Interactions between Predator and Prey Populations

STABILITY. Phase portraits and local stability

Introduction to Dynamical Systems Basic Concepts of Dynamics

Lotka Volterra Predator-Prey Model with a Predating Scavenger

8 Ecosystem stability

Chapter 1, Section 1.2, Example 9 (page 13) and Exercise 29 (page 15). Use the Uniqueness Tool. Select the option ẋ = x

Phase portraits in two dimensions

6.3. Nonlinear Systems of Equations

Section 5. Graphing Systems

Stability Analysis for ODEs

Mathematical Foundations of Neuroscience - Lecture 7. Bifurcations II.

Handout 2: Invariant Sets and Stability

Stability lectures. Stability of Linear Systems. Stability of Linear Systems. Stability of Continuous Systems. EECE 571M/491M, Spring 2008 Lecture 5

4 Second-Order Systems

Classification of Phase Portraits at Equilibria for u (t) = f( u(t))

TWO DIMENSIONAL FLOWS. Lecture 5: Limit Cycles and Bifurcations

Nonlinear Autonomous Dynamical systems of two dimensions. Part A

Section 9.3 Phase Plane Portraits (for Planar Systems)

Discrete time dynamical systems (Review of rst part of Math 361, Winter 2001)

More Details Fixed point of mapping is point that maps into itself, i.e., x n+1 = x n.

Solutions for B8b (Nonlinear Systems) Fake Past Exam (TT 10)

PHY411 Lecture notes Part 5

Gerardo Zavala. Math 388. Predator-Prey Models

Ordinary Differential Equations

1 The pendulum equation

MA 138: Calculus II for the Life Sciences

+ i. cos(t) + 2 sin(t) + c 2.

Nonlinear Dynamics. Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna.

Linear Algebra and Robot Modeling

Math 216 Final Exam 24 April, 2017

Modeling Prey and Predator Populations

Def. (a, b) is a critical point of the autonomous system. 1 Proper node (stable or unstable) 2 Improper node (stable or unstable)

Nonlinear Control Lecture 2:Phase Plane Analysis

Math 1270 Honors ODE I Fall, 2008 Class notes # 14. x 0 = F (x; y) y 0 = G (x; y) u 0 = au + bv = cu + dv

Lecture 10: Powers of Matrices, Difference Equations

Math 266: Phase Plane Portrait

APPPHYS217 Tuesday 25 May 2010

Systems of Ordinary Differential Equations

Differential Equations 2280 Sample Midterm Exam 3 with Solutions Exam Date: 24 April 2015 at 12:50pm

A plane autonomous system is a pair of simultaneous first-order differential equations,

Invariant manifolds. Marc R. Roussel. October 4, 2005

Chapter 23. Predicting Chaos The Shift Map and Symbolic Dynamics

Autonomous systems. Ordinary differential equations which do not contain the independent variable explicitly are said to be autonomous.

Half of Final Exam Name: Practice Problems October 28, 2014

PHY411 Lecture notes Part 4

Dynamical Systems. August 13, 2013

Is chaos possible in 1d? - yes - no - I don t know. What is the long term behavior for the following system if x(0) = π/2?

MCE693/793: Analysis and Control of Nonlinear Systems

3.5 Competition Models: Principle of Competitive Exclusion

Lecture 20/Lab 21: Systems of Nonlinear ODEs

Lecture 15: Exploding and Vanishing Gradients

Math 1280 Notes 4 Last section revised, 1/31, 9:30 pm.

A Stability Analysis on Models of Cooperative and Competitive Species

POPULATION DYNAMICS: TWO SPECIES MODELS; Susceptible Infected Recovered (SIR) MODEL. If they co-exist in the same environment:

Maps and differential equations

THREE DIMENSIONAL SYSTEMS. Lecture 6: The Lorenz Equations

Math 312 Lecture Notes Linear Two-dimensional Systems of Differential Equations

CDS 101/110a: Lecture 2.1 Dynamic Behavior

MAT 22B - Lecture Notes

Understand the existence and uniqueness theorems and what they tell you about solutions to initial value problems.

In these chapter 2A notes write vectors in boldface to reduce the ambiguity of the notation.

MTH 464: Computational Linear Algebra

Practice Problems for Final Exam

Dispersion relations, linearization and linearized dynamics in PDE models

CDS 101/110a: Lecture 2.1 Dynamic Behavior

2 One-dimensional models in discrete time

Section 5.4 (Systems of Linear Differential Equation); 9.5 Eigenvalues and Eigenvectors, cont d

ECON : diff.eq. (systems).

Continuous time population models

Transcription:

Fundamentals of Dynamical Systems / Discrete-Time Models Dr. Dylan McNamara people.uncw.edu/ mcnamarad

Dynamical systems theory Considers how systems autonomously change along time Ranges from Newtonian mechanics to modern nonlinear dynamics theories Probes underlying dynamical mechanisms, not just static properties of observations Provides a suite of tools useful for studying complex systems

What is a dynamical system? A system whose state is uniquely specified by a finite set of variables and whose behavior is uniquely determined by predetermined "rules" Simple population growth Simple pendulum swinging Motion of celestial bodies Behavior of two rational agents in a negotiation game

Mathematical formulations of dynamical systems Discrete-time model: x t = F(x t-1, t) (difference/recurrence equations; iterative maps) Continuous-time model: (differential equations) dx/dt = F(x, t) x t : State variable(s) of the system at time t F: Some function that determines the rule that the system s behavior will obey

Discrete-Time Models

Discrete-time model Easy to understand, develop and simulate Doesn t require an expression for the rate of change (derivative) Can model abrupt changes and/or chaotic dynamics using fewer variables Directly translatable to simulation in a computer Experimentally, we often have samples of system states at specific points of time

Difference equation and time series Difference equation x t = F(x t-1, t) produces series of values of variable x starting with initial condition x 0 : { x 0, x 1, x 2, x 3, } time series A prediction made by the above model (to be compared to experimental data)

Linear vs. nonlinear Linear: Right hand side is just a first-order polynomial of variables x t = a x t-1 + b x t-2 + c x t-3 Nonlinear: Anything else x t = a x t-1 + b x t-2 2 + c x t-1 x t-3

1st-order vs. higher-order 1st-order: Right hand side refers only to the immediate past x t = a x t-1 ( 1 x t-1 ) Higher-order: Anything else x t = a x t-1 + b x t-2 + c x t-3 (Note: this is different from the order of terms in polynomials)

Autonomous vs. non-autonomous Autonomous: Right hand side includes only state variables (x) and not t itself x t = a x t-1 x t-2 + b x t-3 2 Non-autonomous: Right hand side includes terms that explicitly depend on the value of t x t = a x t-1 x t-2 + b x t-3 2 + sin(t)

Things that you should know (1) Non-autonomous, higher-order equations can always be converted into autonomous, 1st-order equations x t-2 y t-1, y t = x t-1 t y t, y t = y t-1 + 1, y 0 = 0 Autonomous 1st-order equations can cover dynamics of any non-autonomous higher-order equations too!

Things that you should know (2) Linear equations are analytically solvable show either equilibrium, exponential growth/decay, periodic oscillation (with >1 variables), or their combination Nonlinear equations may show more complex behaviors do not have analytical solutions in general

Simulating Discrete-Time Models

Simulating discrete-time models Simulation of a discrete-time model can be implemented by iterating updating of the system s states Every iteration represents one discrete time step

Exercise Implement simulators of the following models and produce time series for t = 1~10 x t = 2 x t-1 + 1, x 0 = 1 x t = x t-1 2 + 1, x 0 = 1

Exercise Simulate the following set of equations and see what happens if the coefficients are varied x t = 0.5 x t-1 + 1 y t-1 y t = -0.5 x t-1 + 1 y t-1 x 0 = 1, y 0 = 1

Building Your Own Model Equation

Mathematical modeling tips Grab an existing model and tweak it Implement each assumption one by one Find where to change, replace it by a function, and design the function Adopt the simplest form Check the model with extreme values

Example: Saturation of growth Simple exponential growth model: x t = a x t-1 Problem: How can one implement the saturation of growth in this model? Think about a new nonlinear model: x t = f(x t-1 ) x t-1 Coefficient replaced by a function of x

Modeling saturation of growth x t = f(x t-1 ) x t-1 f(x) should approach 1 (no net growth) when x goes to a carrying capacity of the environment, say K f(x) should approach the original growth rate a when x is very small (i.e., with no saturation effect)

What should f(x) be? f(x) a f(x) = a 1 K x + a 1 0 K x

A new model of growth x t = f(x t-1 ) x t-1 = ( (a 1) x t-1 / K + a ) x t-1 Using r = a 1: x t = ( r x t-1 / K + r + 1 ) x t-1 = x t-1 + r x t-1 ( 1 x t-1 / K ) Net growth

Example: Logistic growth model N: Population r: Population growth rate K: Carrying capacity Discrete-time version: N t = N t-1 + r N t-1 ( 1 N t-1 /K ) Continuous-time version: dn/dt = r N ( 1 N/K ) Nonlinear terms

Modeling with multiple variables Problem: Develop a nonlinear model of a simple ecosystem made of predator and prey populations

Think about how variables behave in isolation Rabbit Population : x Fox Population : y + Naturally grows to carrying capacity if isolated - Naturally decays if isolated

Initial assumptions Rabbits will grow based on the logistic growth model, with carrying capacity = 1 for simplicity Foxes will decay exponentially Rabbit: x t = x t-1 + a x t-1 (1 x t-1 ) Fox: y t = b y t-1 (0<a, 0<b<1)

Think about how variables interact with each other Rabbit Population : x Naturally grows to carrying capacity if isolated Positive influence Foxes growth rate increases with increasing rabbits + - Negative influence Rabbits survival rate decreases with increasing foxes Fox Population : y + - Naturally decays if isolated

Revised model Introduced coefficient (1 c y t-1 ) (0<c) to the first term of x Negative influence of foxes on rabbits survival rate Replaced b with (b + d x t-1 ) (0<d) Positive influence of rabbits on foxes growth rate Rabbit: x t = (1 c y t-1 ) x t-1 + a x t-1 (1 - x t-1 ) Fox: y t = (b + d x t-1 ) y t-1 (0<a, 0<b<1, 0<c, 0<d)

FYI: Lotka-Volterra model This model can be rewritten as: x t x t-1 = α x t-1 (1-x t-1 ) β x t-1 y t-1 y t y t-1 = - γ y t-1 + δ x t-1 y t-1 Known as the Lotka-Volterra equations (of discrete-time version with carrying capacity) Models predator-prey dynamics in a general form One of the most famous nonlinear systems with multiple variables

Analysis of Discrete-Time Models

Equilibrium point A state of the system at which state will not change over time A.k.a. fixed point, steady state Can be calculated by solving x t = x t-1

Exercise Calculate equilibrium points in the following models N t = N t-1 + r N t-1 ( 1 N t-1 /K ) x t = 2x t-1 x t-1 2 x t = x t-1 x t-2 2 + 1

Phase Space Visualization

Geometrical approach Developed in the late 19C by J. Henri Poincare Visualizes the behavior of dynamical systems as trajectories in a phase space Produces a lot of intuitive insights on geometrical structure of dynamics that would be hard to infer using purely algebraic methods

Phase space (state space) A theoretical space in which every state of a dynamical system is mapped to a spatial location

Phase space (state space) Created by orthogonalizing state variables of the system Its dimensionality equals # of variables needed to specify the system state (a.k.a. degrees of freedom) Temporal change of the system states can be drawn in it as a trajectory

Attractor and basin of attraction Attractor: A state (or a set of states) from which no outgoing edges or flows running in phase space Static attractors (equilibrium points) Dynamic attractors (e.g. limit cycles) Basin of attraction: A set of states which will eventually end up in a given attractor

Phase space of continuous-state models E.g. a simple vertical spring oscillator State can be specified by two real variables (location x, velocity v) x Trajectory (orbit) v Dynamics of continuous models can be depicted as flow in a continuous phase space

Cobweb plot A visual tool to study the behavior of 1-D iterative maps Take x t-1 and x t for two axes Draw the map of interest (x t =F(x t-1 )) and the x t =x t-1 reference line They will intersect at equilibrium points Trace how time series develop from an initial value by jumping between these two curves

Cobweb Plot

Cobweb Plot

Rescaling Variables

Rescaling variables Dynamics of a system won t change qualitatively by linear rescaling of variables (e.g., x α x ) You can set arbitrary rescaling factors for variables to simplify the model equations If you have k variables, you may eliminate k parameters

Exercise Simplify the logistic growth model by rescaling x α x x t = x t-1 + r x t-1 (1 - x t-1 /K)

Linear Systems

Dynamics of linear systems Some systems can be modeled as linear systems Their dynamics is described by a product of matrix and state vector Either in continuous or discrete time Dynamics of such linear systems can be studied analytically

Linear systems Linear systems are the simplest cases where states of nodes are continuousvalued and their dynamics are described by a time-invariant matrix Discrete-time: x t = A x t-1 A is called a coefficient matrix We don t consider constants (as they can be easily converted to the above forms)

Asymptotic Behavior of Linear Systems

Where will the system go eventually? x t = A x t-1 This equation gives the following exact solution: x t = A t x 0

Where will the system go eventually? x t = A x t-1 What happens if the system starts from non-equilibrium initial states and goes on for a long period of time? Let s think about their asymptotic behavior lim t-> x t

Considering asymptotic behavior (1) Let { v i } be n linearly independent eigenvectors of the coefficient matrix (They might be fewer than n, but here we ignore such cases for simplicity) Write the initial condition using eigenvectors, i.e. x 0 = b 1 v 1 + b 2 v 2 +... + b n v n

Considering asymptotic behavior (2) Then: x t = A t x 0 = λ 1 t b 1 v 1 + λ 2 t b 2 v 2 + + λ n t b n v n

Dominant eigenvector If λ 1 > λ 2, λ 3,, x t = λ t 1 { b 1 v 1 + (λ 2 /λ 1 ) t b 2 v 2 +... + (λ n /λ 1 ) t b n v n } lim t-> x t ~ λ 1 t b 1 v 1 If the system has just one such dominant eigenvector v 1, its state will be eventually along that vector regardless of where it starts

What eigenvalues and eigenvectors can tell us An eigenvalue tells whether a particular state of the system (specified by its corresponding eigenvectors) grows or shrinks by interactions between parts λ > 1 -> growing λ < 1 -> shrinking

Example Phase space of a two-variable linear difference equation with (a, b, c, d) = (1, 0.1, 0.1, 0.9) y λ 2 <1 λ 1 >1 v 2 v 1 x Along these lines (called invariant lines), the dynamics can be understood as simple exponential growth/decay

Example y x This could be regarded as a very simple form of self-organization (though completely predictable); Order spontaneously emerges in the system as time goes on

Linear Stability Analysis of Nonlinear Systems

Stability of equilibrium points If a system at its equilibrium point is slightly perturbed, what happens? The equilibrium point is called: Stable (or asymptotically stable) if the system eventually falls back to the equilibrium point Lyapunov stable if the system doesn t go far away from the equilibrium point Unstable otherwise

Question What is the stability of each of the following equilibrium points?

Linear stability analysis Studies whether a nonlinear system is stable or not at its equilibrium point by locally linearizing its dynamics around that point Linearization Linearization

Local linearization (1) Let x be a small difference between the system s current state x and its equilibrium point x e, i.e. x = x e + x Plug x = x e + x into differential equations and ignore quadratic or higher-order terms of x (hence the name linearization )

Local linearization (2) This operation does the trick to convert the dynamics of x into a product of a matrix and x By analyzing eigenvalues of the matrix, one can predict whether x e is stable or not I.e. whether a small perturbation ( x) grows or shrinks over time

Mathematically speaking This operation is similar to linear approximation in calculus Taylor series expansion: F(x) = Σ n=0~ F (n) (a)/n! (x-a) n Let x x e + x and a x e, then F(x e + x) = F(x e ) + F (x e ) x Ignore + O( x 2 )

Linearizing discrete-time models For discrete-time models: x t = F(x t-1 ) Left = x e + x t Right = F(x e + x t-1 ) ~ F(x e ) + F (x e ) x t-1 = x e + F (x e ) x t-1 Therefore, x t = F (x e ) x t-1

First-order derivative of vector functions Discrete-time: x t = F (x e ) x t-1 This can hold even if x is a vector What corresponds to the first-order derivative in such a case: F (x e ) = df/dx (x=xe ) = F 1 x 1 F 1 x 2 F 1 x n F 2 x 1 F 2 x 2 F 2 x n F n F n F n x 1 x 2 x n Jacobian matrix at x=x e (x=x e )

Eigenvalues of Jacobian matrix A Jacobian matrix is a linear approximation around the equilibrium point, telling you the local dynamics: how a small perturbation will grow, shrink or rotate around that point The equilibrium point serves as a local origin The x serves as a local coordinate Eigenvalue analysis applies

With real eigenvalues If all the eigenvalues indicate that x will shrink over time -> stable point If all the eigenvalues indicate that x will grow over time -> unstable point If some eigenvalues indicate shrink and others indicate grow of x over time -> saddle point (this is also unstable)

With two complex conjugate eigenvalues (for 2-D systems) If both eigenvalues indicate that x will shrink over time -> stable spiral focus If both eigenvalues indicate that x will grow over time -> unstable spiral focus If both eigenvalues indicate neither shrink nor growth of x -> neutral center (but this may or may not be true for nonlinear models; further analysis is needed to check if nearby trajectories are truly cycles or not)

With real and complex eigenvalues mixed (for higher-dimm. systems) Each eigenvalue (or a pair of complex conjugate eigenvalues) tell you distinct dynamics simultaneously seen at the equilibrium point: All real eigenvalues (1 indicates growth; other 2 indicates shrink) 1 real eigenvalue indicates growth; other 2 indicates rotation (complex conjugates with no growth or shrink)

Exercise Find all equilibrium points of the following model, and study their stability x t = x t-1 y t-1 y t = y t-1 (x t-1 1) 87