Foundations to Frontier
Tests
A. Mathematical Foundations › A9 Differential Equations and Dynamical Systems

State-Space Models (the Control View)

Control engineers write every dynamic system in one standard form: ẋ = Ax + Bu, y = Cx + Du. This topic shows how to put mechanical, electrical and robotic systems into state-space form, how to linearize nonlinear dynamics about an operating point, and the key structural questions: poles and stability, controllability (can inputs move every state?) and observability (can outputs reveal every state?). It also covers transfer functions G(s) = C(sI − A)⁻¹B + D and frequency response, and exact zero-order-hold discretization for digital controllers. You will model a DC motor, then linearize a planar quadrotor about hover and test what its sensors and actuators can see and do.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Knobs, insides and dials

Think of a car. There are inputs you control (pedals, steering), an internal state you can’t see directly (exact speed of each wheel, engine temperature), and outputs you can see (the speedometer). A state-space model writes down how inputs change the state and how the state shows up on the dials. Once a system is in this form, decades of control theory apply to it, whether it’s a car, a drone or a satellite.

One model, three views: time, poles, frequency
step response y(t)××poles (s-plane)|G(jω)| dB, log ω
ωₙ = 2.000 rad/s · ζ = 0.150 · DC gain 1/k = 0.250 · overshoot 62.1% · poles -0.30+1.98j, -0.30−1.98j
The same A matrix determines everything. Pole real parts set the decay rate, imaginary parts the ringing frequency. Low damping moves poles toward the imaginary axis, so the step overshoots more and the frequency response grows a resonant peak near ωₙ. Below resonance the gain is 1/k (spring-dominated); above it, it falls at −40 dB/decade (mass-dominated).
Why engineers care

Flight software, autopilots, robot arm controllers and Kalman filters all run on state-space models. Before any controller is designed, engineers check controllability and observability: can the actuators actually steer every mode, and can the sensors actually see it? A poorly placed sensor can make a mode invisible, and an under-actuated design can make a mode uncontrollable.

📝 Quick check (Level 0)
0/3 answered
  1. 1. In a state-space model, u is…
  2. 2. The state x is…
  3. 3. A speedometer reading is an…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Standard form

x˙=Ax+Bu,y=Cx+Du\dot x = Ax + Bu,\qquad y = Cx + Du

with x∈Rnx\in\mathbb R^n (state), u∈Rmu\in\mathbb R^m (inputs) and y∈Rpy\in\mathbb R^p (outputs).

Example: mass–spring–damper

With state x=(q,q˙)x = (q, \dot q) and force input:

A=(01−k/m−c/m), B=(01/m), C=(1  0)A = \begin{pmatrix}0 & 1\\-k/m & -c/m\end{pmatrix},\ B = \begin{pmatrix}0\\1/m\end{pmatrix},\ C = (1\ \ 0)

Solution with input

x(t)=eAtx0+∫0teA(t−τ)Bu(τ) dτx(t) = e^{At}x_0 + \int_0^te^{A(t - \tau)}Bu(\tau)\,d\tau

The poles are the eigenvalues of A.

📝 Quick check (Level 1)
0/3 answered
  1. 1. For n states, m inputs, p outputs, B is…
  2. 2. The poles of a state-space model are…
  3. 3. DC gain of a mass–spring with position output:

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Controllability and observability (Kalman)

C=[B AB ⋯ An−1B],O=(CCA⋮CAn−1)\mathcal C = [B\ AB\ \cdots\ A^{n-1}B],\qquad\mathcal O = \begin{pmatrix}C\\CA\\\vdots\\CA^{n-1}\end{pmatrix}

The system is controllable iff rank⁡C=n\operatorname{rank}\mathcal C = n: any state can be reached. It’s observable iff rank⁡O=n\operatorname{rank}\mathcal O = n: the state can be reconstructed from outputs. These are prerequisites for pole placement, LQR and Kalman filtering (A10).

Transfer function and frequency response

Laplace transform with x0=0x_0 = 0: G(s)=C(sI−A)−1B+DG(s) = C(sI - A)^{-1}B + D. The poles of G are among the eigenvalues of A. For sinusoidal input at ω\omega, the steady output has gain ∣G(jω)∣\lvert G(j\omega)\rvert and phase ∠G(jω)\angle G(j\omega) (Bode plots). The DC gain is G(0)=−CA−1B+DG(0) = -CA^{-1}B + D.

Linearization

For x˙=f(x,u)\dot x = f(x, u) with equilibrium f(x0,u0)=0f(x_0, u_0) = 0, set A=∂f/∂xA = \partial f/\partial x and B=∂f/∂uB = \partial f/\partial u at (x0,u0)(x_0, u_0). It’s valid for small deviations.

Exact discretization (zero-order hold)

With input constant over each sample period T: xk+1=Adxk+Bdukx_{k+1} = A_dx_k + B_du_k, where Ad=eATA_d = e^{AT} and Bd=∫0TeAτdτ BB_d = \int_0^Te^{A\tau}d\tau\,B. Both come from one exponential of the block matrix (AB00)T\begin{pmatrix}A & B\\0 & 0\end{pmatrix}T.

🐍 Exercise 1: a DC motor in state space
Model a DC motor (current, speed, angle). Check controllability and observability ranks, evaluate the transfer function and compare with the analytic one, then discretize with ZOH via the block matrix exponential and verify it against continuous simulation.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Controllability is tested with…
  2. 2. G(s) =
  3. 3. ZOH discretization gives A_d =

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Why the Kalman rank test works

By Cayley–Hamilton, AnA^n is a combination of lower powers. So the reachable subspace from x(0)=0x(0) = 0, the span of eAtBe^{At}B over all t, equals range⁡[B AB ⋯ An−1B]\operatorname{range}[B\ AB\ \cdots\ A^{n-1}B]. Full rank means every direction is reachable. ∎ Observability is dual: (A,C)(A, C) is observable iff (A⊤,C⊤)(A^\top, C^\top) is controllable.

ZOH block exponential

Let z=(x,u)z = (x, u) with u˙=0\dot u = 0. Then z˙=(AB00)z\dot z = \begin{pmatrix}A & B\\0 & 0\end{pmatrix}z, whose exponential has top blocks (eAT,∫0TeAτdτB)(e^{AT}, \int_0^Te^{A\tau}d\tau B). ∎

Poles under discretization

The eigenvalues of AdA_d are epiTe^{p_iT}. The left half-plane maps into the unit disk. A good sample rate keeps ∣pi∣T≪1\lvert p_i\rvert T\ll1.

Exercise 3.1: is (A, B) = ([[1, 0], [0, 2]], [1, 0]ᵀ) controllable?

[B AB]=(1100)[B\ AB] = \begin{pmatrix}1 & 1\\0 & 0\end{pmatrix} has rank 1, so no. The second mode receives no input.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The Kalman test stops at A^(n−1)B because of…
  2. 2. Observability of (A, C) is equivalent to controllability of…
  3. 3. A continuous pole at s = −2 sampled at T = 0.1 maps to z =

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Linearizing a planar quadrotor at hover

A planar quadrotor has state (x,z,θ,x˙,z˙,θ˙)(x, z, \theta, \dot x, \dot z, \dot\theta) and inputs total thrust T and pitch torque τ. Hover (T=mgT = mg) is an equilibrium. Linearization gives x¨=−gθ\ddot x = -g\theta, z¨=δT/m\ddot z = \delta T/m and θ¨=τ/I\ddot\theta = \tau/I, a chain of integrators: torque → attitude → horizontal acceleration. The Kalman tests show:

  • with thrust and torque, all 6 states are controllable; with thrust alone, only the vertical channel (rank 2);
  • position measurements make the state fully observable; an attitude sensor alone sees only θ\theta and θ˙\dot\theta.

The linear model tracks the nonlinear quadrotor to 0.06% for a gentle torque pulse, but is off by 17% for an aggressive one.

🐍 Exercise 2 (research): planar quadrotor linearization
Linearize the planar quadrotor at hover by finite differences. Test controllability with both inputs and with thrust only, and observability from position and from attitude. Compare linear and nonlinear responses to small and large torque pulses.

State-space models in AI, robotics and aerospace

  • Flight control: linearized aircraft and spacecraft models at trim points, gain scheduling across the envelope.
  • Estimation: Kalman filters require (A, C) observable. Sensor placement studies use observability Gramians.
  • Learning: system identification fits A, B, C from data (subspace methods, DMD); Koopman and linear state-space neural models (S4, Mamba).
  • Digital control: every embedded controller runs a discretized model at a fixed sample rate.

References

  1. K. Åström, R. Murray (2021). Feedback Systems: An Introduction for Scientists and Engineers, 2nd ed. Princeton. Ch. 6–8.
  2. R. Kalman (1960). “On the general theory of control systems.” Proc. 1st IFAC Congress.
  3. G. Franklin, J. D. Powell, A. Emami-Naeini (2019). Feedback Control of Dynamic Systems, 8th ed. Pearson.
  4. G. Franklin, J. D. Powell, M. Workman (1998). Digital Control of Dynamic Systems, 3rd ed. Addison-Wesley.
  5. C. Van Loan (1978). “Computing integrals involving the matrix exponential.” IEEE TAC, 23(3).
  6. R. Mahony, V. Kumar, P. Corke (2012). “Multirotor aerial vehicles: modeling, estimation, and control of quadrotor.” IEEE Robotics & Automation Magazine, 19(3).
  7. P. Van Overschee, B. De Moor (1996). Subspace Identification for Linear Systems. Kluwer.