MOL 410/510: Introduction to Biological Dynamics Fall 2012 Problem Set #4, Nonlinear Dynamical Systems (due 10/19/2012) 6 MUST DO Questions, 1

Similar documents
Computer Problems for Taylor Series and Series Convergence

Qualitative Analysis of Tumor-Immune ODE System

Qualitative Analysis of Tumor-Immune ODE System

Hello everyone, Best, Josh

1 The pendulum equation

Taylor Series and Series Convergence (Online)

Solutions to Problem Sheet for Week 11

Learning Targets: Standard Form: Quadratic Function. Parabola. Vertex Max/Min. x-coordinate of vertex Axis of symmetry. y-intercept.

Math Exam 1a. c) lim tan( 3x. 2) Calculate the derivatives of the following. DON'T SIMPLIFY! d) s = t t 3t

8 Autonomous first order ODE

dy dt = ty, y(0) = 3. (1)

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

Dynamical Systems. 1.0 Ordinary Differential Equations. 2.0 Dynamical Systems

Useful Mathematics. 1. Multivariable Calculus. 1.1 Taylor s Theorem. Monday, 13 May 2013

Question: Total. Points:

Solutions to Math 41 Final Exam December 9, 2013

Numerical method for approximating the solution of an IVP. Euler Algorithm (the simplest approximation method)

Systems of Linear ODEs

Math 232, Final Test, 20 March 2007

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

= F ( x; µ) (1) where x is a 2-dimensional vector, µ is a parameter, and F :

Math 2414 Activity 1 (Due by end of class July 23) Precalculus Problems: 3,0 and are tangent to the parabola axis. Find the other line.

= 1 2 x (x 1) + 1 {x} (1 {x}). [t] dt = 1 x (x 1) + O (1), [t] dt = 1 2 x2 + O (x), (where the error is not now zero when x is an integer.

520 Chapter 9. Nonlinear Differential Equations and Stability. dt =

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

Chapter 9. Derivatives. Josef Leydold Mathematical Methods WS 2018/19 9 Derivatives 1 / 51. f x. (x 0, f (x 0 ))

Nonlinear dynamics & chaos BECS

A BRIEF REVIEW OF ALGEBRA AND TRIGONOMETRY

Nonlinear Oscillations and Chaos

MA 226 FINAL EXAM. Show Your Work. Problem Possible Actual Score

Midterm 2. MAT17C, Spring 2014, Walcott

THE SEPARATRIX FOR A SECOND ORDER ORDINARY DIFFERENTIAL EQUATION OR A 2 2 SYSTEM OF FIRST ORDER ODE WHICH ALLOWS A PHASE PLANE QUANTITATIVE ANALYSIS

Math Notes on sections 7.8,9.1, and 9.3. Derivation of a solution in the repeated roots case: 3 4 A = 1 1. x =e t : + e t w 2.

7 Planar systems of linear ODE

10 Back to planar nonlinear systems

Dynamical Systems. August 13, 2013

Limit Cycles II. Prof. Ned Wingreen MOL 410/510. How to prove a closed orbit exists?

THE ROSENZWEIG-MACARTHUR PREDATOR-PREY MODEL

MATH 415, WEEK 11: Bifurcations in Multiple Dimensions, Hopf Bifurcation

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

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

Advanced Higher Grade

Numerical Methods. Root Finding

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

Math 2414 Activity 1 (Due by end of class Jan. 26) Precalculus Problems: 3,0 and are tangent to the parabola axis. Find the other line.

ANOTHER FIVE QUESTIONS:

Examples of the Accumulation Function (ANSWERS) dy dx. This new function now passes through (0,2). Make a sketch of your new shifted graph.

Practice Problems for Final Exam

Mathematical Model of Forced Van Der Pol s Equation

4 Second-Order Systems

Economics 205 Exercises

Differentiation of Parametric Space Curves. Goals: Velocity in parametric curves Acceleration in parametric curves

Copyright (c) 2006 Warren Weckesser

k is a product of elementary matrices.

Quadratic Inequalities in One Variable

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

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

Do not write in this space. Problem Possible Score Number Points Total 48

C. Finding roots of trinomials: 1st Example: x 2 5x = 14 x 2 5x 14 = 0 (x 7)(x + 2) = 0 Answer: x = 7 or x = -2

15 Two-Dimensional Nonlinear Models

APPM 1360 Final Exam Spring 2016

Problem Set 5 Solutions

ME 680- Spring Geometrical Analysis of 1-D Dynamical Systems

Maps and differential equations

ES.1803 Topic 19 Notes Jeremy Orloff. 19 Variation of parameters; exponential inputs; Euler s method

Final Exam Solutions, 1999

MOL410/510 Problem Set 1 - Linear Algebra - Due Friday Sept. 30

Lecture 3. Dynamical Systems in Continuous Time

Math 215/255 Final Exam (Dec 2005)

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

= e t sin 2t. s 2 2s + 5 (s 1) Solution: Using the derivative of LT formula we have

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

Math 3301 Homework Set Points ( ) ( ) I ll leave it to you to verify that the eigenvalues and eigenvectors for this matrix are, ( ) ( ) ( ) ( )

Definition: Quadratic equation: A quadratic equation is an equation that could be written in the form ax 2 + bx + c = 0 where a is not zero.

MATHEMATICS 317 December 2010 Final Exam Solutions

CHAPTER 4 BOUNDARY LAYER FLOW APPLICATION TO EXTERNAL FLOW

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

Non-Linear Dynamics Homework Solutions Week 6

1 The relation between a second order linear ode and a system of two rst order linear odes

Modelling in Biology

Math 331 Homework Assignment Chapter 7 Page 1 of 9

Lab 5: Nonlinear Systems

ACCUPLACER MATH 0311 OR MATH 0120

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

Lesson #33 Solving Incomplete Quadratics

Calculus of Variation An Introduction To Isoperimetric Problems

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

1. < 0: the eigenvalues are real and have opposite signs; the fixed point is a saddle point

154 Chapter 9 Hints, Answers, and Solutions The particular trajectories are highlighted in the phase portraits below.

3.3.1 Linear functions yet again and dot product In 2D, a homogenous linear scalar function takes the general form:

Nonlinear Autonomous Systems of Differential

Linearization of Differential Equation Models

TEACHER NOTES MATH NSPIRED

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

Created by T. Madas. Candidates may use any calculator allowed by the regulations of this examination.

Math 19, Homework-1 Solutions

Continuous-Time Dynamical Systems: Sketching solution curves and bifurcations

Autonomous Mechanical systems of 1 degree of freedom

/639 Final Solutions, Part a) Equating the electrochemical potentials of H + and X on outside and inside: = RT ln H in

Machine Learning Basics III

Transcription:

MOL 410/510: Introduction to Biological Dynamics Fall 2012 Problem Set #4, Nonlinear Dynamical Systems (due 10/19/2012) 6 MUST DO Questions, 1 OPTIONAL question 1. Below, several phase portraits are shown. For each curve: (a) (6 pts) Identify the fied points. (b) (6 pts) Between each fied point, draw an arrow that shows flow direction. (c) (6 pts) Determine the stability of each fied point, i.e. stable, unstable, or saddle. Assume that = 0, = 0 where the aes meet. 1

2. (8 pts) Imagine the following phase portrait curve is parametrized by c, and as shown c = 0. Increasing the value of c moves the curve upward. By hand, draw an approimate bifurcation curve for this phase portrait as c increases. Eact positions of fied points are unimportant. Instead, get the qualitative features of the curve correct. Make sure to indicate stable and unstable fied points using solid and dashed lines respectively. c 3. (10 pts) Imagine that a system follows the dynamics from the phase portrait shown below. Again by hand, draw a curve (t) that can approimate the dynamics of ; that is, a curve that would be a solution to the differential equation that is described by the phase portrait. Use the points labeled (1,2,3,...) as (t = 0), and draw one curve for each initial condition. 1 2 3 4 5 2

4. Below, there are several eamples of fied points shown on an otherwise empty phase portrait. Closed circles represent stable fied points, open circles represent unstable fied points, and semi-open circles represent saddle points (where the closed side represents flow towards the stable point and the open side represents flow away from the stable point). Assume there are no other fied points than those that are shown. Your task is to: (a) (6 pts) Determine if the set of fied points is possible given that the phase portrait curve is continuous and that it is a function (every value of should have only a single value of associated with it. Do not worry about whether such a curve really eists, only if it is possible to cross or touch the zero line as suggested by the fied points. (b) (6 pts) If the set of fied points is possible, draw the appropriate flow arrows onto the -ais. (c) (6 pts) Draw, by hand, a continuous function that matches each fied point profile. Attempt to do this even for sets you found to be not possible. You should find that drawing a line with the necessary zero crossings/touchings is impossible. 3

5. In this problem, you will calculate the linear stability of a fied point for the single neuron autapse circuit. The equation can be written as τ d dt = + w tanh() (1) For simplicity, set τ = 1, but do not assume any particular value for w. (a) (2 pts) First, let s plot the phase portrait of the system. Plot vs. when w = 0.5, w = 1, and w = 2. Identify the fied points and determine their stability in each case. (b) (2 pts) Recall that the Taylor series epansion for a function about the point 0 is: f() = f( 0 ) + ( 0 ) df() d + ( 0) 2 d 2 f() 0 2 d 2 +... 0 Linearize equation (1) around the fied point = 0 up to first order (that is, take the Taylor series of (1) up to the first derivative). The first derivative of tanh is given by: d d tanh = 1 tanh2 (2) (c) (2 pts) For what values of the synaptic weight w will the fied point at = 0 be linearly stable? (d) (2 pts) What is the Euler update equation for this system? (e) Simulate the dynamics of this system; i.e. use the Euler update equation you came up with earlier to numerically obtain a solution for the system. For all simulations set δt = 0.01, τ = 1, and run the simulation from t = 0 s to t = 10 s.. Submit your code and a figure showing (t) vs t for each of the following sets of parameters: i. (2 pts) 0 = 0.5 and w = 0.25 ii. (2 pts) 0 = 0.5 and w = 1 iii. (2 pt) What is the difference between the dynamics and each case? iv. (2 pts) Look at your phase portraits for w = 0.25 and w = 1. From them, argue why you see different dynamics in the two cases. (f) Now add a term for noise in your dynamics; that is, at every time step add σ δt*randn to the value of ; this will generate noise with mean 0 and std. dev. σ. Set w = 2 and 0 = 0. Run the simulation with the following parameters, submit code and figures. i. (2 pts) set σ = 0. ii. (3 pts) set σ = 0.1 and run the simulation for ten different trials. (You can put all ten trials on the same figure). Did you get the same result for all ten trials? 4

6. In this question you will eamine a 2D circuit. Include all code and figures. The equations are d = w tanh(y) (3) dt dy = y w tanh() (4) dt with w > 0. (a) (5 pts) What are the equations for the nullclines of the system? Using MATLAB, draw the two nullclines when w = 0.5. Now, do it for when w = 2. How many fied points did you find in each case? Can you work out the stability of each point? What do all of the fied points represent in terms of the steady-state of the network? (b) (5 pts) There is a fied point at = 0, y = 0. Let us find the conditions on w for when this fied point is linearly stable. We will use a Taylor series epansion again, ecept now for two variables. The Taylor series epansion of a 2D function about the point 0, y 0 is given by f(, y) f(, y) = f( 0, y 0 ) + ( 0 ) f(, y) + (y y 0 ) 0,y 0 y 0,y 0 + ( 0) 2 2 f(, y) 2 2 + (y y 0) 2 2 f(, y) 0,y 0 2 y 2 0,y 0 + ( 0)(y y 0 ) 2 f(, y) 2 y +... 0,y 0 Linearize equations (3) and (4) about = 0, y = 0, by performing the Taylor series epansion up to first order derivatives. (c) (5 pts) Write your equations in matri form. Now, find the eigenvalues and eigenvectors of your matri as a function of w. For what values of w is the fied point at = 0, y = 0 linearly stable? What type of fied point does = 0, y = 0 become when it does not meet this condition? (d) (5 pts) Use the Euler method to simulate the dynamics of this system. The update equations are given by n+1 = n + δt( n w tanh(y n )) + η y n+1 = y n + δt( y n w tanh( n )) + η y where η and η y are noise values independently sampled from a normal distribution with zero mean and standard deviation σ δt (we have set τ = 1). Use δt = 0.01, 0 = 0 and y 0 = 0, w = 0.5, σ = 0.1, and run the simulation up to t = 10. Repeat this simulation for ten different trials (don t repeat the noise in each trial but start from the same initial condition). Plot the dynamics of each variable for each trial. 5

(e) (5 pts) Try the simulation with w = 2. First, do one simulation with no noise, i.e. σ = 0. What happens? Now set σ = 0.1. What happens after you put in the noise? Again, run the simulation for 10 trials. Do you get the same result on every trial? (f) (OPTIONAL) Animate your simulations with the phase portrait and nullclines. We will go through this step-by-step. i. To plot the phase portrait, we are going to use the MATLAB function quiver. To draw a field of arrows use quiver(,y,u,v). Where,y are vectors representing the - and y-positions of the tails of each arrow, and u,v are the - and y- components of each arrow respectively. For eample, try quiver(0,0,1,0) and quiver([0 0],[0 0],[1 0],[0 1]). quiver will scale the size of the arrows, so it will not always respect the absolute numbers in u and v. To get the vectors and y, we need to make a grid. We can use the MATLAB function meshgrid. Try [grid,ygrid]=meshgrid(-3:0.25:3,-3:0.25:3), then see what it does by typing plot(grid,ygrid,'.k'). Evaluate the - and y- components of each arrow by calculating and ẏ, from equations (3) and (4), at every point in grid and ygrid. Call quiver, now you have the phase portrait. ii. On the same figure, we are going to plot the nullclines lines for which the derivatives in (3) and (4) equal 0. Make an independent vector z=linspace(-3,3,100). To get the nullcline for the y-direction, set ẏ = 0 to obtain the equation y = w tanh. You can draw this line on the same graph with your arrows by typing line(z,-w*tanh(z),'color','k'). For the -direction, set = 0 to obtain the equation = w tanh y. Again, draw this line on the same graph using line(- w*tanh(z),z,'color','r') (notice the switch in arguments). iii. Draw a single dot representing the initial state of the system, and return its handle. h=line(0,y0,'color','g','marker','.','markersize',28), where 0,y0 represent your initial - and y-values. Now, iterate over all of your time steps, and update the position of your green dot using the set function. That is, at every time point call set(h,'data',(t),'ydata',y(t)); drawnow;. Do this for all 10 trials you simulated. 6

7. (OPTIONAL) Now, let s generalize our network to allow for all different kinds of connections. We are going to allow the neurons to have reciprocal connections and autapses, we are not going to make all synaptic weights the same value, and we will allow them to be negative or positive. We can write this system as d dt = + w tanh() + w y tanh(y) (5) dy dt = y + w yy tanh(y) + w y tanh() (6) where w y indicates the synaptic strength that receives from y, w y is the opposite, and w and w yy represent autapses. Simulate the equations (5) and (6) using the Euler method as detailed in the previous question. Do it for the following set of synaptic weights (a) w = w yy = w y = w y = 2. (b) w = w yy = w y = w y = 2. (c) w = w yy = 2, w y = 1, w y = 2. (d) w = w yy = 2, w y = 0.5, w y = 2. (e) w = w yy = 2, w y = w y = 0.1. For each set of weights, animate your simulations on top of quiver plots, but do not worry about plotting nullclines. (Hint, if you have not done it yet, functionalizing your code will help you perform the different parts with minimal etra work.) 7