Chapter 03
Chapter 03
Chapter 3
Modeling in the Time Domain
Chapter Objectives
In this chapter you will learn the following:
• How to find a mathematical model, called a
state-space representation, for a linear, time-
invariantsystem.
• How to convert betweentransfer function
and state-space models
• How to linearize a state-space
representation
Introduction
Two approaches are available for the analysis and
design a feedback control systems. The first,
which we beganto study in Chapter 2, is knownas
the classical, or frequency –domain technique.
This approach is based on converting a system’s
differantial equation to a transfer function, thus
generating a mathematical model of the systemthat
algebraically relates a representation of the output
to a representation of the input. Replacing a
differential equation with an algebric equationnot
only simplifies the representation of individual
subsystems but also simplifies modeling
interconnected subsystems.
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
4 Chapter 3: Modeling in the Time Domain
Introduction cont.
• The primary disadvantage of the classical approachis its
limited applicability: it can be applied only to linear, time
invariant systems or systems that can be approximated as
such.
• A major advantage of frequency-domain techniques is that
they rapidly provide stability and transient response
information. Thus, we can immediately see the effect of
varying system parameters until an acceptable design is met.
• With the arrival of space exploration, requirements for
control systems increased in scope. Modeling systems by
using linear, time-invariant differentialequation and
subsequent transfer functions become inadequte.
Figure 3.3
Graphic
representation
of state space
and a state
vector
dx1
= a11 x1 + a12 x2 + b1 v(t )
dt
dx2
= a21 x1 + a22 x2 + b2 v(t )
dt
• where x1 and x2 are the state variables. If there is a single
output, the output equation could take on the following
form:
y1 = c1 x1 + c2 x2 + d1 v(t )
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
13 Chapter 3: Modeling in the Time Domain
d i (t )
L + R i (t ) = v(t )
dt
L [s I ( s ) − i(o )] + R I ( s ) = V ( s )
v(t ) = u (t ) : unit step V (s) = 1 s
i(t): state variable, v(t): input
1 1 1 i( 0)
I (s) = − + d i (t ) 1
Rs s+ R s+ R
= [v(t ) − R i(t )]
L L dt L
1
( )
i(t ) = 1 − e −( R L )t + i(0) e −( R L )t
R ©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
14 Chapter 3: Modeling in the Time Domain
RLC Circuit
di 1
L + R i + ∫ i dt = v(t )
dt C
i(t ) = dq(t ) dt
d 2q dq 1
L 2 +R + q = v(t )
dt dt C
We can convert the last equation into two simultaneous, first-order
differantial equations in terms of i(t) and q(t). We can take vL(t) as output
dq
=i
dt
di 1 R 1
= q − i = v(t )
dt LC L L
output :
1
v L (t ) = − q (t ) − R i (t ) + v(t )
C
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
15 Chapter 3: Modeling in the Time Domain
Figure 3.2 RLC network
0 1 q 0
d q 1 R + 1 v(t )
= −
dt i L C L i
State-space L
represantation x = A x + B u
in matrix form: 1 q
v L (t ) = − − R + 1 . v(t )
C i
y = C x +Du
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
16 Chapter 3: Modeling in the Time Domain
Figure 3.4
Block diagram of a
mass and damper
Figure 3.5
Electrical network for
representation in state
space
iC = i (t ) − iR1 − iL
vR1
= i (t ) − − iL
R1
vL
= i (t ) − − iL
R1
Where vR1=vL
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
25 Chapter 3: Modeling in the Time Domain
From Node 1 and Node 2 equations
(1 − 4 R2 )vL − R2 iC = vC
1
− vL − iC = iL − i (t )
R1
Solving vL and iC
1
vL = [R2 iL − vC − R2i(t )]
∆
1 1
iC = (1 − 4 R2 )iL + vC − (1 − 4 R2 )i (t )
∆ R1
R2
∆ = − (1 − 4 R2 ) +
R1
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
26 Chapter 3: Modeling in the Time Domain
vR 2 R2 ∆ − (1 + 1 ∆ ) iL − R2 ∆
i = 1 ∆ + i (t )
R2 (1 − 4 R1 ) ∆R1 vC − 1 ∆
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
27 Chapter 3: Modeling in the Time Domain
x1 0 1 0 0 x1 0
d v1 − K M 1 − D M1 K M1 0 v1 0
= + f (t )
dt x2 0 0 0 1 x2 0
v2 K M 2 0 − K M2 0 v2 1 M2
x1
v
y = x2 = [0 0 1 0] 1
x2
v2
x1 = x2
x2 = x3
x3 = −24 x1 − 26 x2 − 9 x3 + 24r
y = c = x1
In vector-matrix form
x1 0 1 0 x1 0
x = 0 0 1 x + 0 r
2 2
x3 − 24 − 26 − 9 x3 1
x1
y = [1 0 0] x2
x3
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
46 Chapter 3: Modeling in the Time Domain
( )
Y ( s ) = C ( s ) = b2 s 2 + b1s + b0 X 1 ( s )
after taking the inverse Laplace transform with zero initial conditions
d 2 x1 dx
y (t ) = b2 2 + b1 1 + b0 x1
dt dt
But the derivative terms are definition with the phase variables
y (t ) = b0 x1 + b1 x2 + b2 x3
x1 0 1 0 x1 0
x = 0 0 1 x + 0 r
2 2
x3 − 24 − 26 − 9 x3 1
Step 3 Introduce the effect of the block with the numerator. The second
black of Figure 3. 12(b), where b2 = 1, b1 = 7, and b0 = 2, states that
( ) ( )
C ( s ) = b2 s 2 + b1s + b0 X 1 ( s ) = s 2 + 7 s + 2 X 1 ( s )
[
Y( s ) = C(sI − A ) B + D U(s)
−1
]
U(s)=U(s) and Y(s)=Y(s) are scalars, we can find the transfer function
Y ( s)
= C(sI − A ) B + D
−1
T ( s) =
U ( s)
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
56 Chapter 3: Modeling in the Time Domain
Exercise 3.4: Convert the state and output equations shown
below
0 1 0 10
x = 0 0 1 x + 0 u
− 1 − 2 − 3 0
y = [1 0 0]x
Solution:
Figure 3.13
Walking robots,
such as Hannibal
shown here, can
be used to explore
hostile
environments and
rough terrain,
such as that found
on other planets © Bruce Frisch/S.S./Photo Researchers
or inside
volcanoes.
Problem:
First represent teh simple pendulum shown in Figure 3.14(a)
(which could be a simple model for the leg of the robot
shown in Figure 3.13) in state space: Mg is weight, T is an
applied torque in the θ direction, and L is the length of the
pendulum. Assume the mass is evenly distributed with the
center of mass at L/2. Then linearize the state equations about
the pendulum's equilibrium point-the vertical position with
zero angular velocity.
Solution First, draw a free-body diagram as shown in Figure
3.l4(c). Summing the torques, we get
d 2 θ MgL
J 2 + sin θ = T
dt 2
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
61 Chapter 3: Modeling in the Time Domain
Solution
where J is the moment of inertia of the pendulum around the
point. of rotation. Select the state variables x1 and x2 as phase
variables. Letting x1 = θ, and x2 = dθ/dt, we write the state
equations as
x1 = x2
MgL T
x2 = − sin x1 +
2J J
where x2 = d 2 θ dt 2
Thus, we have represented a nonlinear system in state space. it
is interesting to note that the nonlinear Equations represent a
valid and complete model of the pendulum in state space even
under nonzero initial conditions and even if parameters, such
as mass, are time varying.
©2000, John Wiley & Sons, Inc.
Nise/Control Systems Engineering, 3/e
62 Chapter 3: Modeling in the Time Domain
Figure 3.14
a. Simple pendulum;
b. force components
of Mg;
c. free-body diagram
sin x1 = δx1
Substituting these eqs. into state equations, we get
δx1 = δx2
MgL T
δx2 = − δx1 +
2J J
Solution cont.
Figure 3.16
Pharmaceutical drug-level
concentrations in a human
Figure 3.17
Aquifer system
model
Figure P3.1
Figure P3.2
Figure P3.3
Figure P3.4
Figure P3.5
Figure P3.6
Figure P3.7
Figure P3.8
Figure P3.9
Figure P3.10
Gyro system
Figure P3.11
Missile
Figure P3.12
Motor and load
Figure P3.13
Nonlinear
mechanical
system
Figure P3.14
a. Robot with
television imaging
system
(©1992 IEEE);
b. vector diagram
showing concept
behind image-based
homing
(©1992 IEEE);
c. heading control
system
Figure P3.15
a. F4-E with
canards
(© 1992 AIAA);
b. open-loop flight
control system
(© 1992 AIAA)
Figure P3.16
Robotic manipulator
and target
environment
(©1997 IEEE)