Hello! Welcome to the first lesson of Module 3.
In the previous module, we established a strong foundation in analyzing linear systems using state-space methods. We covered stability, controllability, and observability, and we saw how these "internal" properties relate to the "external" view provided by a transfer function. You are now well-prepared to move beyond single-input, single-output (SISO) systems.
This lesson marks our transition into the core of this course: multivariable control. Our objective is to formulate state-space equations for systems with multiple inputs and multiple outputs (MIMO). This skill is essential because most complex engineering systems, including your goal of stabilizing a rotary inverted pendulum, have several variables we want to control and multiple inputs we can use to do so.
The MIMO State-Space Framework
You are already familiar with the standard state-space representation for a linear time-invariant (LTI) system:
The great strength of this framework is its scalability. To move from a SISO to a MIMO system, we don't change the equations; we simply expand the dimensions of the input and output vectors, and consequently, the dimensions of the B, C, and D matrices.
The following resource provides a formal definition of the state and output equations for a general MIMO system.
Chapter # 5 State-Variable Analysis
These notes, titled 'State-Variable Analysis', formalize the structure of MIMO state-space models. It's a good way to see how the matrix dimensions adapt to the number of inputs and outputs.
Please read Section 2, 'State, Output and Dynamic Equations' (pages 3-5). Focus on the definitions of the state vector, input vector, and output vector, and note the dimensions given for the A, B, C, and D matrices.
As the text explains, for a system with state variables, inputs, and outputs:
- The state vector is of size .
- The input vector is of size .
- The output vector is of size .
This requires the system matrices to have the following dimensions:
- State matrix : (always square)
- Input matrix :
- Output matrix :
- Feedforward matrix :
Notice that , , and are now generally rectangular, reflecting the mapping between different numbers of inputs, states, and outputs.
From Coupled Equations to a MIMO State-Space Model
The process of deriving a MIMO state-space model usually begins by writing down the physical laws governing the system. This often results in a set of coupled, higher-order differential equations. Let's see this in action with a mechanical example.
Example 1: A Quarter-Car Suspension Model
A common way to model a car's suspension is the "quarter-car model," which includes the mass of the car body and the mass of the wheel. This creates a two-mass system where the motions are coupled.
Lecture 2: Systems Defined by Differential Equations
These lecture notes on 'Systems Defined by Differential Equations' provide an excellent walkthrough of deriving a state-space model for a two-mass suspension system. This is a classic MIMO modeling problem.
Please review the following sections: Start by looking at the diagrams and equations in 'Suspension Model' (slides 18-19) to see how Newton's second law is applied to each mass. Note the final coupled second-order differential equations on slide 20. Finally, study 'Constructing State-Space Systems: Suspension System' (slides 28-29). Pay close attention to how the four state variables are chosen and how the final A, B, and C matrices are assembled from the rearranged first-order equations.
Let's break down the key steps from the resource:
- System Dynamics: The system is described by two coupled second-order differential equations, one for the car's mass () and one for the wheel's mass ().
- State Variable Selection: Since we have two second-order equations, we need state variables. A natural choice, based on the energy storage elements (the kinetic energy of the masses and potential energy in the springs), is the position and velocity of each mass.
- (car position)
- (car velocity)
- (wheel position)
- (wheel velocity)
- Formulating First-Order Equations: We create four first-order differential equations:
- (by definition)
- (by definition)
- (from the first dynamic equation)
- (from the second dynamic equation)
- Assembling the Matrices: By rearranging these equations and grouping terms by , and , we can directly construct the and matrices as shown on slide 29 of the notes. If our outputs are the positions of the car and wheel, and , the output equation becomes:
This gives us a C matrix, as expected for a 4-state, 2-output system.
From a Block Diagram to a MIMO State-Space Model
Another common starting point for modeling is a block diagram, especially in fields like signal processing and controls. Your EE background in analyzing such diagrams will be useful here.
Let's look at a 2-input, 2-output example.
Chapter # 5 State-Variable Analysis
This example from 'State-Variable Analysis' shows how to derive the state-space model for a true MIMO system starting from its block diagram. This is a very practical skill.
Please study 'Example (24)' on pages 60-61. Follow the derivation of the state and output equations directly from the block diagram. The key is to write an equation for the input of each integrator (which gives you \dot{x_i}) and for each output terminal.
In this example, the state variables () are the outputs of the integrators. By tracing the signals through the summing junctions and gains, we can write down the equations directly:
- State Equations:
- Output Equations:
From these, assembling the matrices is a matter of organization:
Here, you can clearly see the rectangular B () and C () matrices characteristic of a MIMO system.
Test your understanding!
Consider the MIMO system represented by the block diagram below. The outputs of the two integrators are the state variables, and . Derive the state-space representation ( matrices) for this system.

Show answer
First, we write the equations for the derivatives of the states by looking at the inputs to the integrators:
Next, we write the equations for the outputs:
Now, we can assemble these equations into the standard matrix form: and .
Conclusion
In this lesson, we have successfully extended our state-space modeling skills from SISO systems to the more general and powerful MIMO case. You have learned how the matrix dimensions adapt and have practiced deriving complete MIMO state-space models from both physical principles and block diagrams.
Key Takeaways:
- The standard state-space equations apply directly to MIMO systems; the input and output are treated as vectors.
- The dimensions of the matrices , , and become rectangular (, , and , respectively) to accommodate multiple inputs and outputs.
- The general procedure for modeling a physical MIMO system involves deriving its coupled differential equations, selecting an appropriate set of state variables, and arranging the resulting first-order equations into matrix form.
Preview of the Next Lesson:
Now that you have a general method for modeling MIMO systems, it's time to apply it to your specific problem of interest. In the next lesson, we will derive the state-space model for a rotary inverted pendulum. This will be a more challenging and rewarding application of the techniques you learned today, bringing you one step closer to designing a controller for it.