The state equations of a linear system are N simultaneous linear differential equations of the first order. We studied the techniques of solving linear differential equations in Chs. 2 and 4. The same techniques can be applied to state equations without any modification. However, it is more convenient to carry out the solution in the framework of matrix notation.
These equations can be solved in both the time and frequency domains (Laplace transform). The latter is relatively easier to deal with than the time-domain solution. For this reason, we shall first consider the Laplace transform solution.
Equation (10.29) gives the desired solution. Observe the two components of the solution. The first component yields q(t) when the input x(t) = 0. Hence, the first component is the zero-input response. In a similar manner, we see that the second component is the zero-state response.
EXAMPLE 10.6 Laplace Transform Solution to State Equations
Using the Laplace transform, find the state vector q(t) for the system whose state equation is given by
q˙ = Aq+Bx
where
A=[−12−3632−1]B=[311]x(t)=u(t)
and the initial conditions are q1(0) = 2, q2(0) = 1.
The zero-state response [i.e., the response Y(s) when q(0) = 0] is given by
Y(s)=[CΦ(s)B+D]X(s)
Note that the transfer function of a system is defined under the zero-state condition [see Eq. (4.19)]. The matrix C(s)B + D is the transfer function matrixH(s) of the system, which relates the responses y1, y2, … , yk to the inputs x1, x2, … , xj:
H(s)=CΦ(s)B+D(10.31)
and the zero-state response is
Y(s)=H(s)X(s)
The matrix H(s) is a k × j matrix (k is the number of outputs and j is the number of inputs). The ijth element Hij(s) of H(s) is the transfer function that relates the output yi(t) to the input xj(t).
EXAMPLE 10.7 Transfer Function Matrix from State-Space Description
Remember that the ijth element of the transfer function matrix in Eq. (10.34) represents the transfer function that relates the output yi(t) to the input xj(t). For instance, the transfer function that relates the output y3 to the input x2 is H32(s), where
H32(s)=(s+1)(s+2)s2+5s+2
We can readily verify the transfer function matrix using MATLAB and its symbolic toolbox functions.
A = [0 1;-2 -3]; B = [1 0;1 1]; >> C = [1 0;1 1;0 2]; D = [0 0;1 0;0 1]; >> syms s; H = collect(simplify(C*inv(s*eye(2)-A)*B+D)) H = [ (s + 4)/(s^2 + 3*s + 2), 1/(s^2 + 3*s + 2)] [ (s + 4)/(s + 2), 1/(s + 2)] [ (2*s - 4)/(s^2 + 3*s + 2), (s^2 + 5*s + 2)/(s^2 + 3*s + 2)]
Transfer functions relating particular inputs to particular outputs, such as H32(s), can be obtained using the ss2tf and tf functions.
It is interesting to observe that the denominator of every transfer function in Eq. (10.34) is (s + 1)(s + 2) except for H21(s) and H22(s), where the factor (s + 1) is canceled. This is no coincidence. We see that the denominator of every element of (s) is |sI − A| because (s) = (sI − A)−1, and the inverse of a matrix has its determinant in the denominator. Since C, B, and D are matrices with constant elements, we see from Eq. (10.31) that the denominator of (s) will also be the denominator of H(s). Hence, the denominator of every element of H(s) is |sI − A|, except for the possible cancellation of the common factors mentioned earlier. In other words, the zeros of the polynomial |sI− A| are also the poles of all transfer functions of the system. Therefore, the zeros of the polynomial |sI−A| are the characteristic roots of the system. Hence, the characteristic roots of the system are the roots of the equation
∣sI−A∣=0(10.35)
Since |sI − A| is an Nth-order polynomial in s with N zeros λ1, λ2, … , λN, we can write Eq. (10.35) as
Equation (10.35) is known as the characteristic equation of the matrixA, and λ1, λ2, … , λ*N* are the characteristic roots of A. The term eigenvalue, meaning “characteristic value” in German, is also commonly used in the literature. Thus, we have shown that the characteristic roots of a system are the eigenvalues (characteristic values) of the matrix A.
At this point, the reader will recall that if λ1, λ2, … , λ*N* are the poles of the transfer function, then the zero-input response is of the form
y0(t)=c1eλ1t+c2eλ2t+⋯+cNeλNt
(10.36)
This fact is also obvious from Eq. (10.30). The denominator of every element of the zero-input response matrix C(s)q(0) is |sI−A| =(s−λ1)(s−λ2)···(s−λN). Therefore, the partial fraction expansion and the subsequent inverse Laplace transform will yield a zero-input component of the form in Eq. (10.36).
We now show that the solution of the vector differential Eq. (10.37) is
q(t)=eAtq(0)+∫0teA(t−τ)Bx(τ)dτ
Before proceeding further, we must define the matrix exponential e**A**t . An exponential of a matrix is defined by an infinite series identical to that used in defining an exponential of a scalar. We shall define
We can show that the infinite series in Eq. (10.38) is absolutely and uniformly convergent for all values of t. Consequently, it can be differentiated or integrated term by term. Thus, to find (d/dt)eA*t* , we differentiate the series on the right-hand side of Eq. (10.38) term by term:
dtdeAt=A+A2t+2!A3t2+3!A4t3+⋯
\n
=A[I+At+2!A2t2+3!A3t3+⋯]=AeAt
\n
=[I+At+2!A2t2+3!A3t3+⋯+⋯]A=eAtA
Hence,
dtdeAt=AeAt=eAtA
Also note that from Eq. (10.38), it follows that
e0=I
where I is just the identity matrix. If we premultiply or postmultiply the infinite series for eA*t* [Eq. (10.38)] by an infinite series for e−A*t* , we find that
(e−At)(eAt)=(eAt)(e−At)=I
\n(10.39)
In Sec. 10.1-1, we showed that
dtd(UV)=dtdUV+UdtdV
Using this relationship, we observe that
dtd[e−Atq]=(dtde−At)q+e−Atq˙=−e−AtAq+e−Atq˙
(10.40)
We now premultiply both sides of Eq. (10.37) by e−A*t* to yield
e−Atq˙=e−AtAq+e−AtBx
or
−e−AtAq+e−Atq˙=e−AtBx
Substituting this result into Eq. (10.40) yields
dtd[e−Atq]=e−AtBx
The integration of both sides of this equation from 0 to t yields
e−Atq0t=∫0te−AτBx(τ)dτ
or
e−Atq(t)−q(0)=∫0te−AτBx(τ)dτ
Hence,
e−Atq=q(0)+∫0te−AτBx(τ)dτ
Premultiplying this result by eA*t* and using Eq. (10.39), we have
q(t)=ZIReAtq(0)+ZSR∫0teA(t−τ)Bx(τ)dτ
(10.41)
This is the desired solution. The first term on the right-hand side represents q(t) when the input x(t) = 0. Hence, it is the zero-input component. The second term, by a similar argument, is seen to be the zero-state component.
The results of Eq. (10.41) can be expressed more conveniently in terms of the matrix convolution. We can define the convolution of two matrices in a manner similar to the multiplication of two matrices, except that the multiplication of two elements is replaced by their convolution. For example,
By using this definition of matrix convolution, we can express Eq. (10.41) as
q(t)=eAtq(0)+eAt∗Bx(t)
\n(10.42)
Note that the limits of the convolution integral [Eq. (10.41)] are from 0 to t. Hence, all the elements of eA*t* in the convolution term of Eq. (10.42) are implicitly assumed to be multiplied by u(t).
The result of Eqs. (10.41) and (10.42) can be easily generalized for any initial value of t. It is left as an exercise for the reader to show that the solution of the state equation can be expressed as
q(t)=eA(t−t0)q(t0)+∫t0teA(t−τ)Bx(τ)dτ
DETERMINING eAt
The exponential e**At required in Eqs. (10.41) and (10.42) can be computed from the definition in Eq. (10.38). Unfortunately, this is an infinite series, and its computation can be quite laborious. Moreover, we may not be able to recognize the closed-form expression for the answer. There are several efficient methods of determining eA**t in closed form. It was shown in Sec. 10.1-3 that for an N ×N matrix A,
and λ1,λ2,…,λ*N* are the N characteristic values (eigenvalues) of A.
We can also determine eA*t* by comparing Eqs. (10.41) and (10.29). It is clear that
eAt=L−1[Φ(s)]=L−1[(sI−A)−1]
\n(10.44)
Thus, eA*t* and (s) are a Laplace transform pair. To be consistent with Laplace transform notation, eA*t* is often denoted by φ(t), the state transition matrix (STM):
eAt=φ(t)
EXAMPLE 10.8 Time-Domain Method to Solve State Equations
Use the time-domain method to solve Ex. 10.6.
For this case, the characteristic roots are given by
Note again the presence of the term u(t) in every element of eA*t* . This is the case because the limits of the convolution integral run from 0 to t [Eq. (10.41)]. Thus,
This result confirms the solution obtained by using the frequency-domain method [see Ex. 10.6]. Once the state variables q1 and q2 have been found for t≥0, all the remaining variables can be determined from the output equation.
THE OUTPUT
The output equation is given by
y(t)=Cq(t)+Dx(t)
The substitution of the solution for q [Eq. (10.42)] in this equation yields
y(t)=C[eAtq(0)+eAt∗Bx(t)]+Dx(t)
Since the elements of B are constants,
eAt∗Bx(t)=eAtB∗x(t)
938 CHAPTER 10 STATE-SPACE ANALYSIS
With this result, the output equation becomes
y(t)=C[eAtq(0)+eAtB∗x(t)]+Dx(t)
Now recall that the convolution of x(t) with the unit impulse δ(t) yields x(t). Let us define a j × j diagonal matrix δ(t) such that all its diagonal terms are unit impulse functions. It is then obvious that
The zero-state response, that is, the response when q(0) = 0, is
y(t)=[Cϕ(t)B+Dδ(t)]∗x(t)=h(t)∗x(t)
where
h(t)=Cϕ(t)B+Dδ(t)(10.45)
The matrix h(t) is a k × j matrix known as the impulse response matrix. The reason for this designation is obvious. The ijth element of h(t) is hij(t), which represents the zero-state response yi when the input xj(t) = δ(t) and when all other inputs (and all the initial conditions) are zero. Not surprisingly, vectors h(t) and H(s) form a Laplace transform pair,
L[h(t)]=H(s)
EXAMPLE 10.9 State Transition Matrix by Inverse Laplace Transform
For the system described in Ex. 10.7, use Eq. (10.44) to determine e**A**t :
ϕ(t)=eAt=L−1Φ(s)
This problem was solved earlier with frequency-domain techniques. From Eq. (10.33), we have