Control Theory - : C3. Linearization of Nonlinear Systems
Control Theory - : C3. Linearization of Nonlinear Systems
0-0
Linearization of nonlinear systems 1/20
Reference material:
• G.F. Franklin, J.D. Powell, A. Emami-Naeini, Feedback control of dynamic
systems, Prentice Hall, Inc., 2002, section 2.6.
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 2/20
Tc − mgl sin θ = I θ̈
g Tc
θ̈ + sin θ =
l ml2
because I = ml2 .
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 3/20
Pendulum (2)
• Linearization about the equilibrium θ = 0: sin θ ≈ θ:
g Tc
θ̈ + θ =
l ml2
• This is a linear system description with a natural undamped frequency:
r
g
ωn =
l
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 4/20
Pendulum (3)
• Evaluation of the accuracy: consider free motion from the initial state
θ0 = ±6◦ , θ̇0 = 0.
4
angle [degrees]
2
−2
−4
−6
0 2 4 6 8 10
time [s]
Pendulum (4)
• Evaluation of the accuracy: consider free motion from the initial state
θ0 = ±60◦ , θ̇0 = 0.
60
40
angle [degrees]
20
−20
−40
−60
0 2 4 6 8 10
time [s]
Pendulum (5)
In Matlab
function dx = slinger(t,x)
l = 0.5; g = 9.81;
theta = x(1);
dtheta = x(2);
ddtheta = - g*sin(theta)/l;
dx = [dtheta ; ddtheta];
%/////////////////////////////
x0 = [ 0.1 0 ]’;
tspan = [0 10]’;
[tijd,y]=ode45(’slinger’,tspan,x0);
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 7/20
Small-signal linearization
• A nonlinear differential equation is one where the derivatives of the state
have a nonlinear relationship to the state itself and/or the input:
ẋ = f (x, u)
ẋ = Fx + Gu
ẋ0 = 0 = f (x0 , u0 )
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 8/20
x = x0 + δx
u = u0 + δu
ẋ0 + δ ẋ ≈ f (x0 , u0 ) + Fδx + Gδu
with
∂f
F = |(x0 ,u0 )
∂x
∂f
G = |(x0 ,u0 )
∂u
• Subtracting out the equilibrium solution ẋ0 = f (x0 , u0 ) = 0 yields:
δ ẋ = Fδx + Gδu
Examples:
• Water tank
• Magnetic ball levitator
• Motion system with aerodynamic disturbances
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 10/20
Water tank
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 11/20
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 12/20
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 14/20
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 15/20
mẍ = fm (x, i) − mg
• Theoretically, the force from an electromagnet falls off with the square
relationship to the distance from the magnet.
• Practically, this function fm (x, i) is much more complex, and can be
measured. For a ball with a diameter of 1cm and a mass of 8.4e−3 kg
k1 k2
m x (input)
c2
c1 y (output)
• Equation of motion:
or
mÿ + (k1 + k2 )y − k2 x + (c1 + c2 )ẏ − c2 ẋ + cw (v + ẏ)2 = 0
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 18/20
y = y0 + δy
ẏ = δ ẏ
ÿ = δ ÿ
x = x0 + δx
ẋ = δ ẋ
ẍ = δ ẍ
v = v0 + δv
mδ ÿ+(c1 +c2 )δ ẏ+(k1 +k2 )(y0 +δy)−k2 (x0 +δx)−c2 δ ẋ+cw v02 +2cw v0 (δ ẏ+δv) = 0
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 19/20
yielding
or
c1 s + k1
δY (s) = 2
δX(s)
ms + (c1 + c2 + 2cw v0 )s + (k1 + k2 )
2cw v0
− 2
δV (s)
ms + (c1 + c2 + 2cw v0 )s + (k1 + k2 )
[H00S3A-H00S4A-H04X3A-H04X3B]
Linearization of nonlinear systems 20/20
Advice : always check the physical units of the parameters of the resulting
linear models
[H00S3A-H00S4A-H04X3A-H04X3B]