Skip to content
4 days ago

State-Space to Transfer Function Conversion

MA
Mindli AI

State-Space to Transfer Function Conversion

Mastering the conversion between state-space and transfer function representations is a critical skill in control systems engineering. While the transfer function offers a compact, input-output view in the frequency domain, the state-space model provides an internal, time-domain description of a system's dynamics. Being able to move fluidly between these two frameworks allows you to leverage the best tools from classical and modern control theory, whether you're designing a filter, stabilizing a drone, or analyzing a chemical process.

The Fundamental Conversion Formula

The core mathematical link from a state-space description to a single-input, single-output (SISO) transfer function is elegant and direct. A linear time-invariant (LTI) system in state-space form is given by:

Here, is the state vector, is the input, and is the output. The matrices , , , and define the system's dynamics, input coupling, output relationship, and direct feedthrough, respectively.

To find the transfer function , we take the Laplace transform of these equations, assuming zero initial conditions. This yields and . Solving the state equation for gives , where is the identity matrix. Substituting into the output equation produces the definitive formula:

The term is the resolvent matrix, and its determinant, , gives the system's characteristic equation. This formula is your primary tool for extracting the frequency-domain behavior from any state-space model.

Step-by-Step Derivation and a Worked Example

Let's walk through the application of the formula with a concrete system. Consider a system with matrices:

Step 1: Form .

Step 2: Find the inverse . The inverse of a 2x2 matrix is . Here, the determinant is . Thus,

Step 3: Multiply . First, compute : Now, multiply by :

Step 4: Add (which is zero). Therefore, the transfer function is:

This process, though algebraically intensive for larger systems, is systematic and universally applicable.

From Transfer Function to State-Space: Controllable Canonical Form

The reverse journey—creating a state-space model from a given transfer function—is not unique. One state-space realization can produce a given , but infinitely many realizations exist. However, certain forms are standardized and particularly useful. The controllable canonical form is one such systematic realization. It is directly constructed from the coefficients of the transfer function's denominator and numerator.

Given a general SISO transfer function: (where the and coefficients are scalar constants), the controllable canonical form matrices are:

This structure places the denominator coefficients in the bottom row of the matrix and packs the numerator coefficients into the matrix. Its key property is that it is guaranteed to be controllable, meaning all system modes can be influenced by the input .

From Transfer Function to State-Space: Observable Canonical Form

Dual to the controllable form is the observable canonical form. For the same general transfer function , the matrices take on a transposed structure:

Here, the denominator coefficients appear in the last column of , and the numerator coefficients populate the matrix. This realization is guaranteed to be observable, meaning all system modes can be inferred by measuring the output .

These two canonical forms illustrate a deep principle in linear systems theory: the duality between controllability and observability. The matrices of the observable form are essentially the transpose of those in the controllable form, with the roles of and swapped.

Common Pitfalls

  1. Assuming is Always Invertible: The conversion formula is only valid where exists—that is, where is not an eigenvalue of . These eigenvalues (poles) are precisely where blows up to infinity. The transfer function describes the system's behavior for all complex except at these pole locations.
  1. Ignoring Pole-Zero Cancellations: When converting from state-space to transfer function, if the state-space model is not both controllable and observable, pole-zero cancellation will occur in the derived . The cancelled pole, while absent from the transfer function, is still a dynamic mode present in the internal state-space description. This leads to "hidden" dynamics that can cause instability, even if the transfer function appears stable. Always check the minimality of your realization.
  1. Misapplying Canonical Forms to Improper Transfer Functions: The canonical forms described assume the transfer function is proper (numerator degree denominator degree). If you have an improper transfer function (numerator degree > denominator degree), you must first perform long division to extract a direct feedthrough term , leaving a proper fractional part to be realized in the matrices.

Summary

  • The universal formula to convert a state-space model to a transfer function is . This process involves matrix algebra centered on the resolvent .
  • The reverse conversion is not unique. The controllable canonical form provides a systematic state-space realization guaranteed to be controllable, with the matrix in companion form and the denominator coefficients in its bottom row.
  • The observable canonical form provides a dual realization guaranteed to be observable, featuring a transposed structure with denominator coefficients in the last column of .
  • These conversions are the essential bridge between modern state-space analysis (focused on internal state control and observation) and classical frequency-domain techniques (focused on input-output stability and response), allowing for a comprehensive approach to linear system analysis and design.

Write better notes with AI

Mindli helps you capture, organize, and master any subject with AI-powered summaries and flashcards.