CH 1
CH 1
System
State variable analysis is essentially a time domain approach but it has number of advantages compared to
conventional methods of analysis.
8) The vector matrix notation greatly simplifies the mathematical representation of the system.
In a state-space system representation, we have a system of two equations: an equation for determining the
state of the system, and another equation for determining the output of the system. We will use the variable
y (t) as the output of the system, x(t) as the state o f the system, and u(t) as the input of the system. We use
the notation 𝒙̇ (t) (note the dot) for the first derivative of the state v e c t o r of the system, as dependent on
the current state o f the system and the current input.
State Equation:
𝑥̇ (𝑡)= A(t)x(t) + B(t)u(t)
Output Equation:
y(t) = C (t)x(t) + D(t)u(t)
Note:
The first equation shows that t h e system state change is dependent on the previous system state, the
initial state of the system, the time, and the system inputs. The second equation shows that the system
output is dependent on the current system state, t h e system input, and the current time.
If the system state change 𝒙̇ (t) and the system output y(t) are linear combinations of the system state
and input vectors, then we can say the systems are linear systems.
If 𝒙̇ (t) ad y(t) are not linear combinations of x(t) and u(t), the system is said to be nonlinear.
It is important to note at this point that the state s p a c e equations of a particular system are not
u n i q u e , a n d t h e r e a r e an infinite n u m b e r of ways to represent these e q u a t i o n s by manipulating
the A, B, C and D matrices using row operations. There a r e a number of "standard forms" for these
matrices, however, that make certain c o m p u t a t i o n s easier. Converting b e t w e e n these forms will
require knowledge of linear algebra.
Matrices: A B C D
Our system has the form:
We've bolded several quantities to try and reinforce the fact that they can be vectors, not just scalar
quantities. If these systems are time-invariant, we can simplify them by removing the time variables:
In our time-invariant state space equations, we write these matrices and their relationships as:
We have four constant matrices: A, B, C, and D. We will explain these matrices below:
Name Dimension
n → number of states
p → number of outputs
In general, the physical variables associated with energy storing elements, which
are responsible for initial conditions, arc selected as the stale variables of the given system.
Let’s see the following RLC network.
If the initial conditions 𝑣𝑐 (0), i1(0), i2(0) and the input signal e(t) for t ≥0 are known;
then the behavior of the electrical network is completely specified for t ≥0.
There are two energy storing elements L and C. So the two state variables arc current through
inductor i (t) and voltage across capacitor vc(t).
𝑑𝑣𝑐 (𝑡)
i1(t) + i2(t) + C = 0,
𝑑𝑡
𝑑𝑖1 (𝑡)
L1 + R1i1(t) + e(t) – vc(t) =0,
𝑑𝑡
𝑑𝑖2 (𝑡)
L2 + R2i2(t) – vc(t) =0,
𝑑𝑡
𝑑𝑣𝑐 (𝑡) 1 1
= − i1(t) - i2(t)
𝑑𝑡 𝐶 𝐶
𝑑𝑖1 (𝑡) 1 𝑅1 1
= vc(t) - i1(t) - e(t)
𝑑𝑡 𝐿1 𝐿1 𝐿1
𝑑𝑖2 (𝑡) 1 𝑅2
= vc(t) - i2(t)
𝑑𝑡 𝐿2 𝐿2
Or in matrix form
𝑑𝑣𝑐 (𝑡) 1 1
0 − −
𝑑𝑡 𝐶 𝐶 𝑣𝑐 (𝑡) 0
𝑑𝑖1 (𝑡) 1 𝑅1 1
= − 0 [ 𝑖1 (𝑡) ] + [− 𝐿 ]e(t)
𝑑𝑡 𝐿1 𝐿1 1
𝑑𝑖2 (𝑡) 1 𝑅2 𝑖2 (𝑡) 0
[ ] [𝐿2 0 −
𝑑𝑡 𝐿2 ]
𝑣𝑐 (𝑡)
𝑣𝑅2 (𝑡) 0 0 𝑅2
[ ] =[ ] [ 𝑖1 (𝑡) ]
𝑖𝑅2 (𝑡) 0 0 1
𝑖2 (𝑡)
𝑑𝑛 𝑦 𝑑 𝑛−1 𝑦 𝑑2 𝑦 𝑑𝑦
+ 𝑎𝑛−1 + ⋯ + 𝑎2 + 𝑎1 + 𝑎0 y = u(t)
𝑑𝑡 𝑛 𝑑𝑡 𝑛−1 𝑑𝑡 2 𝑑𝑡
This class of systems can be reduced to the form of n first-order state equation as follows.
Define the state variable as
𝑑𝑦 𝑑2 𝑦 𝑑 𝑛−1 𝑦
x1 =y, x2= , x3 = 2
, ⋯, xn=
𝑑𝑡 𝑑𝑡 𝑑𝑡 𝑛−1
These particular state variable are often called phase variables. As a direct result of this
definition, n-1first order differential equations are 𝑥̇ 1 = x2, 𝑥̇ 2 = x3, ⋯ , 𝑥̇ 𝑛−1 = xn. The nth
𝑑𝑛 𝑦
equation is 𝑥̇ 𝑛 = . Using original differential equation and the preceding definition gives
𝑑𝑡 𝑛
So that
0 1 0 0 … 0 0
0 0 1 0 … 0 0
0 0 0 1 … 0 0
𝑥̇ = ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
x+ u(t) =Ax + Bu
⋮
0 0 0 0 … 1 0
[−𝑎0 −𝑎1 −𝑎2 −𝑎3 … −𝑎𝑛−1 ] [ 1]
Example: Construct the state model using phase variables if the system is described by the
differential equation.
Solution:
X1(t) = Y(t)
𝑑𝑌(𝑡)
X2(t) = 𝑋̇1 (t) = 𝑌̇ (t) = 𝑑𝑡
𝑑 2 𝑌(𝑡)
X3(t) = 𝑋̇2 (t) = 𝑌̈ (t) = 𝑑𝑡 2
To obtain 𝑋̇3 (t) substitute state variables obtained in the differential equation.
𝑑 3 𝑌(𝑡) 𝑑 𝑑𝑋3
⃛ (t) =
=𝑌 [𝑌̈ (t)] = = 𝑋̇3 (t)
𝑑𝑡 3 𝑑𝑡 𝑑𝑡
Then writing these 3 first order differential equation in the state space equation form will give
us the following.
X1(t)
Y(t) = [1 0 0] [X2(t)] + [0 ] U(t)
X3(t)
𝑋(𝑠) 𝐾
=
𝑈(𝑠) 𝑠𝑛+ 𝑎 𝑛−1 𝑠 𝑛−1 + …+ 𝑎 1 𝑠+ 𝑎0
𝑥̇ 1 = x2
𝑥̇ 2 = x3
⋮ ⋮
𝑥̇ 𝑚 = -a0x1 – a1x2 -… - an-1xn + u
𝑌(𝑠)
= 𝑏𝑛−1 𝑠 𝑛−1 + … + 𝑏1 𝑠 + 𝑏0
𝑋(𝑠)
𝑥1
y= [1 0] [ ] + [0]u
𝑥2
C D
Solution:
𝑌(𝑠)
T(s) = =C(𝑠𝐼 − 𝐴)−1 -D
𝑈(𝑠)
−1
𝑠 0 0 1 0
= [1 0] ([ ]−[ ]) [ ] + [0]
0 𝑠 −2 −3 1
−1
𝑠 −1 0
= [1 0] [ ] [ ]
2 𝑠+3 1
1 𝑠+3 1 0
= [1 0] (𝑠(𝑠+3)+2) [ ][ ]
−2 𝑠 1
1 1 1
= [1 0] [ ] =
𝑠(𝑠+3)+2
𝑠 𝑠(𝑠+3)+2
AX = 𝜆X
i.e. 𝜆X – 𝜆X = 0
i.e. |𝜆I – A|X = 0 (1)
The set of homogeneous equation (1) have a nontrivial solution only under the condition,
|𝜆I – A| = 0 (2)
The determinant |𝜆I – A| is called characteristics polynomial while the equation (2) is called the
characteristic equation.
After expanding. We get the characteristic equation as,
The ‘n’ roots of the equation (3) i.e. the values of 𝜆 satisfying the above equation (3) are called
Eigen values of the matrix A.
The equation (2) is similar to |𝑠I – A| =0, which is the characteristic equation of the system. Hence
values of 𝜆 satisfying characteristic equation are the closed loop poles of the system. Thus Eigen
values are the closed loop poles of the system.
(𝜆𝑖 𝐼 − 𝐴)𝑋 = 0
Then solution of this equation is called eigen vector of A associated with eigen value 𝜆𝑖 .
If the rank of the matrix [𝜆𝑖 𝐼 − 𝐴] is r, then there are (n-r) independent eigen vectors. Similarly,
another important point is that if the eigen values of matrix A are all distinct, then the rank r of
matrix A is (n-1) where n is order of the system.
Mathematically, the eigen vector can be calculated by taking cofactors of matrix (𝜆𝑖 𝐼 − 𝐴) along
any row.
𝐶𝑘1
𝐶𝑘2
Thus Eigen vector for 𝜆𝑖 = , where k= 1, 2, … n and 𝐶𝑘𝑖 is cofactor of matrix (𝜆𝑖 𝐼 − 𝐴) of
⋮
[𝐶𝑘𝑛 ]
kth row.
Example: Find the eigenvalues and the corresponding Eigen vectors for the matrix
𝟏𝟎 −𝟏𝟖
A=( )
𝟔 −𝟏𝟏
Solution: |𝜆I – A| = 0
1 0 10 −18
| 𝜆[ ] – [ ] |= 0
0 1 6 −11
𝜆 − 10 18
| |=0
−6 𝜆 + 11
𝜆2 + 𝜆 − 2 = 0, eigen values are -2 and 1
10 −18 𝑥1 𝑥1 𝑥1 3
[ ][ ] = -2[ ], the corresponding eigen vector becomes [ ]=[ ]
6 −11 𝑥2 𝑥2 𝑥2 2
10 −18 𝑥1 𝑥1 𝑥1 2
[ ][ ] = 1[ ], then eigen vector [ ] = [ ]
6 −11 𝑥2 𝑥2 𝑥2 1