Lecture 1

CEE262C Lecture 2: Nonlinear ODEs
and Phase Diagrams
Overview
• Nonlinear chaotic ODEs: the damped nonlinear
forced pendulum
• 2nd Order damped harmonic oscillator
• Systems of ODEs
• Phase diagrams
– Fixed points
– Isoclines/Nullclines
References: Dym, Ch 7; Mooney & Swift, Ch 5.2-5.3; Kreyszig, Ch 4
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
1
Forced pendulum
Frictional effect
m
m
g
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
2
Free-body diagram
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
3
Derivation of the governing ODE
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
4
m
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
5
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
6
Reduce and nondimensionalize!
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
7
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
8
Governing nondimensional ODE
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
9
Linearize
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
10
The damped harmonic oscillator
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
11
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
12
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
13
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
14
The particular solution
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
15
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
16
Simulating the nonlinear system
pendulum.zip
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
17
Phase plane analysis
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
18
Direction field for a1=0.5
phasedirection.m
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
19
24
Computing phase lines analytically
Solution in phase space
Elliptic Integral!
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
20
Analytical Phase Lines for










CEE262C Lecture 2: Nonlinear ODEs and phase diagrams


21
Nullclines and fixed points
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
22
Plotting nullclines and fixed points

q=0 (no acceleration)

increasing
friction



p=0 (no velocity)









Fixed points
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
23
Behavior in the vicinity of fixed points
Suppose we have a nonlinear coupled set of ODEs in the form
du
 p (u , v)
dt
dv
 q (u , v)
dt
We can determine the behavior of this ODE in the vicinity of the
fixed points by analyzing the behavior of disturbances applied to
the fixed points such that
u  u0  u '
v  v0  v'
where the point u0 , v0 is a fixed point corresponding to
p(u0 , v0 )  q(u0 , v0 )  0
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
24
Using the Taylor series expansion about the fixed point, we have
du
p
p
 p (u , v)  p (u0  u ' , v0  v' )  p (u0 , v0 )  u '
 v'
dt
u u0
v v0
dv
q
q
 q (u , v)  q (u0  u ' , v0  v' )  q (u0 , v0 )  u '
 v'
dt
u u0
v v0
Substitution into the ODEs gives
d
p
p
(u0  u ' )  p (u0 , v0 )  u '
 v'
dt
u u0
v v0
d
q
q
(v0  v' )  q (u0 , v0 )  u '
 v'
dt
u u0
v v0
Since the fixed points satisfy
p(u0 , v0 )  0
q(u0 , v0 )  0
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
25
and
du0 dv0

 0 , then the perturbations satisfy
dt
dt
du '
p
p
 u'
 v'
dt
u u0
v v0
dv'
q
q
 u'
 v'
dt
u u0
v v0
In vector form, this is given by
 p

d  u '   u u0
   
q
dt  v' 

 u u0
The Jacobian matrix is given by
 p

J u0 , v0    u
 q

 u
p 

v v0  u ' 
 
q  v' 

v v0 
p 

v 
q 

v u u0 ,v v0
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
26
The behavior of the solution in the phase plane in the vicinity of
the fixed points is determined by the behavior of the
eigenvalues of the Jacobian.
If
a b 

J u0 , v0   
c d 
then the eigenvalues of J are given by

   2  4
2
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
27
two real negative
roots.
complex pair,
negative real part.
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
28
two real positive
roots.
complex pair,
positive real part.
pure imaginary.
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
29
Phase plane analysis for the
pendulum
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
30
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
31
Underdamped
Critical or overdamped
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
32
Spiral direction CW or CCW?
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
Clockwise
c<0
Counterclockwise
c>0
33
Behavior around saddle point
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
34
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
35
CEE262C Lecture 2: Nonlinear ODEs and phase diagrams
36