Control Systems - State Space Model
Control Systems - State Space Model
The state space model of Linear Time-Invariant (LTI) system can be represented as,
Ẋ = AX + BU
Y = CX + DU
The first and the second equations are known as state equation and output equation
respectively.
Where,
X and Ẋ are the state vector and the differential state vector respectively.
State
It is a group of variables, which summarizes the history of the system in order to predict the
future values (outputs).
State Variable
The number of the state variables required is equal to the number of the storage elements
present in the system.
State Vector
It is a vector, which contains the state variables as elements.
In the earlier chapters, we have discussed two mathematical models of the control systems.
Those are the differential equation model and the transfer function model. The state space model
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 1/8
10/08/2022, 11:00 Control Systems - State Space Model
can be obtained from any one of these two mathematical models. Let us now discuss these two
methods one by one.
There are two storage elements (inductor and capacitor) in this circuit. So, the number of the
state variables is equal to two and these state variables are the current flowing through the
inductor, i(t) and the voltage across capacitor, v c(t).
From the circuit, the output voltage, v 0(t) is equal to the voltage across capacitor, v c(t).
v 0(t) = v c(t)
di(t)
v i(t) = Ri(t) + L + v c(t)
dt
1
C∫
v c(t) = i(t)dt
dv c(t) i(t)
=
dt C
State vector, X =
[ ]i(t)
v c(t)
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 2/8
10/08/2022, 11:00 Control Systems - State Space Model
[ ]
di ( t )
dt
Differential state vector, Ẋ = dv c ( t )
dt
We can arrange the differential equations and output equation into the standard form of state
space model as,
[ ][ ] []
di ( t ) R 1
[ ]
−L −L 1
dt i(t)
Ẋ = dv c ( t ) = 1 v c(t) +
L
[ vi(t) ]
C
0 0
dt
Y = [0 1]
[ ]
i(t)
v c(t)
Where,
[ ] []
R 1
−L −L 1
A= 1 , B= L
, C = [0 1 ] and D = [ 0 ]
C
0 0
Y(s) b0
= n
U(s) s + a n − 1 s n − 1 + . . . + a 1s + a 0
(s n + a n − 1s n − 1 + . . . + a 0)Y(s) = b 0U(s)
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 3/8
10/08/2022, 11:00 Control Systems - State Space Model
Let
y(t) = x 1
dy(t)
= x 2 = ẋ 1
dt
d 2y(t)
= x 3 = ẋ 2
dt 2
d n − 1y(t)
= x n = ẋ n − 1
dt n − 1
d ny(t)
= ẋ n
dt n
and u(t) = u
Then,
ẋ n + a n − 1x n + . . . + a 1x 2 + a 0x 1 = b 0u
From the above equation, we can write the following state equation.
ẋ n = − a 0x 1 − a 1x 2 − . . . − a n − 1x n + b 0u
y(t) = y = x 1
[]
ẋ 1
ẋ 2
Ẋ = ⋮
ẋ n − 1
ẋ n
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 4/8
10/08/2022, 11:00 Control Systems - State Space Model
[ ][ ] [ ]
0 1 0 … 0 0 x1 0
0 0 1 … 0 0 x2 0
= ⋮ ⋮ ⋮ … ⋮ ⋮ ⋮ + ⋮ [u ]
0 0 0 … 0 1 xn − 1 0
− a0 − a1 − a2 … − an − 2 − an − 1 xn b0
[]
x1
x2
Y = [1 0 … 0 0] ⋮
xn − 1
xn
Here, D = [0].
Example
Find the state space model for the system having transfer function.
Y(s) 1
= 2
U(s) s +s+1
(s 2 + s + 1)Y(s) = U(s)
d 2y(t) dy(t)
+ + y(t) = u(t)
dt 2 dt
Let
y(t) = x 1
dy(t)
= x 2 = ẋ 1
dt
and u(t) = u
ẋ 2 = − x 1 − x 2 + u
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 5/8
10/08/2022, 11:00 Control Systems - State Space Model
y(t) = y = x 1
[] [ ][ ] [ ]
ẋ 1 0 1 x1 0
Ẋ = = + [u]
ẋ 2 −1 −1 x2 1
[]
x1
Y = [1 0]
x2
Y(s) b ns n + b n − 1 s n − 1 + . . . + b 1s + b 0
= n
U(s) s + a n − 1 s n − 1 + . . . + a 1s + a 0
⇒
Y(s)
U(s)
=
( n
s + a n − 1s n−1
1
+ . . . + a 1s + a 0 ) (b ns n + b n − 1s n − 1 + . . . + b 1s + b 0)
The above equation is in the form of product of transfer functions of two blocks, which are
cascaded.
Y(s)
U(s)
=
( )( )
V(s)
U(s)
Y(s)
V(s)
Here,
V(s) 1
= n n − 1
U(s) s + a n − 1s + . . . + a 1s + a 0
(s n + a n − 1s n − 1 + . . . + a 0)V(s) = U(s)
Let
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 6/8
10/08/2022, 11:00 Control Systems - State Space Model
v(t) = x 1
dv((t)
= x 2 = ẋ 1
dt
d 2v(t)
= x 3 = ẋ 2
dt 2
d n − 1v(t)
= x n = ẋ n − 1
dt n − 1
d nv(t)
= ẋ n
dt n
and u(t) = u
ẋ n = − a 0x 1 − a 1x 2 − . . . − a n − 1x n + u
Consider,
Y(s)
= b ns n + b n − 1 s n − 1 + . . . + b 1s + b 0
V(s)
Y(s) = (b ns n + b n − 1s n − 1 + . . . + b 1s + b 0)V(s)
By substituting the state variables and y(t) = y in the above equation, will get the output equation
as,
y = b nẋ n + b n − 1x n + . . . + b 1x 2 + b 0x 1
y = b n( − a 0x 1 − a 1x 2 − . . . − a n − 1x n + u) + b n − 1x n + . . . + b 1x 2 + b 0x 1
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 7/8
10/08/2022, 11:00 Control Systems - State Space Model
[]
ẋ 1
ẋ 2
Ẋ = ⋮
ẋ n − 1
ẋ n
[ ][ ] [ ]
x1
0 1 0 … 0 0 0
0 0 1 … 0 0 x2 0
= ⋮ ⋮ ⋮ … ⋮ ⋮ ⋮ + ⋮ [u ]
0 0 0 … 0 1 xn − 1 0
− a0 − a1 − a2 … − an − 2 − an − 1 xn b0
[]
x1
x2
Y = [b 0 − b na 0 b 1 − b na 1 ... b n − 2 − b na n − 2 b n − 1 − b na n − 1 ] ⋮
xn − 1
xn
If b n = 0, then,
[]
x1
x2
Y = [b 0 b1 ... bn − 2 b n − 1] ⋮
xn − 1
xn
https://www.tutorialspoint.com/control_systems/control_systems_state_space_model.htm 8/8