S933 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S9 · Lesson 33 · State-space models and their solution

Writing plants as first-order matrix equations, the DC motor in state form, the matrix exponential and the solution with inputs, eigenvalues as poles and modes, transfer functions from state models, and changes of coordinates

Transfer functions describe one input and one output, and hide what's going on inside. A state-space model tracks every energy-storing quantity, every capacitor voltage, inductor current, position and velocity, as one vector that evolves by a matrix equation. It handles many inputs and outputs, it's how simulators and microcontrollers actually compute, and it opens the door to the second half of this course: placing every closed-loop pole at once, estimating states you can't measure, and optimal control.

  • The phase portrait of x˙=Ax for a 2 × 2 matrix A, with the trajectories from three starting points.
  • The readouts give the trace and determinant of A. Its eigenvalues are the roots of s2−(trA)s+det⁡A, so these two numbers decide the picture.
  • Negative trace and positive determinant: stable. A negative discriminant (tr2−4det⁡) makes the eigenvalues complex and the trajectories spiral; a negative determinant gives a saddle.

Predict

With the defaults, A=(01−2−3). What are its eigenvalues, and how do trajectories approach the origin?

Name it

The model

x˙=Ax+Bu,y=Cx+Du

with n states, m inputs and p outputs; A is n × n. An nth-order differential equation y(n)+an−1y(n−1)+…+a0y=b0u becomes state form with x=(y,y˙,…):

A=(01⋱−a0−a1⋯−an−1),B=(0⋮b0)

The DC motor with states (i, ω):

A=(−R/L−Ke/LKt/J−b/J),B=(1/L0),C=(01)

The solution

x(t)=eAtx(0)+∫0teA(t−τ)Bu(τ)dτ,eAt=I+At+(At)22!+…

The eigenvalues λk of A are the system's poles. If A has n independent eigenvectors vk, then eAt=∑keλktvkwkT (with wk the left eigenvectors), so every motion is a sum of modes eλktvk.

Transfer function

G(s)=C(sI−A)−1B+D,G(0)=D−CA−1B

The denominator is det⁡(sI−A), the characteristic polynomial.

Coordinates

With x = Tz, the model becomes (T−1AT,T−1B,CT,D): different matrices, same eigenvalues and transfer function. Choosing T well gives the canonical forms used for design in lessons 34 and 37.

Worked example

Write the motor of lesson 2 in state form and check its poles and DC gain.

Show the solution
  1. Parameters. R = 2 Ω, L = 0.5 mH, Kt=Ke = 0.05, J = 2 × 10⁻⁵ and b = 10⁻⁵.
  2. State matrix. A=(−4000−1002500−0.5)
  3. Eigenvalues. From the trace, −4000.5, and the determinant, 252,000: λ=−64.0,−3936s−1 as found from the transfer function.
  4. DC gain. −CA−1B=19.84rad/s per V the DC gain from before.

Answer the poles are at −64.0 and −3936 s⁻¹ and the DC gain is 19.84 rad/s per volt, both as found from the transfer function.

Worked example

Find eAt for A=(01−2−3) and the motion from x(0) = (1, 0).

Show the solution
  1. Form of each entry. With eigenvalues −1 and −2, each entry is a combination of e−t and e−2t.
  2. Fit the entries. Fit them to eA0=I and its derivative A: (eAt)11=2e−t−e−2t(eAt)12=e−t−e−2t(eAt)21=−2e−t+2e−2t(eAt)22=−e−t+2e−2t
  3. Motion from (1, 0). The first column gives x1(t)=2e−t−e−2t which is 0.600 at t = 1, matching the power series to every digit.

Answer each entry of eAt mixes e−t and e−2t as in step 2, and from (1, 0) the motion is x1(t)=2e−t−e−2t, which is 0.600 at t = 1.

Worked example

Write a series RLC circuit (10 Ω, 1 mH, 1 µF) in state form with states i and vC, and find its poles from the trace and determinant.

Show the solution
  1. Circuit equations. Ldi/dt=v−Ri−vCCdvC/dt=i
  2. State matrices. A=(−R/L−1/L1/C0)B=(1/L0)
  3. Trace and determinant. tr⁡A=−R/L=−104det⁡A=1/(LC)=109
  4. Natural frequency and damping. ωn=109=31600rad/sζ=1042×31600=0.158 matching R2C/L.

Answer the trace −10⁴ and determinant 10⁹ give ωn = 31,600 rad/s and ζ = 0.158.

Check

A=(−511.5−2). What's its larger eigenvalue?

Check

A 2 × 2 system matrix has trace −4 and determinant 10. What's the damping ratio of its poles?

Check

A=(01−1⋅3−(1+3)) starts at x(0) = (1, 0). What's x1 at t = 2?

Check

A companion-form model x˙1=x2, x˙2=−2x1−3x2+5u, y=x1. What's its DC gain?

Check

A=(−450−1) starts at x(0) = (0, 1). What's x1 at t = 1?

Check

A motor's state matrix has R = 1 Ω, L = 0.5 mH, Kt=Ke = 0.08, J = 5 × 10⁻⁵ kg·m² and b = 10⁻⁵ N·m·s. What's det A?

Check

A series RLC circuit has R = 20 Ω, L = 0.1 mH and C = 10 µF, with states i and vC.

(a)

What is ωn, the square root of the state matrix's determinant?

Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.

(b)

What is ζ, from the trace?

Check

A system matrix (abcd).

Step 1

What is its trace?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why are the eigenvalues of A the same as the poles of the transfer function?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.