Mod12 - Lecture 2
Mod12 - Lecture 2
1) What is linearity?
4) 2 fun examples !
Control Engineering Module 12 – Lecture 2 Dr. Viswanath Talasila
Are physical systems linear or nonlinear?
y=3x
x y x y
1 3 1 1
2 6 2 4
y=x2
3 9 3 9
4 12 4 16
y=x
5 15 5 25
6 18 6 36
y=3x
x1 , x2 x y= y=
x1 , x y=(x1 + x2 )2 y=(x12 + x22 )
3(x1+x2) 3x1+3x2
x2
1 2 4 2
1 2 6 6
2 4 16 8
2 4 12 12
3 6 36 18
3 6 18 18
4 8 64 32
4 8 24 24
5 10 100 50
5 10 30 30
6 12 144 144
6 16 48 48
y=3x
Observations:
1) In the first case adding x1 and x2 give: 1+1=2. 1) In the second case adding x1
1) Then 3(x1)+3(x2)=6 which is the same as and x2 gives: 2+2=4.
2) 3(x1 + x2)=3x = 3*2=6 1) Then (x1 + x2 )2 = 16
2) But: (x12 + x22 ) = 8
• There are many tools, simulation packages etc developed for linear
systems
• Very useful !
There are various kinds of equilibria – we will encounter a couple of them in todays lecture
In general, a function is
represented by a Taylor series.
In other words, we can
approximate the function if we
consider a finite number of
elements of its Taylor series
source: Wikipedia
The derivatives above are w.r.t. x, thus we are looking are partial derivatives !!
Given an nth order state space system, the state vector has n states, assume
we have ‘n’ functions as well - then the general Jacobian matrix will be of the
form
Ok, so how do we go from the Jacobian to the linearized state space system?
Control Engineering Module 12 – Lecture 2 Dr. Viswanath Talasila
From the Jacobian to the Linear State Space system
To go from the computed Jacobian to the state space system is really simple:
1) First compute the equilibrium points of the nonlinear state space system
1) An equilibrium point is simply a solution of our equations when the dynamics are set to 0
4) That’s it !!!
Tejas
aircraft multiple
linear models
http://faculty.ucr.edu/~hanneman/spatial/pred_prey/hunting_gathering.html
http://www.math.psu.edu/tseng/class/Math251/Notes-Predator-Prey.pdf
http://www.cds.caltech.edu/~murray/amwiki/index.php/Predator_prey
For the remainde r of this talk we assume that K ∞ i.e. the forest has infinite resource capacity
dH
= rh H - aLH
dt
a is an interaction parameter between the tigers and deers
Control Engineering Module 12 – Lecture 2 Dr. Viswanath Talasila
The Predator Model
http://www.math.psu.edu/tseng/class/Math2
51/Notes-Predator-Prey.pdf
dL
= -rl L Predators die without any prey
dt (exponentially starve to death)
http://www.math.psu.edu/tseng/class/Math2
51/Notes-Predator-Prey.pdf
dL
= -rl L + aLH
dt
dH dL
= rh H - aLH = -rl L + aLH
dt dt
In matrix form we have
dH dL
= rh H - aLH = -rl L + aLH
dt dt
In matrix form we have
é dH ù
ê ú é ùé ù
ê dt ú=ê r -aH H
h
úê ú
ê dL ú ê aL -rl úë L û
ê ú ë û
ë dt û
dH dL
= rh H - aLH = -rl L + aLH
dt dt
dH dL
= rh H - aLH = -rl L + aLH
dt dt
• In general, every time an “interaction” takes place between tigers and deers, multiple
things can happen
• Deers usually escape (the hunt success is usually low)
• When a “proper” interaction happens
• the deer population definitely reduces
• But the tiger population will not increase
• Thus, the interaction term cannot be the same for both
• Further, deers reproduce much faster than tigers !
dH dL
= rh H - a1LH = -rl L + a2 LH
dt dt
with a1 > a2 , rh > rl
Control Engineering Module 12 – Lecture 2 Dr. Viswanath Talasila
The Jacobian comes back…
dH dL
= rh H - a1LH = -rl L + a2 LH
dt dt
There are two nonlinear terms in this coupled state space system
1) We can compute the equilibrium points
2) Linearize around the equilibrium point
é r -a L -a1H ù
J =ê ú
h 1
The Jacobian matrix is
êë a2 L -rl + a2 H úû
é r -a L -a1H ù
The Jacobian matrix is J= ê h 1
ú
êë a2 L -rl + a2 H úû
é a1rl ù
ê 0 - ú
At the equilibrium point æ rl rh ö we have J = ê a2 ú stable
ç , ÷ ê ar ú with eigenvalues center
è a2 a1 ø ê 2h 0 ú
êë a1 úû
Source: wikipedia
saddle
The Jacobian is
For μ>0 the equilibrium is always unstable ! In fact, close to the origin the system
is always unstable, but away from the origin, it is always stable – and it goes to a
limit cycle
Control Engineering Module 12 – Lecture 2 Dr. Viswanath Talasila
Model of the Van der Pol Oscillator
The original non-linear equation was
Summary: Lecture 2
Contents: Lecture 3
Difference between
linear and nonlinear
Controllability and
Taylor series and the
Jacobian Observability
Simple pole placement
2 detailed examples of
problem
linearization (predator-
prey and Van der Pol
oscillator