Skip to content

State Space

ẋ = Ax + Bu is the transfer function rewritten so each derivative has its own variable

1. States instead of one ratio

A transfer function hides the internal variables. State space names them. For a second-order mechanical system the natural choice is position and velocity. The matrices then say how those two numbers change, and how the input enters. The output is a row vector C times the state. The algebra is the linear algebra already used for systems of differential equations.

Linear state model

2. Companion form

Any monic transfer function can be written so the top row of A is a shift and the bottom row is the denominator coefficients, with a sign change. For the unit-DC-gain second-order system the input has to be multiplied by wn², otherwise the DC gain would not be 1.

Companion form

3. Eigenvalues are poles

Example: wn = 2, ζ = 0.5

The eigenvalues are −1 ± j√3, which are the poles of wn² / (s² + 2 ζ wn s + wn²) at these numbers. Same clock, two notations.

4. Controllability

A state is controllable when the input can drive it anywhere, given enough time. For two states the test is whether the matrix with columns B and AB has full rank. A zero determinant means some direction is unreachable.

Two-state controllability matrix

Example: the companion model above

B = [0, 4]ᵀ and AB = [4, −8]ᵀ. The determinant of [B AB] is 0·(−8) − 4·4 = −16, which is −wn⁴. It is not zero. One input can move both states.

5. Practice

Try it

Write the companion A and B for wn = 1 and ζ = 1.

Try it

For that critically damped model, is the pair controllable?

Try it

Someone proposes B = [0, 0]ᵀ for the same A. What fails?

6. Resources

State space is the notation later courses use for estimators and for more than one input. The poles you already plotted do not move just because the notation did.

Continue the track

The mathematics behind this topic: Linear algebra.

Site soundtrack