03 Chapter 03
03 Chapter 03
di (t )
L Ri(t ) v (t ) (3.1)
dt
3. Taking the Laplace transform, using Table 2.2, Item 7, and including the initial conditions, yields
LsI ( s) i (0) RI ( s) V ( s) (3.2)
Assuming the input, v(t), to be a unit step, u(t), whose Laplace transform is V(s)=1/s, we solve for
I(s) and get
Ls R I ( s) 1 Li (0)
s
1 1 i(0)
I ( s)
L R R
s s s
L L
1 1 1 i(0)
I ( s) (3.3)
Rs R R
s s
L L
from which
1
i (t ) 1 e ( R / L)t i (0)e ( R / L)t
R
(3.4)
The function i(t) is a subset of all possible network variables [i(t), vL(t), and vR(t)] that we are able
to find from Eq. (3.4) if we know its initial condition, i(0), and the input, v(t). Thus, i(t) is a state
variable, and the differential equation (3.1) is a state equation.
4. We can now solve for all of the other network variables algebraically in terms of i(t) and the
applied voltage, v(t). For example, the voltage across the resistor is
v R (t ) Ri(t ) 1 e ( R / L )t Ri(0)e ( R / L )t (3.5)
The voltage across the inductor is
v L (t ) v(t ) v R (t ) v(t ) Ri(t ) (3.6)
The derivative of the current is
di 1
v (t ) Ri(t ) (3.7)
dt L
Thus, knowing the state variable, i(t), and the input, v(t), we can find the value, or state, of any
network variable at any time, t t0. Hence, the algebraic equations, Eqs. (3.5) through (3.7), are
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 network, which we call a state-space representation.
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 i(t) = vR(t)/R into Eq. (3.1)
yields
L dv R (t )
v R (t ) v (t ) (3.8)
R dt
which can be solved knowing that the initial condition vR(0) = Ri(0) and knowing v(t). In this case,
the state variable is vR(t). Similarly, all other network variables can now be written in terms of the
state variable, vR(t), and the input, v(t).
1. In this system the variables are i(t), vL(t), vC(t), q(t), and vR(t). Since the network is of second
order, two simultaneous, first-order differential equations are needed to solve for two state
variables. We select i(t) and q(t), the charge on the capacitor, as the two state variables.
2. Writing the loop equation yields
di(t ) 1
L
dt
Ri(t )
C
i (t ) v (t ) (3.9)
We can convert Eq. (3.10) into two simultaneous, first-order differential equations in terms of i(t)
and q(t). The first equation can be dq(t)/dt=i(t).The second equation can be formed by substituting
i(t)dt=q(t) into Eq. (3.9) and solving for di(t)/dt. Summarizing the two resulting equations, we get
dq (t )
i (t ) (3.12a)
dt
di(t ) 1 R 1
q (t ) i (t ) v (t ) (3.12b)
dt LC L L
3. These equations are the state equations and can be solved simultaneously for the state variables,
q(t) and i(t), using the Laplace transform, if we know the initial conditions for q(t) and i(t) and if we
know v(t), the input.
4. From these two state variables, we can solve for all other network variables. For example, the
voltage across the inductor can be written in terms of the solved state variables and the input as
1
v L (t ) v(t ) Ri(t ) q (t ) (3.13b)
C
Equation (3.13) is an output equation; we say that vL(t) is a linear combination of the state variables,
q(t) and i(t), and the input, v(t).
5. The combined state equations (3.12) and the output equation (3.13b) form a viable representation
of the network, which we call a state-space representation.
Another choice of two state variables can be made, for example, vR(t) and vC(t), the resistor and
capacitor voltage, respectively. The resulting set of simultaneous, first-order differential equations
follows:
dv R (t ) R R R
v R (t ) vC (t ) v(t ) (3.14a)
dt L L L
dvC (t ) 1
v R (t ) (3.14b)
dt RC
Again, these differential equations can be solved for the state variables if we know the initial
conditions along with v(t). Further, all other network variables can be found as a linear combination
of these state variables.
Is there a restriction on the choice of state variables? Yes! Typically, the minimum number of state
variables required to describe a system equals the order of the differential equation. Thus, a second-
order system requires a minimum of two state variables to describe it.
We can define more state variables than the minimal set; however, within this minimal set the state
variables must be linearly independent. For example, if vR(t) is chosen as a state variable, then i(t)
cannot be chosen, because vR(t) can be written as a linear combination of i(t), namely vR(t)=Ri(t).
Under these circumstances we say that the state variables are linearly dependent. State variables
must be linearly independent; that is, no state variable can be written as a linear combination of the
other state variables, or else we would not have enough information to solve for all other system
variables, and we could even have trouble writing the simultaneous equations themselves.
The state and output equations can be written in vector-matrix form if the system is linear. Thus,
Eq. (3.12), the state equations, can be written as
dx (t )
x (t ) Ax (t ) Bu(t ) (3.15)
dt
dq (t )
q(t ) dx (t ) dt 0 1 0
Where, x (t ) ;
x (t ) di (t ) ; u (t ) v ( t ) ; A 1 R ; B 1
i (t ) dt LC
L L
dt
Equation (3.13), the output equation, can be written as
y (t ) Cx (t ) Du(t ) (3.16)
1
Where, y(t ) v L (t ) ; C R ; D 1
C
We call the combination of Eqs. (3.15) and (3.16) a state-space representation of the network of
Figure 3.2. A state-space representation, therefore, consists of (1) the simultaneous, first-order
differential equations from which the state variables can be solved and (2) the algebraic output
equation from which all other system variables can be found. A state-space representation is not
unique, since a different choice of state variables leads to a different representation of the same
system.
Linear Independence: A set of variables is said to be linearly independent if none of the variables
can be written as a linear combination of the others.
For example, given x1, x2, and x3, if x2=5x1+6x3, then the variables are not linearly independent,
since one of them can be written as a linear combination of the other two.
Now, what must be true so that one variable cannot be written as a linear combination of the other
variables?
Consider the example K2x2=K1x1+K3x3. If no xi=0, then any xi can be written as a linear combination
of other variables, unless all Ki=0. Formally, then, variables xi, for i=1 to n, are said to be linearly
independent if their linear combination, S, equals zero only if every Ki=0 and no xi=0 for all t 0.
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 Space: The n-dimensional space whose axes are the state variables.
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.
Now that the definitions have been formally stated, we define the state-space representation of a
system. A system is represented in state space by the following equations:
dx (t )
x (t ) Ax (t ) Bu(t ) (3.18)
dt
y (t ) Cx (t ) Du(t ) (3.19)
For t t0 and initial conditions. x(t0), where
x(t): State vector (xRn i.e. n-dimensional state vector)
y(t): Output vector (yRm i.e. m-dimensional output vector)
u(t): Input or control vector (uRr i.e. r-dimensional input or control vector)
A: System or plant parameter matrix (an nn system or plant parameter matrix)
B: Input or control matrix (an nr input or control matrix)
C: Output matrix (an mn output parameter matrix)
D: Feed forward Matrix (an mr feed forward parameter matrix)
x1 (t ) u1 (t ) y1 (t )
x (t ) u (t ) y (t ) a11 a12 ....... a1n
2 2 2 a
21 a 22 ....... a 2 n
... ... ...
x (t ) ; u(t ) y (t ) ; A ... ... ....... ... ;
... ... ...
... ... ... ... ... ....... ...
a n1 a n 2 ....... a nn
x n (t ) u r (t ) y m (t )
b11 b12 ....... b1r c11 c12 ....... c1n d11 d12 ....... d1r
b
21 b22 ....... b2r c
21 c 22 ....... c 2n d
21 d 22 ....... d 2r
B ... ... ....... ... ; C ... ... ....... ... ; D ... ... ....... ...
... ... ....... ... ... ... ....... ... ... ... ....... ...
bn1 bn 2 ....... bnr c m1 cm2 ....... c mn d m1 d m2 ....... d mr
The parameters (elements) aij, bij, cij, and dij of the matrices A, B, C, and D are constant for the
linear-time-invariant (LTI) system. If A is a constant parameter matrix and no input is applied
(u=0), the state equation represents a homogeneous or autonomous linear system. On the other
hand if input is applied (u0), the system is said to be non-homogeneous.
Equation (3.18) is called the state equation, and the vector x, the state vector, contains the state
variables. Equation (3.18) can be solved for the state variables. Equation (3.19) is called the output
equation. This equation is used to calculate any other system variables. This representation of a
system provides complete knowledge of all variables of the system at any t t0.
Equations (3.18) may be expressed in terms of n first-order differential equations as follows:
x1 (t ) a11 x1 (t ) a12 x1 (t ) ... a1n x n (t ) b11u1 (t ) b12u1 (t ) .... b1r u r (t )
x 2 (t ) a 21 x1 (t ) a 22 x1 (t ) ... a 2n x n (t ) b21u1 (t ) b22 u1 (t ) .... b2r u r (t )
………………
…………….
x n (t ) a n1 x1 (t ) a n 2 x1 (t ) ... a nn x n (t ) bn1u1 (t ) bn 2 u1 (t ) .... bnr u r (t )
The m outputs of the system at time t. may be expressed as linear combination of input and state
variables as follows:
Prepared by: Dr. Mohammad Abdul Mannan Page 6 of 27
Chapter 3 Modeling in the Time Domain
The Du(t) in Eq. (3.19) indicates a direct coupling of the input to the output of the system. Since
this type of direct coupling of the input to the output is rare, the system may described the following
equations:
x (t ) Ax (t ) Bu(t ) (3.18a)
y (t ) Cx (t ) (3.19a)
The system (3.18) and (3.19) represent a multi-input and multi-output (MIMO) system. The
structure of a MIMO system is shown in the following figure.
Often the systems have single-input and single-output (SISO). The state variable representation of
SISO system becomes:
x (t ) Ax (t ) bu (t ) (3.18b)
y (t ) cx (t ) (3.19b)
Where, the input u(t) and output y(t) are scalars, and b and c are n-dimensional vectors.
To obtain the internal states, that is the state variables, integrators could be employed in the system
structure. The number of integrators involved in the system would be equal to the number of state
variables. The time domain state variables representation of a MIMO and SISO system is shown in
the following figure.
The initial conditions can be easily incorporated in the state model, whereas transfer
functions are defined for zero initial conditions.
Unlike transfer functions the system model includes the internal states variables as
well.
It allows us to design a system with an optimal performance.
The state model provides a time domain solution, which is of ultimate interest in
many situations.
The state variable formulation in terms of matrix/vector modeling is very efficient
from a computational standpoint.
In view of the mathematical elegance also the state variable method has been
adapted for analysis and design.
Example 3.1: Given the electrical network of Figure 3.5, find a state-space representation if the
output is the current through the resistor.
Solution: The following steps will yield a viable representation of the network in state space.
Step 1: Label all of the branch currents in the network. These include iL, iR, and iC, as shown in
Figure 3.5.
Step 2: Select the state variables by writing the derivative equation for all energy-storage elements,
that is, the inductor and the capacitor. Thus,
dv
C C iC (3.22)
dt
di
L L vL (3.23)
dt
From Eqs. (3.22) and (3.23), choose the state variables as the quantities that are differentiated,
namely vC and iL. Using Eq. (3.20) as a guide, we see that the state-space representation is complete
if the right-hand sides of Eqs. (3.22) and (3.23) can be written as linear combinations of the state
variables and the input.
Since iC and vL are not state variables, our next step is to express iC and vL as linear combinations of
Prepared by: Dr. Mohammad Abdul Mannan Page 8 of 27
Chapter 3 Modeling in the Time Domain
Step 3: Apply network theory, such as Kirchhoff’s voltage and current laws, to obtain iC and vL in
terms of the state variables, vC and iL. At Node 1,
1
iC i R i L vC i L (3.24)
R
which yields iC in terms of the state variables, vC and iL.
Around the outer loop,
v L vC v(t ) (3.25)
which yields vL in terms of the state variable, vC, and the source, v(t).
Step 4: Substitute the results of Eqs. (3.24) and (3.25) into Eqs. (3.22) and (3.23) to obtain the
following state equations:
dv 1
C C vC i L (3.26a)
dt R
di
L L vC v (t ) (3.26b)
dt
or
dvC 1 1
vC i L (3.27a)
dt RC C
di L 1 1
vC v (t ) (3.27b)
dt L L
Example 3.2: Find the state and output equations for the electrical network shown in Figure 3.6 if
the output vector is y=[vR2 iR2]T, where T means transpose.
Solution: Immediately notice that this network has a voltage-dependent current source.
Step 1 Label all of the branch currents on the network, as shown in Figure 3.6.
Step 2 Select the state variables by listing the voltage-current relationships for all of the energy-
storage elements:
di
L L vL (3.30a)
dt
Prepared by: Dr. Mohammad Abdul Mannan Page 9 of 27
Chapter 3 Modeling in the Time Domain
dvC
C iC (3.30b)
dt
From Eqs. (3.30) select the state variables to be the differentiated variables. Thus, the state
variables, x1 and x2, are
x1 i L ; x 2 vC (3.31)
But at Node 2, i R 2 iC 4v L . Substituting this relationship for iR2 into Eq. (3.33) yields
v L vC iC 4v L R2 (3.34)
Notice that since vC is a state variable, we only need to find iC in terms of the state variables. We
will then have obtained vL in terms of the state variables.
where vR1=vL. Equations (3.35) and (3.36) are two equations relating vL and iC in terms of the state
variables iL and vC. Rewriting Eqs. (3.35) and (3.36), we obtain two simultaneous equations
yielding vL and iC as linear combinations of the state variables iL and vC:
1 4 R2 v L R2 iC vC (3.37a)
1
v L iC i L i (t ) (3.37b)
R1
1
vL R2 i L vC R2 i(t ) (3.38)
And
1 1
iC 1 4 R2 i L vC 1 4 R2 i (t ) (3.39)
R1
Where
R2
1 4 R2 (3.40)
R1
Substituting Eqs. (3.38) and (3.39) into (3.30), simplifying, and writing the result in vector-matrix
form renders the following state equation:
R2 1 R2
iL L i
L L L i (t )
1 4 R2 (3.41)
vC 1 4 R2
1
vC
C R1C C
Step 4 Derive the output equation. Since the specified output variables are vR2 and iR2, we note that
around the mesh containing C, L, and R2,
v R 2 v C v L (3.42a)
i R2 iC 4v L (3.42b)
Substituting Eqs. (3.38) and (3.39) into Eq. (3.42), vR2 and iR2 are obtained as linear combinations of
the state variables, iL and vC. In vector-matrix form, the output equation is
R2 1 R2
1
v
R2 i L
i 1
1 4 R2 vC 1
i (t ) (3.43)
R2
R1
Example 3.3: Find the state equations for the translationalmechanical system shown in Figure 3.7.
Solution: First write the differential equations for the network in Figure 3.7, using the methods of
Laplace-transformed equations of motion. Next take the inverse Laplace transform of these
equations, assuming zero initial conditions, and obtain
d 2 x1 dx
M1 D 1 Kx1 Kx2 0 (3.44)
dt 2 dt
d 2 x2
Kx1 M 2 Kx 2 f (t ) (3.45)
dt 2
Now let
dx1 dx2 d 2 x1 dv1 d 2 x 2 dv 2
v1 ; v2 ; ;
dt dt dt 2 dt dt 2 dt
and then select x1, v1, x2, and v2 as state variables. Next form two of the state equations by solving
Eq. (3.44) for dv1/dt and Eq. (3.45) for dv2/dt.
Finally, add dx1/dt= v1 and dx2/dt= v2 to complete the set of state equations. Hence,
dx1
v1 (3.46a)
dt
dv1 K D K
x1 v1 x2 (3.46b)
dt M1 M1 M1
dx 2
v2 (3.46c)
dt
dv2 K K 1
x1 x2 f (t ) (3.46d)
dt M2 M2 M2
In vector-matrix form,
0 1 0 0 0
x1 K D K x1
v 0
v 0
1 M M M 1
1 1 1 f (t ) (3.47)
x 2 0 0 0 1 x 2 0
K K 1
v2 M 0 0 v2
2 M 2
M2
where the dot indicates differentiation with respect to time.
What is the output equation if the output are x1(t) and x2(t)?
x1
x1 1 0 0 0 v1
x 0 0 1 0 x (3.47a)
2 2
v2
Example 4.11: Given the system represented in state space by Eqs. (4.99),
0 1 0 0
x 0 0 1 x 0 e t
(4.99a)
24 26 9 1
y 1 1 0x (4.99b)
1
x 0 0 (4.99c)
2
do the following:
(a) Solve the preceding state equation and obtain the output for the given exponential input.
(b) Find the eigenvalues and the system poles.
Solution:
(a) We will solve the problem by finding the component parts of Eq. (4.96), followed by
substitution into Eq. (4.97). First obtain A and B by comparing Eq. (4.99a) to Eq. (4.92). Since
s 1 0
sI A 0 s 1
(4.101)
24 26 s 9
and
s 2 9 s 26 s9 1
1
sI A1 3 24 s 2 9s s (4.102)
s 9s 2 26 s 24
24 s 26s 24 s 2
Since U(s) (the Laplace transform for e-t) is 1=(s + 1); X(s) can be calculated. From Eq. (4.96b) as
X 1 (s ) s 2 9 s 26 s9 1 1 0
1 2 1
X (s ) X 2 ( s ) 24 s 9s s 0 0 (4.103)
s 3
9 s 2
26 s 24 2 s 1
X 3 ( s) 24s 26s 24 s 2 1
s 3 10s 2 37s 29
X 1 ( s) (4.104a)
( s 1)(s 2)(s 3)(s 4)
2 s 2 21s 24
X 2 (s) (4.104b)
( s 1)(s 2)(s 3)(s 4)
s(2 s 2 21s 24)
X 3 ( s) (4.104c)
(s 1)(s 2)(s 3)(s 4)
The output equation is found from Eq. (4.99b). Performing the indicated addition yields
X 1 (s)
Y (s ) 1 1 0 X 2 ( s) X 1 (s) X 2 ( s) (4.105)
X 3 ( s)
or
( s 3 12s 2 16s 5) 6.5 19 11.5
Y (s) (4.106)
( s 1)(s 2)(s 3)(s 4) s 2 s 3 s 4
where the pole at -1 canceled a zero at -1. Taking the inverse Laplace transform,
y (t ) 6.5e 2t 19e 3t 11.5e 4t (4.107)
(b) The denominator of Eq. (4.102), which is det(sI-A), is also the denominator of the system’s
transfer function. Thus, det(sI-A)= 0 furnishes both the poles of the system and the eigenvalues:
-2, -3, and -4.
Where the dummy variable has been used in the integral to avoid confusion with t.
Comparing Eq. (3.18.8) with Eq. (3.18.2), we recognize that e-At is inverse Laplace transform of (sI-
A)-1. Similarly, the inverse Laplace transform of the second terms on the right-hand-side of Eq.
(3.18.2) is recognized as the convolution integral in Eq. (3.18.8).
Since
Prepared by: Dr. Mohammad Abdul Mannan Page 14 of 27
Chapter 3 Modeling in the Time Domain
adjsI A
L 1 sI A-1 L 1 (t )
det sI A
(4.111)
each term of (t ) would be the sum of exponentials generated by the system’s poles.
Example 4.12: For the state equation and initial state vector shown in Eqs. (4.112), where u(t) is a
unit step, find the state-transition matrix and then solve for x(t).
0 1 0
x x u (t ) (4.112a)
8 6 1
1
x 0 (4.112b)
0
s 0 0 1 s 1
sI A
0 s 8 6 8 s 6
det sI A s 2 6 s 8 ( s 2)(s 4) 0 from which the poles or eigenvalues are -2 and -4.
Since each term of the state-transition matrix is the sum of responses generated by the poles or
eigenvalues, we assume a state-transition matrix of the form:
K e 2t K 2 e 4t K 3 e 2t K 4 e 4t
(t ) 1 2t (4.114)
K 5 e K 6 e 4t K 7 e 2t K 8 e 4t
The derivative of state-transition matrix is
2t
(t ) 2 K1e 4 K 2 e 4t 2 K 3e 2t 4 K 4 e 4t
2t (4.114.1)
2 K 5 e 4 K 6 e 4t 2 K 7 e 2t 4 K 8 e 4t
We know,
K K2 K3 K4 1 0
(0) 1 I (4.115)
K 5 K 6 K 7 K 8 0 1
And
(0) 2 K1 4 K 2 2 K 3 4 K 4 A 0 1
(4.117)
2 K 4 K
5 6 2K 7 4 K8 8 6
2 K1 4 K 2 0 (4.118a)
2K 3 4 K 4 1 (4.118b)
2 K 5 4 K 6 8 (4.118c)
2 K 7 4 K 8 6 (4.118d)
1 2(t ) 1 4(t )
2e 2(t ) e 4(t ) e e 0
(t ) B 2 2
2(t ) 4 ( t ) 2 ( t ) 4(t ) 1
4 e 4e e 2 e
1 2(t ) 1 4(t )
e e
(t ) B 2 2 (4.120)
2 ( t ) 4(t )
e 2e
1 2t 1 4t
2e 2t e 4t e e 1
(t ) x 0 2 2
2t 4t 2t 4t 0
4e 4e e 2e
2e 2 t e 4 t
(t ) x 0 2t (4.121)
4e 4e 4t
1 2t t 2 1 t 4
t 2 e e d e 4 t e d
0 2 0
0
(t ) Bu( )d
e 2t
t 2
e d 2e 4 t
t 4
e d
0 0
1 1 2t 1 4t
t e e
(t ) Bu( )d 8 4 8
0
1 1
e 2t e 4t
(4.122)
2 2
1 1 2t 1 4t
t 2e 2t e 4t 8 4 e e
8
x (t ) (t ) x (t 0 )
t0
(t ) Bu( ) d
4e
2t
4e
4t 1 2t 1 4t
e e
2 2
1 7 2t 7 4t
e e
x (t ) 8 4 8 (4.123)
7 2t 7 4t
e e
2 2
Prepared by: Dr. Mohammad Abdul Mannan Page 16 of 27
Chapter 3 Modeling in the Time Domain
Example 4.13: Find the state-transition matrix of Example 4.12, using (sI-A)-1.
s 0 0 1 s 1
sI A
0 s 8 6 8 s 6
from which
s6 1
1 s 6 1 s 2 s 4 s 2 s 4
sI A1 2
8 s
(4.125)
s 6s 8 8 s
s 2 s 4 s 2 s 4
Expanding each term in the matrix on the right by partial fractions yields
2 1 1/ 2 1/ 2
sI A1 s42 s 4 4 s12 s 2 4 (4.126)
s 2 s 4 s 2 s 4
(a)
(b)
Now, let
dx1 t
x1 t x2 (3.48.7a)
dt
dx 2 t d 2 x1 t
x 2 t x3 (3.48.7b)
dt dt 2
dx3 t d 3 x1 t
x 3 t x4 (3.48.7c)
dt dt 3
…………………………….
…………………………….
…………………………….
dxn 2 t d n 2 x1 t
x n 2 t xn 1 (3.48.7d)
dt dt n 2
dxn 1 t d n 1 x1 t
x n 1 t xn (3.48.7e)
dt dt n 1
dxn t d n x1 t
x n t (3.48.7e)
dt dt n
x1 0 1 0 .... 0 0 x1 0
x 0 0 1 .... 0 0 x2 0
2
x3 0 0 0 .... .... .... x3 0
u (t ) (3.48.10)
.... .... .... .... .... .... .... .... ....
x n 1 0 0 0 .... 0 1 xn 1 0
x n a 0 a1 a2 .... an 2 an 1 xn 1
(a)
(b)
Figure 3.11.2 shows the decomposing of transfer function (3.48.15). According to Figure 3.11.2 and
the expressions of Eqs. (3.48.10) and (3.48.14) we have
x1 0 1 0 .... 0 0 x1 0
x 0 0 1 .... 0 0 x2 0
2
x 3 0 0 0 .... .... .... x3 0
u (t ) (3.48.16)
.... .... .... .... .... .... .... .... ....
x n 1 0 0 0 .... 0 1 xn 1 0
x n a0 a1 a2 .... an 2 an 1 xn b0
x1 (t )
x (t )
2
.....
y (t ) 1 0 ... 0 0 ... 0 xm (t ) (3.48.17)
xm 1 (t )
....
x (t )
n
Example 3.4: Find the state-space representation in phase-variable form for the transfer function
shown in Figure 3.10(a).
Solution:
Step 1 Find the associated differential equation. Since
C s Y s 24
G ( s) (3.54)
Rs U s s 3 9s 2 26s 24
cross-multiplying yields
s 3 9s 2 26s 24C(s) 24Rs (3.55)
The corresponding differential equation is found by taking the inverse Laplace transform, assuming
zero initial conditions:
d 3 c(t ) d 2 c(t )
dc(t )
9 24c(t ) 24r t
26 (3.56)
3 2 dt
dt dt
Step 2 Select the state variables.
Choosing the state variables as successive derivatives, we get
x1 (t ) c(t ) (3.57a)
dc(t )
x2 (t ) (3.57b)
dt
d 2 c(t )
x3 (t ) (3.57c)
dt 2
dx3 (t ) d 3 c(t )
(3.57d)
dt dt 3
Differentiating both sides and making use of Eq. (3.57) to find dx1/dt and dx2/dt, and Eq. (3.56) to
find d3c/dt3=dx3/dt, we obtain the state equations. Since the output is c=x1, the combined state and
output equations are
dx1 (t )
x1 (t ) x2 (t ) (3.58a)
dt
dx2 (t )
x 2 (t ) x3 (t ) (3.58b)
dt
dx3 (t )
x3 (t ) 24x1 (t ) 26x2 (t ) 9 x3 (t ) 24r (t ) (3.58c)
dt
y c x1 (t ) (3.58d)
Figure 3.10 (a) Transfer function; (b) equivalent block diagram showing phase variables where
y(t)=c(t).
In vector-matrix form,
x1 (t ) 0 1 0 x1 (t ) 0
x (t ) 0 0 1 x2 (t ) 0 r (t )
2 (3.59a)
x3 (t ) 24 26 9 x3 (t ) 24
x1 (t )
y (t ) 1 0 0 x2 (t ) (3.59b)
x3 (t )
At this point, we can create an equivalent block diagram of the system of Figure 3.10(a) to help
visualize the state variables. We draw three integral blocks as shown in Figure 3.10(b) and label
each output as one of the state variables, xi(t), as shown. Since the input to each integrator is
xi(t),use Eqs.(3.58a),(3.58b),and(3.58c)to determine the combination of input signals to each
integrator. Form and label each input.
Finally, use Eq. (3.58d) to form and label the output, y(t)=c(t). The final result of Figure 3.10(b) is a
Prepared by: Dr. Mohammad Abdul Mannan Page 21 of 27
Chapter 3 Modeling in the Time Domain
system equivalent to Figure 3.10(a) that explicitly shows the state variables and gives a vivid
picture of the state-space representation.
Example 3.5: Find the state-space representation of the transfer function shown in Figure 3.12(a).
Figure 3.12 (a) Transfer function; (b) decomposed transfer function; (c) equivalent block diagram.
Where, y(t)=c(t).
Solution:
Step 1 Separate the system into two cascaded blocks, as shown in Figure 3.12(b). The first block
contains the denominator and the second block contains the numerator.
Step 2 Find 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
x1 (t ) 0 1 0 x1 (t ) 0
x (t ) 0 0 1 x2 (t ) 0 r (t )
2 (3.63)
x3 (t ) 24 26 9 x3 (t ) 1
Step 3 Introduce the effect of the block with the numerator. The second block of Figure 3.12(b),
where b2=1; b1=7, and b0=2, states that
C s s 2 7s 2 X 1 s (3.64)
Taking the inverse Laplace transform with zero initial conditions, we get
ct x1 t 7 x1 t 2 x1 t (3.65)
But
x1 (t ) x2 (t )
x1 (t ) x 2 (t ) x3 (t )
Hence
y t ct x3 t 7 x2 t 2 x1 t (3.66)
Thus, the last box of Figure 3.11(b) ‘‘collects’’ the states and generates the output
equation. From Eq. (3.66),
x1 (t )
y t 2 7 1 x2 (t ) (3.67)
x3 (t )
Although the second block of Figure 3.12(b) shows differentiation, this block was implemented
without differentiation because of the partitioning that was applied to the transfer function. The last
block simply collected derivatives that were already formed by the first block.
Once again we can produce an equivalent block diagram that vividly represents our state-space
model. The first block of Figure 3.12(b) is the same as Figure 3.10(a) except for the different
constant in the numerator. Thus, in Figure 3.12(c) we reproduce Figure 3.10(b) except for the
change in the numerator constant which appears as a change in the input multiplying factor. The
second block of Figure 3.12(b) is represented using Eq. (3.66), which forms the output from a linear
combination of the state variables, as shown in Figure 3.12(c).
Example 3.6: Given the system defined by Eq. (3.74), find the transfer function, T(s) = Y(s)/U(s),
where U(s) is the input and Y(s) is the output.
0 1 0 10
x 0 0 1 x 0 u (t )
(3.74a)
1 2 3 0
yt 1 0 0x (3.74b)
Solution:
1 0 0 0 1 0 s 1 0
sI - A s 0 1 0 0 0 1 0 s 1 (3.75)
0 0 1 1 2 3 1 2 s 3
s 2 3s 2 s 3 0
adjsI - A 1 s ( s 3) s
s ( 2 s 1) s 2
The numerator polynomial is obtained as
P ( s ) C adjsI - A B
s 2 3s 2 s3 0 10
P ( s ) 1 0 0 1 s ( s 3)
s 0 10 s 2 3s 2
s ( 2 s 1) s 2 0
The transfer function may now be written as
T ( s)
Y ( s)
G ( s)
P (s)
10 s 2 3s 2 (3.77)
U ( s) Q ( s ) s 3 3s 2 2 s 1
s 2 3s 2 1 s2
2
adjsI - A s 1 s 3s 1 1
s3 s2 s 4 s 4
2
Linearization
Example 3.7: First represent the simple pendulum shown in Figure 3.14(a) (which could be a
simple model for the leg of the robot shown in Figure 3.13) in state space: Mg is the weight, T is an
applied torque in the direction, and L is the length of the pendulum. Assume the mass is evenly
distributed, with the center of mass at L/2. Then linearize the state equations about the pendulum’s
equilibrium point—the vertical position with zero angular velocity.
Solution:
First draw a free-body diagram as shown in Figure 3.14(c). Summing the torques, we get
d 2 MgL
J sin T (3.79)
dt 2 2
Where, J is the momment of innertia of the pendulum around the joint of rotation. Select the state
variables x1 and x2 as phase variables. Letting
x1
And
d dx1
x2 x1
dt dt
We write the state equation as
x1 x 2 (3.80a)
d 2 MgL T
x 2 sin x1 (3.80b)
dt 2 2J J
Thus, we have represented a nonlinear system in state space. It is interesting to note that the
nonlinear Eq. (3.80) represent a valid and complete model of the pendulum in state space even
under nonzero initial conditions and even if parameters are time varying. However, if we want to
apply classical techniques and convert these state equations to a transfer function, we must linearize
them.
Figure 3.14 (a) Simple pendulum; (b) force components of Mg; (c) free-body diagram
Let us proceed now to linearize the equation about the equilibrium point, x1=0; x2=0, that is, =0
and d/dt=0. Let x1 and x2 be perturbed about the equilibrium point, or
x1 0 x1 (3.81a)
x 2 0 x 2 (3.81a)
Using Eq. (2.182), we have
d (sin x1 )
sin x1 sin 0 x1 x1 (3.82)
dx1 x 0
1
From which
sinx1 x1 (3.83)
Substituting Eqs. (3.81) and (3.83) into Eq. (3.80) yields the following state
equations:
x1 x 2 (3.84a)
MgL T
x 2 x1 (3.84b)
2J J
which are linear and a good approximation to Eq. (3.80) for small excursions away from the
equilibrium point. What is the output equation?
References
[1] Norman S. Nise, “Control Systems Engineering,” Sixth Edition, John Wiley and Sons, Inc,
2011.