Cal11 calculator

Calculate The Transfer Function of The Following State-Space Model

Reviewed by Calculator Editorial Team

This guide explains how to calculate the transfer function from a state-space model representation of a linear time-invariant system. The transfer function provides a frequency-domain representation that's useful for analyzing system behavior, designing controllers, and predicting system response to inputs.

Introduction

In control systems engineering, state-space models and transfer functions are two common representations of dynamic systems. While state-space models describe system behavior using differential equations, transfer functions provide a more compact representation that's particularly useful for frequency-domain analysis.

The state-space model consists of two equations:

State equation: \(\dot{x}(t) = A x(t) + B u(t)\)

Output equation: \(y(t) = C x(t) + D u(t)\)

Where:

  • \(x(t)\) is the state vector
  • \(u(t)\) is the input vector
  • \(y(t)\) is the output vector
  • A, B, C, D are system matrices

The transfer function \(G(s)\) relates the Laplace transform of the output to the Laplace transform of the input, providing insight into how the system responds to different frequencies.

State-Space Model Basics

The state-space representation is a mathematical model of a physical system as a set of input, output, and state variables related by first-order differential equations. It's particularly useful for multi-input, multi-output systems and systems with complex dynamics.

The state-space model has several advantages:

  • Direct representation of system dynamics
  • Ability to handle multi-input, multi-output systems
  • Easier to extend to nonlinear systems
  • More intuitive for some physical systems

However, for analysis and control design, the transfer function representation is often more convenient because it directly shows the relationship between inputs and outputs.

Transfer Function Concept

The transfer function \(G(s)\) is a ratio of two polynomials in the complex variable \(s\) (Laplace variable), representing the ratio of the Laplace transform of the output to the Laplace transform of the input.

For a single-input, single-output (SISO) system, the transfer function is typically written as:

\(G(s) = \frac{Y(s)}{U(s)} = \frac{b_0 s^n + b_1 s^{n-1} + \dots + b_{n-1} s + b_n}{a_0 s^n + a_1 s^{n-1} + \dots + a_{n-1} s + a_n}\)

The transfer function provides several important pieces of information:

  • System order (degree of the denominator polynomial)
  • System poles (roots of the denominator)
  • System zeros (roots of the numerator)
  • System gain (ratio of leading coefficients)

These properties are crucial for analyzing system stability, response characteristics, and control system design.

Calculation Method

The transfer function can be calculated from the state-space model using the following formula:

\(G(s) = C(sI - A)^{-1}B + D\)

Where:

  • \(sI - A\) is the system matrix shifted by \(s\)
  • \((sI - A)^{-1}\) is the inverse of the shifted system matrix
  • \(C(sI - A)^{-1}B\) represents the dynamic part of the system
  • \(D\) represents the direct feedthrough term

This formula shows that the transfer function is determined by the system matrices A, B, C, and D. The calculation involves matrix inversion and multiplication operations.

Note: For systems with multiple inputs and outputs, the transfer function becomes a matrix of transfer functions, one for each input-output pair.

Worked Example

Let's calculate the transfer function for the following state-space model:

\(\dot{x}(t) = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix} x(t) + \begin{bmatrix} 0 \\ 1 \end{bmatrix} u(t)\)

\(y(t) = \begin{bmatrix} 1 & 0 \end{bmatrix} x(t) + \begin{bmatrix} 0 \end{bmatrix} u(t)\)

Following the calculation method:

  1. Compute \(sI - A\):

    \(sI - A = \begin{bmatrix} s & -1 \\ 2 & s+3 \end{bmatrix}\)

  2. Find the determinant of \(sI - A\):

    \(\det(sI - A) = s(s+3) - (-1)(2) = s^2 + 3s + 2\)

  3. Compute the adjugate of \(sI - A\):

    \(\text{adj}(sI - A) = \begin{bmatrix} s+3 & 1 \\ -2 & s \end{bmatrix}\)

  4. Compute \((sI - A)^{-1}\):

    \((sI - A)^{-1} = \frac{1}{s^2 + 3s + 2} \begin{bmatrix} s+3 & 1 \\ -2 & s \end{bmatrix}\)

  5. Multiply by B:

    \((sI - A)^{-1}B = \frac{1}{s^2 + 3s + 2} \begin{bmatrix} 1 \\ s \end{bmatrix}\)

  6. Multiply by C:

    \(C(sI - A)^{-1}B = \frac{1}{s^2 + 3s + 2}\)

  7. Add D:

    \(G(s) = \frac{1}{s^2 + 3s + 2} + 0 = \frac{1}{s^2 + 3s + 2}\)

The final transfer function is:

\(G(s) = \frac{1}{s^2 + 3s + 2}\)

Frequently Asked Questions

What is the difference between state-space models and transfer functions?

State-space models describe system dynamics using differential equations, while transfer functions provide a frequency-domain representation that shows the relationship between inputs and outputs. Transfer functions are often more convenient for analysis and control design.

When should I use a state-space model versus a transfer function?

Use state-space models when you need to represent complex multi-input, multi-output systems or when you're working with nonlinear systems. Use transfer functions for frequency-domain analysis, control system design, and when you need a more compact representation.

What information can I get from the transfer function?

The transfer function provides information about system order, poles (which determine stability), zeros (which affect system behavior), and gain. It's essential for analyzing system response to different frequencies and designing controllers.

Can I convert a transfer function back to a state-space model?

Yes, there are standard methods to convert a transfer function to a state-space model, typically by choosing a canonical form like controllable or observable canonical form.