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

A8 · Lesson 38 · Driven state equations

Inputs, outputs and the full solution of x′ = Ax + Bu

Lessons 36 and 37 solved 𝐱˙=A𝐱: a system left alone, settling from wherever it started. Real systems are driven. A source pushes a circuit, a motor's voltage pushes the shaft, and what you measure is some combination of the states. The standard form adds an input and an output, 𝐱˙=A𝐱+Bu and y=C𝐱+Du, and its solution has two parts: the natural response from the initial state, and a convolution of the input with the matrix exponential from A7.

  • The curve is the state of a series RLC circuit after a 1 V step, plotted as capacitor voltage across and scaled current up, for the damping ratio you set.
  • The state spirals into the dot at (1,0): the steady state, where the capacitor holds the full voltage and no current flows.
  • Raise ζ toward 1. The spiral tightens into a curve that approaches without circling: the overshoot disappears.

Predict

A stable system 𝐱˙=A𝐱+Bu gets a constant input u. Where does the state end up?

Name it

The standard form

𝐱˙=A𝐱+Bu,y=C𝐱+Du

A is n×n; B says how the input pushes each state; C says which combination of states you observe; D is any direct path from input to output, often zero.

The solution

𝐱(t)=eAt𝐱(0)+∫0teA(t−τ)Bu(τ)dτ

The first term is the natural response from the initial state. The second is the forced response, a convolution of the input with eAtB, the state's response to an impulse. For a constant input on a stable system, it settles to 𝐱ss=−A−1Bu.

The transfer function

Taking Laplace transforms from rest, s𝐗=A𝐗+BU, so 𝐗=(sI−A)−1BU and

H(s)=YU=C(sI−A)−1B+D

Its denominator is det⁡(sI−A), the characteristic polynomial: the poles of the transfer function are the eigenvalues of A. Its DC gain, H(0)=−CA−1B+D, is the steady-state output per unit of constant input.

Worked example

Find the DC steady state of a series RLC with state (vC,i) and a source V.

Show the solution
  1. State equations. Cv˙C=i and Li˙=V−vC−Ri, so A=[01/C−1/L−R/L]B=[01/L]
  2. Invert A. det⁡A=1LC, so A−1=[−RC−LC0]
  3. Steady state. −A−1BV=(V,0)
  4. Read it. The capacitor charges to the source voltage and the current stops, as expected; the formula works the same way for circuits with dozens of states, where intuition runs out.

Answer vC=V and i=0: the capacitor charges to the source voltage and the current stops.

Worked example

Find the transfer function of A=[01−2−3], B=(0,1), C=[10].

Show the solution
  1. Form sI−A. sI−A=[s−12s+3] with determinant s2+3s+2.
  2. Pick out the entry. With B=(0,1) and C=[10], H is the top-right entry of (sI−A)−1 (swap the diagonal, negate the off-diagonal, divide by the determinant): H(s)=1s2+3s+2
  3. Check against the equation. That's y¨+3y˙+2y=u, the equation this state form came from.
  4. DC gain. H(0)=0.5.

Answer H(s)=1s2+3s+2, with a DC gain of 0.5.

Worked example

Two RC stages with τ = 1 s are separated by a buffer, so x˙1=−x1+u and x˙2=−x2+x1. Find x2 after a unit step.

Show the solution
  1. Eigenvalues. A=[−101−1] has the eigenvalue −1 twice with one eigenvector, so expect te−t.
  2. First stage. Solving in order, x1=1−e−t
  3. Second stage. Then x˙2+x2=1−e−t gives x2=1−e−t−te−t
  4. At t=1. x2(1)=1−2e=0.264
  5. The slow start. The second stage starts slowly, since its input starts at zero: its response begins flat, like t22.

Answer x2=1−e−t−te−t, which is 0.264 at t=1 s.

Check

x˙1=−1x1+u and x˙2=−2x2+x1, with output y=x2. What is the DC gain?

Check

A mass of 1 kg on a spring of 10 N/m with damping is pushed by a constant force. How far does it move per newton, in steady state?

Write units the way you normally would: 1.5 m/N, 1500 mm/N and 0.0015 km/N are the same answer.

Check

Solve x˙=−0.5x+3 from rest. What is x at t = 2?

Check

For the two buffered RC stages (τ = 1 s), what is x2 at t = 1 after a unit step?

Check

A=[01−2−3], B=(0,1), C=[10].

(a)

H(s)=1s2+ps+q. What is p?

(b)

What is the DC gain?

Check

Solve x˙=−ax+bu from rest with u a unit step, using x=∫0te−a(t−τ)bdτ.

Step 1

What is x(t)?

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 poles of a system's transfer function the eigenvalues of its state matrix?

Practice

Keep practicing

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