Introduction
This book represents a modern treatment of classical control theory of continuousand discrete-time linear systems. Classical control theory originated in the fifties
and attained maturity in the sixties and seventies. During that time control theory
and its applications were among the most challenging and interesting scientific
and engineering areas. The success of the space program and the aircraft industry
was heavily based on the power of classical control theory.
The rapid scientific development between 1960 and 1990 brought a tremendous number of new scientific results. Just within electrical engineering, we
have witnessed the real explosion of the computer industry in the middle of the
eighties, and the rapid development of signal processing, parallel computing,
neural networks, and wireless communication theory and practice at the beginning of the nineties. In the years to come many scientific areas will evolve
around vastly enhanced computers with the ability to solve by virtually brute
force very complex problems, and many new scientific areas will open in that
direction. The already established information superhighway is maybe just
a synonym for the numerous possibilities for informational breakthrough in
almost all scientific and engineering areas with the use of modern computers.
Neural networksdynamic systems able to process information through large
number of inputs and outputswill become specialized dynamic computers
for solving specialized problems.
Where is the place of classical (and modern) control theory in contemporary
scientific, industrial, and educational life? First of all, classical control theory
values have to be preserved, properly placed, and incorporated into modern scientific knowledge of the nineties. Control theory will not get as much attention and
1
INTRODUCTION
INTRODUCTION
INTRODUCTION
and closed-loop (feedback) control. The two main techniques in control system
analysis and design, i.e. state space and transfer function methods, are briefly
discussed. Modeling of dynamic systems and linearization of nonlinear control
systems are presented in detail. A few real-world control systems are given
in order to demonstrate the system modeling and linearization. Several other
models of real-world dynamic control systems will be considered in the following
chapters of this book. In the concluding sections, we outline the books structure
and organization, and indicate the use of MATLAB and its CONTROL and
SIMULINK toolboxes as teaching tools in computer control system analysis and
design.
= fc (x(t));
+ 1) = fd (x(k));
x(t0 )
x(k0 )
(1.1)
x0
x0
(1.2)
where t stands for continuous-time, k represents discrete-time, subscript c indicates continuous-time and subscript d is used for discrete-time functions. By
solving these equations we learn about the systems evolution in time (system
INTRODUCTION
= fc (x(t); u(t));
x(t0 )
+ 1) = fd (x(k); u(k));
(1.3)
x0
x(k0 )
(1.4)
x0
where u(t) and u(k) play the role of control variables. By changing the control
variable we hope that the system behavior can be changed in the desired direction,
in other words, we intend to use the control variable such that the system response
has the desired specifications. When we are able to achieve this goal, we are
actually controlling the system behavior.
The general control problem can be formulated as follows: find the control
variable such that the solution of a controlled differential/difference equation has
some prespecified characteristics. This is a quite general definition. In order to be
more specific, we have to precisely define the class of systems for which we are
be able to solve the general control problem. Note that the differential/difference
equations defined in (1.1)(1.4) are nonlinear. In general, it is hard to deal with
nonlinear systems. Nonlinear control systems are studied at the graduate level.
In this undergraduate control course, we will study only linear time invariant
control systems.
Continuous- and discrete-time linear time invariant dynamic systems are described, respectively, by linear differential and difference equations with constant
coefficients. Mathematical models of such systems having one input and one
output are given by
n
d y (t)
dtn
+ an01
n 1
y (t)
dtn 1
111+
a1
dy (t)
dt
+ a0 y (t) =
u(t)
(1.5)
and
y (k
+ n) + an01 y (k + n
0 1) + 1 1 1 +
a1 y (k
+ 1) + a0y (k) =
u(k )
(1.6)
where n is the order of the system, y is the system output and u is the external
forcing function representing the system input. In addition to the external forcing
function the system is also driven by its internal forces coming from the system
INTRODUCTION
initial conditions. For continuous-time systems, the initial conditions are specified
by known values of the system output derivatives up to the order of n 0 1 at
the initial time t0 , that is
y (t0 );
dy (t0 )
dt
01y (t0 )
dtn01
; :::;
(1.7)
+ 1);
:::; y (k0
+n
0 1)
(1.8)
It is interesting to point out that in the discrete-time domain the initial conditions
carry information about the evolution of the system output in time from k0 to
k0 + n 0 1. In this book, we study only time invariant continuous and discrete
systems for which the coefficients ai ; i = 0; 1; :::; n 0 1, are constants. A block
diagram representation of such a system is given in Figure 1.1.
y(t)
u(t)
System
Input
Output
01 y (t)
dy (t)
+ a0 y (t)
+ 1 1 1 + a1
n
n01
dt
dt
dt
m
m01
d u(t)
d
u(t)
du(t)
+
bm01
+ 1 1 1 + b1
+ b0u(t)
= bm
m
m01
dt
dt
dt
d y (t)
+ an01
(1.9)
INTRODUCTION
and
y (k
0 1) + 1 1 1 + 1 ( + 1) + 0 ( )
01 ( + 0 1) + 1 1 1 + 1 ( + 1) +
+ n) + an01y (k + n
bm u(k
+ m) + bm
a y k
u k
a y k
b u k
b0 u(k )
(1.10)
INTRODUCTION
computation, which is fine if the system parameters are exactly known, but
this approach will not bring any improvement in the case when the system
coefficients, obtained either analytically or experimentally, are known only with
certain accuracy. This precomputed time function u(t) (or u(k) in the discretetime domain), which solves the control problem, is known as the open-loop
control.
Imagine now that one is able, in an attempt to solve the basic linear control
problem, to obtain the desired input function as a function of the system desired
response, or even more precisely as a function of some essential system variables
that completely determine the system dynamics. These essential system variables
are called the state space variables. It is very natural to assume that for a system
of order n, a collection of n such variables exist. Denote the state space variables
by x1 (t); x2 (t); :::; xn (t). These state variables at any given time represent the
actual state of the system. Even if some parameters of the system are changing
in time or even if some coefficients in (1.9) are not precisely known, the state
variables x1(t); x2 (t); :::; xn (t) will reflect exactly the state of the system at any
given time. The question now is: can we get the required control variable (system
input) as a function of the state space variables? If the answer is yes, then the
existence of such a u(x(t)) indicates the existence of the so-called state feedback
control. In some cases it is impossible to find the feedback control, but for
the linear time invariant systems studied in this book, linear feedback control
always exists. The linear feedback control is a linear function of the state space
variables, that is
x) =
u(
F1 x1
+ F2 x2 + 1 1 1 + Fn xn =
F=[ 1
x=[ 1
n]
T
F ; F2 ; :::; F
Fx
(1.11)
n]
x ; x2 ; :::; x
where the coefficient matrix F is the feedback gain and the vector x is known
as the state space vector. It is sometimes desirable (and possible) to achieve
the goal by using instead of the state feedback control u(x(t)), the so-called
output feedback control given by u(y (t)) = u(y (x(t))), which in general does
not contain all state variables, but only a certain collection of them. In Section
3.1 we will learn how to relate the output and state space variables.
INTRODUCTION
Open-loop control, state feedback control, and output feedback control are
represented schematically in Figure 1.2.
u(t)
System
y(t)
(a)
u(x(t))
System
(b)
y(x(t))
u(y(x(t)))
System
(c)
Figure 1.2: Open-loop (a), state feedback (b), and output feedback (c) controls
u=[
]T y = [ 1 2 p]T
(1.12)
2 . These systems are known as multi-input
r
u1 ; u2 ; :::; u
y ; y ; :::; y
10
INTRODUCTION
u1
u2
y1
y2
System
yp
ur
However, one has to be careful when applying feedback since it changes the
structure of the original system. Consider the system described by equation (1.3)
under the state feedback control, that is
_ (t)
x
= fc (x(t); u(x(t))) =
Fc(
x(t));
x(t0 )
x0
(1.13)
Thus, after the feedback is applied, a new dynamic system is obtained, in other
words, for different values of u(x(t)) we will get different expressions for the
right-hand side of (1.13) so that equation (1.13) will represent different dynamic
systems.
11
INTRODUCTION
t ;
and
k ;
(1.14)
(1.15)
In view of the discussion in the previous section, the introduced constant matrices
have the dimensions n2n ; n2r ; p2n ; p2r . Of course, the given matrices
for continuous and discrete systems have different entries. In formulas (1.14) and
(1.15) the same notation is kept for both continuous and discrete systems for the
sake of simplicity. In the case when a discrete-time system is obtained by sampling a continuous-time system, we will emphasize the corresponding difference
by adding a subscript d for the discrete-time quantities, e.g. d ; d; d ; d .
The system transfer function for a single-input single-output time invariant
continuous system is defined as the ratio of the Laplace transform of the system
output over the Laplace transform of the system input assuming that all initial conditions are zero. This definition implies that the transfer function corresponding
to (1.9) is
A B C D
G(s)
m +b
m01 + 1 1 1 + b s + b
0
m01s
1
sn + an01 sn01 + 1 1 1 + a1 s + a0
bm s
(1.16)
12
INTRODUCTION
bm z
z
(1.17)
For multi-input multi-output systems with r inputs and p outputs, transfer functions are matrices of order p 2 r whose entries are the corresponding transfer
functions from the ith system input to the j th system output, i = 1; 2; :::; r;
j = 1; 2; :::; p; that is
2
G11 (s)
6
G21 (s)
G(s) = 666 . . .
4
G12 (s)
...
...
G1r (s)
...
...
...
...
...
Gji (s)
...
...
...
...
...
...
...
Gp1 (s)
...
...
...
Gpr (s)
32
7
7
7
7
5
p
(1.18)
Recall from basic circuits courses that while finding Gji (s) = Yj (s)=Ui (s) all
other system inputs except for Ui (s) must be set to zero. Similarly, the discretetime transfer function of a multi-input multi-output, time invariant, system is
given by
2
G11 (z )
6
G21 (z )
G(z) = 666 . . .
4
G12 (z )
...
...
G1r (z )
...
...
...
...
...
Gji (z )
...
...
...
...
...
...
...
Gp1 (z )
...
...
...
Gpr (z )
32
7
7
7
7
5
p
(1.19)
More will be said about the transfer function of multi-input multi-output systems
in Chapter 2.
Since each entry in the matrix transfer functions given in (1.18) and (1.19) is a
ratio of two polynomials with complex numbers, it is obvious that for higher-order
systems the required calculations in the frequency domain are mathematically
very involved so that the state space system representation is simpler than the
corresponding frequency domain representation. In addition, since the state space
method is based on linear algebra, for which numerous efficient mathematical
methods have already been developed, the state space method is also more
convenient from the computational point of view than the frequency domain
method. However, the importance of the frequency domain representation lies in
the simplicity of presenting some basic concepts, and hence it very often gives
a better understanding of the actual physical phenomena occurring within the
system.
13
INTRODUCTION
i1
R1
i2
ei
R2
i3
C
eo
14
INTRODUCTION
inductor current and capacitor voltage are zero. Applying the basic circuit laws
(Thomas and Rosa, 1994) for voltages and currents, we get
di1 (t)
ei (t) = L
dt
e0 (t) = R2 i2(t) =
i3( )d
i3 = C
(1.20)
de0 (t)
dt
(1.21)
(1.22)
i1(t) =
R2
e0 (t) + C
de0 (t)
(1.23)
dt
Taking the derivative of (1.23) and combining (1.20) and (1.23), we obtain the
desired second-order differential equation, which relates the input and output of
the system, and represents a mathematical model of the circuit given in Figure 1.4
d2 e0 (t)
dt2
L + R R C de (t) R
1
R2LC
1 + R2
dt
e0 (t) =
R2LC
LC
ei (t)
(1.24)
Note that in this mathematical model ei (t) represents the system input and e0 (t)
is the system output. However, any of the currents and any of the voltages can
play the roles of either input or output variables.
Introducing the following change of variables
x1 (t) = eo
dx1(t)
dt
x2(t) =
deo (t)
dt
= x2 (t)
deo (t)
(1.25)
dt
u(t) = ei (t)
y (t) = eo (t)
L + R R C
1
R2 LC
x2 (t) +
y (t) = x1 (t)
R
1 + R2
R2 LC
x1 (t) =
LC
u(t)
(1.26)
15
INTRODUCTION
The first equation in (1.25) and equation (1.26) can be put into matrix form as
1
x
_2
x
_
=
1
x2
0 RR +LCR 0 L+RRLCR C
2
1
2
+
LC
(1.27)
y (t )
= [1
0]
1
x2
x
(1.28)
Equations (1.27) and (1.28) represent the state space form for the system whose
mathematical model is given by (1.24). The corresponding state space matrices
for this system are given by
A = 0 R +R 0 L+R R C
R LC
R LC
0
1
2
1 2
;
B=
LC
;
C = [1
0 ];
D=0
(1.29)
The state space form of a system is not unique. Using another change of variables,
we can get, for the same system, another state space form, which is demonstrated
in Problem 1.1.
The transfer function of this single-input single-output system is easily
obtained by taking the Laplace transform of (1.24), which leads to
G(s)
Lf 0( )g =
Lf i( )g
e
LC
L+R1 R2C s + R1 +R2
s2 +
R2LC
R2LC
(1.30)
Note that a systematic approach for getting the state space form from
differential (difference) equations will be given in detail in Chapter 3. In this
chapter we present only the simplest cases. These cases are dictated by system
physical structures described by a set of first- and second-order differential
(difference) equations, which can be put in a straightforward way into matrix
form, which in fact represents the desired state space form.
Another example, which demonstrates how to get a mathematical model for
a real physical system, is taken from mechanical engineering.
16
INTRODUCTION
k2
k1
F2
m2
F1
m1
B1
B2
y1
y2
F1
m1
d y1
+ B1
dt2
dy1
dt
and
2
F2
m2
d y2
dt2
+ B2
dy2
dt
+ k2y2
0
B1
dy2
+ k1 (y1
dt
dy1
dt
dy2
dt
y2 )
k1 (y1
(1.31)
y2 )
(1.32)
It can be seen that this system has two inputs, F1 and F2 , and two outputs,
and y2 . The rearranged form of equations (1.31) and (1.32) is given by
2
m1
d y1
+ B1
dt2
dy1
+ k1 y1
dt
B1
dy2
dt
k1 y2
y1
(1.33)
F1
and
B1
dy1
dt
k1 y1
+ m2
d y2
2 + (B1 + B2)
dt
dy2
dt
+ (k1 + k2)y2 =
F2
(1.34)
From equations (1.33) and (1.34) the state space form can be obtained easily by
choosing the following state space variables
x1
= y1 ;
x2
u1
dy1
x3
= y2 ;
F1 ;
u2
dt
F2
x4
dy2
dt
(1.35)
17
INTRODUCTION
2x_ 3 2 0
1
0
0
1
k
B
66x_ 2 77 660 mk 0 mB
m
m
4x_ 3 5 = 4 0
0
0
1
k
B
k +k 0 B +B
x_ 4
0
m
m
m
m
1
and
y1 = 1
y2
0
32x 3 2 0
1
7766x2 77 66 m1
54x3 5 + 4 0
0
x4
0
0
0
1
m2
2 3
6x1 7
0 6x2 7
0 4x3 5
x4
3
77u1
5 u2
(1.36)
(1.37)
G11(s) = UY1((ss))
1
U s
Y (s)
G12(s) = U1 (s)
2
U s
Y (s)
G21(s) = U2 (s)
1
U s
Y (s)
G22(s) = U2 (s)
2
U s
j
2 ( )=0
1 ( )=0
B1s + k1
a4s4 + a3s3 + a2s2 + a1s + a0
2 ( )=0
B1s + k1
=
4
3
a4s + a3s + a2s2 + a1s + a0
j 1 ( )=0
where
m1s2 + B1s + k1
a4s4 + a3s3 + a2s2 + a1s + a0
a4 = m1m2
a3 = B1(m1 + m2) + m1B2
a2 = B1B2 + k1(m1 + m2) + k2m1
a1 = k1B2 + k2B1
a0 = k1k2
(1.38)
18
INTRODUCTION
G(s) =
G11(s)
G21(s)
G12 (s)
G22(s)
(1.39)
d2 x(t)
d2 (x + l sin )
m
+
=F
1
dt2
dt2
(1.40)
19
INTRODUCTION
l sin
m1gsin
lcos
m1g
x
0
F
m2
where g
d2
(x + l sin )
dt2
= 9:8 m=s2
(1.41)
d
d
;
sin = cos
dt
dt
d
cos =
dt
d 2
d2
sin =
dt2
0 sin
d2
cos =
dt2
0 cos
dt
d 2
dt
0 sin d
dt
+ cos
d2
dt2
(1.42)
0 sin ddt2
0 m1l sin
cos
d2 x
dt2
d 2
+l
dt
d2
dt2
+ m1l cos
= g sin
d2
=F
dt2
(1.43)
20
INTRODUCTION
R1
L2
L1
i1
+
ei
C1
vC1
i2
R2
L3
R4
i3
i4
R3
C2
vC2
21
INTRODUCTION
(1.44)
i1 0 i2 0 C1 dvdtc1 = 0
i4 0 C2 dvdtc2 = 0
(1.45)
(1.46)
We have set up five equations for four currents and two voltages. Current i4 can
be eliminated by using the following algebraic voltage balance equation, which
is valid for the last loop
i4 can be expressed as
i4 = R R+3R i3 0 R +1 R vc2
3
4
3
4
(1.47)
di1 = 0 R1 i 0 1 v + 1 e
dt
L1 1 L1 c1 L1 i
di2 = 0 R2 i + R2 i + 1 v
dt
L2 2 L3 3 L2 c1
di3 = R2 i 0 R2R3 + R2R4 + R3R4 i 0
R3
2
3
dt L3
L3(R3 + R4)
L3(R3 + R4) vc2
dvc1 = 1 i 0 1 i
dt C1 1 C1 2
R3
1
dvc2 =
i
30
dt C2(R3 + R4)
C2(R3 + R4) vc2
(1.48)
22
INTRODUCTION
The matrix form of this system of first-order differential equations represents the
system state space form. Take x1 = i1 ; x2 = i2; x3 = i3; x4 = vc1 ; x5 = vc2 ;
u = ei , then the state space form is given by
2 3 20 R1 0
x
_ 1 6 L1 R
6
x
_ 2 77 66 0 0 L22
6
6
x
_ 3 77 = 66 0 RL32
6
4x_ 4 5 4 1 0 1
C1
C1
x5
where
a33
= 0 R RL
R2
L2
a33
R3
C2 (R3 +R4 )
0L
1
1
1
2
0
0
0
32 3 2 1 3
x1
L1
7
6
6
x2 7
0 77
7
6
7
6
7
R
3
6
7
6
0 L3(R3+R4) 776x3 7 + 6 0 77u
54x4 5 4 0 5
0
0
0
0C
1
2 ( 3+ 4 )
R R
x5
(1.49)
R R R R4 .
R R
2 3+ 2 4+ 3
3( 3+ 4)
23
INTRODUCTION
_ ( ) = ( ( ) ( ))
x t
(1.50)
f x t ;u t
Assume that under usual working circumstances this system operates along the
trajectory xn t while it is driven by the control input un t . We call xn t and
un t , respectively, the nominal system trajectory and the nominal control input.
On the nominal trajectory the following differential equation is satisfied
()
()
()
()
_ n( ) = ( n ( ) n( ))
f x
t ;u
(1.51)
Now assume that the motion of the nonlinear system (1.50) is in the neighborhood
of the nominal system trajectory and that the distance from the nominal trajectory
is small, that is
( ) = n( ) + 1 ( )
x t
(1.52)
x t
1 ()
( ) = n( ) + 1 ( )
u t
(1.53)
u t
For the system motion in close proximity to the nominal trajectory, from equations
(1.50), (1.52), and (1.53), we have
_ n( ) + 1 _ ( ) = ( n ( ) + 1 ( ) n( ) + 1 ( ))
(1.54)
Since 1 ( ) and 1 ( ) are small quantities, the right-hand side of (1.54) can
x
x t
x t
f x
x t ;u
u t
u t
be expanded into a Taylor series about the nominal trajectory and control, which
produces
_ n( ) + 1 _ ( ) = ( n ( ) n( )) + ( n n)1 ( ) + (
+ higher0order terms
x t
f x
t ;u
@f
@x
x ;u
x t
@f
@u
x ;u
)1 ( )
u t
(1.55)
24
INTRODUCTION
Using (1.51) and canceling higher-order terms (which contain very small quantities x2 ; u2 ; x u; x3 ; :::), the following linear differential equation is
obtained
@f
@f
x t
x t
xn ; un
xn ; un
u t
(1.56)
1 1 11 1
1 _( ) = (
)1 ( ) + (
)1 ( )
whose solution represents a valid approximation for 1 ( ). Note that the partial
@x
@u
x t
( )=0 (
@f
a0 t
@x
x ;u
b0
= (
@f
@u
x ;u
(1.57)
1 _ ( ) + 0( )1 ( ) = 0( )1 ( )
x t
x t
(1.58)
u t
In general, the obtained linear system is time varying. Since in this course we
study only time invariant systems, we will consider only those examples for
which the linearization procedure produces time invariant systems. It remains to
find the initial condition for the linearized system, which can be obtained from
(1.52) as
1 ( 0) = ( 0) 0 n( 0)
x t
x t
(1.59)
= ( _
_)
(1.60)
f x; x; u; u
by assuming that
( ) = n( ) + 1 ( ) _ ( ) = _ n( ) + 1 _ ( )
( ) = n( ) + 1 ( ) _ ( ) = _ n( ) + 1 _ ( )
x t
x t ;
x t
x t
u t
u t ;
u t
u t
(1.61)
and expanding
n + 1 = ( n + 1
_n + 1 _ n + 1 _n + 1 _)
into a Taylor series about nominal points n _ n n _ n , which leads to
1( ) + 11 _ ( ) + 01 ( ) = 11 _ ( ) + 01 ( )
x
f x
x ;x
x; u
u; u
(1.62)
x ;x ;u ;u
x t
x t
x t
u t
u t
(1.63)
25
INTRODUCTION
= 0 @f
(xn; x_ n; un ; u_ n);
@ x_
a0
b0
b1
@f
(xn ; x_ n; un; u_ n)
= 0 @x
(1.64)
= @f
(xn ; x_ n; un; u_ n)
@u
The initial conditions for the second-order linearized system are easily obtained
from (1.61)
(1.65)
where u is the horizontal force of a finger and represents the sticks angular
displacement from the vertical. This second-order dynamic system is linearized
; un t
) by using formulas (1.64),
at the nominal points (n t
n t
which produces
a1
= 0 @ _ = 0;
@f
b1
a0
@f
=0
= _ = 0;
@f
@u
b0
@
= 0(cos + u sin )
jn
@f
@u
= 0(cos )
jn
n ( t)=0
n ( t)=0
un (t)=0
= 01
= 01
( ) 0 (t) = 0u(t)
Note that 1(t) = (t); 1u(t) = u(t) since n (t) = 0; un (t) = 0. It is important
t
to point out that the same linearized model could have been obtained by setting
t t ;
t , which is valid for small values of t .
sin ( )
( ) cos ( ) 1
()
5
Of course, we can extend the presented linearization procedure to an n-order
nonlinear dynamic system with one input and one output in a straightforward
26
INTRODUCTION
(1.66)
() ()
()
()
(1.67)
(1.68)
xn +
d
dt
1x = F (xn + 1x un + 1u)
;
F
F
= F (xn un) + x xn t 1x + u xn t 1u + higher0order terms
@
( )
un (t)
( )
un (t)
(1.69)
Higher-order terms contain at least quadratic quantities of x and u. Since
x and u are small their squares are even smaller, and hence the higherorder terms can be neglected. Using (1.67) and neglecting higher-order terms,
an approximation is obtained
d
dt
F
1x( ) =
t
xn (t)
un (t)
F
1x( ) +
t
xn (t)
un (t)
1u( )
t
(1.70)
27
INTRODUCTION
F
@
2 @F @F . . . . . . @F 3
@x
@x
@x
66 @@xF . . . . . . . . . @@xF 77
= An2n = 66 . . . . . . @@xF . . . . . . 77
4 ... ... ... ... ... 5
n
2
(t)
j xunn (t)
F
@
1
2
@ Fn
@x1
... ...
@ Fn
@x2
@ Fn
@xn
(1.71a)
j xunn (t)
(t)
2 @F @F . . . . . . @F 3
@u
@u
@u
66 @@uF . . . . . . . . . @@uF 77
= Bn2r = 66 . . . . . . @@uF . . . . . . 77
4 ... ... ... ... ... 5
1
1
2
r
2
j xunn (t)
(t)
(1.71b)
... ...
@ Fn
@u2
@ Fn
@u1
@ Fn
@ur
j xunn (t)
(t)
Note that the Jacobian matrices have to be evaluated at the nominal points, i.e.
at n t and n t . With this notation, the linearized system (1.70) has the form
x ()
d
dt
u ()
t ;
(1.72)
y( ) = G (x( ) u( ))
t
t ;
(1.73)
This equation can be also linearized by expanding its right-hand side into a Taylor
series about nominal points n t and n t . This leads to
x ()
u ()
G
yn + 1y = G (xn un) + x
G
1x + u x 1u
j ux
ju
(1.74)
+ higher0order terms
Note that yn cancels term G (xn un ). By neglecting higher-order terms in (1.74),
@
n (t)
n (t)
n (t)
n (t)
(1.75)
28
INTRODUCTION
C2 and D satisfy
@G
@G
...
@x
@x
66 @@xG . . . . . .
@G
= 66 . . . . . . @x
4... ... ...
@G
@G
...
@x
@x
p2n
Dp2r =
G
@
(t)
j xunn (t)
@G 3
. . . @x
@G 7
. . . @x
7
. . . . . . 77
. . . @. G. . 5
. . . @x j xu
1
n
2
G
@
1
2
n (t)
n (t)
2 @G @G . . . . . . @G 3
@u
@u
@u
@G 7
66 @@uG . . . . . . . . . @u
7
@G
= 66 . . . . . . @u
. . . . . . 77
4... ... ... ... ... 5
1
1
2
r
2
j xunn (t)
(t)
(1.76a)
@ Gp
@u1
@ Gp
@u2
@ Gp
@ur
... ...
(1.76b)
j xunn (t)
(t)
= 1 sin 2 +
dx1
dt
= 1 0x + 2
= 2 1 2 + 22
dx2
dt
y
x2 u
x e
x x
Assume that the values for the system nominal trajectories and control are known
and given by x1n ; x2n ; and un . The linearized state space equation of the above
nonlinear system is obtained as
1 _ 1( ) = sin 2n
0x
1 _ 2( )
x
2n
1 ( ) = [2
x2n
y t
+ n 1 1( ) + 2n 1 ( )
0 1n 0x
1 2( ) 2 n
1
1( )
2 1n + 2 2n ] 1 2( ) + 01 ( )
x1n
cos
x2n
2n
u t
u t
Having obtained the solution of this linearized system under the given control
input u t , the corresponding approximation of the nonlinear system trajectories
is
1 ()
xn( ) + 1x( ) =
t
( ) + 1 1( )
1 2( )
2n ( )
x1n t
29
INTRODUCTION
0 2) = 0
0 k(1 0 2) = u
x_ 2 =
k
sin x1 0 (x1 0 x3 )
0 mgl
I
I
x_ 3 = x4
1
k
x_ 4 = (x1 x3 ) + u
J
J
Take the nominal points as (x1n ; x2n ; x3n; x4n ; un ), then the matrices
2
0
k + mgl cos x1n
6
A = 640 0I
k
J
1
0
0
0
0
k
I
0 Jk
3
07
7;
15
0
A and B
2 3
0
6
B = 64 00 775
In Spong (1995) the following numerical values are used for system parameters:
mgl = 5; I = J = 1; k = 0:08.
Assuming that the output variable is equal to the links angular position,
that is
y = x1
the matrices
30
INTRODUCTION
In the next example, we give state space matrices for two linearized models
of an F-15 aircraft obtained by linearizing nonlinear equations for two sets of
operating points.
Example 1.4: F-15 Aircraft
The longitudinal dynamics of an F-15 aircraft can be represented by a
fourth-order mathematical model. For two operating conditions (subsonic and
supersonic) two linear mathematical models have been derived (Brumbaugh,
1994; Schomig et al., 1995). The corresponding state space models are given by
2 3 2
00:00819 025:70839
x
_1
0
032:17095 32x1 3
6
6
7
6
00:00019 01:27626 1:0000
x2 7
x
_2 7
0
6
7
6
7
6
=
4x_ 3 5 4 0:00069 1:02176 02:40523
54x3 7
5
0
_4
x
1:0000
2
06:80939 3
6 00:14968 7
+6
4014:06111 7
5u;
x4
y=x
2 3 2
x
_1
00:01172 095:91071
0
032:11294 32x1 3
6
600:00011 01:87942 1:0000
6
7
x
_2 7
0
x2 7
6
6
7
7
4x_ 3 7
4 0:00056 03:61627 03:44478
5=6
4
5
0
x3 5
x
_4
2
025:40405 3
6 00:22042 7
+6
4053:42460 7
5u;
1:0000
x4
y=x
31
INTRODUCTION
(m1 + m2 )
(1.77)
This model can easily be put in the state space form equivalent to (1.14) by
introducing the following change of variables
x1 = x
x_ 1 = x2
dx
=x
_
dt
x_ 3 = x4
x3 =
d
x4 =
dt
u=F
x2 =
(1.78)
0 mm g x
1
(m1 + m2)g
m2 l
x3
m2
(1.79)
0 m lu
1
From (1.78) and (1.79) the state space form of the inverted pendulum is given by
2 3 2
0
x_ 1
6
7
6
x_ 2
0
6
40
4x_ 3 7
5=6
x_ 4
1
0
0
0
0 mm g
0
1
2
(m1 +m2 )g
m2 l
32 3 2
x1
7
6
6
0 76x2 7
7
6
+
4
1 54x3 5
0
x4
0
1
m2
0m l
1
2
3
7
7
5u
(1.80)
32
INTRODUCTION
The output equation can be chosen such that it gives information about the carts
horizontal displacement x1 and the links angular position x3 . In that case a
possible choice for the output equation is
y = [1 0 1 0 ]x
(1.81)
The same state variables will appear directly on the output if the following output
equations are used
1
0
0
=
1
y=
0 0 0
0 1 0
0 1 0
0 0 0
(1.82)
(1.83)
The main difference between (1.81) and (1.82)(1.83) is that in output equations
(1.82) and (1.83) we have two channels, each of which independently produces
information about the particular state variable.
Finally, we would like to point out that the SIMULINK package is very
convenient for simulation of nonlinear systems. It can also be used to obtain
linearized models of nonlinear systems around given operating points (nominal
system trajectories and controls).
INTRODUCTION
33
1.9 References
Brumbaugh, R., An aircraft model for the AIAA controls design challenge,
Journal of Guidance, Control, and Dynamics, vol. 17, 747752, 1994.
Dorf, R., Modern Control Systems, Addison Wesley, Reading, Massachusetts,
1992.
Franklin, G., J. Powel, and M. Workman, Digital Control of Dynamic Systems,
Addison Wesley, Reading, Massachusetts, 1990.
Greenwood, D., Principles of Dynamics, Prentice Hall, Englewood Cliffs, New
Jersey, 1988.
Kamen, E., Introduction to Signals and Systems, Macmillan, New York, 1990.
Kecman, V., State Space Models of Lumped and Distributed Systems, SpringerVerlag, Berlin, 1988.
34
INTRODUCTION
1.10 Problems
1.1
Find the state space form for the electrical circuit whose mathematical model
is given in (1.20)(1.22) by taking for the state space variables the input
current and output voltage, i.e. by choosing x1 = i1 ; x2 = eo . In addition,
take y = x2 and u = ei .
35
INTRODUCTION
1.2
Find a mathematical model for the inverted pendulum, assuming that its
mass is concentrated at the center of gravity, and linearize the obtained
xn t
xn t
nonlinear system at n t
n t
(Kwakernaak and
Sivan, 1972; Lewis, 1992). Compare the linear model obtained with model
(1.80) derived under the assumption that the pendulum mass is concentrated
at its end.
1.3
Verify the expressions given in (1.38) for the transfer function of a two-input
two-output translational mechanical system.
1.4
Find the mathematical model, transfer function, and state space form of the
electrical network given in Figure 1.8.
+
uC2
C2
R1
iL1
+
R2
L1
vi
C1
uC1
R3
vo
R4
1.5
( ) = x(t)u(t)e0u t ;
dx t
dt
( )
(0) = 0:9
( ( ) ( )) = (1; 0).
d2x t
dt2
( ( ) ( )) = (1 0)
1 () =
36
1.7
INTRODUCTION
0 u(t))x(t) = u2(t) + 1;
x(0) = 0;
dx(0)
=1
dt
find the nominal system response on the nominal system trajectory defined
by un (t) = 1, subject to xn (0) = 0 and dxn (0)=dt = 1:1. Find the
linearized state space equation and its initial conditions.
1.8
d2
+ mgl sin = lu(t);
dt2
(t0 ) = 0 ; _(t0 ) = !0
where I is the moment of inertia, l; m are pendulum length and mass, respectively, and u(t) is an external tangential force. Assume that n (t) = 0;
un (t) = 0; n (t0 ) = 0; _n (t0 ) = 0; and 0 ; !0 are small. Find the linearized
equation for this pendulum by using formulas (1.64). Determine the initial
conditions.
1.9
Linearize the given system at a nominal point (x1n ; x2n ; x3n ) = (0; 1; 1)
x_ 1 = x1 x2
x_ 2 = 1
0 sin x1
0 3x2e0x
x_ 3 = x1x2 x3
0 sin x2
y = sin x1
Assume that x1n ; x2n; and un are known. Find the transfer function of the
linearized model obtained.
1.11 Linearize the Volterra predatorprey mathematical model
0x1 + x1x2
x_ 2 = x2 0 x1 x2
x_ 1 =
= (0; 0).
37
INTRODUCTION
0 ) =0
0 k( 0 ) = u(t)