Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 5

Canonical Forms of State-Space Models

Recommended resources

Hello! Welcome to your next lesson in modeling dynamic systems.

In our last session, we learned how to linearize nonlinear models to obtain a standard linear state-space representation, . This is a crucial step for applying linear control theory to real-world systems like your rotary inverted pendulum.

Today, we address a fundamental concept: the state-space representation of a system is not unique. By choosing a different set of state variables, we can arrive at a different set of matrices that describe the exact same input-output behavior. Our goal is to learn how to transform a state-space representation into a canonical form.

These canonical, or standard, forms are special matrix structures that make it much easier to analyze system properties and, more importantly for our goal, to design controllers.

Why Do We Need Canonical Forms?

Imagine you have a state-space model for a system, but the matrices and are dense and don't have an obvious structure. Designing a controller to place the system's poles at desired locations can be a complex task.

However, if the system is in a special structure called Controllable Canonical Form (CCF), the controller design becomes remarkably straightforward. This is a powerful motivator for the transformations we'll learn today.

State space feedback 3 - transformation to a canonical form

To see why these forms are so useful, let's watch the beginning of the video 'State space feedback 3 - transformation to a canonical form' by John Rossiter.

Watch the first 1 minute and 33 seconds. The video explains that pole placement is simple for systems in control canonical form and introduces the idea of using a transformation to get there.


The Structure of Canonical Forms

The two most common canonical forms are the Controllable Canonical Form (CCF) and the Observable Canonical Form (OCF). Their structure is directly related to the coefficients of the system's transfer function.

Let's consider a general nth-order transfer function:

Controllable Canonical Form (CCF)

In this form, the coefficients of the denominator polynomial appear in the last row of the matrix, and the input matrix has a very simple structure.

Controllable Canonical Form Explanation
This block diagram provides an intuitive feel for the structure of the controllable canonical form. The chain of integrators (1/s) represents the states, with feedback paths corresponding to the coefficients of the characteristic equation.

The state-space matrices for CCF are:

Notice how the coefficients from the transfer function denominator and numerator populate the matrices in a structured way.

Observable Canonical Form (OCF)

The OCF has a structure that is, in a sense, the "transpose" of the CCF. The denominator coefficients are in the last column of the matrix.

There is a powerful relationship between these two forms known as duality:

This means if you can derive one form, you can find the other through simple matrix transpositions.

Examples On Controllable Canonical Form And Observable Canonical Form | GATE Control System

The video 'Examples On Controllable Canonical Form And Observable Canonical Form' by Ekeeda GATE & ESE provides a very direct, procedural walkthrough of how to write down these matrices from a transfer function.

Watch from the beginning to 11:54. The video works through two examples (a 2nd-order and a 3rd-order system). Focus on how the narrator directly maps the transfer function coefficients into the A, B, and C matrices for both CCF and OCF. Pay special attention to the demonstration of the transpose relationship between the forms.


The Transformation Process

We've just seen how to construct a canonical form from a transfer function. But what if you already have a state-space model that is not in a canonical form? How do you transform it?

This is done using a similarity transformation. We define a new set of state variables that are a linear combination of the original state variables , related by an invertible transformation matrix :

Substituting this into our original state equation yields the new state equation for :

So, our new system matrices are and . Our goal is to find the specific matrix that transforms our original into the desired canonical form .

To find , we need a tool called the controllability matrix. For a system , the controllability matrix is defined as:

We will study the physical meaning of this matrix and the concept of controllability in Module 2. For today, we will use it as a computational tool.

The key insight is that the controllability matrices of the original system () and the transformed system () are related by the transformation matrix :

This gives us a direct way to calculate :

This inverse exists only if the system is controllable—a condition we'll formalize later.

The following video walks through this entire process with excellent clarity.

State space feedback 3 - transformation to a canonical form

Let's return to John Rossiter's video, which derives and applies this exact transformation algorithm.

Watch from 01:59 to 08:59. The video first explains the similarity transformation and then derives the crucial relationship between the controllability matrices. Finally, it outlines a clear 5-step algorithm and applies it to an example.


The Full Algorithm: A Summary

Let's consolidate the steps from the video into a clear workflow for transforming a given system to Control Canonical Form :

  1. Find the System's Transfer Function: Given the original system , calculate its transfer function . (We will cover this in detail in the next lesson, but for now, you can use MATLAB's ss2tf or accept it as a given step).
  2. Define the Target CCF: From the transfer function's coefficients, write down the target CCF matrices and by inspection.
  3. Compute Controllability Matrices:
    • Calculate for the original system.
    • Calculate for the target CCF system.
  4. Find the Transformation Matrix T: Calculate .
  5. Verify (Optional but Recommended): Check that your transformation works: and .
Test your understanding!

A system has the transfer function:

  1. Write down the state-space model for this system in Controllable Canonical Form (CCF).
  2. Using the duality principle, write down the state-space model in Observable Canonical Form (OCF).
Show answer

From the transfer function, we identify the coefficients:

  • Denominator: ,
  • Numerator: ,
  1. Controllable Canonical Form (CCF):

  2. Observable Canonical Form (OCF):
    We use the duality rules: , , .


Other Canonical Forms

Besides CCF and OCF, another important structure is the Normal (or Diagonal) Canonical Form. This form is particularly insightful because it decouples the system's modes.

7.4. Canonical Forms — EGLM03 Modern Control Systems

For a broader perspective, let's read about the Normal Form in the online textbook 'EGLM03 Modern Control Systems'.

Read section 7.4.8, 'Normal Canonical Form'. Focus on the main idea: if you use partial fraction expansion on the transfer function, you can create a state-space model where the A matrix is diagonal. The diagonal elements are the system's poles (eigenvalues).

In the Normal Form, the state equations become a set of decoupled first-order differential equations, which is a very intuitive representation, especially given your background in signal processing and system dynamics.


Conclusion

In this lesson, we have demystified the process of transforming state-space models. We learned that while a system's input-output behavior is fixed, we can change our internal perspective—the state variables—to simplify our analysis and design tasks.

Key Takeaways:

  • State-space representations are not unique. A similarity transformation can change the system matrices while preserving the input-output dynamics.
  • Canonical forms are standard structures. We focused on the Controllable (CCF) and Observable (OCF) forms, which are directly related to the coefficients of the system's transfer function.
  • We can transform an arbitrary state-space model to CCF by computing a transformation matrix , where is the controllability matrix.
  • Other forms like the Normal (Diagonal) Form exist, which make the system's modes (poles) explicit by diagonalizing the matrix.

Preview of the Next Lesson:

A key step in our transformation algorithm today was converting from state-space to a transfer function. In our next lesson, we will formally tackle this and the reverse process. We will master the techniques to convert between state-space representations and transfer function representations, solidifying the link between these two fundamental views of a system.