State-Space Representation
A state-space model describes a dynamical system as a set of first-order ordinary differential equations in a state vector , driven by an input and producing an output :
The state is the minimal set of variables such that knowing and for uniquely determines and for all future time. The choice of states is not unique, but the number of states (the order of the system) is fixed.When and are linear in and their coefficients are time-invariant, the system is linear time-invariant (LTI) and reduces to four constant matrices:
with (the system matrix or state matrix), (input matrix), (output matrix), and (feedthrough matrix, usually zero for physical systems). The LTI form is the workhorse of linear control theory — every tool in this section depends on it.For a robot, the state vector typically contains configuration and velocity: for an -joint manipulator has states. The input is usually joint torques, and the output is whatever the sensors measure (joint angles, end-effector pose, forces).
Dynamic vs Kinematic State Dimension kinematic states () but dynamic states (). The manipulator dynamics are second-order in , so converting to state-space doubles the state dimension. Mixing up the two is a common source of off-by-a-factor-of-two bugs in controller dimension.
A 6-DoF arm has
Intuition
The state vector is the minimum information the system has to “remember” to predict its future. For a point mass, position alone is not enough — you also need velocity, because the future path depends on how fast it is moving. For a second-order mechanical system, (position, velocity) is the standard state; for an RLC circuit, (inductor current, capacitor voltage) is standard. The same physical system can have many valid state vectors; what matters is that the chosen set is complete (no essential variable missing) and minimal (no redundant variable).
Writing the dynamics as first-order ODEs, rather than higher-order ODEs, matters because every tool in linear systems theory — eigenvalue analysis, the state transition matrix, controllability tests — assumes first-order form. Converting a second-order ODE to first-order form is a routine move: introduce , , and write , .
Properties
Structure
(First-order form) State-space always uses first-order ODEs; higher-order equations are converted by introducing velocity-like variables.
A scalar -th order ODE becomes first-order equations with state . This is why a second-order mechanical system needs states to represent generalized coordinates.
(Minimality) The state vector must contain every variable needed to predict the future, and no more.
“Need to predict” is defined precisely: determines uniquely. Adding redundant variables violates minimality; removing essential variables violates the predictive property. A minimal state is not unique — any invertible linear transformation gives a valid alternative.
(Input, state, output) Inputs are applied, states are internal, outputs are measured.
Inputs are signals the controller can set (motor torques, voltages). States are the internal variables describing the system; some may be directly observable, others estimated. Outputs are the subset of information actually measured by sensors. In textbook problems often; in real robots because not every state has a sensor.
LTI Form
(Superposition) Solutions to LTI systems scale and add linearly.
If is the response to and is the response to , then is the response to . Superposition is the reason LTI systems admit Fourier, Laplace, and convolution analysis.
(Time invariance) If produces , then produces .
The matrices , , , are constant in time. Time-varying systems arise when system parameters change (mass depleting on a rocket, joint configuration changing the effective inertia of a nonlinear manipulator around an operating trajectory), but LTI is the starting point.
(Feedthrough) only when the input directly influences the output without passing through the state.
For almost all physical systems, outputs depend on states (positions, voltages) rather than directly on inputs (torques), so . Nonzero arises in some electrical networks and in systems with algebraic constraints.
Discrete Time
(Difference equation form) Discrete-time state-space replaces the derivative with a one-step shift: .
Sampling a continuous-time LTI system at intervals produces a discrete-time LTI system with and . Every continuous-time tool has a discrete-time analogue, often with modified eigenvalue conditions (see 7.5. Stability).
Robotics Context
(Manipulator state) The state of an -DoF manipulator is with input .
Rewriting the manipulator equation as a first-order system,
The result is nonlinear (because of , , ) but first-order in . Linearization about an equilibrium pose produces an LTI model suitable for controller design — see 7.2. Linearization.
Examples
Mass-Spring System
A mass on a spring of stiffness with position obeys . Write this in state-space form with as input and as output.
Solution , . Then and .
Define
Order , one input, one output.
1-DoF Revolute Joint with Gravity
A single link of mass and length hangs from a pivot with joint angle from vertical, driven by torque . With moment of inertia about the pivot, the dynamics are . Write the state-space model.
Solution , input .
State
This is nonlinear because of . Linearizing about the downward equilibrium (, ) replaces and gives an LTI system with and .
See Also
- 7.2. Linearization — converting , to via Taylor expansion
- 7.3. Solving LTI Systems — closed-form
- 6.3. Manipulator Equations of Motion — the source of the robot’s nonlinear state equations