In control engineering and system identification, a state-space representation is a mathematical model of a physical system that uses state variables to track how inputs shape system behavior over time through first-order differential equations or difference equations. These state variables change based on their current values and inputs, while outputs depend on the states and sometimes the inputs too. The state space (also called time-domain approach and equivalent to phase space in certain dynamical systems) is a geometric space where the axes are these state variables, and the system’s state is represented by a state vector. For linear, time-invariant, and finite-dimensional systems, the equations can be written in matrix form, offering a compact alternative to the frequency domain’s Laplace transforms for multiple-input and multiple-output (MIMO) systems. Unlike the frequency domain approach, it works for systems beyond just linear ones with zero initial conditions. This approach turns systems theory into an algebraic framework, making it possible to use Kronecker structures for efficient analysis. State-space models are applied in fields such as economics, statistics, computer science, electrical engineering, and neuroscience. In econometrics, for example, state-space models can be used to decompose a time series into trend and cycle, compose individual indicators into a composite index, identify turning points of the business cycle, and estimate GDP using latent and unobserved time series. Many applications rely on the Kalman filter or a state observer to produce estimates of the current unknown state variables using their previous observations.
State variables The internal state variables are the smallest possible subset of system variables that can represent the entire state of the system at any given time. The minimum number of state variables required to represent a given system, n, is usually equal to the order of the system's defining differential equation, but not necessarily. If the system is represented in transfer function form, the minimum number of state variables is equal to the order of the transfer function's denominator after it has been reduced to a proper fraction. It is important to understand that converting a state-space realization to a transfer function form may lose some internal information about the system, and may provide a description of a system which is stable, when the state-space realization is unstable at certain points. In electric circuits, the number of state variables is often, though not always, the same as the number of energy storage elements in the circuit such as capacitors and inductors. The state variables defined must be linearly independent, i.e., no state variable can be written as a linear combination of the other state variables.
Linear systems
The most general state-space representation of a linear system with p inputs, q outputs and n state variables is written in the following form: 𝐱˙(t)=𝐀(t)𝐱(t)+𝐁(t)𝐮(t) 𝐲(t)=𝐂(t)𝐱(t)+𝐃(t)𝐮(t)
where: In this general formulation, all matrices are allowed to be time-variant (i.e. their elements can depend on time); however, in the common LTI case, matrices will be time invariant. The time variable t can be continuous (e.g. t∈ℝ) or discrete (e.g. t∈ℤ). In the latter case, the time variable k is usually used instead of t. Hybrid systems allow for time domains that have both continuous and discrete parts. Depending on the assumptions made, the state-space model representation can assume the following forms:
Example: continuous-time LTI case Stability and natural response characteristics of a continuous-time LTI system (i.e., linear with matrices that are constant with respect to time) can be studied from the eigenvalues of the matrix 𝐀. The stability of a time-invariant state-space model can be determined by looking at the system's transfer function in factored form. It will then look something like this: 𝐆(s)=k(s−z1)(s−z2)(s−z3)(s−p1)(s−p2)(s−p3)(s−p4). The denominator of the transfer function is equal to the characteristic polynomial found by taking the determinant of s𝐈−𝐀, λ(s)=|s𝐈−𝐀|. The roots of this polynomial (the eigenvalues) are the system transfer function's poles (i.e., the singularities where the transfer function's magnitude is unbounded). These poles can be used to analyze whether the system is asymptotically stable or marginally stable. An alternative approach to determining stability, which does not involve calculating eigenvalues, is to analyze the system's Lyapunov stability. The zeros found in the numerator of 𝐆(s) can similarly be used to determine whether the system is minimum phase. The system may still be input–output stable (see BIBO stable) even though it is not internally stable. This may be the case if unstable poles are canceled out by zeros (i.e., if those singularities in the transfer function are removable).
Controllability
The state controllability condition implies that it is possible – by admissible inputs – to steer the states from any initial value to any final value within some finite time window. A continuous time-invariant linear state-space model is controllable if and only if rank[𝐁𝐀𝐁𝐀2𝐁⋯𝐀n−1𝐁]=n, where rank is the number of linearly independent rows in a matrix, and where n is the number of state variables.
Observability
Observability is a measure for how well internal states of a system can be inferred by knowledge of its external outputs. The observability and controllability of a system are mathematical duals (i.e., as controllability provides that an input is available that brings any initial state to any desired final state, observability provides that knowing an output trajectory provides enough information to predict the initial state of the system). A continuous time-invariant linear state-space model is observable if and only if rank[𝐂𝐂𝐀⋮𝐂𝐀n−1]=n.
… excerpt ends here. Continue reading the full article.


