electronics engineering
Course handbook · Fourth year
Systems Theory
Systems theory: state-space models, linear system response, stability, controllability and observability, nonlinear systems.
- 8Topics
- 6Solved exercises
- 37Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/systems-theory. Links work in the PDF too.
1State-space representation and linearisation
Systems theory studies in a unified way very different objects, circuits, machines, chemical reactions, populations, economies, looking only at how causes (inputs) produce effects (outputs) over time. Its central tool is the state-space representation. In this lesson we look at what the state is, how systems are classified, equilibrium points, linearisation with its proof and the example of the pendulum, and changes of coordinates.
The state
A dynamical system has memory: the output at an instant depends not only on the input at that instant, but on the whole past history. The state
is the minimal information about the past that, together with the future input, determines the whole future evolution. In an electric circuit it is the voltages across capacitors and the currents in inductors; in a mechanical system the positions and velocities; in a tank the levels.
The continuous-time input-state-output representation is
![]()
with
(the number
is the order of the system), input
and output
. The first is the state equation, the second the output map. In discrete time the derivative is replaced by the next step,
.
Classification
- Linear if
and
are linear in
and
; superposition then holds. - Time-invariant if
and
do not depend explicitly on time. - Strictly proper if the output depends on the input only through the state, i.e. there is no instantaneous link.
The most studied case, and the basis of the whole course, is the linear time-invariant system:
![]()
with constant matrices
(
),
(
),
(
) and
(
).

Example: a series RLC circuit. With state
(capacitor voltage) and
(inductor current), input the source voltage
and output
:
![]()
i.e.
,
,
,
.
Equilibrium points
With a constant input
, a state
is an equilibrium if, starting there, the system stays there:
. A linear system with invertible
has a single equilibrium,
; a non-linear system can have many, of different nature.
Linearisation
Almost all real systems are non-linear, but around an equilibrium they behave like a linear system.
Theorem. Let
be an equilibrium of
with differentiable
. For small deviations
,
, to first order,
![Rendered by QuickLaTeX.com \[ \dot{\delta x} = A\,\delta x + B\,\delta u,\qquad A = \left.\frac{\partial f}{\partial x}\right|_{\bar{x},\bar{u}},\quad B = \left.\frac{\partial f}{\partial u}\right|_{\bar{x},\bar{u}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-a62eb4779a0250ec3874b32c6f486bb0_l3.png)
Proof. Since
is constant,
. The first-order Taylor expansion around
gives
![]()
and the first term is zero because the point is an equilibrium. Neglecting the higher-order terms, the linear system remains. ∎
The matrices
and
are the Jacobians of
. The output is linearised in the same way, with
and
.
The example of the pendulum
A pendulum of length
, with viscous friction and an applied torque
, with state
(angle from the downward vertical) and
:
![]()
With
the equilibria are
,
: the pendulum hanging down (
) and the inverted pendulum (
). The Jacobians are
![]()
because the derivative of
is
, which is
at 0 and
at
. The two matrices differ by a sign, and that sign decides everything: the first describes damped oscillations, the second an unstable system (lesson on stability). It is the same model as the inverted pendulum on a cart and the Segway, which stay upright only thanks to feedback.
Changes of coordinates
The state is not unique: if
is an invertible matrix,
is also a state. Substituting
:
![]()
The two representations describe the same system: they have the same eigenvalues (the matrices
and
are similar) and the same input-output relation. Choosing
well gives more convenient forms, such as the diagonal one, in which each coordinate evolves on its own, or the canonical forms (lesson on realisation).
2Solution of the state equations and modes
A linear time-invariant system
can be solved exactly, for any input. The solution is written with the matrix exponential, and its structure reveals the natural modes of the system: the elementary forms of motion of which every evolution is a combination. In this lesson we define the matrix exponential, prove Lagrange’s formula, look at the modes for real, complex and repeated eigenvalues, the computation with the Laplace transform and a complete example.
The matrix exponential
For a scalar,
has solution
. For matrices it is defined in the same way, with the series
![]()
which converges for every square matrix and every
. Differentiating term by term gives
, and moreover
and
. Beware:
holds only if
and
commute.
Lagrange’s formula
Theorem. The solution of
with
is
![]()
Proof. Multiply the equation on the left by
:
. The left-hand side is the derivative of
, because
(
commutes with its own exponential). Integrating from 0 to
:
![]()
and multiplying on the left by
gives the formula. The solution is unique because the equation is linear with constant coefficients. ∎
The first term is the free response, due to the initial condition alone; the second the forced response, due to the input alone, and it is a convolution integral with the state impulse response
. The output is obtained by multiplying by
and adding
. It is the same structure as the convolution seen in the Signal Theory lesson on LTI systems.
Natural modes
If
is diagonalisable,
with
the diagonal matrix of eigenvalues and
the matrix of eigenvectors. Then
and, summing the series,
![]()
Every element of
is therefore a combination of the functions
: the modes of the system. If the initial state is an eigenvector
, the free response always stays along that direction,
.

The possible cases are:
- real eigenvalue
: mode
, which decays if
and diverges if
; - complex pair
: two complex conjugate modes which, combined, give the real functions
and
: an oscillation of angular frequency
, damped or amplified according to the sign of
; - repeated eigenvalue with fewer independent eigenvectors than its multiplicity:
is not diagonalisable, the Jordan form is used, and the modes
,
, and so on appear. For
they decay anyway, because the exponential beats the power; for
they give ramps, as in the double integrator.
Computation with the Laplace transform
Transforming
gives
, i.e.
. Comparing with Lagrange’s formula:
![]()
where
is the transfer function. Since
, the poles of
are among the eigenvalues of
: they are all of them, unless there are cancellations (lesson on observability).
A complete example
Let
. The characteristic polynomial is
, with eigenvalues
and
. One computes
![]()
and splits each element into partial fractions: for instance
. Inverting:
![]()
One checks at once that
gives the identity. Every element contains only the modes
and
: any initial condition dies out with two decaying exponentials, the slower of which has time constant 1. The dominant mode is the one with the least negative real part, which survives longest and sets the settling time.
3Discrete-time systems
Many systems evolve in steps: a computer updating its state at every cycle, a digital controller, a yearly economic model, a population that breeds by seasons. Discrete-time systems have the same theory as continuous ones, with matrix powers in place of exponentials and the unit circle in place of the left half-plane. In this lesson we look at the solution of difference equations with proof, discrete modes, the exact discretisation of a continuous system with its proof and the link between eigenvalues in the two worlds.
Discrete-time state equations
The discrete-time linear time-invariant system is
![]()
where
is an integer, the step index.
Theorem. The solution with
is
![Rendered by QuickLaTeX.com \[ x(k) = A^k x_0 + \sum_{j=0}^{k-1} A^{\,k-1-j}B\,u(j) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ae82fffd0a340e04106dd5d533c2ac04_l3.png)
Proof. By induction. For
the sum is empty and
remains. If the formula holds for
, then
![Rendered by QuickLaTeX.com \[ x(k+1) = A\,x(k) + Bu(k) = A^{k+1}x_0 + \sum_{j=0}^{k-1}A^{\,k-j}B\,u(j) + Bu(k) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-aac74c9d6517888275a16b0047b3caf1_l3.png)
and the last term is exactly the term
of the sum, with
. The formula therefore holds for
. ∎
It is the discrete analogue of Lagrange’s formula: free response
plus a discrete convolution of the input with the impulse response
.
Discrete-time modes
If
is diagonalisable,
, and the modes are the sequences
. Their behaviour depends on the position of the eigenvalue in the complex plane relative to the circle of radius 1:
: the mode tends to zero;
: it diverges;
real positive: monotonic behaviour;
real negative: the sign alternates at every step, a behaviour with no equivalent in first-order continuous systems;
complex: oscillation
, with
radians per step;
: the mode vanishes after one step. If all the eigenvalues are zero,
and any initial state is cleared in at most
steps. This is the deadbeat response, impossible in continuous time.

Exact discretisation
A continuous system driven by a computer receives a piecewise-constant input: the computer updates it every
seconds and holds it until the next update (Process Control lesson on digital control). Seen only at the sampling instants, the continuous system becomes exactly a discrete system.
Theorem. If
and
is constant for
, then
satisfies
![Rendered by QuickLaTeX.com \[ x_{k+1} = A_d\,x_k + B_d\,u(k),\qquad A_d = e^{AT},\quad B_d = \int_0^T e^{A\sigma}\,d\sigma\;B \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7c7c268563542bfabadd1edb866140a6_l3.png)
Proof. Apply Lagrange’s formula starting at instant
for a duration
:
![Rendered by QuickLaTeX.com \[ x\big((k+1)T\big) = e^{AT}x(kT) + \int_{kT}^{(k+1)T} e^{A((k+1)T - \tau)}B\,u(k)\,d\tau \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-359828bbf43d48c33a75b2415043f60e_l3.png)
With the change of variable
the integral becomes
, and
comes out of the integral because it is constant. ∎
It is not an approximation: at the sampling instants the two models coincide exactly.
Example. The first-order system
has
,
. Then
and
. The static gain
is the same as that of the continuous system, as it must be.
Eigenvalues in the two worlds
Theorem. If
is an eigenvalue of
, then
is an eigenvalue of
, with the same eigenvector.
Proof. If
, then
for every
, and summing the exponential series
. ∎
Since
, an eigenvalue in the left half-plane (
) goes inside the unit circle, the imaginary axis goes onto the circle, the right half-plane outside. Stability is preserved by sampling. Moreover, continuous eigenvalues differing by
end up at the same point: this is aliasing (lesson on sampling) seen from the side of the modes.
The z-transform
Like the Laplace transform for continuous systems, the z-transform turns difference equations into algebraic ones:
becomes
. The discrete transfer function is
![]()
and its poles are the eigenvalues of
(unless there are cancellations). Stability requires them all to lie inside the unit circle.
4Stability
Stability is the first property required of a system: a small disturbance must not drive it far away. But “stable” has different meanings, and the difference matters: a system can give bounded outputs for every bounded input and hide inside it a mode that blows up. In this lesson we look at Lyapunov’s definitions, the eigenvalue criterion with proof, input-output stability and its difference from internal stability, and the Lyapunov equation with the proof of the theorem.
Definitions
We consider the free response around an equilibrium, which for a linear system can be moved to the origin.
- The equilibrium is stable (in the sense of Lyapunov) if for every
there exists
such that, starting at a distance less than
, the state stays forever at a distance less than
. In words: starting close enough, one stays close. - It is asymptotically stable if it is stable and moreover the state tends to the equilibrium.
- It is unstable if it is not stable.
A frictionless pendulum hanging down is stable but not asymptotically: it oscillates forever with its initial amplitude. With friction it becomes asymptotically stable. The inverted pendulum is unstable.
The eigenvalue criterion
For linear time-invariant systems stability is a property of the system, not of a single equilibrium, and it is read from the eigenvalues of
.
Theorem. The system
is asymptotically stable if and only if all the eigenvalues of
have strictly negative real part.
Proof. The free response is
, and every element of
is a combination of the modes
(lesson on the solution), with
less than the multiplicity of the eigenvalue. If all
, every mode tends to zero, because the decaying exponential beats any power of
: so
, and
from every initial state. Moreover
is bounded, which gives stability. Conversely, if an eigenvalue has
, starting from its eigenvector (or its real part, if complex) the evolution
does not tend to zero. ∎
The borderline case: if the eigenvalues with zero real part have Jordan blocks of size 1 (i.e. enough eigenvectors), the system is marginally stable, like the frictionless oscillator. If not, growing modes
appear, as in the double integrator
, which with a non-zero initial velocity drifts away forever. In discrete time the criterion is the same with
. To check it without computing the eigenvalues, the Routh-Hurwitz criterion is applied to the characteristic polynomial (Automatic Control lesson on stability).
Internal stability and input-output stability
A system is BIBO stable (bounded input, bounded output) if every bounded input gives a bounded output, starting from zero state. It is checked on the transfer function: all the poles of
must have negative real part.
Asymptotic stability implies BIBO stability, because the poles of
are among the eigenvalues of
. The converse does not hold: if an unstable eigenvalue cancels with a zero in the transfer function, the corresponding mode does not appear in the output, but it is there.
Example. With
,
,
one gets
: BIBO stable. But the first state evolves as
, and any noise or initial condition makes it grow without bound, until something saturates or breaks. The unstable mode is not reachable from the input, which is why the transfer function does not see it (lessons on reachability and observability). The practical rule: never cancel an unstable pole with a zero of the controller.
The Lyapunov equation
Lyapunov’s second method proves stability by finding an “energy” function that decreases along trajectories, without solving the equations. For linear systems a quadratic function
is sought, with
symmetric and positive definite, so that
for every
and its level curves are ellipsoids around the origin.

Theorem. If there exist symmetric positive definite matrices
and
such that
![]()
then the system
is asymptotically stable.
Proof. Along a trajectory, the derivative of
is
![]()
which is negative for every
. So
strictly decreases along every trajectory not at the origin. Since
and
are positive definite, there is
with
(one can take the ratio of the smallest eigenvalue of
to the largest of
), so
and
:
tends to zero exponentially, and so does
. ∎
The converse also holds: if the system is asymptotically stable, for every positive definite
the Lyapunov equation has a unique positive definite solution
, given by
. In practice one chooses
, solves the linear equation for
and checks whether
is positive definite. In discrete time the equation becomes
.
The value of the method lies above all in non-linear systems, where eigenvalues are not enough (lesson on non-linear systems), and in the fact that
also gives an estimate of how fast the state converges.
5Reachability and controllability
Before designing a controller one must ask whether the input can take the system where we want. It is not obvious: a car cannot move sideways from rest, and two identical tanks fed by the same tap cannot have different levels. Reachability answers with a test on the rank of a matrix. In this lesson we look at the definitions, Kalman’s test with the discrete-time proof and the role of the Cayley-Hamilton theorem, the continuous-time proof with the Gramian, the difference between reachability and controllability and an example with two subsystems.
Definitions
A state
is reachable if there is an input that takes the system from the zero state to
in finite time. The system is reachable if all states are. A state is controllable if there is an input that takes it to zero in finite time. For continuous-time linear systems the two properties coincide; in discrete time they do not, as we shall see.
Kalman’s test in discrete time
Define the reachability matrix
![]()
with
block columns, i.e.
.
Theorem. The system
is reachable if and only if
. In that case every state is reached in at most
steps.
Proof. Starting from
, the solution (lesson on discrete systems) after
steps is
![Rendered by QuickLaTeX.com \[ x(k) = \sum_{j=0}^{k-1}A^{k-1-j}Bu(j) = \begin{pmatrix} B & AB & \cdots & A^{k-1}B \end{pmatrix}\begin{pmatrix} u(k-1) \\ \vdots \\ u(0) \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4a3be9685545ea4dd176606215338113_l3.png)
The states reachable in
steps are therefore the image of the matrix
. By the Cayley-Hamilton theorem every matrix satisfies its own characteristic polynomial,
, so
and all higher powers are linear combinations of
. The columns
with
add no new directions: the set of reachable states stops growing after
steps and is the image of
. It equals the whole of
if and only if
has rank
. ∎
The reachable subspace is the image of
: if the rank is less than
, the input can move the state only within this subspace, whatever it does.
The continuous case and the Gramian
Theorem. The system
is reachable if and only if
, with the same matrix
. Moreover, in that case every state is reached in any time
.
Proof. Necessity. If the rank is less than
, there is a vector
orthogonal to all the columns of
:
for
, and by Cayley-Hamilton for every
. Summing the exponential series,
for every
. From Lagrange’s formula with zero initial state,
: the state always stays orthogonal to
, and states with
are unreachable.
Sufficiency. Define the reachability Gramian
![]()
If
is invertible, the input
takes the state from 0 to
. Indeed by Lagrange’s formula
![]()
and with
the integral is exactly
, so
. It remains to note that
is invertible when the rank is full: if
, then
, so
for every
; differentiating at
gives
for every
, i.e.
orthogonal to
, and with full rank
. ∎
The input found with the Gramian is also the one of minimum energy
among all those achieving the same transfer. If
is very small,
is nearly singular and enormous inputs are needed: reachability says it can be done, not that it is easy.
An example

(a) In parallel. Two equal tanks fed by the same tap:
,
. Then
and
has two proportional columns: rank 1. One can also see it directly: the difference
satisfies
, with no input. Starting from equal levels they stay equal forever.
(b) In series. The second tank is fed by the first:
,
. Then
and
has determinant 1: rank 2. Acting only on the first, by playing with timing, the system can be brought to any pair of levels (even with the second higher than the first, for an instant).
Reachability, controllability and alternative tests
In discrete time, if
is singular a system can be controllable (driven to zero) without being reachable: with
and
, every state goes to zero in one step by itself, but no non-zero state can be reached.
An equivalent test, useful to understand which mode is unreachable, is the Popov-Belevitch-Hautus test: the system is reachable if and only if
for every eigenvalue
of
. An eigenvalue that makes the rank drop corresponds to a mode on which the input has no effect at all.
Reachability is exactly the condition for being able to assign all the eigenvalues with state feedback
(Automatic Control lesson on state space). If the system is not reachable, the eigenvalues of the unreachable part stay as they are: the system can be stabilised only if they are already stable, and it is then called stabilisable.
Reachability in depth: the Gramian computed, the minimum-energy input and the PBH test
This page goes deeper into the lesson on reachability and controllability: it computes the Gramian in full on an example, the double integrator, derives the input that moves the state and proves that it is the minimum-energy one, shows the cost of being quick, solves a discrete-time example in the minimum number of steps and applies the PBH test to find the mode that the input cannot see.
The Gramian computed by hand: the double integrator
The best way to understand the Gramian is to compute it in full once. Take the double integrator, a unit mass pushed by a force:
is the position,
the velocity,
the force.
![]()
Step 1: Kalman’s test.
, so
, with determinant
: rank 2, the system is reachable.
Step 2: the exponential. Since
, the series stops at the second term:
, and therefore
.
Step 3: the Gramian. Integrate the product of the vector with its transpose:
![Rendered by QuickLaTeX.com \[ W(T) = \int_0^T \begin{pmatrix} \tau \\ 1 \end{pmatrix}\begin{pmatrix} \tau & 1 \end{pmatrix}d\tau = \int_0^T \begin{pmatrix} \tau^2 & \tau \\ \tau & 1 \end{pmatrix}d\tau = \begin{pmatrix} T^3/3 & T^2/2 \\ T^2/2 & T \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-41f97bc4d76d01796ed5eeba33de5b1b_l3.png)
The determinant is
, positive for every
: the Gramian is invertible, as the theorem promises. The inverse is
![]()
Step 4: the input. We want to move the mass by
and leave it at rest:
. Then
. With
we have
, and the input given by the Gramian formula is
![]()
A linearly decreasing force: it pushes forward in the first half and brakes in the second, symmetrically.
Step 5: the check. Integrating twice from zero initial conditions:
![Rendered by QuickLaTeX.com \[ x_2(t) = \frac{6d}{T^2}\left(t - \frac{t^2}{T}\right),\qquad x_1(t) = d\left(3\frac{t^2}{T^2} - 2\frac{t^3}{T^3}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4d4de2652e2b83ed7a56302f4b380556_l3.png)
and at
:
,
. The transfer succeeds exactly.

Why it is the minimum-energy input
The energy spent by this input can be computed without integrating
: substituting
,
![Rendered by QuickLaTeX.com \[ E = \int_0^T u^Tu\,dt = x_f^TW^{-1}\left(\int_0^T e^{A(T-t)}BB^Te^{A^T(T-t)}dt\right)W^{-1}x_f = x_f^TW(T)^{-1}x_f \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-3d2800332c5fea83a9be3cdc941f77d4_l3.png)
In our example
.
Theorem. Among all the inputs that bring the state from 0 to
in a time
, the Gramian one has the minimum energy.
Proof. Let
be another input performing the same transfer. By Lagrange’s formula the difference
must produce a zero final state:
. The energy is
![]()
The cross term is
. What remains is
, with equality only for
. ∎

The practical meaning. Halving the allowed time multiplies the energy by 8 and the peak force
by 4. This is why a system that is reachable “in theory” may not be so in practice: actuators have limits, and a nearly singular Gramian (directions of the state that the input moves with difficulty) turns into huge inputs.
A discrete-time example: arriving in n steps
The system
with
![]()
is the sampled double integrator (position and velocity, with the step as the unit of time).
,
, determinant
: reachable, so every state is reached in at most two steps.
We want
. From the solution formula
![]()
Check:
(the mass has gained speed),
. In one step it would be impossible:
only changes the velocity. In discrete time the minimum number of steps is tied to the rank of the partial matrices
, and it is the principle of deadbeat control (lesson on digital control).
The PBH test on an example
Take again the two tanks in parallel from the example in the lesson,
,
. The only eigenvalue is
, and
![]()
has rank 1: the test fails at
. The vector
, which annihilates the matrix from the left (
and
), points to the combination of the state that the input cannot see: exactly the level difference
, which evolves on its own with the mode
.
Common mistakes
- Computing the determinant when
is not square: with
inputs
is
, and what counts is the rank, not the determinant (which does not exist). - Stopping at
with
: all powers up to
are needed. - Confusing reachability and stability: an unstable system can be perfectly reachable (and therefore stabilizable by feedback), a stable one may not be.
- Bringing
in: reachability depends only on
and
; the output concerns observability. - Thinking that time matters in continuous time: if the system is reachable, it is so in any time
; the time only changes the “price”, that is the energy
.
Exercises on the topic, from Kalman’s test to the minimum energy, are on the exercise page linked at the top.
Exercises
Exercises on reachability and controllability of the kind set in Systems Theory and Automatic Control courses, at three levels: basic, for the direct use of Kalman’s test; intermediate, with parameters and canonical forms; exam, with the Gramian and discrete-time systems. The result is given at once; the full solution opens with a click. The proofs are in the lesson and in the in-depth page linked at the top.
Basic level
Exercise 2. Two inputs
With
and
(two independent integrators, each with its own input), is the system reachable? And if the second input is removed?
Intermediate level
Exercise 3. Reachability with a parameter
For which values of
is the system with
,
not reachable? Interpret the result.
6Observability and the Kalman decomposition
The state of a system is almost never measured in full: some outputs are measured. The question symmetric to reachability is: by watching the output (and knowing the input) for some time, can the state be reconstructed? This is observability. In this lesson we look at Kalman’s observability test with proof, the duality principle, the Kalman decomposition into four parts and the very important fact that the transfer function sees only the reachable and observable part.
Definition and test
The system is observable if, given the input and the output over a finite interval, the initial state
is uniquely determined. Since the contribution of the input to the output can be computed (it is the forced response), it is enough to study the free response: the question is whether two different initial states can give the same free output. Define the observability matrix
![Rendered by QuickLaTeX.com \[ \mathcal{O} = \begin{pmatrix} C \\ CA \\ \vdots \\ CA^{n-1} \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-c9460acc09eec665506ff8114ac31f10_l3.png)
Theorem. The system
,
is observable if and only if
. In that case
output samples are enough.
Proof. The free output is
. Collecting the first
samples:
![Rendered by QuickLaTeX.com \[ \begin{pmatrix} y(0) \\ y(1) \\ \vdots \\ y(n-1) \end{pmatrix} = \mathcal{O}\,x_0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-6ffecdb721c77dbeead92501f437e62d_l3.png)
The linear system in
has a unique solution if and only if
has rank
. Further samples do not help: by Cayley-Hamilton
with
is a combination of rows already present. If the rank is less than
, every
in the kernel of
gives an identically zero output, and cannot be told apart from zero. ∎
In continuous time the test is the same: the derivatives
at
equal
, and the reasoning is identical (or uses the observability Gramian). The kernel of
is the unobservable subspace: the states that “cannot be seen” from the output.
Example. The two tanks in series of the lesson on reachability,
. If the first is measured,
, then
:
has rank 1, and the level of the second is invisible, because it does not affect the first. If the second is measured,
,
: rank 2. The second tank “carries” information about the first, because the first feeds it. In general, what lies upstream of the sensor is well observed.
Duality
Comparing the two matrices:
, which is the reachability matrix of the system with matrices
and
in place of
and
.
Theorem (duality). The pair
is observable if and only if the pair
is reachable.
Proof. A matrix and its transpose have the same rank, and
. ∎
Every result on reachability therefore translates into one on observability. In particular, just as reachability allows the eigenvalues to be assigned with state feedback, observability allows those of an observer, which estimates the state from the measurements, to be assigned (Automatic Control lesson on state space); designing one is designing the other on the dual system.
The Kalman decomposition
Combining the two properties, with a suitable change of coordinates the state splits into four parts:
- RO: reachable and observable;
- RŌ: reachable but not observable;
- R̄O: not reachable but observable;
- R̄Ō: neither reachable nor observable.

Theorem. The transfer function depends only on the reachable and observable part:
![]()
Idea of the proof. In Kalman coordinates the matrix
is block triangular,
has zero components on the unreachable parts and
has zero components on the unobservable parts. The inverse of a block-triangular matrix is block triangular with the diagonal blocks inverted, and in the product
the zeros of
and
eliminate every term except that of the RO block. ∎
The consequences are far-reaching:
- the eigenvalues of the other three parts do not appear as poles of
: they have cancelled with zeros. This is why the system in the example of the lesson on stability was BIBO stable but internally unstable; - a transfer function of order
describes a system with at least
states; a representation with exactly
states is called minimal, and it is minimal if and only if it is reachable and observable; - a hidden unstable mode (unreachable or unobservable) cannot be corrected by any controller using that input and that output: it must be fixed by changing actuators or sensors.
A system is called detectable if all its unobservable modes are asymptotically stable: it is the condition, dual to stabilisability, needed to build an observer whose error tends to zero.
7Realisation and canonical forms
Often what is known about a system is its transfer function, obtained from measurements or from a frequency-domain design, and a state-space representation is needed: to simulate it, to implement it in a circuit or a program, to design state feedback. This is the realisation problem. In this lesson we look at the controllable canonical form with proof, why it is always reachable and when it is observable, the dual form, the modal form from partial fractions, and what happens when there are cancellations.
The problem
Given a rational transfer function
, we look for
such that
. If
is proper but not strictly (numerator and denominator of the same degree), divide first:
and realise the strictly proper remainder. There are infinitely many realisations, because every change of coordinates produces another one (lesson on representations); the most useful ones are the canonical forms.
The controllable canonical form
Consider, to fix ideas, a third-order system:
![]()
Theorem. A realisation of
is
![Rendered by QuickLaTeX.com \[ A = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -a_0 & -a_1 & -a_2 \end{pmatrix},\quad B = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix},\quad C = \begin{pmatrix} b_0 & b_1 & b_2 \end{pmatrix},\quad D = 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-fd38eb21d2f35084867455985849fdde_l3.png)
Proof. Introduce an auxiliary variable
defined by
, i.e.
. Then
, i.e.
. Choosing as state
,
,
gives
,
and, from the differential equation,
: these are the rows of
and
. The output
gives
. ∎

The matrix
is called a companion matrix: the coefficients of its characteristic polynomial are exactly the
of the last row. The realisation is also a practical recipe: a chain of
integrators with constant feedbacks, as was done with analogue computers and as one writes in a simulation program.
Theorem. The controllable canonical form is always reachable.
Proof. Compute
:
,
is the last column of
,
, and
. The matrix
![Rendered by QuickLaTeX.com \[ \mathcal{R} = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & -a_2 \\ 1 & -a_2 & a_2^2 - a_1 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-92d4fbfb23d2bb4f63113f282a010dee_l3.png)
is triangular with respect to the anti-diagonal with all 1s on it, so it has determinant
and full rank, whatever the coefficients. ∎
Observability, instead, is not guaranteed: the controllable canonical form is observable if and only if numerator and denominator have no common roots. If there is a cancellation, the realisation has more states than needed, and the extra part is unobservable.
The dual form
Transposing the controllable canonical form (
, with
in place of
and
in place of
) gives the observable canonical form. The transfer function does not change, because
is a scalar and equals its transpose:
. By duality (lesson on observability) this form is always observable, and it is reachable only if there are no cancellations.
The modal form
If the poles
are distinct, the partial fraction expansion
![Rendered by QuickLaTeX.com \[ G(s) = \sum_{i=1}^{n}\frac{r_i}{s - p_i} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-dfa86b94fb11a05deababb90d26c57ea_l3.png)
immediately suggests a diagonal realisation:
for each
, and
. Each state is a mode, and the subsystems work in parallel. Every mode is reachable (the input enters all of them) and observable if and only if its residue
is non-zero: a zero residue is exactly a cancelled pole.
Example. For
the residues are
and
, so
![]()
The controllable canonical form of the same function has
(the matrix of the example in the lesson on the solution),
and
. The two realisations are related by a change of coordinates, the one that diagonalises
.
Cancellations
Change the numerator to
:
. The canonical form with
has two states and is reachable, but the transfer function is first order: the realisation is not minimal, and by the theorem of the lesson on observability the extra part must be unobservable. Indeed
has rank 1. The mode
is there, but the output does not see it.
Here the hidden mode is stable and does no harm. If it were unstable, and the system were actually built that way (in a circuit, or as the series of a controller and a process), we would have a system that looks perfect from its transfer function and yet diverges. The moral of realisation theory: the transfer function describes the input-output behaviour, not the system; to know everything one needs the state-space representation, or the certainty that it is minimal.
8Non-linear systems
Linear systems are a mathematical convenience: almost everything in the real world is non-linear, starting with the saturation of every actuator. Non-linear systems can do things linear ones cannot: have several equilibria, oscillate with a fixed amplitude independent of the initial conditions, blow up in finite time, behave chaotically. In this lesson we look at these phenomena, the phase portrait, Lyapunov’s indirect method (linearisation) and the direct method, with the proof of the theorem and the example of the pendulum, in which energy is the Lyapunov function.
Phenomena that linear systems do not have
- Several isolated equilibria. A linear system has a single equilibrium, or infinitely many on a subspace; the pendulum has two of opposite nature, hanging down and inverted (and their copies every
). - Limit cycles. An isolated oscillation, with its own amplitude and period, towards which nearby trajectories converge. The Van der Pol oscillator,
, has negative damping at small amplitudes and positive damping at large ones: small oscillations grow, large ones decay, and everything converges to the same cycle. It is the working principle of electronic oscillators, in which the amplifier’s non-linearity sets the amplitude (Applied Electronics lesson on oscillators). - Finite escape time. The equation
with
has solution
, as can be checked by differentiating: it goes to infinity at the instant
. No linear system does this: at most it grows exponentially. - Chaos. Already with three states, deterministic systems such as the Lorenz equations have bounded but long-term unpredictable trajectories, because tiny errors in the initial condition grow exponentially.
The phase portrait
For second-order systems the trajectories are drawn in the state plane: the phase portrait. It shows equilibria, regions of attraction and cycles at a glance.

The indirect method: linearisation
Theorem (Lyapunov’s indirect method). Let
be the Jacobian of the system at an equilibrium (lesson on representations).
- If all the eigenvalues of
have negative real part, the equilibrium is locally asymptotically stable. - If at least one eigenvalue has positive real part, the equilibrium is unstable.
- If the eigenvalues have non-positive real part and some lie on the imaginary axis, linearisation says nothing: the non-linear terms decide.
The idea of the proof is to use as a Lyapunov function for the non-linear system the quadratic function
found for the linearised system (lesson on stability): close to the equilibrium the non-linear terms are of higher order and cannot change the sign of its derivative.
Example. For the pendulum with friction, the characteristic polynomial of the Jacobian is
at the bottom, with roots of negative real part: stable. At the inverted equilibrium it is
, whose negative constant term guarantees a positive real root: unstable, a saddle point.
The critical case is not rare. Without friction (
) the eigenvalues at the bottom are
, on the imaginary axis, and linearisation cannot decide. The direct method is needed.
Lyapunov’s direct method
Theorem. Let the origin be an equilibrium of
and let
be a continuously differentiable function, positive definite in a neighbourhood of the origin (
,
elsewhere). If along trajectories
, the origin is stable. If
for every
, it is asymptotically stable.
Proof (stability). Given
, let
be the minimum of
on the sphere
, positive because
is positive definite. The set
contains the origin and, by continuity of
, a ball of radius
around it. A trajectory starting in this ball has
at the start, and since
does not increase, it keeps
forever. To leave the ball of radius
it would have to cross its surface, where
: impossible. So it stays within
. ∎
The method does not require solving the equations, and it works far from the equilibrium. The difficulty is finding
: there is no general recipe, but for physical systems energy is the first candidate.
The example of the pendulum
For the pendulum
,
, take the mechanical energy per unit mass, kinetic plus potential (divided by
):
![]()
It is positive definite near the origin (
for
). Its derivative along trajectories is
![]()
So the downward equilibrium is stable, even without friction, where
and energy is conserved: the case linearisation could not decide. With friction
is only negative semidefinite (it is zero when
, whatever
), so the theorem gives only stability. LaSalle’s invariance principle completes the reasoning: trajectories converge to the largest invariant set contained in
; but if
stays zero,
must also be zero, and near the origin this happens only for
. The equilibrium is therefore asymptotically stable, as the phase portrait shows.
Beyond analysis
The same ideas are used for design. The control of a Segway or of an inverted pendulum on a cart is usually designed on the model linearised around the upright position, and works as long as the angle stays small. For large excursions non-linear techniques are used: feedback linearisation, which cancels known non-linearities with the command itself; variable-structure control (sliding mode), robust to uncertainties; and direct design of controllers that make the derivative of a Lyapunov function chosen in advance negative.
✎Exam exercises
5. Reachability and controllability
Exam level
Exercise 5. The cost of being quick
A 1 kg platform (the double integrator) must move by 2 m and stop in 2 s. Find the peak force and the minimum energy. How do they change if the time drops to 1 s?
Exercise 6. Controllable but not reachable
In discrete time, with
and
, study reachability and controllability.
✓Solutions
5. Reachability and controllability · Exercise 1. Kalman’s test on a second-order system
Result:
: yes, the system is reachable.
Compute
and place the columns side by side:
![]()
The determinant is nonzero, so the rank is 2 and the system is reachable. (The exact value of the determinant does not matter: all that matters is that it is not zero.)
5. Reachability and controllability · Exercise 2. Two inputs
Result: With two inputs yes (rank 2); with the first input only, no (rank 1).
With two inputs
is a
matrix that already contains
: rank 2, reachable. Each input moves its own state.
With the first input only,
and
:
has rank 1. The second integrator receives nothing and stays where it is: the state
is not reachable.
5. Reachability and controllability · Exercise 3. Reachability with a parameter
Result: Not reachable for
and for
, when
is aligned with an eigenvector of
.
and
![]()
The system is not reachable for
and
. The eigenvalues of
are
and
, with eigenvectors
and
. For
the vector
coincides with the eigenvector of
: the input excites only that mode, and the state stays on the eigenvector line. The same holds for
with the other mode. In general: an input aligned with an eigenvector is not enough to move the whole state.
5. Reachability and controllability · Exercise 4. The companion form
Result:
: rank 3, reachable.
,
. Hence
![Rendered by QuickLaTeX.com \[ \mathcal{R} = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & -3 \\ 1 & -3 & 7 \end{pmatrix},\qquad \det\mathcal{R} = 1\cdot(0\cdot(-3) - 1\cdot 1) = -1 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-c45fa8760ed55852a24430760072d208_l3.png)
Rank 3. It is no coincidence: the reachability matrix of a companion form (controllable canonical form) is always triangular with respect to the antidiagonal, with ones on the antidiagonal, so its determinant is
whatever the coefficients. This is why every reachable single-input system can be brought into this form, which makes the design of the feedback immediate.
5. Reachability and controllability · Exercise 5. The cost of being quick
Result: With
s: 3 N and 6 N²·s. With
s: 12 N and 48 N²·s.
From the formulas derived above, with
and
: peak force
N, energy
N²·s. With
s:
N (four times as much),
N²·s (eight times as much). If the actuator cannot exceed 5 N, the minimum time with this profile is
s. With a bounded force, the absolute minimum time is obtained instead with a “full forward, full reverse” profile (bang-bang control), not with the minimum-energy one.
5. Reachability and controllability · Exercise 6. Controllable but not reachable
Result: Not reachable (rank 1), but controllable: every state goes to zero in two steps.
:
has rank 1, the system is not reachable (the second component cannot be made nonzero). However
: with zero input,
for every initial state. Every state is driven to zero in two steps, so the system is controllable. The difference comes from the zero eigenvalue of
; in continuous time it cannot happen, because
is always invertible.
∑Formula sheet
State-space representation and linearisation
The state
![]()
Classification
![]()
![]()
Linearisation
![Rendered by QuickLaTeX.com \[ \dot{\delta x} = A\,\delta x + B\,\delta u,\qquad A = \left.\frac{\partial f}{\partial x}\right|_{\bar{x},\bar{u}},\quad B = \left.\frac{\partial f}{\partial u}\right|_{\bar{x},\bar{u}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-a62eb4779a0250ec3874b32c6f486bb0_l3.png)
![]()
The example of the pendulum
![]()
![]()
Changes of coordinates
![]()
Solution of the state equations and modes
The matrix exponential
![]()
Lagrange's formula
![]()
![]()
Natural modes
![]()
Computation with the Laplace transform
![]()
A complete example
![]()
![]()
Discrete-time systems
Discrete-time state equations
![]()
![Rendered by QuickLaTeX.com \[ x(k) = A^k x_0 + \sum_{j=0}^{k-1} A^{\,k-1-j}B\,u(j) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ae82fffd0a340e04106dd5d533c2ac04_l3.png)
![Rendered by QuickLaTeX.com \[ x(k+1) = A\,x(k) + Bu(k) = A^{k+1}x_0 + \sum_{j=0}^{k-1}A^{\,k-j}B\,u(j) + Bu(k) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-aac74c9d6517888275a16b0047b3caf1_l3.png)
Exact discretisation
![Rendered by QuickLaTeX.com \[ x_{k+1} = A_d\,x_k + B_d\,u(k),\qquad A_d = e^{AT},\quad B_d = \int_0^T e^{A\sigma}\,d\sigma\;B \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7c7c268563542bfabadd1edb866140a6_l3.png)
![Rendered by QuickLaTeX.com \[ x\big((k+1)T\big) = e^{AT}x(kT) + \int_{kT}^{(k+1)T} e^{A((k+1)T - \tau)}B\,u(k)\,d\tau \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-359828bbf43d48c33a75b2415043f60e_l3.png)
The z-transform
![]()
Stability
The Lyapunov equation
![]()
![]()
Reachability and controllability
Kalman's test in discrete time
![]()
![Rendered by QuickLaTeX.com \[ x(k) = \sum_{j=0}^{k-1}A^{k-1-j}Bu(j) = \begin{pmatrix} B & AB & \cdots & A^{k-1}B \end{pmatrix}\begin{pmatrix} u(k-1) \\ \vdots \\ u(0) \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4a3be9685545ea4dd176606215338113_l3.png)
The continuous case and the Gramian
![]()
![]()
Observability and the Kalman decomposition
Definition and test
![Rendered by QuickLaTeX.com \[ \mathcal{O} = \begin{pmatrix} C \\ CA \\ \vdots \\ CA^{n-1} \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-c9460acc09eec665506ff8114ac31f10_l3.png)
![Rendered by QuickLaTeX.com \[ \begin{pmatrix} y(0) \\ y(1) \\ \vdots \\ y(n-1) \end{pmatrix} = \mathcal{O}\,x_0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-6ffecdb721c77dbeead92501f437e62d_l3.png)
The Kalman decomposition
![]()
Realisation and canonical forms
The controllable canonical form
![]()
![Rendered by QuickLaTeX.com \[ A = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -a_0 & -a_1 & -a_2 \end{pmatrix},\quad B = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix},\quad C = \begin{pmatrix} b_0 & b_1 & b_2 \end{pmatrix},\quad D = 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-fd38eb21d2f35084867455985849fdde_l3.png)
![Rendered by QuickLaTeX.com \[ \mathcal{R} = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & -a_2 \\ 1 & -a_2 & a_2^2 - a_1 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-92d4fbfb23d2bb4f63113f282a010dee_l3.png)
The modal form
![Rendered by QuickLaTeX.com \[ G(s) = \sum_{i=1}^{n}\frac{r_i}{s - p_i} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-dfa86b94fb11a05deababb90d26c57ea_l3.png)
![]()
Non-linear systems
The example of the pendulum
![]()
![]()
,
is reachable.