10.5 LINEAR [TRANSFORMATION OF A](#page-14-0) STATE VECTOR
← Back to LINEAR SYSTEMS AND SIGNALS Overview
10.5 LINEAR TRANSFORMATION OF A STATE VECTOR
In Sec. 10.2 we saw that the state of a system can be specified in several ways. The sets of all possible state variables are related—in other words, if we are given one set of state variables, we should be able to relate it to any other set. We are particularly interested in a linear type of relationship. Let q1,q2,…,qN and w1,w2,…,wN be two different sets of state variables specifying the same system. Let these sets be related by linear equations as
\n
\n
\n
or
| ⎡ w1 w2 ⎢ | ⎤ ⎥ | ⎡ p11 p21 ⎢ | p12 p22 | ··· ··· | ⎤ p1N p2N ⎥ | ⎡ ⎤ q1 q2 ⎢ ⎥ |
|---|---|---|---|---|---|---|
| ⎢ ⎢ ⎣ | ⎥ = ⎥ ⎦ | ⎢ ⎢ ⎣ | ⎥ ⎥ ⎦ | ⎢ ⎥ ⎢ ⎥ ⎣ ⎦ | ||
| wN | pN1 | pN2 | ··· | pNN | qN | |
w | P | q |
Defining the vector w and matrix P as just shown, we obtain the compact matrix representation
and
Thus, the state vector q is transformed into another state vector w through the linear transformation in Eq. (10.46).
If we know w, we can determine q from q = P−1 w, provided P−1 exists. This is equivalent to saying that P is a nonsingular matrix† (|P| = 0). Thus, if P is a nonsingular matrix, the vector w defined by Eq. (10.46) is also a state vector. Consider the state equation of a system
q˙ = Aq+Bx
and
then
If
Hence, the state equation now becomes
q˙ = P−1
w˙
or
= (10.48)
where
Equation (10.48) is a state equation for the same system, but now it is expressed in terms of the state vector w.
† This condition is equivalent to saying that all N equations in Eq. (10.46) are linearly independent; that is, none of the N equations can be expressed as a linear combination of the remaining equations.
The output equation is also modified. Let the original output equation be
In terms of the new state variable w, this equation becomes
(10.50)
EXAMPLE 10.10 Linear Transformation of the State Vector
The state equations of a certain system are given by
Find the state equations for this system when the new state variables w1 and w2 are given as
(10.51)
According to Eq. (10.48), the state equation for the state variable w is given by
where [see Eqs. (10.49) and (10.50)]
and
where
Therefore,
This is the desired state equation for the state vector w. The solution of this equation requires a knowledge of the initial state w(0). This can be obtained from the given initial state q(0) by using Eq. (10.51).
We can obtain the same result with less effort using MATLAB.
>> A = [0 1;-2 -3]; B = [1; 2];>> P = [1 1;1 -1];>> Ahat = P*A*inv(P), Bhat = P*B Ahat = -2 0 3 -1 Bhat = 3 -1INVARIANCE OF EIGENVALUES
We have seen that the poles of all possible transfer functions of a system are the eigenvalues of the matrix A. If we transform a state vector from q to w, the variables w1, w2, … , wN are linear combinations of q1, q2, … , qN and therefore may be considered to be outputs. Hence, the poles of the transfer functions relating w1, w2, … , wN to the various inputs must also be the eigenvalues of matrix A. On the other hand, the system is also specified by Eq. (10.48). This means that the poles of the transfer functions must be the eigenvalues of Aˆ . Therefore, the eigenvalues of matrix A remain unchanged for the linear transformation of variables represented by Eq. (10.46), and the eigenvalues of matrix A and matrix Aˆ (Aˆ = PAP−1 ) are identical, implying that the characteristic equations of A and Aˆ are also identical. This result also can be proved alternately as follows.
Consider the matrix P(sI−A)P−1 . We have
Taking the determinants of both sides, we obtain
The determinants |P| and |P−1 | are reciprocals of each other. Hence,
This is the desired result. We have shown that the characteristic equations of A and Aˆ are identical. Hence, the eigenvalues of A and Aˆ are identical.
In Ex. 10.10, matrix A is given as
The characteristic equation is
Also,
and
This result verifies that the characteristic equations of A and Aˆ are identical.
10.5-1 Diagonalization of Matrix A
For several reasons, it is desirable to make matrix A diagonal. If A is not diagonal, we can transform the state variables such that the resulting matrix Aˆ is diagonal.† One can show that for any diagonal matrix A, the diagonal elements of this matrix must necessarily be λ1, λ2, … , λ*N* (the eigenvalues) of the matrix. Consider the diagonal matrix A:
The characteristic equation is given by
or
The nonzero (diagonal) elements of a diagonal matrix are therefore its eigenvalues λ1, λ2, … , λN. We shall denote the diagonal matrix by the symbol, A:
(10.52)
Let us now consider the transformation of the state vector A such that the resulting matrix Aˆ is a diagonal matrix .
† In this discussion we assume distinct eigenvalues. If the eigenvalues are not distinct, we can reduce the matrix to a modified diagonalized (Jordan) form.
944 CHAPTER 10 STATE-SPACE ANALYSIS
Consider the system
We shall assume that λ1, λ2, … , λN, the eigenvalues of A, are distinct (no repeated roots). Let us transform the state vector q into the new state vector z, using the transformation
Then, after the development of Eq. (10.48), we have
We desire the transformation to be such that PAP−1 is a diagonal matrix given by Eq. (10.52), or
= PAP−1
Hence,
or
We know and A. Equation (10.55) therefore can be solved to determine P.
EXAMPLE 10.11 Diagonal Form of the State Equations
Find the diagonalized form of the state equations for the system in Ex. 10.10.
In this case,
We found λ1 = −1 and λ2 = −2. Hence,
and Eq. (10.55) becomes
Equating the four elements on two sides, we obtain
\n
\n
\n
The reader will immediately recognize that the first two equations are identical and that the last two equations are identical. Hence, two equations may be discarded, leaving us with only two equations [p11 = 2p12 and p21 = p22] and four unknowns. This observation means that there is no unique solution. There is, in fact, an infinite number of solutions. We can assign any value to p11 and p21 to yield one possible solution.† If p11 = k1 and p21 = k2, then we have p12 = k1/2 and p22 = k2:
We may assign any values to k1 and k2. For convenience, let k1 = 2 and k2 = 1. This substitution yields
The transformed variables [Eq. (10.53)] are
This expression relates the new state variables z1 and z2 to the original state variables q1 and q2. The system equation with z as the state vector is given by [see Eq. (10.54)]
where
z2
4 3
x (10.56)
−1 0 0 −2
z˙1 z˙2
=
Hence,
† If, however, we want the state equations in diagonalized form, as in Eq. (10.26), where all the elements of
matrix are unity, there is a unique solution. The reason is that the equation , where all the elements of are unity, imposes additional constraints. In the present example, this condition will yield , , , and . The relationship between z and q is then
and
or
Note the distinctive nature of these state equations. Each state equation involves only one variable and therefore can be solved by itself. A general state equation has the derivative of one state variable equal to a linear combination of all state variables. Such is not the case with the diagonalized matrix . Each state variable zi is chosen so that it is uncoupled from the rest of the variables; hence, a system with N eigenvalues is split into N decoupled systems, each with an equation of the form
This fact also can be readily seen from Fig. 10.8a, which is a realization of the system represented by Eq. (10.56). In contrast, consider the original state equations [see Ex. 10.10]
A realization for these equations is shown in Fig. 10.8b. It can be seen from Fig. 10.8a that the states z1 and z2 are decoupled, whereas the states q1 and q2 (Fig. 10.8b) are coupled. It should be remembered that Figs. 10.8a and 10.8b are realizations of the same system.†
Figure 10.8 Two realizations of the second-order system.
† Here we have only a simulated state equation; the outputs are not shown. The outputs are linear combinations of state variables (and inputs). Hence, the output equation can be easily incorporated into these diagrams.
MATRIX DIAGONALIZATION VIA MATLAB
The key to diagonalizing matrix A is to determine a matrix P that satisfies P = PA [Eq. (10.55)], where is a diagonal matrix of the eigenvalues of A. This problem is directly related to the classic eigenvalue problem, stated as
AV = V
where V is a matrix of eigenvectors for A. If we can find V, we can take its inverse to determine P. That is, P = V−1 . This relationship is more fully developed in Sec. 10.8.
MATLAB’s built-in function eig can determine the eigenvectors of a matrix and, therefore, can help us determine a suitable matrix P. Let us demonstrate this approach for the current case.
>> A = [0 1;-2 -3]; B = [1; 2];>> [V, Lambda] = eig(A);>> P = inv(V), Lambda, Bhat = P*B P = 2.8284 1.4142 2.2361 2.2361 Lambda = -1 0 0 -2 Bhat = 5.6569 6.7082Therefore,
and
Recall that neither P nor Bˆ are unique, which explains why the MATLAB output does not need to match our previous solution. Still, the MATLAB results do their job and successfully diagonalize matrix A.