Algorithm Search⌘K

Definitionintro

State-space representation

Also called state equations, state-variable model.

A model of a dynamical system as first-order differential or difference equations in a state vector, with an input and an output map.

A state-space representation models a dynamical system by first-order equations in a vector of state variables: a differential equation x˙=f(x,u)\dot x = f(x, u), or a difference equation xk+1=F(xk,uk)x_{k+1} = F(x_k, u_k), for the state, and an output map y=h(x,u)y = h(x, u). The state is the smallest summary of the past that, together with the future input, fixes the future behaviour. In the linear time-invariant case the model is x˙=Ax+Bu\dot x = A x + B u, y=Cx+Duy = C x + D u, and it describes the same input-output behaviour as a proper rational transfer function matrix, but it also shows the internal variables. This page is the deterministic control model; the state-space model page covers the probabilistic model with noise used in filtering, and the linear time-invariant system page covers the input-output view by convolution.

Definition

A state-space representation in continuous time consists of

  • a state space Rn\mathbb{R}^n, an input space Rm\mathbb{R}^m and an output space Rp\mathbb{R}^p, with nn the order;
  • a state equation x˙(t)=f(t,x(t),u(t))\dot x(t) = f(t, x(t), u(t));
  • an output equation y(t)=h(t,x(t),u(t))y(t) = h(t, x(t), u(t)).

In discrete time the state equation is xk+1=F(k,xk,uk)x_{k+1} = F(k, x_k, u_k) and the output equation is yk=H(k,xk,uk)y_k = H(k, x_k, u_k). When ff and hh do not depend on tt, the representation is time-invariant.

Standing assumptions. In continuous time, ff is continuous, and locally Lipschitz in xx uniformly in tt and uu on compact sets (see Lipschitz condition). Inputs are piecewise continuous. Then for each initial state x(t0)=x0x(t_0) = x_0 and each input there is exactly one solution on some interval [t0,t0+δ)[t_0, t_0 + \delta), by the Picard-Lindelöf theorem applied to g(t,x)=f(t,x,u(t))g(t, x) = f(t, x, u(t)) between the jumps of uu. A nonlinear solution can escape to infinity in finite time; a linear one cannot. In discrete time no assumption is needed for existence.

The state property. The vector x(t0)x(t_0) and the input on [t0,t][t_0, t] determine x(t)x(t) and y(t)y(t). No other information on the past is needed. This is what makes xx a state, and it is the reason the equations are of first order.

The linear case. The linear time-invariant representation is

x˙=Ax+Bu,y=Cx+Du,A∈Rn×n, B∈Rn×m, C∈Rp×n, D∈Rp×m,\dot x = A x + B u, \qquad y = C x + D u, \qquad A \in \mathbb{R}^{n \times n},\ B \in \mathbb{R}^{n \times m},\ C \in \mathbb{R}^{p \times n},\ D \in \mathbb{R}^{p \times m},

or xk+1=Axk+Bukx_{k+1} = A x_k + B u_k, yk=Cxk+Duky_k = C x_k + D u_k in discrete time. If the matrices depend on time, it is a linear time-varying system. The solution is given by the variation of constants formula. With x(0)=0x(0) = 0, the Laplace transform gives Y(s)=G(s)U(s)Y(s) = G(s) U(s) with

G(s)=C(sI−A)−1B+D,G(s) = C (sI - A)^{-1} B + D,

a proper rational matrix. Conversely, every proper rational G(s)G(s) has such a representation; finding one is the realization problem.

Coordinates are not unique. For any invertible TT, the substitution x=Tzx = T z gives the representation

z˙=T−1ATz+T−1Bu,y=CTz+Du,\dot z = T^{-1} A T z + T^{-1} B u, \qquad y = C T z + D u,

with the same transfer matrix, since CT(sI−T−1AT)−1T−1B=C(sI−A)−1BC T (sI - T^{-1} A T)^{-1} T^{-1} B = C (sI - A)^{-1} B. This is a similarity transformation. So a representation is unique only up to such a change of coordinates, and even that only among minimal representations, the ones of the smallest order. Two minimal representations of the same GG are always related by a unique TT (minimal realization). Representations of larger order also exist; they have parts that the input cannot reach or that the output cannot see.

Examples and non-examples

Mass, spring and damper. A mass mm on a spring of stiffness kk with a damper cc, pushed by a force uu, obeys mq¨+cq˙+kq=um \ddot q + c \dot q + k q = u. With the state x=(q,q˙)x = (q, \dot q) and the output y=qy = q,

A=[01−k/m−c/m],B=[01/m],C=[10],D=0.A = \begin{bmatrix} 0 & 1 \\ -k/m & -c/m \end{bmatrix}, \quad B = \begin{bmatrix} 0 \\ 1/m \end{bmatrix}, \quad C = \begin{bmatrix} 1 & 0 \end{bmatrix}, \quad D = 0.

For m=1m = 1, c=3c = 3, k=2k = 2, A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}, its eigenvalues are −1-1 and −2-2, and G(s)=1/(s2+3s+2)G(s) = 1/(s^2 + 3s + 2). Any nn-th order linear differential equation becomes a state model in the same way, with the output and its first n−1n - 1 derivatives as the state; this gives a companion matrix, as in the controllable canonical form.

The same system in other coordinates. The eigenvectors of AA above are (1,−1)(1, -1) and (1,−2)(1, -2). With T=[11−1−2]T = \begin{bmatrix} 1 & 1 \\ -1 & -2 \end{bmatrix} and x=Tzx = T z, T−1=[21−1−1]T^{-1} = \begin{bmatrix} 2 & 1 \\ -1 & -1 \end{bmatrix}, and the new matrices are

T−1AT=[−100−2],T−1B=[1−1],CT=[11].T^{-1} A T = \begin{bmatrix} -1 & 0 \\ 0 & -2 \end{bmatrix}, \quad T^{-1} B = \begin{bmatrix} 1 \\ -1 \end{bmatrix}, \quad C T = \begin{bmatrix} 1 & 1 \end{bmatrix}.

This modal form gives G(s)=1s+1−1s+2G(s) = \frac{1}{s + 1} - \frac{1}{s + 2}, which is again 1/(s2+3s+2)1/(s^2 + 3s + 2). The two state vectors have different physical meaning (position and velocity, against two modal amplitudes), but the input-output behaviour is the same.

A non-minimal representation. Add a third state z˙3=−5z3+u\dot z_3 = -5 z_3 + u that does not enter the output. The order is 3, the transfer function is the same, and the extra state is unobservable. This is still a valid state-space representation, but not a minimal one.

A nonlinear example: the pendulum. A pendulum of length ℓ\ell and mass mm with friction coefficient bb and torque uu obeys mℓ2θ¨=−mgℓsin⁡θ−bθ˙+um \ell^2 \ddot\theta = -m g \ell \sin\theta - b \dot\theta + u. With x=(θ,θ˙)x = (\theta, \dot\theta),

x˙1=x2,x˙2=−gℓsin⁡x1−bmℓ2x2+1mℓ2u.\dot x_1 = x_2, \qquad \dot x_2 = -\frac{g}{\ell} \sin x_1 - \frac{b}{m \ell^2} x_2 + \frac{1}{m \ell^2} u.

The right side is smooth, so it is locally Lipschitz. It is a control-affine system, with equilibrium points at θ=0\theta = 0 and θ=π\theta = \pi for u=0u = 0. Its linearization about an equilibrium is an LTI state model.

A discrete example. A sampled plant from zero-order hold discretization is a discrete state model: the double integrator with period hh gives xk+1=[1h01]xk+[h2/2h]ukx_{k+1} = \begin{bmatrix} 1 & h \\ 0 & 1 \end{bmatrix} x_k + \begin{bmatrix} h^2/2 \\ h \end{bmatrix} u_k.

Non-example: a pure delay. The system y(t)=u(t−τ)y(t) = u(t - \tau) with τ>0\tau > 0 has no finite-dimensional state-space representation. Its state at time tt is the whole input segment on [t−τ,t][t - \tau, t], a function, not a vector. Its transfer function e−sτe^{-s\tau} is not rational. See time-delay system.

Non-example: an ideal differentiator. The system y=u˙y = \dot u has the transfer function ss, which is not proper. It has no representation of the form above, because y=Cx+Duy = Cx + Du cannot contain u˙\dot u.

Non-example: a wrong choice of state. For q¨=u\ddot q = u, the position qq alone is not a state: two motions with the same q(t0)q(t_0) and different velocities have different futures under the same input. The pair (q,q˙)(q, \dot q) is a state.

  • Transfer function matrix. The input-output description G(s)=C(sI−A)−1B+DG(s) = C(sI - A)^{-1} B + D. It hides the parts of the state that are not controllable or not observable. See transfer function matrix.
  • Realization and minimal realization. A realization of GG is a state model with that transfer matrix. A minimal one has the least order; it is controllable and observable, and it is unique up to x=Tzx = Tz. See realization problem and minimal realization.
  • Canonical forms. Special coordinates in which the matrices have a fixed pattern, such as the controllable canonical form and the observable canonical form.
  • Controllability and observability. Properties of (A,B)(A, B) and (C,A)(C, A) that say whether the input can steer every state and whether the output reveals every state. See controllability and observability.
  • Equilibrium point and linearization. A constant solution of the state equation, and the linear state model that approximates the nonlinear one near it. See equilibrium point and linearization about an equilibrium.
  • Control-affine system. The nonlinear class x˙=f(x)+g(x)u\dot x = f(x) + g(x) u. See control-affine system.
  • Descriptor systems. The form Ex˙=Ax+BuE \dot x = A x + B u with a singular EE. It includes algebraic constraints and can represent some improper transfer functions. It is not a state-space representation in the sense of this page unless EE is invertible.
  • State-space model (statistics). The model xt=f(xt−1)+wtx_t = f(x_{t-1}) + w_t, yt=g(xt)+vty_t = g(x_t) + v_t with random noise, used for filtering and smoothing. See state-space model and the Kalman filter.

Kalman (1960) made the state the central object of control theory, with controllability and observability defined on the state equations.

References

  1. R. E. Kalman, On the general theory of control systems, Proceedings of the First International Congress of the IFAC, Moscow 1960, Butterworths, London, 1961, vol. 1, 481-492, the state of a dynamical system, and controllability and observability as properties of the state equations
  2. Wilson J. Rugh, Linear System Theory, second edition, Prentice Hall, 1996, Chapter 2, State Equation Representation (examples, linearization and state variable changes)
  3. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Chapter 2 (mathematical descriptions of systems) and Chapter 4 (equivalent state equations and realizations)
  4. Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Section 1.1, Nonlinear Models and Nonlinear Phenomena (state equations, existence and uniqueness, and the pendulum)
  5. Karl J. Åström and Richard M. Murray, Feedback Systems, An Introduction for Scientists and Engineers, second edition, Princeton University Press, 2021, the chapters on system modeling and on linear systems

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/3FNPFS/text.yaml