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 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 , so these two numbers decide the picture.
- Negative trace and positive determinant: stable. A negative discriminant () makes the eigenvalues complex and the trajectories spiral; a negative determinant gives a saddle.
Predict
With the defaults, . What are its eigenvalues, and how do trajectories approach the origin?
. Two real negative eigenvalues make a stable node. The mode dies first, so every trajectory ends up arriving along the eigenvector of −1, the line .
Name it
The model
with n states, m inputs and p outputs; A is n × n. An nth-order differential equation becomes state form with :
The DC motor with states (i, ω):
The solution
The eigenvalues of A are the system's poles. If A has n independent eigenvectors , then (with the left eigenvectors), so every motion is a sum of modes .
Transfer function
The denominator is , the characteristic polynomial.
Coordinates
With x = Tz, the model becomes : 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
- Parameters. R = 2 Ω, L = 0.5 mH, = 0.05, J = 2 × 10⁻⁵ and b = 10⁻⁵.
- State matrix.
- Eigenvalues. From the trace, −4000.5, and the determinant, 252,000: as found from the transfer function.
- DC gain. 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 for and the motion from x(0) = (1, 0).
Show the solution
- Form of each entry. With eigenvalues −1 and −2, each entry is a combination of and .
- Fit the entries. Fit them to and its derivative A:
- Motion from (1, 0). The first column gives which is 0.600 at t = 1, matching the power series to every digit.
Answer each entry of mixes and as in step 2, and from (1, 0) the motion is , 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 , and find its poles from the trace and determinant.
Show the solution
- Circuit equations.
- State matrices.
- Trace and determinant.
- Natural frequency and damping. matching .
Answer the trace −10⁴ and determinant 10⁹ give = 31,600 rad/s and ζ = 0.158.
Check
. 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
starts at x(0) = (1, 0). What's at t = 2?
Check
A companion-form model , , . What's its DC gain?
Check
starts at x(0) = (0, 1). What's at t = 1?
Check
A motor's state matrix has R = 1 Ω, L = 0.5 mH, = 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 .
(a)
What is , 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 .
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°.
Step 2
Its determinant?
Step 3
Its poles' ?
Step 4
Their ζ?
Explain why
Why are the eigenvalues of A the same as the poles of the transfer function?
The transfer function is , and the inverse of is its adjugate divided by . The adjugate's entries are polynomials in s, so every pole of the transfer function is a root of , which is exactly the characteristic polynomial whose roots are the eigenvalues. In the other direction, each eigenvalue is the growth rate of a mode that the system follows on its own. The only way an eigenvalue can be missing from the transfer function is if its mode can't be excited by the input or can't be seen at the output, which is what controllability and observability (lessons 34 and 37) are about.
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.