# Converting a Transfer Function to State Space representation

To convert a transfer function into state equations in phase variable form, we first convert the transfer function to a differential equation by cross-multiplying and taking the inverse Laplace transform, assuming zero initial conditions. Then we represent the differential equation in state space in phase variable form. An example illustrates the process.

`Example 1`

Find the state-space representation in phase-variable form for the transfer function shown in Figure (1):

Step 1. Find the associated differential equation: Cross-multiplying yields: The corresponding differential equation is found by taking the inverse Laplace  Transform, assuming zero initial conditions: Step 2. Select the state variables. Choosing the state variables as successive derivatives, we get: Using this notation, we can rewrite equation (1) as: Step 3. Differentiating both sides of the last equations, we must find _x1 and _x2, then we use Eq. (2) to find x3. Proceeding in this way we obtain the state equations. Since the output is c=x1, the combined state and output equations are: Step 4. Expressing the last equations in vector-matrix form, we get the state-space representation of the system as: At this point, we can create an equivalent block diagram of the systemof Figure 1(a) to help visualize the state variables.We draw three integral blocks as shown in Figure 1(b) and label each output as one of the state variables, xi(t), as shown.

`A transfer function with a polynomial in s in the numerator`

The transfer function of the previous Example has a constant term in the numerator. If a transfer function has a polynomial in s in the numerator that is of order less than the polynomial in the denominator, as shown in Figure 2(a), the numerator and denominator can be handled separately. First separate the transfer function into two cascaded transfer functions, as shown in Figure 2(b); the first is the denominator, and the second is just the numerator. The first transfer function with just the denominator is converted to the phase-variable representation in state space as demonstrated in the last example. Hence, phase variable x1 is the output, and the rest of the phase variables are the internal variables of the first block, as shown in Figure 2(b). Figure 2

The second transfer function with just the numerator yields: Where, after taking the inverse Laplace transform with zero initial conditions, we obtain: But the derivative terms are the definitions of the phase variables obtained in the
first block. Thus, writing the terms in reverse order to conform to an output equation, we obtain: Hence, the second block simply forms a specified linear combination of the state
variables developed in the first block.

From another perspective, the denominator of the transfer function yields the
state equations, while the numerator yields the output equation. The next example
demonstrates the process.

`Example 2`

Find the state-space representation of the transfer function shown in
Figure 3(a). Step 1. Separate the system into two cascaded blocks, as shown inFigure 3(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 1. Thus, the state equations are the same except that this system’s input matrix is 1/24 that of Example 1.

Step 3. Introduce the effect of the block with the numerator. The second block of
Figure 3(b) yields: Taking the inverse Laplace transform with zero initial conditions, we get: But: Hence: Thus, the last box of Figure 3(b) ‘‘collects’’ the states and generates the output equation: Although the second block of Figure 3(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.

Thus, the full state-space representation of the system is: Once again we can produce an equivalent block diagram that vividly represents
our state-space model: Sources:

1. Modern_Control_Engineering, Ogata 4t
2. Control Systems Engineering, Nise
3. Sistemas de Control Automatico, Kuo

Literature review by:

Prof. Larry Francis Obando – Technical Specialist – Educational Content Writer

I solve problems!!

WhatsApp:  +34633129287  Immediate Attention!!

Copywriting, Content Marketing, Tesis, Monografías, Paper Académicos, White Papers (Español – Inglés)

Escuela de Ingeniería Electrónica de la Universidad Simón Bolívar, USB Valle de Sartenejas.

Escuela de Ingeniería Eléctrica de la Universidad Central de Venezuela, UCV CCs

Escuela de Turismo de la Universidad Simón Bolívar, Núcleo Litoral.

Contacto: España. +34633129287

Caracas, Quito, Guayaquil, Jaén.

WhatsApp:  +34633129287