Hysteresis. Lab 6. Recall that any ordinary differential equation can be written as a first order system of ODEs,

Similar documents
ONE DIMENSIONAL FLOWS. Lecture 3: Bifurcations

Homework 2. Due Friday, July We studied the logistic equation in class as a model of population growth. It is given by dn dt = rn 1 N

4 Insect outbreak model

Problem Set Number 2, j/2.036j MIT (Fall 2014)

Dynamical Systems: Lecture 1 Naima Hammoud

Introduction to Biomathematics. Problem sheet

The Shooting Method for Boundary Value Problems

Math 232, Final Test, 20 March 2007

Lecture 3. Dynamical Systems in Continuous Time

One Dimensional Dynamical Systems

Mathematical models in life sciences. Lecture notes of a course held by Marco Di Francesco based on the book by J. D. Murray

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

Dynamical Systems and Chaos Part II: Biology Applications. Lecture 6: Population dynamics. Ilya Potapov Mathematics Department, TUT Room TD325

Problem Set Number 02, j/2.036j MIT (Fall 2018)

CHALMERS, GÖTEBORGS UNIVERSITET. EXAM for DYNAMICAL SYSTEMS. COURSE CODES: TIF 155, FIM770GU, PhD

The functions in all models depend on two variables: time t and spatial variable x, (x, y) or (x, y, z).

CHALMERS, GÖTEBORGS UNIVERSITET. EXAM for DYNAMICAL SYSTEMS. COURSE CODES: TIF 155, FIM770GU, PhD

Introduction to Dynamical Systems Basic Concepts of Dynamics

Systems of Ordinary Differential Equations

CDS 101/110a: Lecture 2.1 Dynamic Behavior

Lotka Volterra Predator-Prey Model with a Predating Scavenger

Solving nonlinear equations (See online notes and lecture notes for full details) 1.3: Newton s Method

CHAOS/FRACTAL

Clearly the passage of an eigenvalue through to the positive real half plane leads to a qualitative change in the phase portrait, i.e.

Modeling and Experimentation: Compound Pendulum

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

Problem Set Number 1, j/2.036j MIT (Fall 2014)

Section 2.1 (First Order) Linear DEs; Method of Integrating Factors. General first order linear DEs Standard Form; y'(t) + p(t) y = g(t)

Models Involving Interactions between Predator and Prey Populations

Lecture 20/Lab 21: Systems of Nonlinear ODEs

EECS 700: Exam # 1 Tuesday, October 21, 2014

The Big Picture. Discuss Examples of unpredictability. Odds, Stanisław Lem, The New Yorker (1974) Chaos, Scientific American (1986)

Why are Discrete Maps Sufficient?

PHY411 Lecture notes Part 4

CDS 101/110a: Lecture 2.1 Dynamic Behavior

MATH 250 Homework 4: Due May 4, 2017

1 The pendulum equation

Math 345 Intro to Math Biology Lecture 7: Models of System of Nonlinear Difference Equations

SYSTEMS OF NONLINEAR EQUATIONS

Chaos. Lendert Gelens. KU Leuven - Vrije Universiteit Brussel Nonlinear dynamics course - VUB

Chapter 4: First-order differential equations. Similarity and Transport Phenomena in Fluid Dynamics Christophe Ancey

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

Continuous-Time Dynamical Systems: Sketching solution curves and bifurcations

Problem set 7 Math 207A, Fall 2011 Solutions

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

Continuous Threshold Policy Harvesting in Predator-Prey Models

A Stability Analysis on Models of Cooperative and Competitive Species

A Producer-Consumer Model With Stoichiometry

Scenarios for the transition to chaos

CS 237 Fall 2018, Homework 06 Solution

Inverse Problems. Lab 19

Student Background Readings for Bug Dynamics: The Logistic Map

Exercise_set7_programming_exercises

STABILITY. Phase portraits and local stability

Optimization with Scipy (2)

Numerical techniques: Deterministic Dynamical Systems

tutorial ii: One-parameter bifurcation analysis of equilibria with matcont

1. The growth of a cancerous tumor can be modeled by the Gompertz Law: dn. = an ln ( )

8 Autonomous first order ODE

Lab 1: Iterative Methods for Solving Linear Systems

MATH 215/255 Solutions to Additional Practice Problems April dy dt

Population Dynamics. Max Flöttmann and Jannis Uhlendorf. June 12, Max Flöttmann and Jannis Uhlendorf () Population Dynamics June 12, / 54

Unit Ten Summary Introduction to Dynamical Systems and Chaos

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

Objective. Single population growth models

Introduction to bifurcations

Homework 2 Modeling complex systems, Stability analysis, Discrete-time dynamical systems, Deterministic chaos

8 Ecosystem stability

HOMEWORK 3: Phase portraits for Mathmatical Models, Analysis and Simulation, Fall 2010 Report due Mon Oct 4, Maximum score 7.0 pts.

Chaos and R-L diode Circuit

Nonlinear reaction diffusion equations

Systems of Ordinary Differential Equations

Complex Dynamic Systems: Qualitative vs Quantitative analysis

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

Lecture Notes for Math 251: ODE and PDE. Lecture 27: 7.8 Repeated Eigenvalues

Logistic Model with Harvesting

ANSWERS Final Exam Math 250b, Section 2 (Professor J. M. Cushing), 15 May 2008 PART 1

Department of Mathematics IIT Guwahati

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

MA 102 Mathematics II Lecture Feb, 2015

Math 310: Applied Differential Equations Homework 2 Prof. Ricciardi October 8, DUE: October 25, 2010

Homework #5 Solutions

TWO DIMENSIONAL FLOWS. Lecture 5: Limit Cycles and Bifurcations

Ordinary Differential Equations

Bifurcation of Fixed Points

Examples include: (a) the Lorenz system for climate and weather modeling (b) the Hodgkin-Huxley system for neuron modeling

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

PHYSICS 110A : CLASSICAL MECHANICS

B5.6 Nonlinear Systems

= 2e t e 2t + ( e 2t )e 3t = 2e t e t = e t. Math 20D Final Review

An introduction to Mathematical Theory of Control

Qualitative Analysis of Tumor-Immune ODE System

Lecture 5. September 4, 2018 Math/CS 471: Introduction to Scientific Computing University of New Mexico

8 Example 1: The van der Pol oscillator (Strogatz Chapter 7)

Dynamics Analysis of Anti-predator Model on Intermediate Predator With Ratio Dependent Functional Responses

Solving Dynamic Equations: The State Transition Matrix II

3 Single species models. Reading: Otto & Day (2007) section 4.2.1

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

MAT 311 Midterm #1 Show your work! 1. The existence and uniqueness theorem says that, given a point (x 0, y 0 ) the ODE. y = (1 x 2 y 2 ) 1/3

Nonlinear Autonomous Dynamical systems of two dimensions. Part A

Transcription:

Lab 6 Hysteresis Recall that any ordinary differential equation can be written as a first order system of ODEs, ẋ = F (x), ẋ := d x(t). (6.1) dt Many interesting applications and physical phenomena can be modeled using ODEs. Given a mathematical model of the form (6.1), it is important to understand geometrically how its solutions behave. This information can then be conveyed in a phase portrait, a graph describing solutions of (6.1) with differential initial conditions. The first step in constructing a phase portrait is to find the equilibrium solutions of the equation, i.e., the zeros of F (x), and to determine their stability. It is often the case that the mathematical model we study depends on some parameter or set of parameters λ. Thus the ODE becomes ẋ = F (x, λ). (6.2) The parameter λ can then be tuned to better fit the physical application. As λ varies, the equilibrium solutions and other geometric features of (6.2) may suddenly change. A value of λ where the phase portrait changes is called a bifurcation point; the study of how these changes occur is called bifurcation theory. The parameter values and corresponding equilibrium solutions are often graphed together in a bifurcation diagram. As an example, consider the scalar differential equation ẋ = x 2 + λ. (6.3) For λ > 0 equation (6.3) has no equilibrium solutions. At λ = 0 the equilibrium point x = 0 appears, and for λ < 0 it splits into two equilibrium points. For this system, a bifurcation occurs at λ = 0. This is an example of a saddle-node bifurcation. The bifurcation diagram is shown in Figure 6.1 Suppose that F (x 0, λ 0 ) = 0. We use a method called natural embedding to find zeros (x, λ) of F for nearby values of λ. Specifically, we step forward in λ by letting λ 1 = λ 0 + λ, and use Newton s method to find the value x 1 that satisfies 51

52 Lab 6. Bifurcations Figure 6.1: Bifurcation diagram for the equation ẋ = λ + x 2. F (x 1, λ 1 ) = 0. This method works well except when λ is near a bifurcation point λ. The following code implements the natural embedding algorithm, and then uses that algorithm to find the curves in the bifurcation diagram for (6.3). Notice that this algorithm needs a good initial guess for x 0 to get started. import numpy as np import matplotlib.pyplot as plt from scipy.optimize import newton def EmbeddingAlg(param_list, guess, F): X = [] for param in param_list: try: # Solve for x_value making F(x_value, param) = 0. x_value = newton(f, guess, fprime=none, args=(param,), tol=1e-7, maxiter=50) # Record the solution and update guess for the next iteration. X.append(x_value) guess = x_value except RuntimeError: # If Newton's method fails, return a truncated list of parameters # with the corresponding x values.

53 Figure 6.2: Phase Portrait for the equation ẋ = 2 + x 2. return param_list[:len(x)], X # Return the list of parameters and the corresponding x values. return param_list, X def F(x, lmbda): return x**2 + lmbda # Top curve shown in the bifurcation diagram C1, X1 = EmbeddingAlg(np.linspace(-5, 0, 200), np.sqrt(5), F) # The bottom curve C2, X2 = EmbeddingAlg(np.linspace(-5, 0, 200), -np.sqrt(5), F) Problem 1. Use the natural embedding algorithm to create a bifurcation diagram for the differential equation ẋ = λx x 3. This type of bifurcation is called a pitchfork bifurcation (you should see a pitchfork in your diagram). Hints: Essentially this amounts to running the same code as the example, but with different parameters and function calls so that you are tracing

54 Lab 6. Bifurcations through the right curves for this problem. To make this first problem work, you will want to have your linspace run from high to low instead of from low to high. There will be three different lines in this image. Problem 2. Create bifurcation diagrams for the differential equation ẋ = η + λx x 3, where η = 1,.2,.2 and 1. Notice that when η = 0 you can see the pitchfork bifurcation of the previous problem. There should be four different lines in this image. There will be one line for each value of η. The following ODE exhibits an interesting bifurcation phenomenon called hysteresis: x = λ + x x 3. This system has a bifurcation diagram containing what is known as a hysteresis loop, shown in Figure 6.3. In the hysteresis loop, when the parameter λ moves beyond the bifurcation point the equilibrium solution makes a sudden jump to the other stable branch. When this occurs the system cannot reach its previous equilibrium by simply rewinding the parameter slightly. The next section discusses a model with a hysteresis loop. Budworm Population Dynamics Here we study a mathematical model describing the population dynamics of an insect called the spruce budworm. In eastern Canada, an outbreak in the budworm population can destroy most of the trees in a forest of balsam fir trees in about 4 years. The mathematical model is given by Ṅ = RN ( 1 N K ) p(n). (6.4) This model was studied by Ludwig et al (1978), and is described well in Strogatz s text Nonlinear Dynamics and Chaos. Here N(t) represents the budworm population at time t, R is the growth rate of the budworm population and K represents the carrying capacity of the environment. We could interpret K to represent the amount of food available to the budworms. p(n) represents the death rate of budworms due to predators (birds); we assume specifically that p(n) has the form P (N) = BN 2 A 2 +N. 2 Before studying the equilibrium points of (6.4) it is important to reduce the number of parameters in the system by nondimensionalizing. Thus, we make the coordinate change x = N/A, τ = Bt/A, r = RA/B, and k = K/A, obtaining finally the system dx dτ = rx(1 x/k) x2 1 + x 2. (6.5)

55 Figure 6.3: Bifurcation diagram for the ODE x = λ + x x 3. Note that x = 0 is always an equilibrium solution. To find other equilibrium solutions we study the equation r(1 x/k) x/(1 + x 2 ) = 0. Fix r =.56, and consider Figure (6.4) (k = 8 in the figure). Problem 3 (Budworm Population). Reproduce the bifurcation diagram for the differential equation where r = 0.56. dx dτ = rx(1 x/k) x2 1 + x 2, Hint: Find a value for k that you know is in the middle of the plot (i.e. where there are three possible solutions), then use the code above to expand along each contour till you obtain the desired curve. Now find the proper initial guesses that give you the right bifurcation curve. The final plot will look like the one in Figure 6.5, but you will probably have to run the embedding algorithm 6 times to get every part of the plot.

56 Lab 6. Bifurcations Figure 6.4: Graphical demonstration of nonzero equilibrium solutions for the budworm population (here r =.56, k = 8); equilibrium solutions occur where the curves cross. As k increases, the line y = r(1 x/k) gets more shallow and the number of solutions goes from one to three and then back to one.

Figure 6.5: Bifurcation diagram for the budworm population model. The parameter r is fixed at 0.56. The lower stable branch is known as the refuge level of the bundworm population, while the upper stable branch is known as the outbreak level. Once the budworm population reaches an outbreak level, the available food (foliage of the balsam fir trees) in the system must be reduced drastically to jump back down to refuge level. Thus many of the balsam fir trees die before the budworm population returns to refuge level. 57