Basic Example
Find the state-space model for:
Since the highest order is , we use as state variables in a vector:
We can then write the derivative of in terms of the state variables, which gives us a three equation system including the original equation we wanted to model:
The first row gives:
The second row gives:
The third row gives:
Mass-Spring-Damper
An example is the typical mass-spring-damper system:
We define:
Then, we can re-write the original equation as:
Thus, we’ve reduced our original 2nd-order equation to two first-order equations:
This is our state-variable model. The variables and are the state variables.
3rd Order System
A third order system:
Re-arrange so that highest order variable is isolated:
Since this is 3rd order, we expect three 1st-order ODEs to describe the system.
We define
Now, our state-variable model is::
In vector-matrix form, we can write:
The output can also be described in matrix form: