Skip to main content

Welcome to a Grasp lesson

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

Lesson 28

Observer-Based State Feedback Control: Dynamic Equations

Recommended resources

Hello! Welcome to your next lesson.

In our previous lessons, we designed a state feedback controller (gain ) to place a system's poles and a Luenberger observer (gain ) to estimate the system's states. We even simulated the observer to confirm that its state estimate, , converges to the true state, .

So far, these two components have been separate. The controller was designed assuming we had access to the true state for the control law . The observer was designed to estimate using the plant's input and output . Today, we will connect them. Since the true state is unavailable, we must use our best guess: the estimated state . Our control law becomes .

Our goal is to combine the plant, the observer, and this new control law into a single, comprehensive model. This will allow us to analyze the behavior of the entire closed-loop system.

The Structure of an Observer-Based Controller

Let's start by visualizing how all the pieces fit together. The controller is no longer just a static gain; it's a dynamic system that incorporates the observer.

The system consists of three interconnected parts:

  1. The Plant: The actual system we want to control.

  2. The State Observer: Our real-time model that estimates the plant's state.
  3. The Control Law: The feedback rule, now using the estimated state.

    (where is an external reference input, which we'll set to 0 for stabilization problems).

The following block diagram shows how these components are interconnected. The plant is the "true system," while the observer and feedback gain together form the controller (or compensator).

Observer-Based Control System with Compensating Gain Block Diagram
A block diagram of an observer-based control system. The 'Plant' represents the actual system. The controller, consisting of the 'State Observer' and the feedback gain 'K', uses the plant's output 'y' and the control input 'u' to generate an estimated state 'x_hat', which is then used to compute the control signal.

Our task is to take these separate equations and derive a single state-space model that describes the dynamics of this entire setup.


Deriving the Combined System Dynamics

To analyze the complete system, we need a state vector that describes it fully. Since the plant has states () and the observer also has states (), the combined system will have states.

While we could use as our state vector, a more insightful choice is to use the plant's state and the estimation error . This choice elegantly separates the system's dynamics, as we will soon see.

Let's derive the differential equations for and .

1. Dynamics of the Plant State, :
We start with the plant equation and substitute the control law:

Now, we replace using our definition of the error, :


This first equation tells us something interesting: the dynamics of the true state behave like the pole-placed system (), but are influenced by a term proportional to the estimation error .

2. Dynamics of the Estimation Error, :
We derived this in a previous lesson, but it's crucial to see it again in this context.

Substitute the expressions for and :

The terms cancel out. We also substitute :

Recognizing that , this simplifies beautifully:

This second equation is remarkable. It shows that the estimation error dynamics depend only on the observer's design (). They are completely independent of the plant's state and the control law .

For a rigorous walkthrough of this derivation, the following notes from MIT OpenCourseWare are an excellent resource.

Observers, model-based controllers

These notes provide a concise and clear derivation of the combined system equations, leading to the final state-space model.

Please read Section 29.3, 'Model-Based Controllers' (pages 3-4). Focus on how the plant state equation and the estimator error equation are combined to form the composite system description in Equation (29.5). Pay close attention to the block upper-triangular structure of the final system matrix.


The Complete State-Space Model

Now we can assemble our two derived equations into a single state-space representation for the entire closed-loop system. Using the state vector and including the reference input , we get:

This is the central result of today's lesson. This matrix equation is the complete dynamic model of the plant controlled by an observer-based state feedback system.

The most important feature of this system matrix is its block upper-triangular structure, indicated by the zero matrix in the lower-left block. This structure has a profound implication: the eigenvalues of a block-triangular matrix are the eigenvalues of its diagonal blocks.

This means the set of poles of the complete system is simply the union of:

  • The eigenvalues of (the desired controller poles).
  • The eigenvalues of (the desired observer poles).
Test your understanding!

Suppose you designed a state feedback controller by placing poles at and an observer by placing poles at . What are the poles of the combined, closed-loop system?

Show answer

The poles of the combined system are the union of the controller poles and the observer poles. Therefore, the four poles of the complete system will be .

This convenient result, which we will formally name the Separation Principle in the next lesson, is one of the most powerful ideas in modern control theory. It means you can design your controller and your observer independently, and when you connect them, the poles of the overall system will be exactly where you intended them to be.


Application to the Inverted Pendulum

This structure isn't just a theoretical curiosity; it's exactly what you would implement in practice. The following resource shows how this exact formulation is used for the observer-based control of an inverted pendulum.

Inverted Pendulum: State-Space Methods for Controller ...

This page from the University of Michigan's Control Tutorials for MATLAB and Simulink (CTMS) applies the same concept to the inverted pendulum, directly connecting to your project.

Scroll down to the set of large matrix equations under the heading 'Observer-based control'. Notice how it defines a new state-space system for the combined controller and plant. This is exactly the structure we derived, formatted for implementation in MATLAB.


The Controller as a Dynamic System

There's one more useful way to look at our observer-based controller. Let's think of the controller as a black box that takes the plant's output as its input and produces the control signal as its output. What are the dynamics of this box?

Let's rearrange the observer and control law equations:

  1. Observer:
  2. Control Law:

Substitute the control law into the observer equation:

The output of our controller box is .

We can now write this in a standard state-space format for the controller, where is the controller's state:

  • State Equation:
  • Output Equation:

By comparing terms, we find the controller's matrices:

This shows that an observer-based state feedback controller is itself a linear time-invariant (LTI) system of order . This is the "compensator" that you would implement in a control system's hardware or software.


Conclusion

In this lesson, we successfully bridged the gap between state feedback design and state estimation. By using the estimated state in our control law, we were able to formulate the complete dynamic equations for the entire observer-controller-plant system.

Key Takeaways:

  • An observer-based controller uses the control law .
  • The complete closed-loop system has states, which can be represented by the plant state and the estimation error .
  • The system's dynamics are described by a block upper-triangular matrix:
  • This structure implies that the closed-loop poles are the union of the controller poles (from ) and the observer poles (from ).
  • The controller itself can be modeled as an -th order LTI system with input and output .

Preview of the Next Lesson:
The beautiful result we discovered today—that the controller and observer designs don't interfere with each other's pole locations—is called the Separation Principle. In our next lesson, we will formally discuss this principle and its profound implications for control system design. We will explore why this separation works and what it means for the practical process of designing and implementing complex controllers.