Summary: Matrix representation of systems
Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
Knowing that a system's state describes its dynamics, or memory, it is also useful to examine how the state of a system evolves over time. A system's state will vary based on the current values of the state as well as the inputs to the system:
Looking at an example will help to see why calculating the time-varying behavior of the state is important.
A system is described by the following differential equation:
The state of this system is
The state
We can follow the same process for
We already know that
The important thing to notice here is that by looking at the time-varying behavior of the state, we have been able to reduce the complexity of the problem. Instead of one second-order differential equation we now have two first-order differential equations.
Think about a case where we might have 5, 10, or even 20 state variables. In such an instance, it would be difficult to work with so many equations. For this reason (and in order to have a more compact notation), we represent these state variable equations in terms of matrices. The set of equations above can be written as:
By letting
This is called a state equation.
State equations are always
first-order differential equations. All of the dynamics and
memory of the system are characterized in the state equations.
In general, in a system with
| State Equation Matrices |
|---|
![]() |
Now that we've seen how to examine a system with respect to its state equations, we can move on to equations defining the relationships between the outputs of the system and the state and input variables. The outputs of a system can be written as sums of linear combinations of state variables and input variables. If in the example above the output
More generally, we can express the output (or outputs) as:
In a system with
If we assume that
Let's develop state and output equations for the following circuit diagram:
| Example Circuit 1 |
|---|
![]() |
There are two energy-storage elements in this diagram: the inductor and the capacitor. As we know that energy-storage elements give systems memory, it makes sense that the state variables should be the current
These equations can easily be rearranged to
have the derivatives on the left-hand side equaling linear
combinations of state variables and inputs on the right.
These are the state equations. The figure also quickly
tells us that the output
We can now rewrite the state and output equations in matrix form:
We now introduce one more simple way to simplify
the representation of systems. Basically, to better use the
tools of linear algebra, we will put all four of the matrices
from the state and output equations (i.e.,
| Compact System Matrix Notation |
|---|
![]() |
In this example we'll find the state and output equations for the following circuit, as well as represent the system using the compact notation described above.
| Example Circuit 2 |
|---|
![]() |
Here,
Through simple rearranging and substitution of the terms, we find the state and output equations:
State equations:
Output equation:
This equations can be more compactly written as:
The simple oscillator is defined by the following differential equation:
The states are
The compact matrix notation is: