ENGI 9420 Lecture Notes 4 - Stability Analysis Page Stability Analysis for Non-linear Ordinary Differential Equations

Similar documents
ENGI 9420 Lecture Notes 4 - Stability Analysis Page Stability Analysis for Non-linear Ordinary Differential Equations

ENGI Linear Approximation (2) Page Linear Approximation to a System of Non-Linear ODEs (2)

ENGI Duffing s Equation Page 4.65

Nonlinear Autonomous Systems of Differential

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

STABILITY. Phase portraits and local stability

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

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

ENGI 9420 Lecture Notes 1 - ODEs Page 1.01

Copyright (c) 2006 Warren Weckesser

LECTURE 8: DYNAMICAL SYSTEMS 7

7 Planar systems of linear ODE

Math 266: Phase Plane Portrait

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

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

ENGI Second Order Linear ODEs Page Second Order Linear Ordinary Differential Equations

Consider a particle in 1D at position x(t), subject to a force F (x), so that mẍ = F (x). Define the kinetic energy to be.

Section 9.3 Phase Plane Portraits (for Planar Systems)

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

Consider an ideal pendulum as shown below. l θ is the angular acceleration θ is the angular velocity

MCE693/793: Analysis and Control of Nonlinear Systems

Nonlinear differential equations - phase plane analysis

Math 216 Final Exam 24 April, 2017

Solutions to Dynamical Systems 2010 exam. Each question is worth 25 marks.

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

Calculus and Differential Equations II

n n. ( t) ( ) = = Ay ( ) a y

Department of Mathematics IIT Guwahati

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

8.1 Bifurcations of Equilibria

Linear Planar Systems Math 246, Spring 2009, Professor David Levermore We now consider linear systems of the form

Section 5. Graphing Systems

Even-Numbered Homework Solutions

MATH 415, WEEKS 7 & 8: Conservative and Hamiltonian Systems, Non-linear Pendulum

2.10 Saddles, Nodes, Foci and Centers

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

ODE. Philippe Rukimbira. Department of Mathematics Florida International University PR (FIU) MAP / 92

Nonlinear dynamics & chaos BECS

APPM 2360: Final Exam 10:30am 1:00pm, May 6, 2015.

Complex Dynamic Systems: Qualitative vs Quantitative analysis

20D - Homework Assignment 5

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

ENGI 3424 First Order ODEs Page 1-01

B. Differential Equations A differential equation is an equation of the form

Nonlinear Oscillations and Chaos

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

Systems of Linear ODEs

First order differential equations

Solutions Chapter 9. u. (c) u(t) = 1 e t + c 2 e 3 t! c 1 e t 3c 2 e 3 t. (v) (a) u(t) = c 1 e t cos 3t + c 2 e t sin 3t. (b) du

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

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

ENGI 4430 PDEs - d Alembert Solutions Page 11.01

Homogeneous Constant Matrix Systems, Part II

Problem List MATH 5173 Spring, 2014

Old Math 330 Exams. David M. McClendon. Department of Mathematics Ferris State University

Final 09/14/2017. Notes and electronic aids are not allowed. You must be seated in your assigned row for your exam to be valid.

TEST CODE: MMA (Objective type) 2015 SYLLABUS

Nonlinear Control Lecture 2:Phase Plane Analysis

Solutions to Final Exam Sample Problems, Math 246, Spring 2011

Exam 4 SCORE. MA 114 Exam 4 Spring Section and/or TA:

dx n a 1(x) dy

Solutions to Math 53 Math 53 Practice Final

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient.

Introduction to the Phase Plane

Lecture for Week 6 (Secs ) Derivative Miscellany I

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

New Material Section 1: Functions and Geometry occurring in engineering

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

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

CDS 101 Precourse Phase Plane Analysis and Stability

4 Second-Order Systems

Problem set 7 Math 207A, Fall 2011 Solutions

One Dimensional Dynamical Systems

Hello everyone, Best, Josh

C3 A Booster Course. Workbook. 1. a) Sketch, on the same set of axis the graphs of y = x and y = 2x 3. (3) b) Hence, or otherwise, solve the equation

Linearization of Differential Equation Models

FIRST-ORDER SYSTEMS OF ORDINARY DIFFERENTIAL EQUATIONS III: Autonomous Planar Systems David Levermore Department of Mathematics University of Maryland

Exercises for Multivariable Differential Calculus XM521

MTH 464: Computational Linear Algebra

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

NORMAL MODES, WAVE MOTION AND THE WAVE EQUATION. Professor G.G.Ross. Oxford University Hilary Term 2009

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

MATH 162. Midterm 2 ANSWERS November 18, 2005

Econ 204 Differential Equations. 1 Existence and Uniqueness of Solutions

ẋ = f(x, y), ẏ = g(x, y), (x, y) D, can only have periodic solutions if (f,g) changes sign in D or if (f,g)=0in D.

Dynamical Systems & Lyapunov Stability

Sec 4 Maths SET D PAPER 2

Introduction to First Order Equations Sections

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

Autonomous Systems and Stability

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

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

The construction and use of a phase diagram to investigate the properties of a dynamic system

AP Calculus (BC) Chapter 10 Test No Calculator Section. Name: Date: Period:

MAT 22B - Lecture Notes

Stability of Dynamical systems

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

MTH4101 CALCULUS II REVISION NOTES. 1. COMPLEX NUMBERS (Thomas Appendix 7 + lecture notes) ax 2 + bx + c = 0. x = b ± b 2 4ac 2a. i = 1.

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

PUTNAM PROBLEMS DIFFERENTIAL EQUATIONS. First Order Equations. p(x)dx)) = q(x) exp(

Transcription:

ENGI 940 Lecture Notes 4 - Stability Analysis Page 4.0 4. Stability Analysis for Non-linear Ordinary Differential Equations A pair of simultaneous first order homogeneous linear ordinary differential equations for two functions x(t), y(t) of one independent variable t, dx x = = ax + by dy y = = cx + d y x a b x may be represented by the matrix equation = y c d y A single second order linear homogeneous ordinary differential equation for x(t) with constant coefficients, d x dx dy + p + qx = 0 + py + qx = 0 may be re-written as a linked pair of first order homogeneous ordinary differential equations, by introducing a second dependent variable: dx dy d dx d x = y = = dy = qx py x 0 x and may also be represented in matrix form = y q p y The general solution for (x, y) in either case can be displayed graphically as a set of contour curves (or level curves) in a phase space. Sections in this chapter: 4.0 Motion of a Pendulum 4.0 Stability of Stationary Points 4.03 Linear Approximation to a System of Non-Linear ODEs () 4.04 Reminder of Linear Ordinary Differential Equations 4.05 Stability Analysis for a Linear System 4.06 Linear Approximation to a System of Non-Linear ODEs () 4.07 Limit Cycles 4.08 Van der Pol s Equation 4.09 Theorem for Limit Cycles 4.0 Lyapunov Functions [for reference only - not examinable] 4. Duffing s Equation 4. More Examples 4.3 Liénard s Theorem

ENGI 940 4.0 - Pendulum Page 4.0 4.0 Motion of a Pendulum Consider a pendulum, moving under its own weight, without friction. The pendulum bob has mass m, the shaft has length L and negligible mass, and the angle of the shaft with the vertical is x. The tension along the shaft is T. The acceleration due to gravity is g ( 9.8 m s ). Resolving forces radially (centripetal force) Resolving forces transverse to the pendulum: T + mg cos x = ml x mg sin x = ml x g () L x + k sin x = 0, where k = The Maclaurin series expansion of sin x is: 3 5 x x sin x = x + 3! 5! Provided the oscillations of the pendulum are small, (x << ), sin x x and the ordinary differential equation governing the motion of the pendulum is, to a good approximation, d x + kx= 0 () (which is the ODE of simple harmonic motion)

ENGI 940 4.0 - Pendulum Page 4.03 Let the angular velocity of the pendulum be v Then, using the chain rule of differentiation, dv dv dx dv x = v = = = v dx dx dx = x =. The ODE () becomes dv v k x 0 v dv k x dx 0 dx + = + = v x c v dv + k x dx = 0 + k = v + k x = c (3) If at time t = 0 the pendulum is passing through its equilibrium position with angular speed v o, then the initial conditions are dx x v v ( 0) = 0, = ( 0) = o t = 0 Substituting the initial conditions into (), vo + k 0 = c, which leads to a complete solution for v as an implicit function of x, v + kx = v o (4) A plot of this solution for various choices of v o generates a family of concentric ellipses. Recall that this solution is valid only for small displacements x. The x-v plane is called the phase plane.

ENGI 940 4.0 - Pendulum Page 4.04 Returning to the more general case g x + k sin x = 0, where k = () L and again using dv dv dx dv x = v = = = v dx dx the ODE can be re-written as dv v k sin x 0 v dv k sin x dx 0 dx + = + = v c v dv + k sin x dx = 0 k cos x = ml v + ( ml k cos x) = ml c (5) KE.. PE.. Total energy However, the kinetic energy is ( ) m Lv. In the absence of friction, the sum of kinetic and potential energy is constant, so that the potential energy of the pendulum must be ml k cos x (= mg L cos x, which makes sense upon examining the diagram on page 4.0). Each value of total energy E = ml c generates an orbit (or energy curve). The relationship between total energy and initial angular velocity is obtained from substituting the initial conditions (x = 0 and v = v o when t = 0) into (5): vo c k = c = vo k v k cos x = vo k (6) vo v = k k cos x = k ( cos x) 0 vo v 0 vo v v vo The maximum angular speed of the pendulum, v o, occurs when x = 0. Also, using cos sin sin cos θ = θ θ = θ, v o v x = cos x = sin k vo v x = sin 4k

ENGI 940 4.0 - Pendulum Page 4.05 dx Recall that the angular velocity is just v =. Differentiating the complete solutions (6): v k cosx = vo k implicitly with respect to time, we obtain dv dx dv v + k sin x = 0 = k sin x This expression can also be derived directly from the ODE x + k sin x = 0 (). dx d x dv v 0 and k sinx 0 When 0 < x < π and v > 0, = > = = <. Therefore, in the phase plane, as x increases from the starting point (0, v o ), v decreases in the first quadrant, until the maximum value of x (label that maximum value of x as M). Tracking back into the second quadrant, before (0, v o ), dx d x dv π < x < 0 and v > 0 = v > 0 and = = k sinx > 0. The orbit increases from x = M to a maximum at (0, v o ), then decreases until x = +M. This tracks the motion of the pendulum on its complete swing from left to right. By symmetry, the swing in the opposite direction should generate a mirror image in the x axis of the phase plane, to complete the orbit.

ENGI 940 4.0 - Pendulum Page 4.06 (6) v k cosx = v k o x v v k ( cosx) v k sin = o = o x v = vo ksin Three cases arise: (7) v o < k : v will decrease to zero: x x vo o v= 0 0 = v ksin sin = ± k In the first quadrant of the phase plane, the orbit will move right and down to an intercept M vo on the x axis at (M, 0), where sin = + and 0 < M < π. Extending to the k other three quadrants, the orbits resemble ellipses, centred on the origin. v o = k : v will just barely decrease to zero: x x v= 0 0 = ( k) ksin = ( k) cos M = ± π The pendulum swings all the way to the upside-down position and comes to rest there, before either swinging back or continuing on in the same direction. v o > k : The pendulum will never come to rest, reaching a non-zero minimum speed as it passes through the upside-down position: x v sin o = ± has no real solution for x when v o > k. k If it is swinging anticlockwise, then the orbit stays in the first and second quadrants. If it is swinging clockwise, then the orbit stays in the third and fourth quadrants. These orbits are not closed and extend beyond the range π < x < π. π vmin = vo ksin = vo 4 k We can then generate the full set of orbits in the phase plane for the general pendulum problem.

ENGI 940 4.0 - Pendulum Page 4.07 As time progresses, one moves along an orbit to the right above the x axis, but to the left dx below the x axis v =. The relationship (7) between angular velocity v and angle x is itself a first order non-linear ordinary differential equation for x as a function of the time t: dx o sin x v k dx vo ksin x = = ± dx ± = t + C x vo 4k sin For the case of closed orbits ( v o < k), the time to complete one orbit (the period T of the pendulum) can be shown to be π / 4 dθ M vo g T =, where b= sin = and k = k 0 b sin θ k L This is a complete elliptic integral of the first kind, which has no analytic solution in terms of finite combinations of algebraic functions, (except for special choices of v o and k). As v o k, the period T diverges to infinity it takes forever for the zero energy pendulum to reach the upside-down position.

ENGI 940 4.0 - Stability Page 4.08 4.0 Stability of Stationary Points Consider the (generally non-linear) system of simultaneous first order ordinary differential equations dx dy = x = P( x, y), = y = Q( x, y) () (, ) (, ) dy dy y Q x y Using the chain rule, dx = dx = x =. P x y This can be integrated with respect to x to obtain a solution for y as an implicit function of x, provided P(x, y) 0. At points where P(x, y) = 0 but Q(x, y) 0, one may dx P( x, y) integrate = instead. dy Q x, y ( ) Points on the phase plane where P(x, y) = Q(x, y) = 0 are singular points. A unique slope does not exist at such points. Alternative names for singular points are equilibrium points or stationary points (because both x and y do not [instantaneously] change with time there) or critical points or fixed points. A singular point is stable (and is called an "attractor") if the response to a small disturbance remains small for all time. Stable singular point: all paths starting inside the inner circle stay closer than the outer circle forever. Unstable singular point. (or source )

ENGI 940 4.0 - Stability Page 4.09 Consider the system x = Pxy,, y = Qxy,, x0 = x*, y0 = y*, P0,0 = Q0,0 = 0 () ( ) ( ) ( ) ( ) ( ) ( ) which has a stationary point at the origin. Let x(t; x*), y(t; y*) be the complete solution to this system. The stationary point at the origin is stable if and only if, for every ε > 0 (however small), there exists a δ(ε) such that whenever the point (x*, y*) = (x(0; x*), y(0; y*)) is closer than δ to the origin, the point (x(t; x*), y(t; y*)) remains closer than ε to the origin for all time, or ( x* ) ( y* ) δ x ( t; x* ) y ( t; y* ) + < + < ε t A stationary point is asymptotically stable (also known as a sink ) if it is stable and any disturbance ultimately vanishes: lim x ( t; x* ) + y ( t; y* ) = 0. t

ENGI 940 4.0 - Stability Page 4.0 Here are three types of stationary points with nearby orbits: Stable centre (but not asymptotically stable) Unstable saddle point [all saddle points are unstable] Asymptotically stable focus (or spiral sink)

ENGI 940 4.03 - Linear Approximation () Page 4. 4.03 Linear Approximation to a System of Non-Linear ODEs () The Taylor series of any function f (x, y) about the point (x 0, y 0 ) is f f f ( x, y) = f ( x0, y0) + ( x x0) + ( y y0) + x ( x, y ) y ( x, y ) ( ) 0 0 0 0 ( )( ) ( ) f x x0 f x x0 y y0 f y y + + x ( 0, 0)! x y ( 0, 0)! y ( 0, 0)! x y x y x y provided that the series converges to f (x, y). 0 + () This allows us to create a linear approximation to the non-linear system x = Pxy,, y = Qxy,, x0 = x*, y0 = y*, P0,0 = Q0,0 = 0. () ( ) ( ) ( ) ( ) ( ) ( ) P P P( x, y) = P( 0,0) + x + y + P ( x, y) (3) x y (, ) ( 0,0) ( 0,0) P x y where lim = 0, (because P (x, y) is at least second order in x, y) ( xy, ) ( 0,0) x + y and similarly for Q(x, y), so that the system becomes x = ax + by + P x, y ( ) (, ) y = cx + d y + Q x y where a, b, c, d are all constants. In the neighbourhood of the singular point (0, 0), this system can be modelled by the linear system x = ax + by (5) y = cx + d y P P Q Q where a =, b =, c =, d =. x y x y ( 0,0) ( 0,0) ( 0,0) ( 0,0) (4)

ENGI 940 4.04 - ODEs Page 4. 4.04 Reminder of Linear Ordinary Differential Equations To find the general solution of the homogeneous second order linear ODE d y dy + p dx dx + q y = 0, with constant real coefficients p and q, form the auxiliary equation or characteristic equation λ + pλ + q = 0 and evaluate the discriminant D = p ± D p 4q and the roots λ, λ =. Three cases arise. D > 0 : The characteristic equation has a pair of distinct real roots λ, λ. The general solution is y = λ Ae x + λx Be. D = 0: The characteristic equation has a pair of equal real roots λ. x The general solution is y = ( Ax + B) e λ. D < 0 : The characteristic equation has a complex conjugate pair of roots λ, λ = a ± bj. The general solution is y ax = e ( Acosbx + Bsin bx), where A, B are arbitrary constants of integration.

ENGI 940 4.04 - ODEs Page 4.3 To find the general solution of the system of simultaneous first order linear ODEs dx = ax + by dy = cx + d y λ, t λt x t y t = αe, βe into the ODE, to obtain substitute the trial solution () () ( ) ( ) e λt αλ = aα e λt + bβ e λt βλe λt = cα e λt + dβ e λt or, in matrix form, a λ b α 0 = c d λ β 0 α = β = 0 is a solution (the trivial solution) for any choice of a, b, c, d and λ. Non-trivial solutions exist when the determinant of the matrix of coefficients is zero: a λ b = 0 ( a λ)( d λ) bc = 0 c d λ ( a d ) λ ( ad bc) λ + + = which is the characteristic equation of the system. The solutions to the characteristic equation are the eigenvalues of the coefficient matrix a b A = c d and, for each eigenvalue λ, a non-zero vector α that satisfies the equation β a λ b α 0 = c d λ β 0 is an eigenvector for that eigenvalue. The general solution to the system of ODEs is a linear combination of the solutions arising from each eigenvalue: ( x() t, y() t ) ( c e λ ) t c e λt, c e λt λ = α + α β + c β e t unless the eigenvalues are equal, in which case the general solution is t t x t, y t c c t e λ λ = α + α, cβ + c β t e ( ) ( () ()) ( ) ( ) (where, in this case, (α, β ) is not necessarily an eigenvector). 0

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.4 4.05 Stability Analysis for a Linear System In the case where (0, 0) is the only critical point of the system dx = ax + by dy = cx + d y it follows that the characteristic equation λ ( a + d ) λ + ( ad bc) = has only non-zero roots and that det A = ad bc 0. 0 Proof: If λ = 0 then at least one eigenvalue of the coefficient matrix A is zero, from which it follows immediately that a 0 b = det A = ad bc = 0 c d 0 Both roots non-zero ad bc 0. If (0, 0) is the only critical point of the system, then no other choice of (x, y) satisfies both equations ax + by = 0 ( ad bc) x = 0 cx + d y = 0 ( ad bc) y = 0 from which it follows immediately that ad bc = det A 0. If the roots are both non-zero and (x, y) is a critical point of the system, then ax + by = 0 ( ad bc) x = 0 cx + d y = 0 ( ad bc) y = 0 But λ, λ 0 ad bc 0 (0, 0) is the only solution to this pair of simultaneous linear equations. Therefore (0, 0) is the only critical point of the system if and only if both roots of the characteristic equation are non-zero.

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.5 Let ( α, β be the eigenvector associated with the eigenvalue λ i of the coefficient i i) matrix A Let c, c be arbitrary constants. a b = c d Case of real, distinct, negative eigenvalues (with λ < λ < 0 ): Two linearly independent solutions are x t, y t e λ t, e λ t and x t, y t e λ t λ = α β = α, β e t ( () ()) ( ) () () ( ) ( ) The general solution is ( x() t, y() t ) ( c e λ ) t c e λt, c e λt λ = α + α β + c β e t ( ) ( ) One can see that x() t y() t lim, = 0, 0. t All orbits therefore terminate at the critical point at the origin. The system is asymptotically stable. If both arbitrary constants are zero, then we have the trivial solution (x = y = 0 for all t). If one of the arbitrary constants is zero (say c ), then t t x() t, y() t = cα e λ, cβe λ y t = β x t α which is a straight line through the β origin, of slope α. [The situation is similar if c is zero.] ( ) ( ) () () We therefore obtain straight-line trajectories ending at the singular point, when exactly one of the arbitrary constants is zero.

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.6 If neither arbitrary constant is zero, then λt λt ( λ λ) t ( λ λ) t y() t cβ e + cβe cβ + cβe cβe + cβ = = = x() t λt λt ( λ λ) t ( λ λ) t cα e + c α e cα + c α e cα e + c α Because λ < λ < 0, lim t and lim t () () y t x t () () y t x t ( λ λ ) β + β β c e c = lim = t ( λ λ ) t α c e c α + α t ( λ λ ) t β + β β ( λ λ) t α α + α c c e = lim = t c c e β All orbits therefore come in from infinity parallel to the line y = x. α β All orbits share the same tangent at the origin, y = x. α We obtain a stable node that is also asymptotically stable. [The case illustrated here is α =, α = 3, β =, β =, λ = 5, λ = 0, which is + 3 generated from A = 4.] Case of real, distinct, positive eigenvalues (with λ > λ > 0 ): The analysis leads to the same phase space, except that the arrows are reversed. The result is an unstable node.

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.7 Case of real, distinct eigenvalues of opposite sign (with λ < 0 < λ): The general solution is ( x() t, y() t ) ( c e λ ) t c e λt, c e λt λ = α + α β + c β e t x () t y () t x t y t ( ) ( ( ) ( )) λ < 0 < λ lim, and lim, do not exist (infinite), t t (with the exception of the orbit for c = 0). All orbits (except c = 0) therefore move away from the critical point at the origin. The system is unstable. If both arbitrary constants are zero, then we have the trivial solution (x = y = 0 for all t). If one of the arbitrary constants is zero (say c ), then λt λt β x() t, y() t = cα e, cβe y t = x t α β which is a straight line through the origin, of slope α. [The situation is similar if c is zero.] ( ) ( ) () () We therefore obtain straight-line trajectories when one of the arbitrary constants is zero. One of them (c = 0) ends at the singular point while the other begins there. If neither arbitrary constant is zero, then λt λt ( λ λ) t ( λ λ) t y() t cβ e + cβe cβ + cβe cβe + cβ = = = x() t λt λt ( λ λ) t ( λ λ) t cα e + c α e cα + cα e cα e + c α Because λ < 0 < λ, lim t and lim t () () y t xt () () y t xt ( λ λ ) β + β β c e c = lim = t ( λ λ ) t α c e c α + α t ( λ λ ) t β + β β ( λ λ) t α α + α c c e = lim = t c c e

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.8 β All orbits therefore share the same asymptotes, y = x (incoming) and α β y = x (outgoing). α We obtain a saddle point, which is an unstable critical point. [The case illustrated here is α =, α = 3, β =, β =, λ =+ 5, λ = 5, which is generated from A 7 6 = 4 7.]

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.9 Case of real, equal, negative eigenvalues ( λ = λ < 0) and b = c = 0: The system is uncoupled: dx = ax dy = dy and equal eigenvalues now require a = d = λ. x t, y t = λt λt c e, c e. ( ) ( ) The general solution is () () λ 0 lim ( x () t, y () t ) (, ) and lim ( x () t, y () t ) ( 0 ) < = =,0. t t All orbits therefore terminate at the critical point at the origin. The system is asymptotically stable. If both arbitrary constants are zero, then we have the trivial solution (x = y = 0 for all t). y() t c c 0 t xt () = c and c = 0, c 0 x() t = 0 t The orbits are straight lines ending at the critical point at the origin. The critical point is an asymptotically stable star-shaped node. Additional Note: The eigenvalues of any triangular matrix are the diagonal entries of that matrix: a b The characteristic equation of A = 0 d det A λ I = 0 is ( ) a λ b = = = 0 d λ ( a λ)( d λ) 0 λ a o r d

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.0 Case of real, equal, negative eigenvalues ( λ = λ < 0) and b, c not both zero: The characteristic equation λ ( a d ) λ ( ad bc) ( ) ( ) ( ) + + = has the discriminant a + d 4 ad bc = a d + 4bc = 0. a+ d The solution of the characteristic equation simplifies to λ =. t t x t, y t c c t e λ λ = α + α, cβ + c β t e. ( ) The general solution is ( () ()) ( ) ( ) λ 0 lim x () t, y () t, and lim x t, y t 0 t ( ) ( ) () () t 0 ( ) ( ) < = =,0. All orbits therefore terminate at the critical point at the origin. The system is asymptotically stable. If both arbitrary constants are zero, then we have the trivial solution (x = y = 0 for all t). y() t cβ + cβt β If c 0, then = as t ± xt () cα + cαt α All orbits (except for c = 0) therefore come in from infinity parallel to the line β y = x, which is also a tangent at the origin. It can be shown that α β β β = when c = 0, so that the trajectories for c = 0 and c = 0 are both y = x. α α α Neither eigenvalue can be zero, otherwise (0, 0) is not the only critical point (as shown on page 4.4).

ENGI 940 4.05 - Stability Analysis (Linear) Page 4. Case of real, equal, positive eigenvalues ( λ = λ > 0 ) The analysis leads to the same phase planes as in the case of real equal negative eigenvalues, but the signs of the arrows are reversed and the result is an unstable node. Case of complex conjugate pair of eigenvalues with negative real part The eigenvalues (roots of the characteristic equation) are λ = a + jb, λ = a jb, ( a<0 ). The general solution has the form x() t = c( Acosbt Asin bt) c( Asin bt Acosbt) + + e y () t = c( Bcosbt Bsin bt) c( Bsin bt Bcosbt) + + e Using the definitions = ( ) + ( + ), B = ( c B c B ) + ( c B + c B ) A ca ca ca ca ca + ca ca ca cb + cb cb cb cos α =, sinα =, cos β =, sin β = A A B B the general solution can be written more compactly as at at x t, y t = A e cos bt + α, B e cos bt + β at at ( ) ( ) ( ) () () ( () ()) ( ) ( ) () () ( ) ( ) a< 0 lim x t, y t =, and lim x t, y t = 0,0. t π If xt 0 then bt n n π If y t = 0 then bt+ β = + nπ n y() t Bcos( bt+ β ) = x() t Acos( bt+ α ) y () t is periodic, with period π. x() t b The orbits spiral in to the origin. () = + α = + π ( ) () ( ) We have an asymptotically stable spiral, also known as a stable focus. t

ENGI 940 4.05 - Stability Analysis (Linear) Page 4. Case of complex conjugate pair of eigenvalues with positive real part The analysis leads to the same phase planes as in the case of negative real part, but the signs of the arrows are reversed and the result is an unstable focus. Case of complex conjugate pair of eigenvalues with zero real part (pure imaginary) The eigenvalues (roots of the characteristic equation) are λ = jb, λ = + jb. The general solution has the compact form ( x() t, y() t ) = ( Acos ( bt+ α ), Bcos( bt+ β )) π If α = 0 and β =, then x y ( x() t, y() t ) = ( Acos bt, Bsinbt) A + B = so that the orbits are ellipses, centred on the critical point at the origin. This is a stable centre. Other choices of α and β also lead to concentric sets of ellipses, but rotated with respect to the coordinates axes. Note that this is the only case of a stable critical point that is not asymptotically stable.

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.3 Summary for the Linear System dx dy = ax + by, = cx + dy, abcd,,, = constants Characteristic equation: λ a + d λ + ad bc = 0 Discriminant ( ) ( ) ( ) ( ) ( ) ( ) D = a+ d 4 ad bc = a d + 4bc a b Roots of characteristic equation (= eigenvalues of A = ): c d Cases: λ = ( ) a+ d ± D a + d D other condition λ Type of point a + d < 0 D > 0 ad bc > 0 real, distinct Stable negative node a + d < 0 D = 0 b = c = 0 real, equal Stable negative star shape a + d < 0 D = 0 b, c not both 0 real, equal Stable negative node a + d < 0 D < 0 complex Stable conjugate pair focus [spiral] a + d = 0 D < 0 Pure Stable imaginary pair centre a + d > 0 D > 0 ad bc > 0 real, distinct Unstable positive node (any) D > 0 ad bc < 0 real, distinct Unstable opposite signs saddle point a + d > 0 D = 0 b = c = 0 real, equal Unstable positive star shape a + d > 0 D = 0 b, c not both 0 real, equal Unstable positive node a + d > 0 D < 0 complex Unstable conjugate pair focus [spiral] Note that ad bc = det A and that a + d = the trace of the matrix A. In brief, if the real parts of both eigenvalues are negative (or both zero), then the origin is stable. Otherwise it is unstable. [See also the example at "www.engr.mun.ca/~ggeorge/940/demos/phases.html".]

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.4 Example 4.05. Find the nature of the critical point of the system dx dy = 4x 3 y, = 5x 4y and find the general solution. a b 4 3 The coefficient matrix is A = = c d 5 4. trace(a) = a + d = 4 + ( 4) = 0 D = (a d) + 4bc = (4 + 4) + 4( 3)(5) = 64 60 = +4 > 0 4 3 det A = = 6 + 5 < 0 5 4 D > 0 and ad bc < 0 λ are real with opposite signs and the critical point is a saddle point (unstable). Solving the system: ( a+ d) ± D 0 ± 4 λ = = = ± x t, y t = cα e + c α e, cβ e + c β e ( () ()) ( t t t t ) α where is the eigenvector associated with the eigenvalue λ = β α and β is the eigenvector associated with the eigenvalue λ = +. To find the eigenvectors, find non-zero solutions to the equation a λ b α 0 = c d λ β 0 At λ = : 4+ 3 α 5 3 α 0 = = 5 4+ β 5 3 β 0 Any non-zero choice such that 5α 3β = 0 will provide an eigenvector. α 3 Select =. β 5

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.5 Example 4.05. (continued) At λ = +: 4 3 α 3 3 α 0 = = 5 4 β 5 5 β 0 Any non-zero choice such that α β = 0 will provide an eigenvector. α Select =. β The general solution is t t t t ( x() t, y() t ) ( 3 ce = + ce, 5ce + ce ) ]. [It is simple to check that (4x 3y, 5x 4y) is indeed equal to ( x, y) Also note that y() t t t 5ce + ce y ( t) 5 y( t) = t t lim = ( c 0) and lim = c 0 x() t 3ce t + ce x() t 3 t + x() t so that all orbits for which both c and c are non-zero share the same asymptotes, 3y = 5x (which is the incoming orbit, when c = 0) and y = x (which is the outgoing orbit, when c = 0). ( ) A few representative orbits and the two asymptotes are plotted in this phase space diagram:

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.6 Example 4.05. Find the nature of the critical point of the system dx dy = x + y, = x y and find the general solution. a b The coefficient matrix is A = = c d. trace(a) = a + d = + = 4 < 0. D = (a d) + 4bc = ( + ) + 4()() = 0 + 4 = 4 > 0 λ are real, distinct and negative and det A = ad bc = 4 = 3 > 0 the critical point is a stable node. Solving the system: ( a+ d) ± D 4 ± 4 λ = = = ± = 3,, 3 t t, 3 t t x t y t = cα e + c α e cβ e + c β e ( () ()) ( ) α where is the eigenvector associated with the eigenvalue λ = 3 β α and β is the eigenvector associated with the eigenvalue λ =. To find the eigenvectors, find non-zero solutions to the equation a λ b α 0 = c d λ β 0 At λ = 3: + 3 α α 0 = = + 3 β β 0 Any non-zero choice such that α + β = 0 will provide an eigenvector. α Select =. β At λ = : + α α 0 = = + β β 0 Any non-zero choice such that α + β = 0 will provide an eigenvector. α Select =. β

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.7 Example 4.05. (continued) The general solution is ( () ()) ( 3 t t, 3 t t x t y t = ce + ce, ce + ce ) ]. [It is simple to check that ( x + y, x y) is indeed equal to ( x, y) Also note that y() t 3t t t t ce + ce ce + c c + ce = = = x() t 3t t t t ce + ce ce + c c + ce y() t y() t lim = ( c 0) and lim = c 0 t xt t + xt () and () () () ( ) ( ) ( 3 t t 3 t t x t y t = ce + ce ce + ce ) = ( ) lim, lim, 0, 0 t t so that all orbits for which both c and c are non-zero come in from a direction parallel to y = x (which is the orbit when c = 0) and share the same tangent at the origin, y = x (which is the orbit when c = 0). A few representative orbits and the common tangent are plotted in this phase space diagram:

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.8 Example 4.05.3 Find the nature of the critical point of the system dx dy = x 5 y, = x 3y and find the general solution. a b 5 The coefficient matrix is A = = c d 3. trace(a) = a + d = + 3 = < 0. D = (a d) + 4bc = ( + 3) + 4( 5)() = 6 0 = 4 < 0 λ are a complex conjugate pair with negative real part and the critical point is a stable focus (spiral). Solving the system: ( a+ d) ± D ± 4 λ = = = ± j ( ) ( + ) ( ) ( + ) xt, yt = cα e + cα e, cβ e + cβ e ( () ()) ( jt jt jt jt ) α where β is the eigenvector associated with the eigenvalue λ = j α and β is the eigenvector associated with the eigenvalue λ = + j. To find the eigenvectors, find non-zero solutions to the equation a λ b α 0 = c d λ β 0 At λ = j: ( j) 5 α + j 5 α 0 3 ( j = = ) β + j β 0 Any non-zero choice such that α = ( j) β will provide an eigenvector. Note that the two rows of the matrix equation are equivalent: 5β 5β j 5 ( j) β ( + j) α 5β = 0 α = = = = ( j) β + j + j j 4+ α j Select = β. At λ = + j: ( + j) 5 α j 5 α 0 3 ( j = = + ) β j β 0 Any non-zero choice such that α = (+j) β will provide an eigenvector.

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.9 Example 4.05.3 (continued) Again the two rows of the matrix equation are equivalent. α + j Select = β. The general solution is ( () ()) ( ) ( xt, yt = ( c jt ) ( ) ( + jt ) ( jt ) ( + jt ) je + c + je, ce + ce ) But ( ) ( jt ) ( ) ( + jt + + ) ( c( j)( cost jsint) + c( j)( cost + jsint) ) c (( cost sin t) j( cost sin t) ) + + c (( cost sin t) + j( cost + sin t ) ) (( )( cos sin ) ( )( cos sin )) ( 3( cos sin ) 4( cos sin )) c j e c j e t = e + = e t t = e c + c t t + j c + c t + t t = e c t t + c t + t where new real arbitrary constants c 3, c 4 are defined in terms of the complex arbitrary constants c, c by c3 = c + c, c4 = j( c + c) ( jt ) ( + jt ) t Similarly, ce + ce = e c cost jsin t + c cost + jsin t ( ( ) ( )) ) t = e (( c + ) cos + ( + ) c t j c c sin t Therefore, in terms of purely real quantities, the general solution is x () t, y () t e = c cos t sin t + c cos t + sin t, c cost + c sin 4 t ( ) ( ) ( ) t ( ) 3 4 3 One can show that this solution does satisfy the original system of ODEs ( ) ( ) t and ( x() t y() t ) e [ ] lim, = lim finite vector = 0,0. t t The orbits spiral in to the origin. A few representative orbits are plotted in this phase space diagram:

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.30 General Form for the General Solution From the linear system of ODEs dx = ax + by dy = cx + dy calculate the discriminant D = a+ d 4 ad bc = a d + 4bc ( ) ( ) ( ) If D > 0 then the general solution is ( x() t, y() t ) ( cαe λ ) t cα e λt, cβ e λt c β e λt = + +, where ( a+ d) D ( a+ d) + D λ =, λ =, α ( a d) D = any non-zero multiple of β, c α ( a d) + D = any non-zero multiple of β and c, c are arbitrary constants. c b [An exception occurs if c = 0: use ( d a) ± D instead.] If D < 0 then the general solution is ( xt (), yt ()) = ut ( ) ( 3( cos sin ) + 4( cos + ( ) sin ), ( 3cos + 4 sin )) e c u d vt v vt c v vt u d vt c c vt c vt ( ) 4 a+ d a d a d bc D where u = u d = and v = = and c 3, c 4 are [real] arbitrary constants. [The derivation of this general result follows steps similar to those of Example 4.05.3.]

ENGI 940 4.05 - Stability Analysis (Linear) Page 4.3 The situation for D = 0 is more complicated. The general solution is a d a d λt λt ( x() t, y() t ) = c + c + ( + t) e, c( c + c( + t) ) e, unless a = d and c = 0 but b 0, in which case at c at ( xt (), yt ()) = ( c + cte ), e b or the decoupled system a = d and b = c = 0, in which case at at ( x() t, y() t ) = ( ce, ce ) where the sole distinct eigenvalue and eigenvector are ( a+ d) λ =, a d α = any non-zero multiple of (or if a = d and c = 0). β 0 c Outline derivation of the general solution: The one eigenvalue and eigenvector generate part of the complementary function: λt λt x t, y t = α e, β e ( () () ) ( ) t x and y must be of the form e λ multiplied by a linear function of t : t t x t, y t t e λ λ = α + α, β + β t e ( ) ( () () ) ( 3 ) ( 3 ) α3 α But, upon substituting (x, y ) into the system of ODEs, we find that = β3 β and we obtain the singular linear system a λ b α α = c d λ β β so that α λ d + b = any non-zero multiple of β or c λ a +.

ENGI 940 4.06 - Linear Approximation () Page 4.3 4.06 Linear Approximation to a System of Non-Linear ODEs () From sections 4.0 and 4.03, the non-linear system dx dy = x = P( x, y), = y = Q( x, y) () with critical point at (0, 0) may be expressed as x = ax + by + P ( x, y) y = cx + d y + Q x, y () ( ) where a, b, c, d are all constants and P( x, y) Q( x, y) lim = 0 and lim ( xy, ) ( 0,0 ) ( xy, ) ( 0,0) x + y x + y = 0. Near the critical point (0, 0), this system may be approximated by the linear system x = ax + by y = cx + d y (3) Effect of Small Perturbations Small perturbations in the values of the coefficients a, b, c, d are reflected in small changes in the eigenvalues λ. If the eigenvalues are a pure imaginary pair, λ = ± jv, then the critical point is a centre. The effect of small changes in the coefficients will change the eigenvalues to the complex conjugate pair λ' = u' ± jv', where u' is small in magnitude and v' is close to v. The trajectories of the new system are likely to be spirals. The critical point will be an asymptotically stable focus if u' < 0, a stable (but not asymptotically stable) centre if u' = 0, but it will be an unstable focus if u' > 0. Therefore small perturbations in a linear system with pure imaginary eigenvalues are likely to result in radical changes in the trajectories (orbits) and may change the stable system into an unstable system.

ENGI 940 4.06 - Linear Approximation () Page 4.33 If the eigenvalues are a real equal pair, λ = λ, then a slight perturbation is likely to separate the roots into distinct values. If those values are still real, then the critical point remains a node. If the perturbed eigenvalues are a complex conjugate pair, then the nature of the trajectories will change into spirals and the critical point changes from a node into a focus. However, in both cases, an asymptotically stable critical point remains asymptotically stable after a small perturbation, while an unstable critical point remains unstable. In all other cases, a slight perturbation leaves the sign of the real part of both eigenvalues unchanged and affects neither the type of critical point nor the overall type of the orbits. These results are summarized in the two following theorems. Poincaré s Theorem: The singularities of the non-linear system () are identical to the singularities of the linear system (3), except for the cases D < 0 and a + d = 0, which is a centre in the linear case, but may be a centre or a focus in the non-linear case; and D = 0, which is either a node or a focus in the non-linear case. Theorem on stability of the singularity at (0, 0): Linear approximation asymptotically stable unstable stable but not asymptotically stable Non-linear system asymptotically stable unstable any (unstable, stable or asymptotically stable)

ENGI 940 4.06 - Linear Approximation () Page 4.34 Example 4.06. Perform a stability analysis on the system dx dy = x x + xy, = y xy 6y Find the critical points: dx dy x( x+ y) = 0 and y( x 6y) = 0 This generates four solutions: x = 0 and y = 0 x, y = 0,0 = = 0 x x + xy = 0 and y xy y = ( ) ( ) ( ) ( ) x = 0 and x 6y = 0 x, y = 0, ( ) ( ) x+ y = 0 and y = 0 x, y =,0 3 8 ( ) ( ) x+ y = 0 and x 6y = 0 x, y =, Linearize the system near each critical point. 7 7 6 0 Near the critical point (0, 0), it is obvious that the linear approximation to the system is dx dy = x, = y This is an uncoupled system of ODEs, whose general solution is quickly found (by direct integration or by the results on page 4.30) to be t t x t, y t = ce, c e The critical point (0, 0) is an unstable node. Also note that y = k x, so that the solutions are parabolas all sharing the same vertex at the origin, except for the lines x = 0 (from c = 0) and y = 0 (from c = 0). The orbits all begin at the origin and move away, (a hallmark of an unstable node). ( () ()) ( ) This diagram is valid for the linear approximation everywhere, but is valid only in the immediate neighbourhood of (0, 0) for the non-linear system.

ENGI 940 4.06 - Linear Approximation () Page 4.35 Example 4.06. (continued) ( ) ( ) P x, y = x x + xy, Q x, y = y xy 6 y P P = x + y = x x y Q Q and = y = x y x y Near a critical point (a, b), the linear approximation to the system is P P x x ( ab, ) y ( ab, ) x a a+ b a x a = = y Q Q y b b a b y b x ( ab, ) y ( ab, ) Near the critical point ( 0, 3 ), the linear approximation to the system is 4 x + 3 0 x 3 0 x = = y 3 y 3 3 3 y 3 xz, = xy, leads to A simple change of variables to ( ) ( ) 4 3 3 0 x x = z z The matrix is triangular, allowing us to identify the eigenvalues immediately. The eigenvalues are of opposite sign (+4/3 and ). Therefore the critical point at ( 0, 3 ) is an unstable saddle point. From page 4.30, ( ) 4 4 ( 0 ) 0 ( ) D = a d + bc = + + = 3 3 The eigenvector corresponding to eigenvalue λ = is 0 0 α ( ) 3 a d D 3 0 = any non-zero multiple of β = =, 3 c 3 The eigenvector corresponding to eigenvalue λ = +4/3 is 0 0 α ( ) 3 + a d + D 3 0 = any non-zero multiple of β = = 3 c 3 3

ENGI 940 4.06 - Linear Approximation () Page 4.36 Example 4.06. (continued) The asymptotes are therefore x = 0 (corresponding to c = 0; inward because λ < 0 ) and x = 0( y 3 ), (corresponding to c = 0; outward because λ > 0 ). This is sufficient to sketch the phase portrait, even without the general solution. The general solution near the critical point ( 0, 3 ) is 4 4 ( (), ()) = ( (), () ) = 0, + t t 3 3 t x t z t x t y t 3 c e c e c e where c, c are arbitrary constants. All trajectories (except for c = 0) therefore come in from infinity near the asymptote x = 0 (where c = 0) and all trajectories (except for c = 0) return to infinity near the asymptote y 3 = 0 x (where c = 0). The diagram is valid for the linear approximation everywhere, but is valid only in the immediate neighbourhood of ( 0, 3 ) for the non-linear system.

ENGI 940 4.06 - Linear Approximation () Page 4.37 Example 4.06. (continued) Near the critical point (, 0), the linear approximation to the system is x x x = = y 0 y 0 y Change variables to ( wy, ) = ( x, y). Then w w = y 0 y The matrix is triangular, with eigenvalues of opposite sign ( and +). Therefore the critical point at (, 0) is also a[n unstable] saddle point. D = a d + 4bc = + 0 = 4 ( ) ( ) ( ) a d D α = any non-zero multiple of β = =, 0 c 0 c = 0, so the alternative form is needed for the other eigenvector: b α = any non-zero multiple of β ( d a) + D = + = The general solution near the critical point (, 0) is ( () ()) () () t t t ( ) ( ) w t, y t = x t, y t = c e + c e, c e where c, c are arbitrary constants. All trajectories (except for c = 0) therefore come in from infinity near the asymptote y = 0 (where c = 0) and all trajectories (except for c = 0) return to infinity near the asymptote y = (x ) (where c = 0). Again, the diagram is valid for the linear approximation everywhere, but is valid only in the immediate neighbourhood of (, 0) for the non-linear system.

ENGI 940 4.06 - Linear Approximation () Page 4.38 Example 4.06. (continued) Near the critical point ( 8 7, 7 ), the linear approximation to the system is 7 6+ 8 8 8 8 8 x x x 7 7 7 7 7 7 = = y 4 8 6 y y 7 7 7 7 7 7 Change variables to ( wz, ) = ( x 8, y ) w 8 8 w = z 7 6 z 7 7 8+ 6 8 8 4 D = ( a d) + 4bc = + 4 = = 7 7 7 49 7 D < 0 and (a + d) < 0 the critical point is an asymptotically stable focus. 8 8 7 λ 7 The eigenvalues, which are the solutions to det = 0, are 6 7 7 λ ( a+ d) ± D 4 ± 8 7 λ = = = ± j 4 7 7 6 Using the formula on page 4.30, u =, v= =, u d = + =. 7 7 7 7 8 ( ) ( wt ( ), zt ( )) xt ( ), yt ( ) = = 7 7 t t t t t t t e c3 cos sin c4 cos sin, c3cos c sin 7 + + 7 7 7 7 7 7 7 7 4 7 7 Redefining the arbitrary constants as c5 = c 3 and c6 = c 4, 7 7 the general solution near the critical point 8 ( 7 7) ( wt (), zt ()) = 8 ( xt (), yt () ) = 7 7, is t t t t t t e c5 cos + 7 sin + c6 7 cos + sin, c5cos + c6 sin 7 7 7 7 7 where c 5, c 6 are arbitrary constants. t 7 All trajectories spiral in to the critical point [a phase portrait for the linear approximation is on the next page].

ENGI 940 4.06 - Linear Approximation () Page 4.39 Example 4.06. (continued) Maple produces the following direction field plots: One can clearly see trajectories flowing outward from the unstable node at the origin in all directions. The natures of the other critical points are somewhat less obvious. Zooming in to the neighbourhood of one of the saddle points and to the neighbourhood of the stable focus produces the next pair of diagrams:

ENGI 940 4.06 - Linear Approximation () Page 4.40 Example 4.06. (continued) Maple can also superimpose some trajectories on these phase portraits: Maple commands for this plot: > with(detools): > phaseportrait( [diff(x(t),t) = x(t) - x(t)^ + x(t)*y(t), diff(y(t),t) = *y(t) - x(t)*y(t) - 6*y(t)^], [x(t), y(t)], t=-0..0, [[x(0)=0., y(0)=0.0], [x(0)=0.8, y(0)=-0.0], [x(0)=., y(0)=0.0], [x(0)=0.05, y(0)=0.3], [x(0)=0.05, y(0)=0.4], [x(0)=., y(0)=-0.0]], x=-0...4, y=-0...0.5, stepsize=.0, colour=red, linecolour=[blue, cyan, magenta, sienna, orange, black], title=`example 4.06. Non-Linear Solution`);

ENGI 940 4.06 - Linear Approximation () Page 4.4 Example 4.06. Perform a stability analysis on the system dx dy = y + x x y, = x + y x y ( ) ( ) Find the critical points: dx dy Clearly (x, y) = (0, 0) satisfies = = 0. dx dy = = x = 0 y = 0 dx dy = = y = 0 x= 0 If x 0 and y 0, then at any critical point ( ) ( ) 0 ( ) and ( ) y + x x y = x + y x y = y = x x y x = y x y x y y ( x y ) = = = y x x which has no solution for real (x, y). Therefore the only critical point is (0, 0). The linear approximation to the non-linear system is x x = y y ( ) ( ) ( )( ) D = a d + 4bc = + 4 = 4 < 0 (a + d) = > 0 the critical point is an unstable focus. Using the formula on page 4.30, a+ d a d D u = =, u d = = 0, v = = x t, y t = e t c sin t c cos t, c cost + c sin t ( () ()) ( 3 4 3 4 ) and c 3, c 4 are [real] arbitrary constants.

ENGI 940 4.06 - Linear Approximation () Page 4.4 Example 4.06. (continued) Solution in the neighbourhood of the only critical point (0, 0): Now consider the distance r of any point (x, y) from the critical point (0, 0): dr dx dy r = x + y r = x + y [chain rule] From the original non-linear system: dr r = x( y + x( x y )) + y( x + y( x y )) = xy + x r xy + y r = r r ( ) ( ) ( ) ( r ) ( r ) dr < 0 > = r( r ) > 0 < Therefore solutions starting closer than one unit to the critical point spiral out, but solutions starting further away than one unit approach the critical point. A solution on the circle r = never changes its distance from the origin and stays on that circle, but is not stationary (because the only critical point is at (0, 0), not on that circle). Note that x + y = is a solution to the non-linear equation: dx dy = y + x( x y ) = y and = x + y( x y ) = x dy dy dx x = = dx y dy dy x But x + y = x + y = 0 = dx dx y No other solution may cross this solution. Therefore all non-trivial solutions approach the unit circle in the limit as t. The unit circle here is an example of a limit cycle.

ENGI 940 4.06 - Linear Approximation () Page 4.43 Example 4.06. (continued) Further notes: Let u = r, then du = r dr and r dr = r ( r ) du = u( u) du = u u ( ) + du = ln u ln ( u) = t + C u u u u t + C t ln = t + C = e = ce u u u ce t uce t ce t t = + u = ce t ( ) ( ) ce + u =, where c = c u = r() t = t + ce + ce t If r(0) = r o, then t u ro ro ce = c = c = u ro ro Therefore r() t = r o + e ro t

ENGI 940 4.06 - Linear Approximation () Page 4.44 Example 4.06. (continued) Also note that, from the polar coordinate system, ( xy, ) = ( rcos θ, r sinθ ) xy, = r cosθ rsin θθ, r sinθ + rcosθθ ( ) ( ) ( θ ) θ ( θ) θ θ ( θ) θ ( θ) xy yx = rcos r sin + rcos rcos rsin r cos + rsin rsinθ θ ( cos sin ) = r θ + θ θ = r θ But the non-linear system is x, y = y + x r, x + y r ( ) ( ) ( ) ( ) ( ) ( ) ( ) xy yx = x + xy r y xy r = x + y = r Therefore = = = + C r θ r θ θ t All paths move clockwise with constant angular speed. In Cartesian coordinates all orbits can therefore be described by x() t, y() t = cos t θo, sin t θo r o t + e ro ( ) ( ( ) ( )) where (x(0), y(0)) = r o (cos θ o, sin θ o )

ENGI 940 4.06 - Linear Approximation () Page 4.45 Example 4.06.3 (A more challenging and tedious case, for reference only) Find and determine the nature of all critical points of the system dx x dy = e y, = y sinx () dx dy x = = 0 y = e and y = sinx x Critical points occur where the graphs of y = e and y = sin x intersect. The critical points are (0, 0) and (x i, y i ), where ( 4 π ) δ, ( 4 π ) ε ; (,,3, ) x = i i + i = i i i Linearize for the critical point at (0, 0): ( ) near ( 0,0) ( 0,0) ( 0,0) 0 ( ) ( ) x P P e y x + y = e x + y x y Q Q y sin x x + y = ( cos 0) x + ( ) y x y ( ) near ( 0,0) ( 0,0) ( 0,0) Therefore the linear system that models the non-linear system () near (0, 0) is x x = y y Finding the eigenvalues: λ det ( A λi) = = ( + λ)( λ) ( )( ) = λ λ ( A I) det λ = 0 λ = λ = ± () The eigenvalues are real and of opposite sign. The critical point (0, 0) of () [and therefore also of ()] is an unstable saddle point.

ENGI 940 4.06 - Linear Approximation () Page 4.46 Example 4.06.3 (continued) Using the results on page 4.30, D = ( a d) + 4bc = ( ) + 4( )( ) = 4+ 4 = 8 The eigenvectors are α ( a d) D = any non-zero multiple of β = c for λ = and α ( a d) + D + = any non-zero multiple of β = c for λ = + Choose a multiple of in both cases. The general solution of () is therefore () () () () ( t t t ) ( () ()) ( ) ( ) t xt, yt = c + e + c e, ce + ce y t lim = = = > 0 and t x t + y t + lim = = = < 0 t + x t The trajectories (except for c = 0) therefore come in from infinity along the asymptote y = x. ( ) The trajectories (except for c = 0) return to infinity along the asymptote y = + x. ( ) The phase space diagram for this solution (completely valid only for the linear system ()) is The phase space for the non-linear system () resembles this diagram only in the immediate neighbourhood of the critical point (0, 0).

ENGI 940 4.06 - Linear Approximation () Page 4.47 Example 4.06.3 (continued) At other critical points (k, l), dx dy k = = 0 l = sink e sink = 0 Linearizing (Taylor s series for P(x, y) about (x, y) = (k, l): x P P k ( e y ) ( x k) + ( y l) = ( e )( x k) + ( )( y l near ( kl, ) x y ( ) near ( kl, ) ( kl) ( kl) ( kl),, Q Q y sin x ( x k) + y l = cos k x k + x y ( kl),, ( ) ( )( ) ( )( y l) Therefore the linear system that models the non-linear system () near (k, l) is x k e x k = y cos k y l Finding the eigenvalues: k e λ k det ( A λi) = = ( e + λ)( λ) ( cos k)( ) cos k λ ( e k ) λ k ( e cosk) 0 ( ) ( ) ( = λ + = λ = k k k e ± e + 4 e + cosk k k ( e ) ( e ) ± + + 4cosk λ = k k Now k > 0 0< e < 0< e < Recall that k = xi = ( 4i π ) δi, ( 4i π ) + εi ; ( i =,,3, ) Examining the right-hand critical point in each pair, k = ( 4i π ) + ε, i ( 0< εi ) cos k = cos 4i π + ε = cos ε π = cos π ε = sin ε ε > 0 (( ) ) ( ) ( ) k Therefore ( ) k k e 4( e cosk) ( e ) ) i i i i i + + > > 0 and the two eigenvalues are real and of opposite sign. These critical points are therefore all unstable saddle points. ) (3)

ENGI 940 4.06 - Linear Approximation () Page 4.48 Example 4.06.3 (continued) Examining the left-hand critical point in each pair, k = 4i π δ, 0< δ ( ) i ( i ) ( ) ( δi) ( δi ) ( δi ) cos k = cos 4i π = cos π = cos + π = sinδ k But k is the solution to e sin k = 0 k (( ) ) e = + sin k = + sin 4i π δi = + sin δ i π = sin δ π i + = cosδ i ( ) ( ) k δ i e + cos k ( cosδi) sinδi δi < 0 ( k k e ) 4( e cosk) ( ) ( ) ( + + < e k k k e ± e + 4 e + cosk) But λ = Therefore the eigenvalues are a real distinct positive pair and the singularity is an unstable node. The locations and nature of the first five critical points are listed here. k (δ i is small) x y λ λ Type 0 0.44... +.44... unstable saddle point 4.5680... 0.9896... +0.608... +0.887... unstable node 4.83833... 0.9908... 0.00... +... unstable saddle point 0.98977... 0.99998... +0.0058... +0.994... unstable node.0035... 0.99998... 0.0057... +.0057... unstable saddle point Here is a Maple session to create direction field plots for the first three critical points of the non-linear system. > with(detools): > DEplot([diff(x(t),t) = -y(t) - + exp(-x(t)), diff(y(t),t) = y(t) - sin(x(t))], [x(t),y(t)], t=-.., x=-0.5..0.5, y=-0.5..0.5, title=`example 4.06.3 Exact Solution`); > DEplot([diff(x(t),t) = -y(t) - + exp(-x(t)), diff(y(t),t) = y(t) - sin(x(t))], [x(t),y(t)], t=-.., x=4.5..5, y=-...-0.9, title=`example 4.06.3 Exact Solution`); i

ENGI 940 4.06 - Linear Approximation () Page 4.49 Example 4.06.3 (continued) Saddle Point at (0, 0) Unstable Node near (4.57, 0.99), Saddle Point near (4.84, 0.99) Solution curves can be traced by following the arrows (which at every location point in the direction of dy dx ).

ENGI 940 4.07 - Limit Cycles Page 4.50 4.07 Limit Cycles If, in some region, all trajectories begin on a closed curve inside that region, then that curve is an unstable limit cycle. If all trajectories terminate on the curve, then it is a stable limit cycle. More formally, Let R be a bounded region in the xy plane. Let C be a closed curve composed of interior points of R and bounding a region A. Let C be a solution curve of the system dx dy = x = P( x, y), = y = Q( x, y) () where P(x, y) and Q(x, y) are differentiable with respect to x and y at all points of R. C is a limit cycle of () if no other closed solution curve is close to C and if all orbits sufficiently near it approach it asymptotically as t (unstable) or as t + (stable). Bendixon Non-existence Theorem: P Q For system (), if the expression + does not change sign or vanish identically in x y a simply connected (= "no holes") region D inside R, then no closed trajectory can exist entirely within D. The contrapositive statement is: If C is a closed solution curve of () in R, then of R. P x + Q y must vanish for some subset

ENGI 940 4.07 - Limit Cycles Page 4.5 Proof: If C is a closed curve in R with interior region A, then Green s theorem in two dimensions states P Q ( P dy Q dx) = + dx dy () x y C But, for all points on C, (which is a solution curve of ()), dy y Q P dy Q dx = P Q dx = P Q dx = P Q dx 0 dx x P It then follows that P Q ( P dy Q dx) = + dx dy = 0 x y C This is not possible unless the integrand inside region A. A A P Q + changes sign or is identically zero x y Poincaré-Bendixon Theorem (Existence Theorem for Limit Cycles) If the solution curve C of the system () is in and remains in a bounded region R for t > t o without approaching singular points and if P(x, y) and Q(x, y) are differentiable with respect to x and y at all points of R, then a limit cycle exists in R and either C is a limit cycle or it approaches a limit cycle as t +.

ENGI 940 4.08 - Van der Pol s ODE Page 4.5 4.08 Van der Pol s Equation During an investigation of the properties of vacuum tubes, Van der Pol developed a second order non-linear ordinary differential equation to model the circuit: d x dx μ ( x ) + x = 0, ( μ >0 ) () The linear form resembles the linear ODE for the RLC circuit: di Rdi + + i = 0 () L LC The resistance term in () provides damping provided R > 0. If R < 0, then the solution is unstable and the current would have an ever increasing amplitude, which is what the linear form of () predicts, ( μ < 0). However, experimental evidence suggests that, after some initial increase in amplitude, a periodic solution is attained. This is an indication that a limit cycle may exist for (). The resistance term μ ( x ) in Van der Pol s equation is negative if x <, but is positive for x >. The non-linear term must be retained in order to find the periodic steady state solution. Introduce a new variable y to Van der Pol s equation: dx = y dy = μ ( x ) y x The linear version of (3) is: x 0 x = y μ y Finding the critical points of (3): dx dy = 0 y = 0, = y = 0 x =0 Thus (0, 0) is the only critical point of (3). (3) (4)

ENGI 940 4.08 - Van der Pol s ODE Page 4.53 Applying the formulae from page 4.30: ( ) 4 ( 0 ) 4( )( ) D = a d + bc = μ + = μ 4 so that D < 0 for 0 < μ < and D > 0 for μ > (a + d) = μ > 0 0 < μ < the critical point (0, 0) is an unstable focus. μ > (0, 0) is an unstable node. The eigenvalues are ( ) + ± ± a d D μ μ 4 λ = = Re( λ) > 0 so that (0, 0) is unstable for all μ > 0. Searching for limit cycles: ( ) μ( x ) P Q + = ( y) + x + μ( x ) y = x y x y P Q x < + > 0 x y P Q Because + does not change sign anywhere in the region x <, there are no x y limit cycles contained entirely in that region (by the Bendixon Non-existence Theorem). There may be a limit cycle in a region that includes x = and/or x = +. Transforming (3) to polar coordinates, r = x + y dr dx dy ( ) ( ( ) ) ( r = x + y = x y + y μ x y x = μ x ) y so that r is increasing with time for x <, but decreasing for x > and not changing when x = ±. This suggests that a region extending to a sufficiently large x may contain a limit cycle. When 0 < μ < a closed periodic solution is possible and a limit cycle occurs. When μ > a closed periodic solution is impossible and there is no limit cycle.

ENGI 940 4.08 - Van der Pol s ODE Page 4.54 A Maple session that produces solution curves for the Van der Pol equation with μ = for two choices of starting point (one inside the limit cycle, one outside) is presented here. > with(detools): > phaseportrait([diff(x(t),t) = y(t), diff(y(t),t) = y(t)*( - (x(t))^) - x(t)], [x(t),y(t)], t=0..0, [[x(0)=0,y(0)=0.]], x=-3..3, y=-3..3, stepsize=0.05, linecolour=t/, title=`van der Pol, mu=`); > phaseportrait([diff(x(t),t) = y(t), diff(y(t),t) = y(t)*( - (x(t))^) - x(t)], [x(t),y(t)], t=0..0, [[x(0)=-,y(0)=3]], x=-4..4, y=-4..4, stepsize=0.03, linecolour=t/, title=`van der Pol, mu=`); with output, clearly illustrating the limit cycle crossing x = and x = +: Again note how the trajectories move away from the origin only in the region < x <.

ENGI 940 4.09 - Theorem for Limit Cycles Page 4.55 4.09 Theorem for Limit Cycles Theorem (Extension of the Poincaré-Bendixon theorem): Let D be an annular region between closed curves C and C. [stable] [unstable] If solution curves of the system dx dy = x = P( x, y), = y = Q( x, y) () enter D at every point of C and C (or leave at every point of C and C ), and there are no singularities of () in D or on C or C, then a limit cycle exists in D. It also follows that a closed curve cannot be a limit cycle unless it encloses a singularity. Example 4.09. Determine whether a limit cycle exists for the second order ODE d x x 0 + + =. The ODE can be rewritten as the first order non-linear system x = y y = x But x < 0 for all real x. No critical point exists for real (x, y). But a limit cycle must enclose a singularity. Therefore no limit cycle exists for this system.

ENGI 940 4.09 - Theorem for Limit Cycles Page 4.56 Example 4.09. Perform a stability analysis and determine whether a limit cycle exists for the system dx = x( x y ) + 5y dy = 5x + y( x y ) () One critical point occurs where x = y = 0. Substitution of x = 0 into () leads to y = 0 and vice versa. If x 0 and y 0, then () at a critical point 5y 5x y ( x y ) = = = x y x which has no real solution for (x, y). Therefore (0, 0) is the only critical point of (). Near (0, 0), the linear approximation to () is x 5 x = y 5 y The eigenvalues may be found either by solving λ 5 5 λ = 0 formula on page 4.30: D = a d + 4bc = + 4 5 5 = 00 ( ) ( ) ( )( ) ( a+ d) ± D ± 00 λ = = = ± 5j The eigenvalues are a complex conjugate pair with positive real part the critical point of () (and therefore also of ()) is an unstable focus. () or by use of the

ENGI 940 4.09 - Theorem for Limit Cycles Page 4.57 Example 4.09. (continued) Checking for a limit cycle, P Q + = x( x y ) + 5y + x y x y 5x+ y x y ( ) ( ( )) ( ( )) 0 ( x y ) 0 ( ) = 3x y + x 3y = x + y P Q > + < + x y x y < + > There may therefore be a limit cycle in a region bounded by but it cannot exist entirely inside x + y =. Changing to polar coordinates, dr dx dy r = x + y r = x + y From the original non-linear system: dr r = x x( x y ) + 5y + y 5x + y x y = + 5xy + x r 5xy + y r = r r ( ) ( ( )) ( ) ( ) ( ) ( r ) ( r ) x + y = r, where r >, dr < 0 > = r( r ) > 0 < Therefore solutions that start closer than one unit to the critical point spiral out, but solutions that start further away than one unit approach the critical point. A solution on the circle r = never changes its distance from the origin and stays on that circle, but is not stationary. Therefore x + y = is the limit cycle. Consider the region D bounded by the circles x + y = /00 and x + y =, inside P Q which + and dr both change sign. All trajectories crossing the inner circle x y must be moving away from the origin into region D and all trajectories crossing the outer circle must be moving towards the origin, also into region D. Thus, a solution path that enters D can never leave D. There are no singularities in the region or its boundaries. Therefore, by the Poincaré-Bendixon theorem, a limit cycle exists in the region.

ENGI 940 4.09 - Theorem for Limit Cycles Page 4.58 Example 4.09. (continued) Checking that x + y = is a solution to the non-linear equation: dx dy = x( x y ) + 5y = 5y and = 5x + y( x y ) = 5x dy dy dx x = = dx y dy dy x But x + y = x + y = 0 = dx dx y Therefore the limit cycle x + y = is a solution to the non-linear system ().

ENGI 940 4.0 - Lyapunov Functions Page 4.59 4.0 Lyapunov Functions [for reference only - not examinable] The equation of motion for an unforced damped elastic mass-spring system is d x dx + ε + μ x = 0 () Consider the case where the restoring force (per unit mass) coefficient μ = and the damping (per unit mass) coefficient ε is small and positive. The equivalent first order system is dx = y () dy = x ε y The coefficient matrix is 0 A = ε Using the results on page 4.30, ( ) ( ) ( )( ) ( a+ d) ± D ε ± j 4 ε D = a d + 4bc = 0+ ε + 4 = ε 4 < 0 λ = = [or solve the characteristic equation det(a λi) = 0: 0 λ ε λ = 0 λ ελ + = 0.] ( )( ) ( )( ) The single critical point at the origin is therefore a stable focus (asymptotically stable).

ENGI 940 4.0 - Lyapunov Functions Page 4.60 dx The kinetic energy is mv = m = my. The potential energy of a mass-spring system is proportional to the square of the V x, y = x + y is related to the total energy extension x. Therefore the function ( ) ( ) of the system. V(x, y) has an absolute minimum value of 0 at the origin, which should therefore be a stable equilibrium point. From the chain rule and (), dv V dx V dy = + = x y + y( x εy) = εy x y Therefore V decreases as t increases. Also V decreases as the distance from the origin decreases. Therefore the distance from the origin must decrease as t increases. lim x t = lim y t = 0. All orbits terminate at the origin. t () () t Again, the origin is an asymptotically stable point. 0 t Energy considerations and Stability: For a system of differential equations that arises from the description of a physical system, if the total energy of the system is constant or decreasing and a critical point corresponds to a point of minimum potential energy of the system, then the critical point should be stable. If the critical point corresponds to a maximum of potential energy (such as the upsidedown position of the pendulum in section 4.0), then the critical point should be unstable. If (0, 0) is an asymptotically stable critical point of the system dx dy = f ( xy, ), = g( xy, ) (3) then there must exist some domain D, containing (0, 0), such that all solutions in D must approach (0, 0) as t. Suppose that an energy function V(x, y) exists such that V(0, 0) = 0 and V(x, y) > 0 everywhere else in D. Then, following any open orbit in D, V must decrease to zero as t. The converse of these statements is more useful: If V decreases to zero as t on every trajectory in D, then every trajectory in D must approach the origin as t and the origin is therefore asymptotically stable.

ENGI 940 4.0 - Lyapunov Functions Page 4.6 Definitions: Let V(x, y) be defined on some domain D that contains the origin. V is positive definite on D if V(0, 0) = 0 and V(x, y) > 0 for all other points in D. V is negative definite on D if V(0, 0) = 0 and V(x, y) < 0 for all other points in D. V is positive semi-definite on D if V(0, 0) = 0 and V(x, y) 0 for all other points in D. V is negative semi-definite on D if V(0, 0) = 0 and V(x, y) 0 for all other points in D. A function V(x, y) is a Lyapunov function for the system dx dy = f ( xy, ), = g( xy, ) (3) if there exists some neighbourhood of the origin in which V is a differentiable function of x and y; V > 0 except at the origin, where V = 0; and dv For any solution (x(t), y(t)) of (3) there exists a t o such that 0 for all t > t o. Theorem: If V(x, y) is a Lyapunov function for the system (3), then: If dv If dv If dv is negative semidefinite, then (0, 0) is stable. is negative definite, then (0, 0) is asymptotically stable. is positive definite, then (0, 0) is unstable.

ENGI 940 4.0 - Lyapunov Functions Page 4.6 Also note that, by the chain rule and (3), dv V dx V dy V V = + = f ( xy, ) + g( xy, ) x y x y and that dv = V it V where ˆ V V = i + ˆj is the gradient vector of the scalar function V(x, y) and x y T = dx ˆi dy ˆ f ( xy, ) ˆ g( xy, ) ˆ + j = i + j is the tangent vector to the trajectory (x(t), y(t)). If dv is negative definite, then the two vectors must point in directions more than 90 apart, everywhere in the region (except possibly at the origin). But the gradient vector points in the direction of increasing V, at right angles to the contours V = constant. V is positive definite, so its gradient vector points outward, away from the origin. Therefore the trajectories must point inward, everywhere in the region where V is positive definite and dv is negative definite. The general quadratic function V x, y = ax + bxy + cy is positive definite if and only if a > 0 and b 4ac < 0 and is negative definite if and only if a < 0 and b 4ac < 0 ( )

ENGI 940 4.0 - Lyapunov Functions Page 4.63 Example 4.0. The populations of a pair of competing species are modelled by the system dx = x( x y) dy = y ( 0.75 y 0.5x) Investigate the stability of the critical point at (0.5, 0.5). Transform the critical point to the origin with the change of coordinates w = x 0.5 ; z = y 0.5 The system becomes dw = ( w+ 0.5) ( ( w+ 0.5) ( z+ 0.5) ) = 0.5w 0.5z w wz dz = ( z+ 0.5) ( 0.75 ( z+ 0.5) 0.5( w+ 0.5) ) = 0.5w 0.5z 0.5wz z There are many possible choices for a Lyapunov function, among the simplest of which is V(w, z) = w + z V is clearly positive definite: V(0, 0) = 0 and V(w, z) > 0 everywhere else. dv V dw V dz = + w z = w( 0.5w 0.5z w wz) + z( 0.5w 0.5z 0.5wz z ) 3 3 = ( w +.5wz + z ) ( w + w z + wz + z ) In the quadratic expression w +.5wz + z, a = c = and b =.5. ( ) a < 0 and b 4ac < 0, so that ( w.5wz z ) + + is negative definite. The cubic terms can be of either sign, but sufficiently close to (w, z) = (0, 0) they will be negligible compared to the quadratic terms. Therefore a region does exist around (0, 0) such that V is positive definite and dv is negative definite. The critical point must therefore be asymptotically stable. By using a more complicated Lyapunov function and obtaining bounds on where its derivative is negative definite, one can estimate how far the region of asymptotic stability extends around the critical point.

ENGI 940 4.0 - Lyapunov Functions Page 4.64 Example 4.0. (continued) Note that we can also investigate stability by finding the eigenvalues of the linear system that approximates the non-linear system near the critical point: x 0.5 0.5 x 0.5 = y 0.5 0.5 y 0.5 The characteristic equation is det A λi = 0 0.5 λ 0.5 0.5 = 0 ( ) ( ) ( )( ) ( ) λ+ 0.5 = 0.5 λ+ 0.5 = ± 0.5 λ = 0.5 ± 0.5 which is a real distinct negative pair. The critical point is therefore an asymptotically stable node.

ENGI 940 4. - Duffing s Equation Page 4.65 4. Duffing s Equation Among the simplest models of damped non-linear forced oscillations of a mechanical or electrical system with a cubic stiffness term is Duffing s equation: d x dx 3 + a + bx + cx = d cosωt () In section 4.0, we considered the simple undamped pendulum: d x g + sin x = 0 () L When x is very small, sin x x and () reduces to the ODE for simple harmonic motion. 3 x The next order approximation is sin x x, so that () becomes 6 3 d x g g x + x = 0 (3) L L 6 dx If we add a damping term a and a forcing function d cos ωt, then (3) becomes Duffing s equation ().

ENGI 940 4. - Duffing s Equation Page 4.66 Special Case : Conduct a stability analysis for the undamped unforced Duffing s equation d x 3 + ω x + cx = 0 (4) The equivalent first order system is dx dy = y = ω x cx 3 (5) Critical points: ω ( y = 0) and x= 0 or x = c Near (0, 0) the linear approximation is x 0 x = y ω 0 y The characteristic equation is det(a - λi) = 0 λ + ω = 0 The eigenvalues are a pure imaginary pair (0, 0) is a centre. It is stable but not asymptotically stable. If c > 0, then this is the only critical point of (4). (6) If c < 0, then there are two other critical points, at ± ω,0. c

ENGI 940 4. - Duffing s Equation Page 4.67 Special Case : (continued) ω Near ±,0 c dx P ω P = ( y) x + y near ( ± ω / c, 0) near ( ± ω / c, 0) x ( / c, 0) c y ± ω ( ± ω/ c, 0) ω = ( 0) x + () y y c = dy 3 Q ω Q = ( ω x cx ) x + y near ( ) ( ± ω/ c, 0) near ± ω / c, 0 x ( / c, 0) c y ± ω ( ± ω/ c, 0) ω ω ω = ω 3c x + ( 0) y = ω x c c c ω The linear approximation to (5) near ±,0 is c x 0 ω x = c y ω 0 y The characteristic equation is det(a - λi) = 0 λ ω = 0 The eigenvalues are a distinct real pair with opposite sign ω ±,0 are saddle points. They are unstable. c (7)

ENGI 940 4. - Duffing s Equation Page 4.68 Exact Solution of Special Case : The system (5), dx = y dy 3 = ω x cx 3 dy dy dx ω x c x = = dx y 4 3 y A ω x cx ydy = ( ω x cx ) dx = 4 4 cx Therefore the orbits in the phase space (x, y) are y = A ω x, where A is an arbitrary constant. If c > 0, then all orbits are closed, about the centre at (0, 0).

ENGI 940 4. - Duffing s Equation Page 4.69 Special Case : (continued) If c < 0, then those orbits far enough away from the centre are open, due to the influence ω of the saddle points at ±,0. c The part of the phase space between the two saddle points resembles that for the undamped pendulum on page 4.07: The orbits passing through the saddle points separates closed orbits from open orbits and is called the separatrix. The positive y axis intercept of each orbit is just the value of A for that orbit. The separatrix has x axis intercepts at the saddle points. Therefore, for the separatrix, 4 4 4 cx ω c ω ω A = ω x + = ω + c x / c = c c =± ω The equation of the separatrix is 4 4 ω cx y = ω x +, ( c < 0) c

ENGI 940 4. - Duffing s Equation Page 4.70 Special Case : Conduct a stability analysis for the damped unforced Duffing s equation d x dx 3 + a + ω x + cx = 0 (8) The equivalent first order system is dx dy = y 3 = ω x cx ay (9) The critical points are the same as in special case : ω ( y = 0) and x= 0 or x = c Near (0, 0) the linear approximation is x 0 x = y ω a y The characteristic equation is det(a - λi) = 0 λ + aλ + ω = 0 a ± a 4ω λ = The critical point is stable if a > 0 and unstable if a < 0. It is a focus if a 4ω < 0 and a node otherwise. (0) If c > 0, then this is the only critical point of (8). If c < 0, then there are two other critical points, at ± ω,0. c

ENGI 940 4. - Duffing s Equation Page 4.7 Special Case : (continued) ω Near ±,0 c dx P ω P = ( y) x y near ( ± ω/ c, 0) near ( / c, 0) x + ± ω ( / c, 0) c y ± ω ( ± ω/ c, 0) ω = ( 0) x + () y = y c dy 3 Q ω Q = ( ω x cx ay) x y near ( ) ( ± ω/ c, 0) near / c, 0 x + ± ω ( / c, 0) c y ± ω ( ± ω/ c, 0) ω ω ω = ω 3c x + ( a) y = ω x ay c c c ω The linear approximation to (9) near ±,0 is c ω x 0 x c = y ω a y The characteristic equation is det(a - λi) = 0 λ + aλ ω = 0 a ± a + 8ω λ = The eigenvalues are a distinct real pair with opposite sign ω ±,0 are saddle points. They are unstable. c () The presence of the damping term changes the centre into a stable focus (for physically reasonable values of a, ω and c, or, for particularly strong damping, a stable node). The form of the separatrix is more complicated, as trajectories leaving either saddle point in the direction of the origin are swept by the damping term into the focus (or node) instead of moving around the centre to the other saddle point. There are no closed orbits; just orbits that terminate at the origin or a saddle point and orbits that retreat to infinity.

ENGI 940 4. - Duffing s Equation Page 4.7 Special Case : (continued) An enhanced sample phase portrait plot from Maple is shown here: and, zooming in,

ENGI 940 4. - More Examples Page 4.73 4. More Examples Example 4.. Examine the stability of the linear second order differential equation d x dx + + ( 4π + ) x = 0 and find the complete solution for the initial conditions x 0 = 0, y 0 = x 0 = π. ( ) ( ) ( ) The system can be rewritten as the first order system x 0 x = y ( 4π + ) y The only critical point is at the origin. ( ) ( ) ( ) ( ) ( ) D = a d + 4bc = 0+ + 4 4π + = 6π D < 0 and (a + d) < 0 the critical point is an asymptotically stable focus. ( a+ d) ± D ± 6π λ = = = ± π j Using the formula on page 4.30, u =, v π, u d, c ( 4π ) The general solution is t x t = e c cos π t πsin πt + c π cos πt + sin πt = = + = = +. () ( 3( ) 4( )) t () = ( 4π + )( cosπ + sinπ ) y t e c t c t 3 4 [and one can check that dx = y is indeed true.] π ( x( 0, ) y( 0) ) = ( 0,π) ( c3+ πc4, c3) = 0, 4 π + π ( c3, c4) =, 4π + 4π +

ENGI 940 4. - More Examples Page 4.74 Example 4.. (continued) The complete solution is t e ( xt (), yt ()) = 4π + ( π ( πsinπt cosπt) + ( π cosπt + sin πt), ( 4π + )( π cosπt sinπt) ) t ( x( t), y ( t) ) = e ( sin πt, ( π cos πt sin πt) ) As t, both functions x(t) and y(t) tend to zero. The resulting phase space diagram is

ENGI 940 4. - More Examples Page 4.75 Example 4.. Examine the stability of the linear second order differential equation d x dx + + ( 4π + ) x = ( 3π + ) cosπt πsinπ t The complete solution for the initial conditions x( 0) =, y( 0) = x ( 0) = π. can be obtained by building upon the solution to Example 4.. and is ( ) t t ( x() t, y () t ) = cosπt + e sin πt, πsinπt + e ( π cos πt sin πt) In this case, the steady state solution (after the transient terms have vanished) is lim x t, y t = cos πt, π sinπt t ( ( ) ( )) ( ) so that the orbit in the phase space approaches the ellipse π x + y = π This ellipse must therefore be the limit cycle for the system. A plot of the orbit in the phase space is shown here. Note how the solution curve in the phase space can wander inside and outside the limit cycle more than once, before finally settling down to its asymptotic approach as the transient terms become negligible.

ENGI 940 4. - More Examples Page 4.76 Example 4.. (continued) Different sets of initial conditions can generate orbits that look very different at first, before they settle down into their steady-state configuration near the limit cycle.