<< Chapter < Page | Chapter >> Page > |
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 (a vector) is composed of two state variables and . We would like to be able to talk about the time-varying state in terms of these state variables. That is, we'd like an expression where can be written in terms of and . From state equation above, we see that simply equals . In the same equation we also notice that equals . Therefore, the derivative of the first state variable exactly equals the second state variable.
We can follow the same process for . Again from state equation , we see that the first derivative of equals the second derivative of . At this stage, we can bring in information from the system's differential equation. That equation (the first one in this example) also contains the second derivative of . If we solve for it we get
We already know that equals and that equals . Putting all of this together, we can get an expression for in terms of the state variables and the input variable.
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 , , , we can rewrite this equation as:
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 variables and inputs, is x , is x , is x , and is x .
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 depended only on the first state variable, we could write in matrix form:
More generally, we can express the output (or outputs) as:
In a system with inputs, state variables, and outputs, is x , is x , is x , is x , and is x . Output equations are only algebraic equations; there are no differential equations and therefore, there is no memory component.
If we assume that and , we can elininate in a combination of the state equations and output equations to get the input/output relation . Here the degree of equals the degree of .
Let's develop state and output equations for the following circuit diagram:
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 flowing through the inductor and the voltage across the capacitor. By using Kirchoff's laws around the left and center loops, respectively, we can find the following two equations:
These equations can easily be rearranged to have the derivatives on the left-hand side equaling linearcombinations of state variables and inputs on the right. These are the state equations. The figure also quicklytells us that the output is equal to the voltage across the capacitor, .
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 thetools of linear algebra, we will put all four of the matrices from the state and output equations (i.e., , , , and ) into one large partitioned matrix:
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.
Here, and are the input and output currents, respectively. and are the state variables. Using Kirchoff's laws and the - relation of a capacitor, we can find the following three equations:
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 (which is also the output equation) and . These can be rewritten in state equation form as:
The compact matrix notation is:
Notification Switch
Would you like to follow the 'State space systems' conversation and receive update notifications?