In
control engineering
Control engineering, also known as control systems engineering and, in some European countries, automation engineering, is an engineering discipline that deals with control systems, applying control theory to design equipment and systems with d ...
and
system identification
The field of system identification uses statistical methods to build mathematical models of dynamical systems from measured data. System identification also includes the optimal design#System identification and stochastic approximation, optimal de ...
, a state-space representation is a
mathematical model
A mathematical model is an abstract and concrete, abstract description of a concrete system using mathematics, mathematical concepts and language of mathematics, language. The process of developing a mathematical model is termed ''mathematical m ...
of a
physical system
A physical system is a collection of physical objects under study. The collection differs from a set: all the objects must coexist and have some physical relationship.
In other words, it is a portion of the physical universe chosen for analys ...
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
The phase space of a physical system is the set of all possible physical states of the system when described by a given parameterization. Each possible state corresponds uniquely to a point in the phase space. For mechanical systems, the p ...
in certain
dynamical systems
In mathematics, a dynamical system is a system in which a Function (mathematics), function describes the time dependence of a Point (geometry), point in an ambient space, such as in a parametric curve. Examples include the mathematical models ...
) is a geometric space where the axes are these state variables, and the system’s state is represented by a state
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
.
For
linear
In mathematics, the term ''linear'' is used in two distinct senses for two different properties:
* linearity of a '' function'' (or '' mapping'');
* linearity of a '' polynomial''.
An example of a linear function is the function defined by f(x) ...
,
time-invariant, and finite-dimensional systems, the equations can be written in
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
form, offering a compact alternative to the
frequency domain
In mathematics, physics, electronics, control systems engineering, and statistics, the frequency domain refers to the analysis of mathematical functions or signals with respect to frequency (and possibly phase), rather than time, as in time ser ...
’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
Systems theory is the Transdisciplinarity, transdisciplinary study of systems, i.e. cohesive groups of interrelated, interdependent components that can be natural or artificial. Every system has causal boundaries, is influenced by its context, de ...
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
Econometrics is an application of statistical methods to economic data in order to give empirical content to economic relationships. M. Hashem Pesaran (1987). "Econometrics", '' The New Palgrave: A Dictionary of Economics'', v. 2, p. 8 p. 8 ...
, for example, state-space models can be used to decompose a
time series
In mathematics, a time series is a series of data points indexed (or listed or graphed) in time order. Most commonly, a time series is a sequence taken at successive equally spaced points in time. Thus it is a sequence of discrete-time data. ...
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
In statistics and control theory, Kalman filtering (also known as linear quadratic estimation) is an algorithm that uses a series of measurements observed over time, including statistical noise and other inaccuracies, to produce estimates of unk ...
or a state observer to produce estimates of the current unknown state variables using their previous observations.
State variables
The internal
state variable
A state variable is one of the set of Variable (mathematics), variables that are used to describe the mathematical "state" of a dynamical system. Intuitively, the state of a system describes enough about the system to determine its future behavi ...
s 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,
, 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
capacitor
In electrical engineering, a capacitor is a device that stores electrical energy by accumulating electric charges on two closely spaced surfaces that are insulated from each other. The capacitor was originally known as the condenser, a term st ...
s and
inductor
An inductor, also called a coil, choke, or reactor, is a Passivity (engineering), passive two-terminal electronic component, electrical component that stores energy in a magnetic field when an electric current flows through it. An inductor typic ...
s. 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, or the system cannot be solved.
Linear systems
The most general state-space representation of a linear system with
inputs,
outputs and
state variables is written in the following form:
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
can be continuous (e.g.
) or discrete (e.g.
). In the latter case, the time variable
is usually used instead of
.
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
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
s of the matrix
. The stability of a time-invariant state-space model can be determined by looking at the system's
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
in factored form. It will then look something like this:
The denominator of the transfer function is equal to the
characteristic polynomial
In linear algebra, the characteristic polynomial of a square matrix is a polynomial which is invariant under matrix similarity and has the eigenvalues as roots. It has the determinant and the trace of the matrix among its coefficients. The ...
found by taking the
determinant
In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
of
,
The roots of this polynomial (the
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
s) 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
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
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
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
Transfer function
The "
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
" of a continuous time-invariant linear state-space model can be derived in the following way:
First, taking the
Laplace transform
In mathematics, the Laplace transform, named after Pierre-Simon Laplace (), is an integral transform that converts a Function (mathematics), function of a Real number, real Variable (mathematics), variable (usually t, in the ''time domain'') to a f ...
of
yields
Next, we simplify for
, giving
and thus
Substituting for
in the output equation
giving
Assuming zero initial conditions
and a
single-input single-output (SISO) system, the
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
is defined as the ratio of output and input
. For a
multiple-input multiple-output (MIMO) system, however, this ratio is not defined. Therefore, assuming zero initial conditions, the
transfer function matrix is derived from
using the method of equating the coefficients which yields
Consequently,
is a matrix with the dimension
which contains transfer functions for each input output combination. Due to the simplicity of this matrix notation, the state-space representation is commonly used for multiple-input, multiple-output systems. The
Rosenbrock system matrix provides a bridge between the state-space representation and its
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
.
Canonical realizations
Any given transfer function which is
strictly proper can easily be transferred into state-space by the following approach (this example is for a 4-dimensional, single-input, single-output system):
Given a transfer function, expand it to reveal all coefficients in both the numerator and denominator. This should result in the following form:
The coefficients can now be inserted directly into the state-space model by the following approach:
This state-space realization is called controllable canonical form because the resulting model is guaranteed to be controllable (i.e., because the control enters a chain of integrators, it has the ability to move every state).
The transfer function coefficients can also be used to construct another type of canonical form
This state-space realization is called observable canonical form because the resulting model is guaranteed to be observable (i.e., because the output exits from a chain of integrators, every state has an effect on the output).
Proper transfer functions
Transfer functions which are only
proper (and not
strictly proper) can also be realised quite easily. The trick here is to separate the transfer function into two parts: a strictly proper part and a constant.
The strictly proper transfer function can then be transformed into a canonical state-space realization using techniques shown above. The state-space realization of the constant is trivially
. Together we then get a state-space realization with matrices ''A'', ''B'' and ''C'' determined by the strictly proper part, and matrix ''D'' determined by the constant.
Here is an example to clear things up a bit:
which yields the following controllable realization
Notice how the output also depends directly on the input. This is due to the
constant in the transfer function.
Feedback
A common method for feedback is to multiply the output by a matrix ''K'' and setting this as the input to the system:
.
Since the values of ''K'' are unrestricted the values can easily be negated for
negative feedback
Negative feedback (or balancing feedback) occurs when some function (Mathematics), function of the output of a system, process, or mechanism is feedback, fed back in a manner that tends to reduce the fluctuations in the output, whether caused ...
.
The presence of a negative sign (the common notation) is merely a notational one and its absence has no impact on the end results.
becomes
solving the output equation for
and substituting in the state equation results in
The advantage of this is that the
eigenvalues
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
of ''A'' can be controlled by setting ''K'' appropriately through
eigendecomposition of
.
This assumes that the closed-loop system is
controllable or that the unstable eigenvalues of ''A'' can be made stable through appropriate choice of ''K''.
Example
For a strictly proper system ''D'' equals zero. Another fairly common situation is when all states are outputs, i.e. ''y'' = ''x'', which yields ''C'' = ''I'', the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
. This would then result in the simpler equations
This reduces the necessary eigendecomposition to just
.
Feedback with setpoint (reference) input
In addition to feedback, an input,
, can be added such that
.
becomes
solving the output equation for
and substituting in the state equation
results in
One fairly common simplification to this system is removing ''D'', which reduces the equations to
Moving object example
A classical linear system is that of one-dimensional movement of an object (e.g., a cart).
Newton's laws of motion
Newton's laws of motion are three physical laws that describe the relationship between the motion of an object and the forces acting on it. These laws, which provide the basis for Newtonian mechanics, can be paraphrased as follows:
# A body re ...
for an object moving horizontally on a plane and attached to a wall with a spring:
where
*
is position;
is velocity;
is acceleration
*
is an applied force
*
is the viscous friction coefficient
*
is the spring constant
*
is the mass of the object
The state equation would then become