FeedConunit 2
FeedConunit 2
FeedConunit 2
SYSTEM MODELING
At the end of this chapter, the students shall be able to:
2.1 Discuss the two methods of modeling dynamic systems.
2.2 (a) Find the Laplace transform of a given function in time domain, and obtain the time domain
function given its Laplace transform; (b) Solve differential equations using Laplace transform
methods.
2.3 (a) Write a transfer function associated with a given differential equation and vice versa; (b) Solve
the output of a system with a given differential equation or transfer function for a given input.
2.4 Obtain transfer functions for single and multiple loops, passive and active (op-amp) electrical
networks.
2.5 Determine the transfer function of translational, rotational and translational-rotational mechanical
systems, including systems with gears.
2.6 Obtain transfer function relating the output displacement to the input voltage of electromechanical
systems.
2.7 Define terms associated with state-space modeling of systems and enumerate steps in obtaining
the state-space representation of a system.
2.8 Obtain the state-space model of electrical and mechanical systems.
2.9 Convert a transfer function into state-space representation and vice versa.
2.1 Introduction
Intended Learning Outcome: Discuss the two methods of modeling dynamic systems.
In the previous discussion, the analysis and design sequence that included obtaining the systems
schematic and demonstrated this step for a position control system. The next step is to develop
mathematical models from schematics of physical systems. Two methods will be discussed: (1) transfer
functions in the frequency domain and (2) state equations in the time domain.
It should be remembered that in any case, the first step in developing a mathematical model is to apply the
fundamental physical laws of science and engineering. When electric networks are being modeled, Ohms
law and Kirchhoffs laws are applied initially. For mechanical systems, Newtons laws will be used.
System Modeling
Page 1
Figure 2.1. Block diagram representation of a system, showing the relationship between the input r(t) and the output c(t)
Note in figure 2.1, rt represents the reference input while ct represents the controlled variable.
A major advantage of frequency-domain modeling is that they rapidly provide stability and transient
response information. Thus, we can immediately see the effects of varying system parameters until an
acceptable design is met.
The primary disadvantage of this approach, also called the classical approach is its limited applicability. It
can be applied only to linear, time-invariant systems or systems that can be approximated as such.
With an increasing design scope, the modern or time-domain approach of modeling systems is devised.
The state-space approach is a unified method for modeling, analyzing, and designing a wide range of
system. It can model nonlinear systems and systems with nonzero initial conditions. Time-varying systems
and systems with multiple inputs and multiple outputs can be compactly represented in state-space model
which is similar to the form of single input, single output systems.
System Modeling
Page 2
ft = Fs = fte dt
(2.1)
where s = + j, a complex variable. The function ft is in t-domain (or time domain) and has a
Laplace transform Fs in s-domain (or the complex frequency domain) if the integral of Equation 2.1
exists.
where
Fs = ftut =
u t =
0,
1,
Fse ds
j2
t < 0
t>0
(2.2)
(2.3)
called the unit step function. Multiplication of a function with a unit step function yields a function that is zero
for negative values of t.
System Modeling
Page 3
System Modeling
Page 4
s + a cos sin
s + a +
Answer:
Example 2.2
ft =
5
40
10
5e + e + te
9
9
3
Example 2.3
Solve the differential equation
d y
dy
+ 12 + 32y = 32ut
dt
dt
using Laplace transform when all the initial conditions are zero.
Answer:
yt = 1 + e 2e ut
a. ft = sinh at
System Modeling
Page 5
b. Fs =
c. Fs =
4. What is the time domain function that has Fs = s2s2 + 2 as its Laplace transform?
1
5. Determine the solution of the following differential equations using Laplace transform.
b. y 4y + 4y = 0, with initial conditions y0 = 2.1 and y 0 = 3.9.
c. y + ky 2k y = 0, with initial conditions y0 = 2 and y 0 = 2k.
d ct
d ct
d r t
d rt
+
a
+
+
a
c
t
=
b
+
b
+ + b rt
dt
dt
dt
dt
System Modeling
(2.4)
Page 6
represents the system. Taking the Laplace transform of equation 2.4, and solving for the ratio of with
zero initial conditions yield
Cs
b s + b s + + b
=G s =
Rs
a s + a s + + a
(2.5)
with Gs, called the systems transfer function, evaluated at zero initial conditions. Thus, a system can
From here, it can be seen that equation 2.5 can be used to determine the output when the systems
transfer function and the input are known, as
Cs = RsGs
(2.6)
Example 2.4
dct
+ 2ct = rt
dt
Find the transfer function of the system represented by the differential equation
assuming zero initial conditions. Then find the system response to a step input rt = ut.
Answer:
The transfer function is
Gs =
ct =
System Modeling
1
s+2
1 1
e
2 2
Page 7
d c
dc
d r
dr
d c
+
3
+
7
+
5c
=
+ 4 + 3r
dt
dt
dt
dt
dt
d y
d y
dy
d x
d x
dx
+
3
+
5
+
y
=
+
4
+ 6 + 8x
dt
dt
dt
dt
dt
dt
b. Gs = =
c. Gs = =
d. Gs = =
4. For each of the systems described by the transfer functions in number 3, find the response of the
system to a step input.
5. Find the ramp response for a system whose transfer function is
s
Gs =
s + 4s + 8
In general, a physical system than can be represented by a linear, time-invariant differential equation can
be modeled as a transfer function. The subsequent sections will demonstrate the use of the transfer
functions to model electrical networks, mechanical systems, and electro-mechanical systems.
System Modeling
Page 8
Find the transfer function relating the capacitor voltage V s to the input voltage Vs for the circuit
Example 2.5
shown below.
Answer:
System Modeling
Page 9
Gs =
=
V s
s + s+
Example 2.6
Answers:
H s =
I s
LCs
=
Vs R + R LCs + R R C + Ls + R
s
V s
H s =
=
Vs
G + G s +
s+
System Modeling
Page 10
From the foregoing examples, a technique in which mesh equations can be written can be developed. For
two loop electrical network as shown in example 2.6, the mesh equations can be written as
Sum of
Sum of impedances
I
s
=
applied
voltages
common to
common to
around mesh 2
the two meshes
around mesh 2
Sum of impedances
I s
around mesh 1
(2.7a)
(2.7b)
This technique can be expanded to three-loop electrical network. The use of the technique is illustrated in
the following example.
Example 2.7
Write, but do not solve, the mesh equations for the network shown below
Answer:
System Modeling
Page 11
Find the transfer function Gs = V s/Vs for the circuit shown below. Solve the problem in two ways
Example 2.8
Answer:
Gs =
V s s + 2s + 1
=
Vs s + 5s + 2
Operational Amplifiers. An operational amplifier is an electronic amplifier used as a basic building block to
implement transfer functions. It has the following characteristics:
Differential input v t v t
v t = Av t v t
System Modeling
(2.8)
Page 12
Example 2.9
Determine the transfer function
for each of the op-amp configurations shown below. Assume that the
(a)
Answers:
a.
b.
(b)
= , an inverting amplifier
= 1 + , a non-inverting amplifier
Example 2.10
Find the transfer function
System Modeling
Page 13
V s
s + 45.95s + 22.55
= 1.232
V s
s
Answer:
Example 2.11
Find the transfer function
Answer:
V s
R R C C s + R C + R C + R C s + 1
=
V s
R R C C s + R C + R C s + 1
System Modeling
Page 14
4. For each of the operational amplifiers shown, find the transfer function Gs =
System Modeling
Page 15
Capacitor
Resistor
Inductor
System Modeling
Page 16
Comparing Tables 2.3 and 2.4, the following analogy between the mechanical and electrical systems can
be formulated.
The capacitor and inductor of the electrical system are energy-storage devices, whereas for
mechanical system, these are analogous to the spring and the mass.
Both the resistor of the electrical system and viscous damper of the mechanical system dissipate
energy.
The mechanical force is analogous to electrical voltage and the mechanical velocity is analogous to
electrical current.
Summing forces in terms of velocity is analogous to summing voltages written in terms of current
and the resulting mechanical differential equations are analogous to mesh equations.
Example 2.12
System Modeling
Page 17
Gs =
Xs
1
=
Fs Ms + f s + K
Many mechanical systems are similar to multiple-loop and multiple-node electrical networks, where more
than one simultaneous differential equation is required to describe the system. In mechanical systems, the
number of equations of motion required is equal to the number of linearly independent motions. Linear
independence implies that a point of motion in a system can still move if all other points of motion are held
still; the number of these linearly independent motions is called the degrees of freedom of the system. For
mechanical systems with multiple degrees of freedom, use superposition: for each free-body diagram, hold
all other points of motion still and find the forces acting on the body only due to its own motion. Do this for
all of the bodies and the result will be a system of simultaneous equation of motion.
Example 2.13
Find the transfer function
Answer:
where
Gs =
D=
X s f s
=
Fs
D
M s + f + f s + K + K
System Modeling
f s + K
f s + K
M s + f + f s + K + K
Page 18
Sum of impedances
Sum of impedances
Sum of applied
X s
X s =
Sum of impedances
Sum of impedances
Sum of applied
X s +
X s =
between x and x
connected to the motion at x
forces at x
(2.9a)
(2.9b)
This can also be expanded to systems with multiple degrees of freedom, as illustrated in the example
below.
Example 2.14
Write, but do not solve, the equations of motions for the mechanical network below.
Answer:
System Modeling
Page 19
Answer:
Gs =
ss
3s + 1
+ 7s + 5s + 1
2. Find the transfer function Gs = X s/Fs for the translational mechanical network shown below.
System Modeling
Page 20
5. Write, but do not solve, the equations of motion for the translational mechanical system shown below
Rotational Mechanical Systems. The rotational mechanical systems are handled the same way as
translational mechanical systems, except that the torque replaces force and angular displacement replaces
translational displacement. The mechanical components for rotational systems are the same as those for
System Modeling
Page 21
For rotational systems, the mass is replaced by inertia, and its parameter, called the moment of inertia, J.
The concept of degrees of freedom carries over to rotational systems, except that we test a point of motion
by rotating it while holding still all other points of motion. Writing the equations of motion for rotational
systems is similar to writing them for translational systems; the only difference is that the free-body diagram
consists of torques rather than forces.
Find the transfer function Gs = s/Ts for rotational systems shown.
Example 2.16
Answer:
where
System Modeling
Gs =
s K
=
Ts
D
J s + D s + K
D=
K
J s + D s + K
Page 22
Sum of impedances
Sum of impedances
Sum of applied
s
s =
Sum of impedances
Sum of impedances
Sum of applied
s +
s =
between and
connected to the motion at
torques at
(2.10a)
(2.10b)
Example 2.17
Write, but do not solve, the Laplace transform of the equations of motion for the system shown below.
Answer:
Find the transfer function Gs = s/Ts for the rotational mechanical system shown below.
Example 2.18
Answer:
System Modeling
Gs =
1
2s + s + 1
Page 23
An input gear with radius r and N teeth is rotated through angle t due to a torque T t. An output
gear with radius r and N teeth responds by rotating through angle t and delivering a torque T t.
The distance traveled along each gears circumference is the same, thus
or
r = r
(2.11)
r N
= =
r N
(2.12)
since the ratio of the number of teeth along the circumference is in the same proportion as the ratio of the
radii. Thus, the ratio of the angular displacement of the gears is inversely proportional to the ratio of the
number of teeth. For the input and output torques, assuming that the gears are lossless (they neither
absorb nor store energy),
T N
=
=
T N
(2.13)
Figure 2.5. Transfer functions for angular displacement and torques in lossless gears.
System Modeling
Page 24
Number of teeth of
gear on the shaft
Number of teeth of
gear on the shaft
Example 2.19
Represent the rotational mechanical system shown to an equivalent system without gears.
Answer:
Find the transfer function Gs = s/T s for the system shown below
Example 2.20
Answer:
System Modeling
Gs =
s
N /N
=
T s J s + D s + K
Page 25
N
J = J + J
N
D = D
N
+ D
N
K = K
In order to eliminate gears with large radii, a gear train is used to implement large gear ratios by cascading
smaller gear ratios. Also, gears may exhibit inertia and damping. Handling of cases when the gears are
non-ideal is illustrated in the next example.
Find the transfer function Gs = s/T s for the system shown below.
Example 2.21
Answer:
where
and
System Modeling
Gs =
1
s
=
T s J s + D s
J = J + J + J
N
N N
+ J + J
N
N N
N
D = D + D
N
Page 26
Answer:
Gs =
1/2
+s+1
Example 2.23
Gs = Xs/Ts
For the combined translational and rotational mechanical system shown below, find the transfer function
Answer:
System Modeling
Xs
8
=
Ts 59s + 13s + 6
Page 27
2. For the rotational mechanical system shown below, find the transfer function Gs = s/Ts.
3. Find the transfer function Gs = s/Ts for the rotational mechanical system shown in the figure
below.
4. For the rotational mechanical system shown, find the transfer function Gs = s/Ts
System Modeling
Page 28
5. Given the combined translational and rotational system shown in the figure below, find the transfer
electromagnet called the fixed field. A rotating circuit, called the armature, through which the current i t
In the above figure, a magnetic field is developed by stationary permanent magnets or a stationary
flows, passes through this magnetic field at right angles and feels a force F = Bi t, where B is the
System Modeling
Page 29
There is another phenomenon that occurs in the motor: A conductor moving at right angles to a magnetic
field generates a voltage at the terminals of the conductor, equal to e = Bv, where e is the voltage and v
is the velocity of the conductor normal to the magnetic field. Since the current-carrying armature is rotating
in a magnetic field, its voltage is proportional to speed. Thus,
v t = K
d t
dt
(2.13)
wherev t is the back electromotive force, K is the back emf constant (in volt-second/radian) and
(2.14)
The relationship between the armature current and, i t, the applied armature voltage, e t and the
back emf v t is found by writing a loop equation around the Laplace transformed armature circuit.
R I s + L sI s + V s = E s
(2.15)
(2.16)
whereK is the motor torque constant (in Newton-meters/ampere), which depends on the motor and
magnetic field characteristics. Solving equation 2.16 in terms of the armature current and substituting this
and the back emf of Equation 2.14 to equation 2.15,
R + L sT s
+ K s s = E s
K
System Modeling
(2.17)
Page 30
J is the equivalent inertia at the armature and includes both the armature inertia and the load inertia
reflected to the armature. D is the equivalent viscous damping at the armature and includes both the
armature viscous damping and the load viscous damping reflected to the armature. From figure 2.7,
T s = J s + D s s
(2.18)
Substituting this to equation 2.17 and assuming the armature inductance L is small compared to the
armature resistance R which is very usual for a DC motor, the transfer function of the motor is solved as
Gs =
s
K /R J
=
E s s s + D +
K
s s +
(2.19)
(2.20)
To find the constants J and D , refer to figure 2.8, with a motor with inertia J and damping D at the
armature driving a load consisting of inertia J and damping D .
System Modeling
Page 31
If all of the inertias and damping values are known, the load inertia and load damping can be reflected back
to the armature as some equivalent inertia and damping to be added to armature inertia and armature
damping. Thus,
N
J = J + J
N
D = D + D
(2.21a)
(2.21b)
The electrical constants of the motor can be obtained through a dynamometer test of the motor, where a
dynamometer measures the torque and speed of a motor under the condition of a constant applied voltage.
It can be shown that the relationship between motor torque T when a voltage e is applied and the motor
speed is
T =
K K
K
+ e
R
R
(2.22)
which is linear. The y-intercept is called the stall torque and is the torque of the motor when the angular
velocity is zero. Thus,
T =
K
e
R
(2.23)
The x-intercept is called the no-load speed and is the angular velocity of the motor at zero torque. Thus,
System Modeling
Page 32
e
K
(2.24)
Thus if T and the is known, through the dynamometer test, the electrical constants can be
found as
K T
=
R
e
and
K =
(2.25)
(2.26)
Given the system and torque-speed curve below respectively, find the transfer function Gs =
Example 2.24
s/E s.
System Modeling
Page 33
Answer:
Gs =
s
0.0417
=
E s ss + 1.667
Find the transfer functionGs = s/E s for the motor and the load shown below. The torque-speed
Example 2.25
Answer:
System Modeling
Gs =
1/20
ss + 15/2
Page 34
2. The motor whose torque-speed characteristics and the load drives are shown. Some of the gears have
3. A dc motor 55 N-m of torque at a speed of 600 rad/s when 12 volts are applied. It stalls out at this
s/rad, respectively, find the transfer function Gs = s/E s of this motor if it drives an inertia
voltage with 100 N-m of torque. If the inertia and damping of the armature are 7 kg-m2 and 3 N-m-
System Modeling
Page 35
4. In this chapter, the transfer function of a dc motor relating the angular displacement output to armature
input voltage. Often, we want to control the output torque rather than the displacement. Derive the
transfer function of the motor that relates output torque to input armature voltage.
5. Find the transfer function Gs = Xs/E s for the system shown below.
System Modeling
Page 36
2. For an nth-order system, write n simultaneous, first-order differential equations in terms of the
state variables. These systems of simultaneous differential equations are called state equations.
3. If the initial condition of all the state variables at t as well as the system input for t t is known,
the simultaneous differential equations for the state variables can be solved for t t .
4. The state variables with the systems input will be algebraically combined and all of the other
system variables for t t will be found. The algebraic equations that will arise are called the
output equations.
5. The state equations and the output equations of the system are its state-space representation or
state-space model.
The application of such process is demonstrated using an RL and an RLC circuit.
Example 2.26
Find a possible state-space representation for the RL circuit shown below. Follow the steps enumerated
above.
System Modeling
Page 37
If the system is linear, the state and output equations can be written in vector-matrix form. But before the
general state-space representation is presented, some definitions are in order.
A set of variables is said to be linearly independent if none of the variables can be written as a
linear combination of the others.
A system variable is any variable that responds to an input or initial condition in a system.
The state variables are the smallest set of linearly independent system variables such that the
The state equations are a set of n simultaneous, first order differential equations with n variables
values of the members of the set at time t along with known forcing functions completely
The state space is the n-dimensional space whose axes are the state variables.
The output equation is the algebraic equation that expresses the output variables of a system as
System Modeling
(2.27a)
Page 38
(2.27b)
=output vector
= output matrix
= feedforward matrix
The state equation is given by equation 2.27a and the vector , the state vector, contains the state
variables. As discussed previously, if the initial conditions of the state variables and the input vector are
known, this equation can be solved for the state variables. Equation 2.27b, the output equation, can be
used to solve for other system variables.
The choice of state variables for a given system is not unique. However, they must satisfy the following
requirements:
1. They must be linearly independent.
2. The minimum number of state variables to completely describe the system is equal to the order of
the differential equation representing the system.
Although the rule specifies the minimum number of state variables to be identified, the number can exceed
this minimum as long as all the chosen state variables are linearly independent. In some cases, this can
simplify the writing of state equations and output equations.
System Modeling
Page 39
Answers:
For the RL network, the state equation is
di
R
= i + v t
dt
L
v t = Rit
R
x = x + vt
L
Therefore
y = Rx
dq
=i
dt
di
1
R
1
= q i+ v
dt
LC
L
L
1
v t = q Ri + v
C
Thus, letting =
dq/dt
q
0
1
0
, = , =
, =
, y = v , = 1/C R,
t
1/LC R/L
1/L
di/dt
D = 1, u = v. Therefore
System Modeling
dq/dt
0
1
q
0
=
+
v
1/LC R/L t
1/L
di/dt
Page 40
q
v = 1/C R + v
t
Answer:
System Modeling
Page 41
Answers:
x
1
= = x =
0
0
0
x
0 0 v
1 0 x
v
Find the state-space representation of the electrical network shown. The output is v t.
Example 2.31
Answers:
System Modeling
Page 42
Answers:
1. Represent the electrical network shown in the figure below in state-space, where v t is the output.
Drill Problems 2.7
2. Find the state-space representation of the network shown below if the output is v t.
System Modeling
Page 43
4. Represent the rotational mechanical system shown below in state-space where t is the output.
Page 44
d y
d y
dy
+
a
+ + a + a y = b u
dt
dt
dt
(2.28)
A convenient way to choose state variables is to choose the output, yt and its n 1 derivatives.
Choosing the state variables, x ,
x = y
x =
x =
dy
dt
d y
dt
d y
x =
dt
x =
dy
= x
dx
x =
d y
= x
dx
d y
x = = x
dx
x =
d y
= x
dx
x = a x a x a x + b u
System Modeling
Page 45
(2.28)
(2.29)
Thus, to convert a transfer function into state equations, convert the transfer function to a differential
equation by cross-multiplication and taking the inverse Laplace transform, assuming zero initial conditions.
Then the differential equation is represented in state-space in phase-variable form.
Example 2.33
Cs
24
=
Rs s + 9s + 26s + 24
Find the state-space representation in phase-variable form for the transfer function
Gs =
Answer:
System Modeling
Page 46
which means that the output is generated by integrators and constant-gain blocks. The previous example
has a constant numerator. The next example illustrates the procedure when the numerator is a polynomial
of lower degree than the denominator.
Example 2.34
Find the state-space representation of the transfer function
Answer:
System Modeling
Gs =
s + 7s + 2
s + 9s + 26s + 24
Page 47
Example 2.35
Find the state equations and the output equation for the phase-variable representation of the transfer
function
Gs =
2s + 1
+ 7s + 9
Answer:
To convert a state-space representation into its equivalent transfer function, given the state and output
equations,
= +
= +
System Modeling
(2.30a)
(2.30b)
Page 48
ss = s + s
s = s + s
s = s s
s = s + s
(2.31)
in which the quantity s + is called the transfer function matrix since it relates the output
s to the input s. However, if the input and the output are scalars, then
Gs =
Y s
= s +
Us
(2.32)
Note that this equation evaluates an inverse of a matrix. A review on how to evaluate this must be done by
the student. One method is by
s =
The method is illustrated in the following examples.
adjs
det s
Example 2.36
Given the system defined as
Page 49
Gs =
10s + 3s + 2
s + 3s + 2s + 1
Example 2.37
Convert the state and output equations to transfer function.
Answer:
Gs =
3s + 5
s + 4s + 6
2. Write the state equations and the output equation for the phase-variable representation.
3. Represent the transfer function in state-space. Give the answer in vector-matrix form.
Gs =
s + 3s + 8
s + 1s + 5s + 5
4. Find the transfer function Gs = Ys/Rs for the following system represented in state-space.
System Modeling
Page 50
References:
N. Nise. (2011). Control Systems Engineering 6th Edition. United States of America: John Wiley & Sons.
R. Dorf& R. Bishop. (2011). Modern Control Systems 12th Edition. New Jersey: Prentice Hall.
System Modeling
Page 51