Chapter One
Chapter One
STATE-SPACE MODELS
1.1. MODERN VS CLASSICAL CONTROL SYSTEM
• Modern control uses the concept of the total internal state of the system
considering all initial conditions
• It uses the concept of state called State Variable Analysis or State Space
Analysis
ADVANTAGES OF STATE VARIABLE ANALYSIS
• It takes into account the effect of all initial conditions.
• It can be applied to nonlinear as well as time-varying systems.
• It can be conveniently applied to MIMO systems.
• Any type of input can be considered for designing the system
• It involves matrix algebra and can be conveniently adopted for
digital computers.
• The state variables selected need not be physical quantity.
• The vector-matrix notation simplifies mathematical representation.
1.2. CONCEPTS OF STATE
• The State of a dynamic system is the smallest set of variables (called state
variables) such that knowledge of these variables at 𝑡 = 𝑡0 , together with
knowledge of the input for 𝑡 ≥ 𝑡0 , completely determines the behavior of the
system for any time 𝑡 ≥ 𝑡0 .
• The state variables need not be physically measurable or observable
quantities. Such freedom in choosing state variables is an advantage of the
state-space methods.
• State Space is the n-dimensional space whose coordinate axes consist of the
𝑥1 , 𝑥2 …, 𝑥𝑛 axis, where 𝒙𝟏 , 𝒙𝟐 …, 𝒙𝒏 are state variables. Any state can be
represented by a point in the state space.
1.3. STATE-SPACE REPRESENTATION OF SYSTEMS
• In state-space analysis we are concerned with three types of variables that
are involved in the modeling of dynamic systems: input variables, output
variables, and state variables.
• Consider MIMO, nth order system
𝑢1 𝑡 𝑋1 𝑡
𝑢 𝑡 𝑋 𝑡
𝑢 𝑡 = 2 , X t = 2
⋮ ⋮
𝑢𝑚 𝑡 𝑋𝑛 𝑡
𝑌1 𝑡
𝑌 𝑡
Y 𝑡 = 2
⋮
𝑌𝑝 𝑡
All are column vectors having orders 𝑚 𝑥 1, 𝑛 𝑥 1 and 𝑝 𝑥 1 respectively.
CONT`D
• For such a system, the state variable representation can be arranged
in the form of ‘n’ first order differential equations.
𝑑𝑋1 𝑡
= 𝑥ሶ1 𝑡 = 𝑓1 𝑋1 , 𝑋2 , … 𝑋𝑛 , 𝑢1 , 𝑢2 … 𝑢𝑚
𝑑𝑡
𝑑𝑋2 𝑡
= 𝑥ሶ 2 𝑡 = 𝑓2 𝑋1 , 𝑋2 , … 𝑋𝑛 , 𝑢1 , 𝑢2 … 𝑢𝑚
𝑑𝑡
.
.
.
𝑑𝑋𝑛 𝑡
= 𝑥ሶ 𝑛 𝑡 = 𝑓𝑛 𝑋1 , 𝑋2 , … 𝑋𝑛 , 𝑢1 , 𝑢2 … 𝑢𝑚
𝑑𝑡
CONT`D
• Any ‘n’ dimensional time invariant system has state equations in the functional
form as,
𝑋ሶ 𝑡 = 𝑓 𝑋, 𝑢 … State eqaution
• Functional output equation can be written as,
𝑌 𝑡 = 𝑔 𝑋, 𝑢 … Output equation
• Diagrammatically this can be represented:-
CONT`D
• For the LTI systems, the coefficients 𝑎𝑖𝑗 and 𝑏𝑖𝑗 are constants. Thus all the
equations can be written in vector matrix form as,
𝑋ሶ 𝑡 = 𝐴𝑋 𝑡 + 𝐵𝑢 𝑡
• There are two energy-storing elements L and . So the two state variables are
current through inductor i(t) and voltage across capacitor 𝑣0 (𝑡)
𝑋1 𝑡 = 𝑖(𝑡), 𝑋2 𝑡 = 𝑣0 (𝑡) and U 𝑡 = 𝑣𝑖 𝑡 = Input variable
• Applying KVL to the loop
𝑑𝑖 𝑡
𝑣𝑖 𝑡 = 𝑖 𝑡 R + L + 𝑣0 (𝑡)
𝑑𝑡
• Arrange it for 𝑑𝑖𝑑𝑡𝑡
𝑑𝑖 𝑡 1 R 1
= 𝑣𝑖 𝑡 − 𝑖 𝑡 − 𝑣0 (𝑡)
𝑑𝑡 𝐿 𝐿 𝐿
CONT’D
𝑑𝑖 𝑡 R 1 1
= 𝑋ሶ1 𝑡 = − 𝑋1 𝑡 − 𝑋2 𝑡 + U 𝑡
𝑑𝑡 𝐿 𝐿 𝐿
1
While 𝑣0 𝑡 = Voltage across capacitor = 𝐶 𝑡𝑑 𝑡 𝑖
𝑑𝑣0 𝑡 1
= 𝑖 𝑡
𝑑𝑡 𝐶
1
𝑋ሶ 2 𝑡 = 𝑋1 𝑡
𝐶
• The two equations can be written us
R 1
− − 1
𝑋ሶ1 𝑡 𝐿 𝐿 𝑋1 𝑡
= + 𝐿 U 𝑡
𝑋ሶ 2 𝑡 1 𝑋2 𝑡
0 0
𝐶
𝑋ሶ 𝑡 = 𝐴 𝑋 𝑡 + 𝐵 U 𝑡
CONT’D
• While the output variable Y t = 𝑣0 𝑡 = 𝑋2 𝑡
𝑋1 𝑡
𝑌(𝑡) = [0 1]
𝑋2 𝑡
𝑌(𝑡) = 𝐶 𝑋 𝑡
• This is the required state model. As n=2, it is second order system.
Obtain the state model of the given electrical network in the standard form.
1.4. TRANSFORMATION FROM STATE-SPACE REPRESENTATION
TO TRANSFER FUNCTION
• We call the matrix [𝐶(𝑠𝐼 − 𝐴)−1 𝐵 + 𝐷] the transfer function matrix, since it
relates the output vector, Y 𝑠 , to the input vector, 𝑢 𝑠 . However, if 𝑢 𝑠 and
Y 𝑠 are scalars, we can find the transfer function,
Y 𝑠
𝑇 𝑠 = = 𝐶(𝑠𝐼 − 𝐴)−1 𝐵 + 𝐷
𝑢 𝑠
EXAMPLE
0 1 0 10
𝑋ሶ = 0 0 1 𝑋+ 0 𝑢
−1 −2 −3 0
𝑌 = [1 0 0]𝑋
SOLUTION
Y 𝑠
𝑇 𝑠 = = 𝐶(𝑠𝐼 − 𝐴)−1 𝐵 + 𝐷
𝑢 𝑠
𝑠 0 0 0 1 0 𝑠 −1 0
𝑠𝐼 − 𝐴 = 0 𝑠 0 − 0 0 1 = 0 𝑠 −1
0 0 𝑠 −1 −2 −3 1 2 𝑠+3
𝑠 2 + 3𝑠 + 2 𝑠+3 1
−1 𝑠(𝑠 + 3) 𝑠
adj(sI − A) −𝑠 −(2𝑠 + 1) 𝑠 2
(𝑠𝐼 − 𝐴)−1 = =
det(sI − A) 𝑠 3 + 3𝑠 2 + 2𝑠 + 1
CONT’D
10
𝐶 = [1 0 0] 𝐵= 0 𝐷=0
0
−4 −1.5 2
𝑋ሶ = 𝑋+ 𝑢
4 0 0
𝑌 = [1.5 0.625]𝑋
1.5. STATE DIAGRAM REPRESENTATION
𝑑𝑌 𝑛 (𝑡)
• 𝑌𝑛 𝑡 =
𝑑𝑡 𝑛
= 𝑛𝑡ℎ derivative of Y(t)
• Consider the simple case of the system in which derivatives of the control
input 𝒖(𝐭) are absent.
𝑌 𝑛 + 𝑎𝑛−1 𝑌 𝑛−1 + ⋯ + 𝑎1 𝑌ሶ + 𝑎0 𝑌 𝑡 = 𝑏0 𝑢(𝑡)
• The choice of the state variable is generally the output variable Y(t) itself. And
other state variables are derivatives of the selected state variable Y(t)
CONT’D
𝑋1 𝑡 = 𝑌 𝑡
𝑋2 𝑡 = 𝑌ሶ 𝑡 = 𝑋ሶ1 𝑡
𝑋3 𝑡 = 𝑌ሷ 𝑡 = 𝑋ሷ1 𝑡 = 𝑋ሶ 2 𝑡
Thus the various state equations are
𝑋ሶ1 𝑡 = 𝑋2 𝑡
𝑋ሶ 2 𝑡 = 𝑋3 𝑡
𝑋ሶ 𝑛−1 𝑡 = 𝑋𝑛 𝑡
• 𝑋ሶ 𝑛
𝑡 is to be obtained by substituting the selected state variables in 𝑌 𝑛 +
𝑎𝑛−1 𝑌 𝑛−1 + 𝑎𝑛−2 𝑌 𝑛−2 + ⋯ + 𝑎1 𝑌ሶ + 𝑎0 𝑌 𝑡 = 𝑏0 𝑢(𝑡)
CONT’D
• We have
𝑌 𝑡 = 𝑋1 𝑡
𝑌ሶ 𝑡 = 𝑋2 𝑡
𝑌ሷ 𝑡 = 𝑋3 𝑡
𝑌 𝑛−1 (𝑡) = 𝑋𝑛 𝑡
𝑌 𝑛 𝑡 = 𝑋ሶ 𝑛 𝑡
Thus
𝑋ሶ 𝑛 𝑡 + 𝑎𝑛−1 𝑋𝑛 𝑡 + 𝑎𝑛−2 𝑋𝑛−1 𝑡 + ⋯ + 𝑎1 𝑋2 𝑡 + 𝑎0 𝑋1 𝑡 = 𝑏0 𝑢(𝑡)
CONT’D
• Construct the state model using phase variables if the system is described by
the differential equation.
𝑑3 𝑌 (𝑡) 𝑑2 𝑌 (𝑡) 𝑑𝑌 (𝑡)
3
+4 2
+7 + 2𝑌 𝑡 = 5𝑢(𝑡)
𝑑𝑡 𝑑𝑡 𝑑𝑡
• Draw the state diagram
SOLUTION
• Choose the output Y(t) as state variable 𝑋1
𝑡
𝑋1 𝑡 = 𝑌(𝑡)
𝑑𝑌 (𝑡)
= 𝑋ሶ1 𝑡 = 𝑌ሶ 𝑡 =
𝑑𝑡
𝑑2 𝑌 (𝑡)
𝑋3 𝑡 = 𝑋ሶ 2 𝑡 = 𝑌ሷ 𝑡 =
𝑑𝑡 2
• Thus 𝑋ሶ1 𝑡 = 𝑋2 𝑡 and 𝑋ሶ 2 𝑡 = 𝑋3 𝑡
• To obtain 𝑋ሶ 3 𝑡 substitute state variables obtained in the differential equation
𝑑3 𝑌(𝑡) 𝑑 𝑌ሷ 𝑡
ሸ 𝑡 =
=𝑌 = 𝑋ሶ 3 𝑡
𝑑𝑡 3 𝑑𝑡
CONT’D
𝑋ሶ 3 𝑡 + 4𝑋3 𝑡 + 7𝑋2 𝑡 + 2𝑋1 𝑡 = 5𝑢(𝑡)
𝑋ሶ 3 𝑡 = −2𝑋1 𝑡 − 7𝑋2 𝑡 − 4𝑋3 𝑡 + 5𝑢(𝑡)
• The state diagram will be
1.6. NON UNIQUENESS OF STATE VARIABLE MODEL
𝑋ሶ 𝑡 = 𝐴𝑋 𝑡 + 𝐵𝑢 𝑡 ⇒ 𝑀𝑍ሶ 𝑡 = 𝐴𝑀𝑍 𝑡 + 𝐵𝑢 𝑡
𝑌 𝑡 = 𝐶𝑋 𝑡 + 𝐷𝑢 𝑡 = 𝐶𝑀𝑍 𝑡 + 𝐷𝑢 𝑡
• Premultiplying by 𝑀−1 yields 𝑍ሶ 𝑡 = 𝑀−1 𝐴𝑀𝑍 𝑡 + 𝑀−1 𝐵𝑢 𝑡
መ 𝑡 + 𝐵𝑢
𝑍ሶ 𝑡 = 𝐴𝑍 𝑡
መ 𝑡 + 𝐷𝑢 𝑡
𝑌 𝑡 = 𝐶𝑍
Where 𝐴መ = 𝑀−1 𝐴𝑀, 𝐵 = 𝑀−1 𝐵 and 𝐶መ = 𝐶𝑀
• We for a new state model of the system. This shows that the state model is not
a unique property.
1.7. EIGEN VALUES AND EIGENVECTORS
• Any nonzero vectors 𝑣𝑖 which satisfy the matrix equation [λ𝑖 I − A]𝑣𝑖 = 0;
where λ𝑖 are eigenvalues of the matrix are called eigenvector of matrix A
corresponding to eigenvalue λ𝑖 respectively.
EXAMPLE
= 2 − λ −1 − λ − 10
λ2 − λ − 12 = 0
The eigenvalues of A are the solutions of the quadratic equation λ2 − λ − 12 =
0, namely λ1 = −3 and λ2 = 4