Knowledge / Electrical and Electronics Engineering / State space analysis

State space analysis

Electrical and Electronics Engineering (B.E./B.Tech) · Control and measurement · free study notes for exams, placements and interviews

In short

State space analysis describes a dynamic system by a set of first-order differential equations in internal variables (the states) instead of a single high-order input-output equation. It handles multi-input multi-output, time-varying, nonlinear and initial-condition problems that transfer functions cannot, and it is the mathematical base of modern digital control, drives, robotics and aerospace guidance. In Indian exams it is a guaranteed scoring block: GATE EE/EC asks eigenvalues, state transition matrix, controllability and observability almost every year, and university papers ask state model formation and pole placement. On the job it appears in BHEL/BEL/ISRO/DRDO design work, MATLAB-Simulink model-based design at automotive and EV companies, and in embedded motor-control firmware.

Explained

State, state variables and the standard form

Forming the state model

Three routes are examined:

  1. From the physical system: write element equations (KVL/KCL, Newton's laws), then express the derivative of each energy variable in terms of states and inputs. Example (series RLC, input v, states i and v_C): di/dt = (−R i − v_C + v)/L, dv_C/dt = i/C.
  2. From a differential equation: for y⁽ⁿ⁾ + a₁y⁽ⁿ⁻¹⁾ + … + aₙ y = b u with no input derivatives, set x₁ = y, x₂ = ẏ, … xₙ = y⁽ⁿ⁻¹⁾ → phase-variable (companion) form: A has 1's on the superdiagonal and −aₙ … −a₁ in the last row, B = [0 … 0 b]ᵀ, C = [1 0 … 0].
  3. From a transfer function (realisation):
    • Series/cascade and parallel decomposition using the factored or partial-fraction form.
    • Controllable canonical form (companion, as above) — used for pole placement.
    • Observable canonical form — the transpose-dual of the above.
    • Diagonal (Jordan) canonical form from partial fractions: distinct poles give a diagonal A with the poles as entries; repeated poles give a Jordan block with 1's above the diagonal.
  4. Non-uniqueness: state models are not unique. Any non-singular transformation x = Pz gives ż = (P⁻¹AP)z + (P⁻¹B)u, y = (CP)z + Du — a similarity transformation. Eigenvalues, transfer function, controllability and observability (as properties) are invariant; A, B, C are not.

Solving the state equation and the state transition matrix

Transfer function, stability and the loss of hidden modes

Controllability and observability

State feedback, pole placement and observers

Key points

Formulas and examples

ẋ(t) = A x(t) + B u(t); y(t) = C x(t) + D u(t) — x: n×1 state vector, u: m×1 input, y: p×1 output; units are those of the physical variables (A, V, rad/s, m)
|λI − A| = 0 → eigenvalues λᵢ (s⁻¹, i.e. rad/s) = system poles
φ(t) = e^{At} = L⁻¹[(sI − A)⁻¹] — dimensionless state transition matrix
x(t) = φ(t) x(0) + ∫₀ᵗ φ(t − τ) B u(τ) dτ
G(s) = C (sI − A)⁻¹ B + D — transfer function matrix (p×m)
Q_c = [B AB A²B … A^{n−1}B]; controllable ⇔ rank Q_c = n
Q_o = [Cᵀ AᵀCᵀ … (Aᵀ)^{n−1}Cᵀ]; observable ⇔ rank Q_o = n
u = −K x + r → ẋ = (A − BK) x + B r; desired poles from |sI − A + BK| = φ_d(s)
K = [0 0 … 1] Q_c⁻¹ φ_d(A) — Ackermann's formula
Observer: x̂̇ = A x̂ + B u + L(y − C x̂); error poles from |sI − A + LC| = 0
Discrete: A_d = e^{A T}, B_d = ∫₀ᵀ e^{Aτ} dτ · B — T = sampling period (s)

Example 1 — State model of a series RLC circuit (R = 2 Ω, L = 1 H, C = 0.5 F), input v(t), output v_C.

Example 2 — State transition matrix. A = [[0, 1], [−2, −3]].

Example 3 — Controllability and observability. A = [[0, 1], [−2, −3]], B = [0, 1]ᵀ, C = [1, 0].

Example 4 — Pole placement. Same A and B as Example 3 (controllable canonical form). Required: ζ = 0.7, ω_n = 10 rad/s.

Example 5 — Hidden mode (pole-zero cancellation). A = [[1, 0], [0, −2]], B = [0, 1]ᵀ, C = [1, 1], D = 0.

AspectTransfer-function (classical)State space (modern)
DomainFrequency / s-domainTime domain, matrix form
System typeSISO, LTI onlyMIMO, time-varying, extendable to nonlinear
Initial conditionsAssumed zeroIncluded naturally through x(0)
Internal informationNone (input-output only)All internal states available
Stability testRouth, root locus, Bode, NyquistEigenvalues of A
Design toolsLead/lag, PID compensationPole placement, LQR, observers, Kalman filter
Hidden modesCancelled and invisibleExposed by controllability/observability tests
ComputationHand plots feasibleNeeds matrix computation (MATLAB, Python, Scilab)
Canonical formA structureGuaranteed propertyTypical use
Controllable (companion)Coefficients in the last rowAlways controllablePole placement, Ackermann
ObservableCoefficients in the last columnAlways observableObserver design
Diagonal (distinct poles)diag(λ₁ … λₙ)Modes decoupledGilbert's test, modal analysis
Jordan (repeated poles)Jordan blocks with 1'sShows mode couplingRepeated-eigenvalue problems
% MATLAB / Octave check of Examples 3 and 4
A = [0 1; -2 -3];  B = [0; 1];  C = [1 0];  D = 0;
rank(ctrb(A,B))          % 2 -> controllable
rank(obsv(A,C))          % 2 -> observable
K = acker(A, B, roots([1 14 100]))   % [98  11]
eig(A - B*K)             % -7 +/- 7.14i
sys = ss(A,B,C,D);  tf(sys)          % 1/(s^2+3s+2)

Where it is used

Interview questions

Common mistakes

Related topics

Control systems basics · Stability: Routh, root locus and Bode · Digital control systems · PID controllers and tuning · Linear algebra: matrices and eigenvalues · Signals and systems (Laplace and z-transforms)

Open in the Knowledge reader →Find jobs →