Documente Academic
Documente Profesional
Documente Cultură
Mathematical Modeling
of Dynamic Systems in
State Space
2 2
Saturday, September PMDRMFRCIED 13
29, 2012
Utilizing Kirchhoff’s current law
• At the junction
• First order differential equation
• Describing the rate of change of
capacitor voltage
dvc
ic C u (t ) iL
dt
Saturday, September PMDRMFRCIED 14
29, 2012
Utilizing Kirchhoff’s voltage law
• Right hand loop
• Provide the equation describing the
rate of change of inductor current
diL
L Ri L vc
dt
• Output of the system, linear algebraic
equation
vo RiL (t )
Saturday, September PMDRMFRCIED 15
29, 2012
State space representation
• A set of two first order differential equation and
output signal in terms of the state variables x1 and x2
dx1 1 1
x2 u (t )
dt C C
dx2 1 R
x1 x2
dt L L
y (t ) vo (t ) Rx 2
1
0 x 1
x
x 1 C . 1 .u
C
x 1 R x2 0
2
L L
x1
y 0 R .
x2
Saturday, September PMDRMFRCIED 16
29, 2012
Example 1 : RL serial network
Vi (t ) VR (t ) VL (t ) VR (t ) Vo (t )
Vo (t ) VR (t ) Vi (t )
Vo (t ) i (t ) R Vi (t )
y (t ) R i (t ) 1Vi (t )
Saturday, September PMDRMFRCIED 21
29, 2012
Example 2 : RC serial network
• Figure below shows an RC circuit with
input voltage vi(t) and output voltage at
resistor ie vo(t). Form a state space model
for this system using the voltage vc(t)
across the capacitor as the state variable
R V0
VR
Vi i VC C
di (t ) 1
L Ri (t ) i (t )dt vi (t )
dt C
Saturday, September PMDRMFRCIED 30
29, 2012
Converting to charge
• Using equation,
dq(t )
i (t )
dt
2
d q(t ) dq(t ) 1
L 2
R q (t ) vi (t )
dt dt C
Saturday, September PMDRMFRCIED 31
29, 2012
Derivatives of state vector
x1 (t ) q (t )
dq (t )
x1 (t ) i (t ) x2 (t )
dt
x2 (t ) i (t )
di (t )
x2 (t )
dt
Saturday, September PMDRMFRCIED 32
29, 2012
State equation
• First state equation
dq(t )
x1 (t ) i(t ) x2 (t )
dt
• Second state equation, using
q (t ) i (t )dt
di (t ) 1
L Ri (t ) i (t )dt v(t )
dt C
di (t ) q (t ) Ri (t ) v(t )
dt LC L L
1 R 1
x2 (t ) x1 (t ) x2 (t ) u (t )
LC L L
Saturday, September PMDRMFRCIED 33
29, 2012
State equation in matrix form
x(t ) Ax (t ) Bu (t )
0 1 x (t ) 0
x (t )
x(t ) 1
1 R 1 1 u (t )
x (t ) LC x2 (t )
L L
2
dq (t )
dt 0 1 q (t ) 0
x(t ) 1 R 1 v(t )
di (t ) i (t )
LC L L
dt
Saturday, September PMDRMFRCIED 34
29, 2012
Output equation
• Output system is VL
VL (t ) VR (t ) VC (t ) vi (t )
VL (t ) VC (t ) VR (t ) vi (t )
1
V L(t ) i (t )dt i (t ) R vi (t )
C
1
VL (t ) q (t ) Ri (t ) vi (t )
C
1
VL (t ) x1 (t ) Rx 2 (t ) u (t )
C
Saturday, September PMDRMFRCIED 35
29, 2012
Output equation in matrix form
y (t ) Cx(t ) Du(t )
1 x1 (t )
y (t ) R 1u (t )
C x2 (t )
1 q(t )
VL (t ) R 1v (t )
C i (t )
Saturday, September PMDRMFRCIED 36
29, 2012
Change State Variables but
output still same
x1 (t ) VR (t )
x2 (t ) VC (t )
y (t ) VL (t )
u (t ) Vi (t )
Saturday, September PMDRMFRCIED 37
29, 2012
Voltage formula for R, L and C
VR (t ) i (t ) R
1
VC (t ) i (t )dt
C
di (t )
VL (t ) L
dt
Saturday, September PMDRMFRCIED 38
29, 2012
Derivative of first state equation
x1 (t ) VR (t )
v(t ) VR (t ) VC (t )
dVR (t ) di (t ) R
x1` (t ) R
dt dt L
R R R
x1 (t ) VR (t ) VC (t ) v(t )
L L L
R R R
x1` (t ) x1 (t ) x2 (t ) u (t )
L L L
Saturday, September PMDRMFRCIED 39
29, 2012
Derivative of second state
equation
x2 (t ) VC (t )
dVC (t ) 1 1
x2 (t ) i (t ) VR (t )
dt C RC
1
x2 (t ) x1 (t )
RC
Saturday, September PMDRMFRCIED 40
29, 2012
State equation in matrix form
x(t ) Ax (t ) Bu (t )
R R
x (t ) R
x1 (t )
x(t ) L L 1
L u (t )
x (t ) 1 x2 (t ) 0
2 0
RC
dVR (t ) R R
dt L L VR (t ) R
x(t ) L v(t )
dVC (t )
1
0 V C (t ) 0
dt RC
Saturday, September PMDRMFRCIED 41
29, 2012
Output equation
VL (t ) VR (t ) VC (t ) v(t )
VL (t ) VR (t ) VC (t ) v(t )
y (t ) x1 (t ) x2 (t ) u (t )
y (t ) Cx(t ) Du(t )
x1 (t )
y (t ) 1 1 1 u (t )
x2 (t )
VR (t )
VL (t ) 1 1 1 v(t )
VC (t )
Saturday, September PMDRMFRCIED 43
29, 2012
Example 3 : 2 loop
• Find a state space representation if the
output is the current through the resistor.
• State variables VC(t) and iL(t)
• Output is iR(t)
• Input is Vi(t)
Vi iL
VR
R C
iR
iC VC
1
iR (t ) VC (t ) (11)
R
iR
iC1
Vi iC2 Vo
DC
L C2
iL
iC1 (t ) iL (t ) iR (t ) iC1
iR
iC2 Vo
iC1 (t ) iL (t ) ic 2 (t )
Vi
DC
L C2
iL
1
iC1 (t ) iL (t ) (vL (t ) vC 2 (t ))
R
vL (t ) vC1 (t ) vi (t )
1
iC 2 (t ) iR (t ) (vL (t ) vC 2 (t ))
Saturday, September
R PMDRMFRCIED 56
29, 2012
Solution
• Substituting these relations and
simplifying yields the state equations as
dvC1 1 1 1 1
vC1 iL vC 2 vi
dt RC1 C1 RC1 RC1
diL 1 1
vC1 vi
dt L L
dvC 2 1 1 1
vC1 vC 2 vi
dt RC 2 RC 2 RC 2
vo vC 2
Saturday, September PMDRMFRCIED 57
29, 2012
Solution
• Putting the equations in vector matrix
form
1 1 1 1
RC C1
RC1 RC1
1
1 1
x 0 0 x vi
L L
1 1 1
0
RC 2 RC 2 RC 2
y 0 0 1x
Saturday, September PMDRMFRCIED 58
29, 2012
Tutorial 1 : Number 1
i1 i3 i5
Vi C1 = 1 F
L=1H
C2 = 1 F Vo
i2 i4
i1
i3
Vi R2=1 Ohm
4V1 iR
DC
L = 1H i2
i4
x1 i2
x
2 c
x v
Saturday, September PMDRMFRCIED 69
29, 2012
Solution
• Now obtain v1 in terms of the state
variables v1 vc v2
v1 vc iR
v1 vc i3 4v1
v1 vc (i1 i2 ) 4v1
v1 vc vi v1 i2 4v1
1 1 1
v1 i2 vc vi
2 2 2
Saturday, September PMDRMFRCIED 70
29, 2012
Solution
• Now obtain i3 in terms of the state
variables i i i
3 1 2
i3 vi v1 i2
1 1 1
i3 vi i2 vc vi i2
2 2 2
3 1 3
i3 i2 vc vi
2 2 2
Saturday, September PMDRMFRCIED 71
29, 2012
Solution
• Now obtain the output iR in terms of the
state variables
iR i3 4v1
1 3 1
iR i2 vc vi
2 2 2
Saturday, September PMDRMFRCIED 72
29, 2012
Solution
• Hence the state space representation
1 1 1
v
i
i2 2 2 2 v
x 1 2
3 i
.
v i3 3 1
vc
c
2 2 2
1 3 i2 1
y . vi
2 2 vc 2
Saturday, September PMDRMFRCIED 73
29, 2012
Tutorial 1 : Number 3
• Find the state space representation of the
network shown in figure if
• Output is v0(t)
• Input is vi(t)
• State variables :-
x1 = iL1
x2 = iL2
x3 = vC
L1 = 1H i3 L2 = 1H
node node
Vi Vo
Vi i2
i1 R2=1 Ohm
DC
Vo
C = 1F
• where,
• L1 is the inductor in the loop with i1
• L2 is the inductor in the loop with i2
• iL1 = i1 –i3
• iL2 = i2 – i3
• Now,
• i1 – i2 = ic = iL1 – iL2 -----------------(1)
Saturday, September PMDRMFRCIED 77
29, 2012
Solution
• Also writing the node equation at vo,
• i2 = i3 + iL2 ----------------------(2)
• Writing KVL around the outer loop yields
• i2 + i3 = vi -----------------------(3)
• Solving (2) and (3) for i2 and i3 yields
1 1
i2 iL 2 vi (4)
2 2
1 1
i3 iL 2 vi (5)
2 2
Saturday, September PMDRMFRCIED 78
29, 2012
Solution
• Substituting (1) and (4) into the state
equations.
• To find the output equation,
• vo = -i3 + vi
• Using equation (5),
1 1
vo iL 2 vi
2 2
Saturday, September PMDRMFRCIED 79
29, 2012
Solution
• Summarizing the results in vector matrix
form diL1
0 0 1 i
x dt 1
di
1 L 1
1
1 .iL 2 vi
1
x x2 L 2 0
dt 2 2
x3 dvC 1 1 0 vC 0
dt
iL1
1 1
y vo 0 0.iL 2 vi
2 2
vC
i1 + i2
Va iC C -
VC Vb
DC
DC
Saturday, September PMDRMFRCIED 83
29, 2012
Solution
• State variables and their derivatives
di1
x1 i1 x1
dt
di2
x2 i2 x2
dt
dvc
x3 vc x3
dt
u1 va
u 2 vb
y vc
Saturday, September PMDRMFRCIED 84
29, 2012
Solution
• The derivatives equations for energy
storage elements
di1
L1 vL1 (1)
dt
di2
L2 vL 2 (2)
dt
dvC
C iC (3)
dt
Saturday, September PMDRMFRCIED 85
29, 2012
Solution L1 L2
R
i1 + i2
• For loop (1) ; Va iC VC Vb
va i1R vL1 vC
C -
DC
DC
vL1 va i1 R vC (4)
• For loop (2) ;
vb vL 2 vC
vL 2 vb vC (5)
Saturday, September PMDRMFRCIED 86
29, 2012
Solution
• For current iC ;
iC i1 i2 (6)
• Substituting equation (4), (5) and (6) into
equation (1), (2) and (3) yields
L1 L2
di1 R
L1 va i1 R vC i1 + i2
dt Va iC C -
VC Vb
DC
DC
di1 R 1 1
i1 vC va
dt L1 L1 L1
di1 R 1 1
x1 x1 x3 va (7)
dt L1 L1 L1
Saturday, September PMDRMFRCIED 87
29, 2012
Solution
• Substituting equation (4), (5) and (6) into
equation (1), (2) and (3) yields
di2
L2 vb vC
dt
di2 1 1
vC vb
dt L2 L2
di2 1 1
x2 x3 vb (8)
dt L2 L2
Saturday, September PMDRMFRCIED 88
29, 2012
Solution
• Substituting equation (4), (5) and (6) into
equation (1), (2) and (3) yields
dvC
C i1 i2
dt
dvC 1 1
i1 i2
dt C C
dvC 1 1
x3 x1 x2 (9)
dt C C
Saturday, September PMDRMFRCIED 89
29, 2012
Solution
• Rewrite equation (7), (8) and (9) in state
space representation matrix form
R 1 1
L
0
L1 x L1
0
x1
1
1 v
1 1 a
x x2 0 0 . x2 0 .
L2 L2 vb
x3 1 1 x3 0 0
0
C C
x1
y 0 0 1. x2
x3
Saturday, September PMDRMFRCIED 90
29, 2012
Solution
• Characteristic equation
s 10Rs 200s 1000R 0
3 2
s2 10R 1000R 0
s1 (2000 R 1000 R)
0
10 R
s0 200
f (t ) M .
d 2 y (t ) y(t)
dt 2
dv(t )
f (t ) M .
dt
a (t ) accelerati on
v(t ) velocity
M f(t)
y (t ) displaceme nt
f (t ) force
M mass
Saturday, September PMDRMFRCIED 93
29, 2012
Modeling of Mechanical
• Linear Spring
Networks
f (t ) K . y (t )
K y(t)
f (t ) force
y (t ) displaceme nt f(t)
K spring _ cons tan t
dy (t ) B y(t)
f (t ) B.
dt
f (t ) force f(t)
y (t ) displaceme nt
B viscous _ frictional
B M
f(t)
x1 (t ) y (t )
dy (t ) dx1 (t )
x2 (t )
dt dt
input u f (t )
output y y (t )
Saturday, September PMDRMFRCIED 101
29, 2012
Mass, spring and damper
system
• Draw the free body diagram
y(t)
d 2 y (t )
M
dt 2
Ky (t ) M f(t)
dy (t )
B
dt
Saturday, September PMDRMFRCIED 102
29, 2012
Mass, spring and damper system
• a. Free-body diagram of mass, spring, and
damper system;
b. transformed free-body diagram
x1 (t ) x2 (t )
K B 1
x 2 (t ) .x1 (t ) .x2 (t ) . f (t )
M M M
y (t ) x1 (t )
Saturday, September PMDRMFRCIED 105
29, 2012
Mass, spring and damper
system
• State space representation in vector
matrix form are
0 1 x (t ) 0
x1 (t )
K B . 1 1 . f (t )
x (t ) M x2 (t )
M M
2
K
x1 (t )
y (t ) 1 0.
y(t)
B M
x2 (t ) f(t)
– All forces on M1
K1X1 K1X2
M1s2X1 M1 u
B1sX1 B1sX2
z3
z4
Saturday, September PMDRMFRCIED 123
29, 2012
Tutorial 1 : Number 5
• Figure shows a mechanical system
consisting of mass M1 and M2, damper
constant B, spring stiffness K1 and K2.
When force f(t) acts on mass M1, it
moves to position x1(t) while mass M2
moves to position x2(t). Find the state
space representation of the system
using x1(t), x2(t) and their first
derivatives as state variables. Let x2(t)
be the output.
Saturday, September PMDRMFRCIED 124
29, 2012
Mechanical system consist of 2
mass, 2 spring and 1 damper
f(t) X1 X2
K1 B K2
M1 M2
K1 x1
f (t )
M 1 x1
M1
B x1
B x2
K 2 x2
M 2 x2
M2 B x1
B x2
B2 x3
M3 K 2 x2
K 2 x3
Saturday, September PMDRMFRCIED 134
29, 2012
Example : 3M, 2K and 2B
• Writing the equations of motion
M 1 x1 B1 x1 K1 x1 B1 x2 f (t ) (1)
M 2 x2 B1 x2 K 2 x2 B1 x1 K 2 x3 (2)
M 3 x3 B2 x3 K 2 x3 K 2 x2 (3)
Saturday, September PMDRMFRCIED 135
29, 2012
Example : 3M, 2K and 2B
• Substitute the value of K, M and B.
• Rearrange equation (1), (2) and (3)
x1 x1 x1 x2 f
x2 x1 x2 x2 x3
x3 x3 x3 x2
Saturday, September PMDRMFRCIED 136
29, 2012
Example : 3M, 2K and 2B
• From the state variables
z1 x1 z1 x1 z 2
z 2 x1 z 2 x1 z 2 z1 z 4 f
z 3 x 2 z 3 x2 z 4
z 4 x2 z 4 x2 z 2 z 4 z 3 z 5
z5 x3 z5 x3 z6
z6 x3 z6 x3 z6 z5 z3
y x3 z5
Saturday, September PMDRMFRCIED 137
29, 2012
Example : 3M, 2K and 2B
• In vector matrix form
0 1 0 0 0 0 0
1 1 0 1 0 0 1
0 0 0 1 0 0 0
z z f (t )
0 1 1 1 1 0 0
0 0 0 0 0 1 0
0 0 1 0 1 1 0
y 0 0 0 0 1 0z
Saturday, September PMDRMFRCIED 138
29, 2012
Modeling of Electro-Mechanical System
• NASA flight simulator robot arm with
electromechanical control system components
J m d m Dm d m
2
ia (t ) 2
( 4)
K t dt K t dt
J m d 2 m Dm d m d m
ea (t ) Ra 2
Kb
K t dt K t dt dt
Ra J m d 2 m Ra Dm d m
ea (t ) . 2 K b . (5)
K t dt Kt dt
Saturday, September PMDRMFRCIED 146
29, 2012
DC motor armature control
• Define the state variables, input and ouput
x1 m (6a )
d m
x2 (6b)
dt
u ea (t )
y 0.1 m
• Substituting equation (6) into equation (5)
yields Ra J m dx2 Ra Dm
ea (t ) . K b .x2 (7)
K t dt K t
Saturday, September PMDRMFRCIED 147
29, 2012
DC motor armature control
• Solving for x2 dot yields,
Ra Dm
ea (t ) K b .x2
dx2
Kt
dt Ra J m
Kt
dx2 K t Dm K b K t
.ea (t ) .x2
dt Ra J m J m Ra J m
dx2 1 Kb Kt Kt
Dm .x2 .ea (t ) (8)
dt Jm Ra Ra J m
Saturday, September PMDRMFRCIED 148
29, 2012
DC motor armature control
• Using equation (6) and (8), the state
equations are written as
dx1 d m
x2
dt dt
dx2 1 Kt Kb Kt
Dm .x2 .ea (t )
dt Jm Ra Ra J m
Saturday, September PMDRMFRCIED 149
29, 2012
DC motor armature control
• Assuming that the output o(t) is 0.1 the
displacement of the armature m(t) as x1.
Hence the output equation is
y 0.1x1
• State space representation in vector
matrix form are
0 1
x 0
1
x 1 K t K b . K t .ea (t )
1
x 0 J Dm R x2 R J
2 m a a m
x1
y 0.1 0.
x2
Saturday, September PMDRMFRCIED 150
29, 2012
Tutorial 1 : Number 7
• The representation of the positioning system
using an armature-controlled dc motor is shown
in figure.
• The input is the applied reference voltage, r(t)
and the output is the shaft’s angular position,
o(t).
• The dynamic of the system can be described
through the Kirchoff equation for the armature
circuit, the Newtonian equation for the
mechanical load and the torque field current
relationship.
Saturday, September PMDRMFRCIED 151
29, 2012
Figure : DC motor armature control
R Kb 1
x1 x1 x3 (r K s x2 )
L L L
R Ks Kb 1
x1 x1 x2 x3 r (5)
L L L L
R
Ks
Kb 1
L
x1 x1
L L L
x2 0 0 1 . x2 0 r
KT
x3 0 x3 0
J J
Saturday, September PMDRMFRCIED 160
29, 2012
Example : ex-exam question
• The output
x1
y o 0 1 0 x2
x3
Saturday, September PMDRMFRCIED 161
29, 2012
Modelling of Electro-Mechanical
System
• Field Controlled DC
+
Rf
ef (t)
Motor if (t)
-
Lf Gelung Medan
Ra La
+
ea
Ba
Ja
ia
- TL(t)
Tm(t)
Gelung Angker m (t )
Tetap
d o d o
2
T (t ) J B (2)
dt dt
Saturday, September PMDRMFRCIED 163
29, 2012
DC motor field control
• For torque and field current relationship
T (t ) i f (t )
T (t ) K t i f (t ) (3)
• Define the state variables, input and
output x (t ) (4)
1 o
d o (t )
x2 (5)
dt
x3 i f (t ) (6)
u e(t )
y o (t )
Saturday, September PMDRMFRCIED 164
29, 2012
DC motor field control
• From equation (4) and (5), we can
determine the first state equation as :
d o
x1 (t ) x2 (t ) ( 7)
dt
• Another two state equations are :
d 2 o
x2 2 (8)
dt
di f
x3 (9)
dt
Saturday, September PMDRMFRCIED 165
29, 2012
DC motor field control
• Substituting x3 and x3 dot into equation (1)
yields
e(t ) x3 R f L f x3
• Substituting equation (3) into equation (2)
d o d o
yields 2
J 2 B Kt i f
dt dt
Saturday, September PMDRMFRCIED 166
29, 2012
DC motor field control
• Substituting x2 dot, x2 and x3, hence
J x2 Bx2 Kt x3
• Rewrite equations
Rf 1
x3 x3 e(t )
Lf Lf
B Kt
x2 x2 x3
J J
Saturday, September PMDRMFRCIED 167
29, 2012
DC motor field control
• Matrix form
0 1 0 0
x 0
B Kt x 0 u
J J 1
Rf
0 0 L f
Lf
y 1 0 0x
Saturday, September PMDRMFRCIED 168
29, 2012
Block diagrams
• The block diagram is a useful tool for
simplifying the representation of a
system.
• Simple block diagrams only have one
feedback loop.
• Complex block diagram consist of more
than one feedback loop, more than 1 input
and more than 1 output i.e. inter-coupling
exists between feedback loops
Saturday, September PMDRMFRCIED 169
29, 2012
Block diagrams
• Integrator
x2 x1dt
x1
K
x1
+ x4 = x1-x2+x3
• Summer x2 -
x3
+
Saturday, September PMDRMFRCIED 170
29, 2012
Signal flow graphs
• Having the block diagram simplifies the
analysis of a complex system.
• Such an analysis can be further simplified
by using a signal flow graphs (SFG) which
looks like a simplified block diagram
• An SFG is a diagram which represents a
set of simultaneous equation.
• It consist of a graph in which nodes are
connected by directed branches.
Saturday, September PMDRMFRCIED 171
29, 2012
Signal flow graphs
• The nodes represent each of the system
variables.
• A branch connected between two nodes
acts as a one way signal multiplier: the
direction of signal flow is indicated by an
arrow placed on the branch, and the
multiplication factor(transmittance or
transfer function) is indicated by a letter
placed near the arrow.
Saturday, September PMDRMFRCIED 172
29, 2012
Signal flow graphs
• A node performs two functions:
1. Addition of the signals on all incoming
branches
2. Transmission of the total node signal(the
sum of all incoming signals) to all outgoing
branches
x1 a x2 = ax1
v b d y
u
a x
c 1 x
w
v b Mixed Sink
node node
Saturday, September PMDRMFRCIED 177
29, 2012
Signal flow graphs
• A path is any connected sequence of
branches whose arrows are in the same
direction
• A forward path between two nodes is one
which follows the arrows of successive
branches and in which a node appears
only once.
• The path uwx is a forward path between
the nodes u and x
a b ab
x y z x z
(a+b)
x y
x y
b
Saturday, September PMDRMFRCIED 182
29, 2012
Signal flow graphs
simplification
Original graph Equivalent graph
w ac
a z w
c z
x y x bc
b
Saturday, September PMDRMFRCIED 183
29, 2012
Block diagram of feedback
system
R E C
G
B
H
R 1 E G C R 1 E G C
-1
H
B -H
Saturday, September PMDRMFRCIED 186
29, 2012
Successive reduction of SFG
third fourth
• Node E eliminated, self • Self loop eliminated
loop of value -GH
R G C R C
G/(1+GH)
-GH
Saturday, September PMDRMFRCIED 187
29, 2012
SIGNAL FLOW GRAPHS OF
STATE EQUATIONS
• demonstrate how to draw signal flow
graphs from state equations.
• Consider the following state and output
equations:
x1 2 x1 5x2 3x3 2r (1a)
x2 6 x1 2 x2 2 x3 5r (1b)
x3 x1 3x2 4 x3 7r (1c)
y 4x1 6x2 9x3 (1d)
Saturday, September PMDRMFRCIED 188
29, 2012
SIGNAL FLOW GRAPHS OF
STATE EQUATIONS
• Step 1 : Identify three nodes to be the
three state variables, , and three nodes,
placed to the left of each respective
state variables. Also identify a node as
the input, r, and another node as the
output, y.
R(s) Y(s)
sX3 (s) X3 (s) sX (s) X2 (s) sX (s) X (s)
2 1 1
1 1 1
s s s
R(s) Y(s)
sX (s) X (s) sX (s) X (s) sX (s) X (s)
3 3 2 2 1 1
1 1 1
s s -5 s
R(s) Y(s)
X (s) X2 (s) sX (s) X (s)
sX3 (s) 3 sX2 (s) 1 1
3
Saturday, September PMDRMFRCIED 191
29, 2012
SIGNAL FLOW GRAPHS OF
STATE EQUATIONS
• Step 4 : Using Eqn (1b), feed to each node
the indicated signals.
2
1 1 1
s 2 s -5 s
R(s) Y(s)
X (s) sX (s) X (s) sX (s) X (s)
sX3 (s) 3 2 2 1 1
-2 2
3 -6
Saturday, September PMDRMFRCIED 192
29, 2012
SIGNAL FLOW GRAPHS OF
STATE EQUATIONS
• Step 5 : Using Eqn (1c), feed to each node
the indicated signals.
2
1 1 1
7 s 2 s -5 s
R(s) Y(s)
sX (s) X (s) sX (s) X2 (s) sX (s) X1 (s)
3 3 2 1
-4 -2 2
-3 3 -6
1
Saturday, September PMDRMFRCIED 193
29, 2012
SIGNAL FLOW GRAPHS OF
STATE EQUATIONS
• Step 6 : Finally, use Eqn (1d) to complete
the signal flow2 graph. 9
5 6
1 1 1
7 s 2 s -5 s -4
R(s) Y(s)
sX (s) X (s) sX (s) X2 (s) sX (s) X1 (s)
3 3 2 1
-4 -2 2
-3 3 -6
1
Saturday, September PMDRMFRCIED 194
29, 2012
Example 7
• Draw a signal-flow graph for each of the
following state equations :
0 1 0 x1 0
x(t ) 0 0
1 . x2 0 r (t )
2 4 6 x3 1
x1
y (t ) 1 1 0. x2
x3
Saturday, September PMDRMFRCIED 195
29, 2012
Solution
• State and output equations
x1 (t ) x2 (t )
x2 (t ) x3 (t )
x3 (t ) 2 x1 (t ) 4 x2 (t ) 6 x3 (t ) r (t )
y (t ) x1 (t ) x2 (t )
Saturday, September PMDRMFRCIED 196
29, 2012
Solution
• Signal flow graph 1
-4
-2
Saturday, September PMDRMFRCIED 197
29, 2012
Example 8
• Draw a signal-flow graph for each of the
following state equations :
0 1 0 0
x(t ) 0
3 1 x(t ) 1 r (t )
3 4 5 1
y (t ) 1 2 0x(t )
Saturday, September PMDRMFRCIED 198
29, 2012
Solution
• State and output equations
x1 (t ) x2 (t )
x2 (t ) 3x2 (t ) x3 (t ) r (t )
x3 (t ) 3 x1 (t ) 4 x2 (t ) 5 x3 (t ) r (t )
y (t ) x1 (t ) 2 x2 (t )
Saturday, September PMDRMFRCIED 199
29, 2012
Solution
• Signal flow graph
1 2
1 1/s 1 1/s 1 1/s 1
r y
x3 x2 x1
-5
-3
-4
-3
Saturday, September PMDRMFRCIED 200
29, 2012
Example 9
• Draw a signal-flow graph for each of the
following state equations :
7 1 0 1
x(t ) 3
2 1 x(t ) 2 r (t )
1 0 2 1
y (t ) 1 3 2x(t )
Saturday, September PMDRMFRCIED 201
29, 2012
Solution
• State and output equations
x1 (t ) 7 x1 (t ) x2 (t ) r (t )
x2 (t ) 3x1 (t ) 2 x2 (t ) x1 (t ) 2r (t )
x3 (t ) x1 (t ) 2 x3 (t ) r (t )
y (t ) x1 (t ) 3x2 (t ) 2 x3 (t )
Saturday, September PMDRMFRCIED 202
29, 2012
Solution
• Signal flow graph
1
2
2 3
1 1/s -1 1/s 1 1/s 1
r y
x3 x2 x1
2 2 7
-3
-1
Saturday, September PMDRMFRCIED 203
29, 2012
Q1
• For the circuit shown in figure, identify
a set of state variables
• Answer : one possible set of state
variables is the current iL2 via L2, the
voltage VC2 across C2 and the current
iL1 via L1
• VC1 the voltage across C1 can replace
iL1 via L1 as the third state variable
iR
V2 V1 i
dV2 1 V2
C2 0
dt R2 R3
1
0 0
L i 0
1 1 1 1
x 0
.V1 V
R1 R2 C1 R2 V R1C1
1 1 1 0
2
1
C2 R2C2 R2C2 R3C2
Saturday, September PMDRMFRCIED 219
29, 2012
Q9
• Determine the state equation for the
two input and one output circuit shown
in the figure where state variables are
define as x1=iL and x2=Vc the output is
y=i2 i1 i3
iC