Romantic Relationships Background –Life would be very dull without the excitement (and sometimes pain) of romance! –Love affairs can be modelled by differential.

Slides:



Advertisements
Similar presentations
Boyce/DiPrima 9th ed, Ch 2.4: Differences Between Linear and Nonlinear Equations Elementary Differential Equations and Boundary Value Problems, 9th edition,
Advertisements

Ch 7.6: Complex Eigenvalues
5.4 Basis And Dimension.
5.1 Real Vector Spaces.
Ch 7.7: Fundamental Matrices
Differential Equations
Technique of nondimensionalization Aim: –To remove physical dimensions –To reduce the number of parameters –To balance or distinguish different terms in.
Modeling with Systems of Differential Equations
Differential Equations
Chapter 2: Second-Order Differential Equations
Boyce/DiPrima 10th ed, Ch 10.1: Two-Point Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 10th edition, by William.
Bifurcations & XPPAUT. Outline Why to study the phase space? Bifurcations / AUTO Morris-Lecar.
Ch 9.1: The Phase Plane: Linear Systems
First-Order Differential Equations
Ch 7.8: Repeated Eigenvalues
Ch 7.9: Nonhomogeneous Linear Systems
Chapter 6 Eigenvalues.
Ch 2.1: Linear Equations; Method of Integrating Factors
ENGG2013 Unit 22 Modeling by Differential Equations Apr, 2011.
Dynamical Systems Analysis II: Evaluating Stability, Eigenvalues By Peter Woolf University of Michigan Michigan Chemical Process Dynamics.
Ch 7.5: Homogeneous Linear Systems with Constant Coefficients
Ordinary Differential Equations Final Review Shurong Sun University of Jinan Semester 1,
Ordinary Differential Equations S.-Y. Leu Sept. 21,28, 2005.
Differential Equations and Boundary Value Problems
Differential Equations
Linear Functions.
CHAPTER SIX Eigenvalues
Linear Equations in Linear Algebra
Continous system: differential equations Deterministic models derivatives instead of n(t+1)-n(t)
EXAMPLES: Example 1: Consider the system Calculate the equilibrium points for the system. Plot the phase portrait of the system. Solution: The equilibrium.
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
Fin500J Topic 6Fall 2010 Olin Business School 1 Fin500J: Mathematical Foundations in Finance Topic 6: Ordinary Differential Equations Philip H. Dybvig.
Ordinary Differential Equations
Lecture 14: Stability and Control II Reprise of stability from last time The idea of feedback control Remember that our analysis is limited to linear systems.
Mechanical Vibrations In many mechanical systems: The motion is an oscillation with the position of static equilibrium as the center.
Math 3120 Differential Equations with Boundary Value Problems
Ch 9.5: Predator-Prey Systems In Section 9.4 we discussed a model of two species that interact by competing for a common food supply or other natural resource.
Sheng-Fang Huang. 4.0 Basics of Matrices and Vectors Most of our linear systems will consist of two ODEs in two unknown functions y 1 (t), y 2 (t),
LURE 2009 SUMMER PROGRAM John Alford Sam Houston State University.
Differential Equations. Definition A differential equation is an equation involving derivatives of an unknown function and possibly the function itself.
Integration of 3-body encounter. Figure taken from
Lecture #11 Stability of switched system: Arbitrary switching João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Chapter 4 Continuous Models Introduction –Independent variables are chosen as continuous values Time t Distance x, ….. –Paradigm for state variables Change.
Differential Equations
Chapter 24 Sturm-Liouville problem Speaker: Lung-Sheng Chien Reference: [1] Veerle Ledoux, Study of Special Algorithms for solving Sturm-Liouville and.
Differential Equations Chapter 1. A differential equation in x and y is an equation that involves x, y, and derivatives of y. A mathematical model often.
Ch 9.2: Autonomous Systems and Stability In this section we draw together and expand on geometrical ideas introduced in Section 2.5 for certain first order.
Differential Equations MTH 242 Lecture # 09 Dr. Manshoor Ahmed.
Def: The mathematical description of a system or a phenomenon is called a mathematical model.
Lecture #7 Stability and convergence of ODEs João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems NO CLASSES.
Recall: Finding eigvals and eigvecs. Recall: Newton’s 2 nd Law for Small Oscillations Equilibrium: F=0 ~0.
Recall: Pendulum. Unstable Pendulum Exponential growth dominates. Equilibrium is unstable.
Ch 9.6: Liapunov’s Second Method In Section 9.3 we showed how the stability of a critical point of an almost linear system can usually be determined from.
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
Math 4B Systems of Differential Equations Population models Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
7.3 Linear Systems of Equations. Gauss Elimination
Ch 10.1: Two-Point Boundary Value Problems
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Boyce/DiPrima 10th ed, Ch 7.7: Fundamental Matrices Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
Systems of Ordinary Differential Equations Case I: real eigenvalues of multiplicity 1 MAT 275.
§7-4 Lyapunov Direct Method
Systems of First Order Linear Equations
Boyce/DiPrima 10th ed, Ch 7.5: Homogeneous Linear Systems with Constant Coefficients Elementary Differential Equations and Boundary Value Problems, 10th.
Copyright © Cengage Learning. All rights reserved.
MAE 82 – Engineering Mathematics
Stability Analysis of Linear Systems
MATH 175: Numerical Analysis II
Presentation transcript:

Romantic Relationships Background –Life would be very dull without the excitement (and sometimes pain) of romance! –Love affairs can be modelled by differential equations – Stven Strogatz suggested a model, 1988 An example: –Suppose William is in love with Zelda, but Zelda is a fickle lover. –The more William loves her, the more she dislikes him – but when he loses interest in her, her feelings fro him warm up. –William reacts to her: when she loves him, his love for her grows and when she loses interest, he also loses interest.

Romantic Relationships Variables: –Independent variable: time: t –State variables: w(t): William’s feelings for Zelda at time t z(t): Zelda’s feelings for William at time t Positive and negative values of w and z denote love and dislike, resp. The exact units for the variables will be left to the imagination of the reader (e.g. the love between Romeo and Juliet can be cannonized in the name of ``romjul’’ for the units!) Assumptions: The change in one person’s feelings in a fixed time interval is directly proportional to the other person’s feelings over the same time interval.

Romantic Relationships The Model: –Consider the time interval –Change in the time interval Where a and b are two positive constants The minus sign to show that z decreases when w is positive, and conversely, z increases when w is negative !!

Romantic Relationships –Rate of change Linear first order ODE system with constant coefficients Solution –Try ansatz –Plug into the equations, we get

Romantic Relationships –Solution form –Initial condition –Solution

Romantic Relationships Graph of w(t) and z(t) for the case when a>b

Romantic Relationships Interpretation: Periodic solutions –At time t 0, William’s love for Zelda is a maximum and Zelda is neutral in her attitude to William –As time moves on, Zelda starts to dislike William (z(t)<0) and William’s love also diminishes until it is zero at t 1 and Zelda’s dislike is at its worst! –But for t>t 1, William starts to dislike Zelda who is now looking with new eyes at William, but unfortunately William’s dislike for Zelda is at it worst! –For t>t 2, Zelda is falling in love with William, consequently William is also losing his dislike for her until at t 3 William is over his dislike and Zelda is madly in love. –But now, as William is falling in love, Zelda’s love is cooling until at t 4 we have again the situation as at t=t 0. –Now the whole process repeats itself. –William and Zelda are in a perpetual cycle of love and hate, in fact, they love each other simultaneously for only one quarter of the time!!!!

Romantic Relationships Phase plane analysis –Solution –Equation –Remark: you can also get the equation from the solution

Romantic Relationships Graph in phase plane: an ellipse in (z,w)-plane with t as a parameter

Romantic Relationships Interpretation: Periodic solutions –At time t 0, William’s love for Zelda is a maximum and Zelda is neutral in her attitude to William –As time moves on, Zelda starts to dislike William (z(t)<0) and William’s love also diminishes until it is zero at t 1 and Zelda’s dislike is at its worst! –But for t>t 1, William starts to dislike Zelda who is now looking with new eyes at William, but unfortunately William’s dislike for Zelda is at it worst! –For t>t 2, Zelda is falling in love with William, consequently William is also losing his dislike for her until at t 3 William is over his dislike and Zelda is madly in love. –But now, as William is falling in love, Zelda’s love is cooling until at t 4 we have again the situation as at t=t 0. –Now the whole process repeats itself. –William and Zelda are in a perpetual cycle of love and hate, in fact, they love each other simultaneously for only one quarter of the time!!!!

Romantic Relationships Demo: –Case 1: a=0 & b=0 –Case 2: a=1 & b=0 –Case 3: a=0 & b=1 –Case 4: a=1 & b=1 –Case 5: a=1 & b=-1 –Case 5: a=1 & b=0.1 –Case 6: a=0.1 & b=1

Romantic Relationships Two ways to look at the solutions w(t) & z(t) –First way: look at the graphs of w(t) & z(t) as functions of t –Second way: eliminate the independent variable (if possible) to obtain a relation between w and z. Phase Plane: The plane whose points can be identified with coordinates on the (z,w)-axes. For autonomous system, we can always draw the phase plane.

Marriage Background: population model re-visited –An example: Malthus Model b & d denote the birth rate and the mortality rate, respectively. In general, these birth and mortality rates will differ in the population; for example, the birth rate will be close to zero in a home for senior citizens (let us not underestimate them!) Here, we will look at subsets of the population and their interaction in the process of population growth

Marriage We subdivide the population into three classes: –(i) unmarried males –(ii) unmarried females –(iii) married persons Assumptions –The marriage is monogamous (a wife & a husband!!!) –A person who are married, but is now single due to divorce or the death of the husband/wife, is unmarried –Only married couples produce children

Marriage Interaction between different classes –Married couples produce children who are unmarried –Unmarried persons decide to get married –The growth of each of the three classes is interrelated!! Variables –Independent variable: time: t –State variables: m(t): number of unmarried males in the population at time t f(t): number of unmarried females in the population at time t w(t): number of married couples in the population at time t

Marriage The model –The rate of change of m(t) depends on The mortality rate a of the unmarried male population The rate b at which unmarried females get married The birth rate c of (unmarried !) males produced by the married couples The mortality rate d of married females

Marriage –The rate change of f(t) depends on The rate b at which unmarried females get married The mortality rate e of unmarried female population The birth rate g of females produced by married couples The mortality rate h of married males

Marriage –The rate change of w(t) depends on The rate b at which unmarried females get married The mortality rate h of married males The mortality rate d of married females The equations

Marriage In vector (or matrix) form: –Denote –ODE system

Marriage Analytical solution –If B is diagonalizable: Discussions –Nondimensionalization –Equilibrium and stability

Analytic & Numerical Solutions of 1st Order ODEs General form of first order ODE system: –t: independent variable (time, in dimensionless form) – : state variable – a vector function of n+1 variables Solution: Y=Y(t) satisfies the equation –Existence & uniqueness ??? –Same theorem as for single equation –Infinitely many different solutions!!!

Classification –Linear ODE system, i.e. the function F is linear in Y –Otherwise, it is nonlinear –Autonomous ODE system, i.e. F is independent of t Some cases which can be solved analytically

Solutions of ODE Solution structure of simple equation –If Y 1 (t) is a solution, then Y 1 (t)+c is also a solution for any vector c ! –If Y 1 (t) and Y 2 (t) are two solutions, then there exists a constant vector c such that Y 2 (t)=Y 1 (t)+c. –If Y 1 (t) is a specific solution, then the general solution is (or any solution can be expressed as) Y 1 (t)+c

Solutions of ODE Infinitely many different solutions!!! Solution structure of linear homogeneous problem –If Y 1 (t) is a solution, then c Y 1 (t) is also a solution for any constant c ! –If Y 1 (t) and Y 2 (t) are two nonzero solutions, then c 1 Y 1 (t) + c 2 Y 2 (t) is also a solution (superposition).

Solutions of ODE Solution structure of linear problem –If Y 1 (t) is a solution of the homogeneous equation, Y 2 (t) is also a specific solution. Then Y 2 (t)+c Y 1 (t) is also a solution for any constant c ! –If Y 1 (t) and Y 2 (t) are two solutions, Y 1 (t)-Y 2 (t) is a solution of the homogeneous equation.

Solutions of IVP Initial value problem (IVP): Solution: –Existence –Uniqueness

Solutions of IVP Theorem: Suppose that the real-valued function F(t,Y) is continuous on some rectangle in the (t,Y)-plane containing the point (t 0,Y 0 ) in its interior. Then the above initial value problem has at least one solution defined on some open interval J containing the point t 0. If, in addition, the partial derivative is continuous on that rectangle, then the solution is unique on some (perhaps smaller) open interval J 0 containing the point t=t 0. Proof: Omitted

Solution: Case I –F is independent of y, i.e. Analytical solution Example 1: –Solution

Solution: case II Linear homogeneous system Analytical solution –If B is diagonalizable: –The solution –An example

Equilibrium & stability Consider autonomous ODE Equilibrium: Asymptotically stable: Conditions: –Stable: real parts of all eigenvalues of the Jacobian matrix are negative –Unstable: at least the real part of one eigenvalue of the Jacobian matrix is positive

Equilibrium & satiability Example: –Romantic relationships model –Equilibrium: w=z=0 –Jacobian matrix –Two eigenvalues –Unstable!!!

Phase plane portrait For autonomous ODE system with two state variables Two ways to look at the solutions x(t) & y(t) –First way: look at the graphs of x(t) & y(t) as functions of t –Second way: eliminate the independent variable (if possible) to obtain a relation between y and x. Phase Plane: The plane whose points can be identified with coordinates on the (x,y)-axes. For autonomous system, we can always draw the phase plane. Examples –Lotka-Voleterra system –Romantic relationships

Numerical methods Consider initial-value problem (IVP): Choose a time step and partition [0,T] into n pieces Denote

Numerical methods –4 th order Runge-Kutta (RK) method