Chap-3 Time Domain Model
Chap-3 Time Domain Model
Models
Modeling in the Time Domain
(Based on N. S. Nise’s Textbook Chap. 3)
Two approaches for the analysis and design of feedback control systems
3
Modeling in the Time Domain, cont.'s…
Consider the 𝑅𝐿 network shown in with an
initial current of 𝑖(0).
Thus, knowing the state variable, 𝑖(𝑡), and the input, 𝑢(𝑡), we can find the
value, or state, of any network variable at any time, 𝑡 ≥ 𝑡A . Hence, the
algebraic equations, Eqs. (3.5) through (3.7), are the output equations.
5. Since the variables of interest are completely described by Eq. (3.1) and
Eqs. (3.5) through (3.7), we say that the combined state equation (3.1) and
the output equations (3.5 through 3.7) form a viable representation of the
5 network, which we call a state-space representation.
Modeling in the Time Domain, cont.'s…
6. Equation (3.1), which describes the dynamics of the network, is
not unique. This equation could be written in terms of any other
network variable. For example, substituting 𝑖 = 𝑣9 /𝑅 into Eq.
(3.1) yields (3.8)
𝐿 𝑑𝑣9
+ 𝑣9 = 𝑣 𝑡 (3.8)
𝑅 𝑑𝑡
which can be solved knowing that the initial condition,
𝑣9 0 = 𝑅𝑖(0) and
knowing 𝑣(𝑡). In this case, the state variable is 𝑣9 𝑡 . Similarly, all
other network variables can now be written in terms of this new
state variable, 𝑣9 𝑡 , and the input, 𝑣(𝑡).
6
The General State-Space Representation
System variable: Any variable that responds to an input or initial
conditions in a system.
State variables: The smallest set of linearly independent system
variables such that the values of the members of the set at time t0
along with known forcing functions completely determine the value of
all system variables for all t ≥ t0.
State vector: A vector whose elements are
the state variables.
State space: The n-dimensional space
whose axes are the state variables.
This is a new term and is illustrated in
the figure, where the state variables are
assumed to be
• a resistor voltage, VR, and
• a capacitor voltage, VC.
7
The General State-Space Representation…
These variables (VR and VC) form the axes of the state space. A
trajectory can be thought of as being mapped out by the state vector,
x(t), for a range of t. Also shown is the state vector at the particular
time t =4.
State equations: A set of n simultaneous, first-order differential
equations with n variables, where the n variables to be solved are the
state variables.
Output equation: The algebraic equation that expresses the output
variables of a system as linear combinations of the state variables and
the inputs. We define the state-space representation of a system. A
system is represented in state space by the following equations:
x = state vector (𝑛×1), ẋ = derivative of x with respect to time (𝑛×1)
y = output vector
u = input or control vector
A = system matrix (𝑛×𝑛) 𝐱̇ = 𝐀𝐱 + 𝐁𝑢 (3.18)
B = input matrix (𝑛×1) 𝐲 = 𝐂𝐱 + 𝐃𝑢 (3.19)
C = output matrix (1×𝑛)
8 D = feed-forward matrix
Applying the State-Space Representation
In order to apply the state-space formulation to the representation of more
complicated physical systems. The first step in representing a system is to
select the state vector, which must be chosen according to the following,
• A minimum number of state variables must be selected as
components of the state vector. This minimum number of state
variables is sufficient to describe completely the state of the system.
• The components of the state vector (that is, this minimum number of
state variables) must be linearly independent.
10
Applying the State-Space Representation…
Our approach for selecting state variables and representing a
system in state space:
• First, we write the simple derivative equation for each energy-
storage element and solve for each derivative term as a linear
combination of any of the system variables and the input that are
present in the equation.
𝑖N = −𝑖9 + 𝑖:
?
= − 𝑣N + 𝑖: (3.24)
9
5. Substitute the results of Eqs. (3.24) and (3.25) into Eqs. (3.22) and
(3.23) to obtain the following state equations:
=PQ ?
𝐶 = − 𝑣N + 𝑖: (3.26a)
=; 9
=>R
𝐿 = −𝑣N + 𝑣(𝑡) (3.26b)
=;
=PQ ? ?
=− 𝑣 + 𝑖: (3.27a)
=; 9N N N
=>R ? ?
= − 𝑣N + 𝑣(𝑡) (3.27b)
=; : :
6. Find the output equation. Since the output is 𝑖9 (𝑡),
?
𝑖9 𝑡 = 𝑣N (3.28)
9
The final result for the state-space representation is found by
representing Eqs. (3.27) and (3.28) in vector-matrix form as
follows:
Example 3.1.1 - Representing another RLC Electrical Network
Given the electrical network in the figure,
obtain a state-space representation if the
state variables are
a) Charge 𝑞 𝑡 and current 𝑖 𝑡
b) Voltage across the capacitor, 𝑣N 𝑡 and
𝑖 𝑡
Select the output as the voltage across the
inductor, 𝑣: 𝑡 .
Solution - a)
State variables: 𝑞 and 𝑖, output: 𝑣: Converting the state and output
Loop equation: equations just obtained in the
=> ? =c matrix form as
𝑅𝑖 + 𝐿 + ∫ 𝑖𝑑𝑡 = 𝑣(𝑡) and 𝑖 =
=; N =;
=c
𝐱̇ = 𝐀𝐱 + 𝐁𝑢 and 𝐲 = 𝐂𝐱 + 𝐃𝑢
State eqn. 1 : =𝑖
=;
=> ?
State eqn. 2 : 𝑅𝑖 + 𝐿 + 𝑞 = 𝑣(𝑡)
=; N
=> ? 9 ?
: = − 𝑞 − 𝑖 + 𝑣(𝑡)
=; :N : :
Output eqn.: 𝑣: = −𝑣N − 𝑣9 + 𝑣 𝑡
?
= − 𝑞 − 𝑅𝑖 + 𝑣(𝑡) 𝑦 = 𝑣: = −1/𝐶 −𝑅 𝐱 + 1 𝑣(𝑡)
N
Example 3.1.1 - continues
Given the electrical network in the figure,
obtain a state-space representation if the
state variables are
a) Charge 𝑞 𝑡 and current 𝑖 𝑡
b) Voltage across the capacitor, 𝑣N 𝑡 and
𝑖 𝑡
Select the output as the voltage across the
inductor, 𝑣: 𝑡 .
Solution - b)
State variables: 𝑣N and 𝑖, output: 𝑣: Converting the state and output
Loop equation: equations just obtained in the matrix
=> ? =PQ form as
𝑅𝑖 + 𝐿 + ∫ 𝑖𝑑𝑡 = 𝑣(𝑡) and 𝑖 = 𝐶
=; N =;
=PQ
? 𝐱̇ = 𝐀𝐱 + 𝐁𝑢 and 𝐲 = 𝐂𝐱 + 𝐃𝑢
State eqn. 1 : = 𝑖
=;
N ?
=>
𝑣N 0 𝑣N 0
State eqn. 2 : 𝑅𝑖 + 𝐿 + 𝑣N = 𝑣(𝑡) 𝐱̇ =
=
= N
+ ? 𝑢
=;
=> ? 9 ?
=; 𝑖 −
?
−
9 𝑖 :
: = − 𝑣N − 𝑖 + 𝑣(𝑡) : :
=; : : :
Output eqn.: 𝑣: = −𝑣N − 𝑣9 + 𝑣 𝑡
?
= − 𝑞 − 𝑅𝑖 + 𝑣(𝑡) 𝑦 = 𝑣: = −1/𝐶 −𝑅 𝐱 + 1 𝑣(𝑡)
N
Example 3.3 - Representing a Translational
Mechanical System
Find the state equations for the translational mechanical system shown
below
Solution:
• First write the differential equations for the network to find the
Laplace-transformed equations of motion.
• Next take the inverse Laplace transform of these equations,
assuming zero initial conditions, and obtain
Example 3.3.2 - Representing a Simple Translational
Mechanical System
Find the state equations for the
translational mechanical system
presented on RHS
Solution: The states and output
could be selected as,
𝑥? = 𝑥 (displacement) −𝑓P 𝑣 − 𝐾𝑥 + 𝑓 𝑡 = 𝑀𝑣̇ è
𝑥V = 𝑣 = 𝑥̇ ? (velocity) and −𝑓P 𝑥V − 𝐾𝑥? + 𝑓 𝑡 = 𝑀𝑥̈ V
𝑦 = 𝑥? = 𝑥
The equation of motion can be 0 1 𝑥? 0
𝐱̇ 𝑡 = k m + ? 𝑓 𝑡
written as: − − n 𝑥V l
l l
𝑥?
=S ; = Y S(;) 𝑦 𝑡 = [1 0] 𝑥
−𝑓P − 𝐾𝑥(𝑡) + 𝑓 𝑡 = 𝑀 V
=; =; Y
It can now be written in terms of the
state variables just selected,
Example 3.4 - Converting a Transfer Function with
Constant Term in Numerator
Find the state-space representation in phase-variable form for the
transfer function shown in Fig. 3.10(a)
Example 3.5 - Converting a Transfer Function with Polynomial in
Numerator: Find the SS representation of the TF shown in block diagram
Step 2: When finding the state equations for the block containing the
denominator, we notice that the first block’s numerator is 1/24 that of Example
3.4. Thus, the state equations are the same except that this system’s input matrix
is 1/24 that of Example 3.4. Hence, the state equation is
Example 3.5 - Converting a TF with Polynomial in Numerator – cont.’s.
Step 3: Introduce the effect of the block with the numerator, where 𝑏V = 1, 𝑏? =
7, 𝑏A = 2, states that
Taking the inverse Laplace transform with zero initial conditions, we get
But,
= 2𝑥? + 7𝑥V + 𝑥r
Now, the output equation of state-space system in matrix form can be presented as,
The equivalent block diagram for the state-space system, where 𝑦 𝑡 = 𝑐(𝑡)
Converting from State Space to a Transfer Function
• Now we move in the opposite direction and convert the state-space
representation into a transfer function.
• Given the state and output equations
𝐱 = 𝐀𝐱̇ + 𝐁𝐮
𝐲 = 𝐂𝐱 + 𝐃𝐮
• Take the Laplace transform assuming zero initial conditions:
𝑠𝐗 s = 𝐀𝐗 s + 𝐁𝐔 s è 𝑠𝐈 − 𝐀 𝐗 s = 𝐁𝐔 s
where 𝐈 is the identity matrix.
è 𝐗 s = 𝑠𝐈 − 𝐀 8? 𝐁𝐔 s
Therefore, the output will be,
𝐘 s = 𝐂𝐗 s + 𝐃𝐔(s) è 𝐘 s = 𝐂 𝑠𝐈 − 𝐀 8? 𝐁𝐔 s + 𝐃𝐔(s)
𝐘 s = 𝐂 𝑠𝐈 − 𝐀 8? 𝐁 +𝐃 𝐔 s
• Then, the transfer function, which relates the output vector, 𝐘 s , to the
input vector, 𝐔 s representing the system can be written as,
𝑌 𝑠 8? 𝐁
𝑇 s = = 𝐂 𝑠𝐈 − 𝐀 +𝐃
𝑈 s
Example 3.6 – S-S Representation to TF -1/2
} ~
Given the system defined in state-space, find the transfer function, 𝑇 𝑠 = ,
• ~
where 𝑈 𝑠 is the input and 𝑌 𝑠 is the output.
Now form 𝑠𝐈 − 𝐀 8? :
Example 3.6 – S-S Representation to TF – Cont.’s (2/2):
} ~
Given the system defined in state-space, find the transfer function, 𝑇 𝑠 = ,
• ~
where 𝑈 𝑠 is the input and 𝑌 𝑠 is the output.
Solution – Cont.’s:
8? , 𝐁, 𝐂 } ~ 8? 𝐁
Substituting 𝑠𝐈 − 𝐀 and 𝐃 into 𝑇 s = = 𝐂 𝑠𝐈 − 𝐀 + 𝐃,
• €
where