State space representation rewrites a dynamic system as a set of first-order equations. Instead of working with one higher-order differential equation, you track a state vector that contains the information needed to predict what happens next.
If you searched for how to convert a differential equation to state-space form, this is the core idea: choose state variables, write an equation for each variable's derivative, and keep the model first-order.
State Space Representation In One Definition
In general, a state-space model can be written as
Here is the state vector and is an input when the system has one. If the system is linear and time-invariant, the same idea takes the matrix form
That matrix version is common in control and differential equations, but state space is broader than the linear case.
What The State Means
The state is the collection of current quantities that lets you determine future behavior once the input is known. For a moving object, position alone is usually not enough. Position and velocity together often are.
That is why state space representation is useful. It turns a time-evolution problem into a standard first-order form that is easier to analyze, simulate, and connect to matrix methods.
Why Rewrite A System This Way
Many models start as higher-order differential equations. State space form rewrites them without changing the underlying dynamics.
This matters because first-order systems fit one structure. Once a model is in that structure, it becomes easier to discuss initial conditions, inputs, outputs, and stability in a consistent way.
Worked Example: Convert A Second-Order Equation To State Space
Start with
Here is an input. Choose state variables that capture the current condition of the system:
Now write a first-order equation for each state variable. Since ,
Since , we also have . Rearranging the original equation gives
Substitute and :
So the state equations are
In vector form, with
this becomes
If the output is the original quantity , then
The key step is the conversion from one second-order equation to two first-order equations. That is the heart of state space representation.
What To Notice In This Example
The state variables were chosen for a reason. They make it possible to write the model as a first-order system.
Also notice that the output is not the same as the full state vector. In this example, , while the full state is . Those ideas can overlap, but they are not automatically identical.
Common Mistakes When Converting To State-Space Form
Confusing the state with the output
The state contains the internal variables needed to evolve the system. The output is whatever quantity you choose to observe. Sometimes they overlap, but they are not automatically the same.
Assuming the representation is unique
It usually is not. Different choices of state variables can describe the same dynamics, as long as they capture enough information.
Forgetting the first-order requirement
A state-space model is written as first-order equations in the state variables. If you still have a second-order derivative of a state variable left over, the rewrite is not finished.
Treating every model as linear
The matrix form with , , , and only applies when the equations are linear in the chosen state variables. Nonlinear systems still use state space, but they are written with functions instead of constant matrices.
Where State Space Representation Is Used
State space representation appears in differential equations, control theory, signal processing, robotics, and physics. It is especially useful when you care about how a system changes over time and how inputs affect that change.
If the model is linear, matrix methods become especially useful. For example, eigenvalues of the matrix can help describe growth, decay, or oscillation, but only under the assumptions built into the model.
Try Your Own Version
Take
and choose , . Rewrite it as a first-order system, then identify the matrix . If that clicks, try a similar problem with an input term and see how the matrix appears.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →