A8 · Lesson 36 · State space, previewed
Many first-order equations instead of one high-order one
A circuit with three capacitors and two inductors gives a fifth-order differential equation, and writing it as one equation is a mess. There's a cleaner way to keep track. Every capacitor's voltage and every inductor's current is something the circuit remembers from one instant to the next. List them all as a vector, and the circuit's whole behavior is one matrix equation: the vector's rate of change is a matrix times the vector. The matrix's eigenvalues from A7 turn out to be the roots you've been finding by hand.
Play
- This is a series RLC circuit drawn in its state plane: the capacitor's voltage across, the inductor's current up. Each segment shows which way the state moves from that point.
- The curve starts at 5 V with no current. Follow it. Where does it end up, and how does it get there?
- Raise R past about 63 Ω. How does the path change? Set R = 0.
Predict
With R = 0, what path does the state follow?
A closed loop. With no resistance nothing is lost, so the energy stays the same, and that fixes an ellipse in the state plane. Add resistance and every lap loses energy, so the path spirals in; with enough resistance it heads straight for the middle without circling at all.
Name it
State variables and the state equation
State variables are the quantities a circuit stores: capacitor voltages and inductor currents. Knowing them now, plus the inputs from now on, is enough to predict everything later. A circuit with independent energy-storing parts has state variables, and an th-order equation becomes first-order ones.
The series RLC. Take (capacitor) and (inductor). The capacitor's law gives ; the loop around the circuit gives . As a matrix:
which is the general state equation
Any high-order equation converts. For , choose and . Then and , so
Eigenvalues are the characteristic roots. For the RLC matrix,
exactly the characteristic polynomial of lesson 17. In general, the natural response is built from for each eigenvalue λ of A, and each eigenvector is a mode: a direction in the state plane along which the state simply shrinks (or spirals) without changing direction. The full solution is the matrix exponential, , which course A10 and the controls survey build on.
Why bother. State form handles circuits with many loops and many sources without special cases, it's the form computers solve (lesson 45), and it's the language of control systems. The phase portrait in the sim is the state equation drawn directly.
Worked example
Write in state form and find the eigenvalues.
Show the solution
- State form. With ,
- Eigenvalues. Trace , determinant 2, so which gives .
Answer with the state matrix has rows and , and its eigenvalues are and .
Worked example
Find the state matrix of a series RLC with = 10 Ω, = 1 mH, = 10 µF, using .
Show the solution
- State equations.
- State matrix.
- Check with the determinant. The determinant gives rad/s.
Answer has rows and ; its determinant gives rad/s.
Worked example
Write in state form for = 2 kg, = 4 N·s/m and = 10 N/m, and find the eigenvalues.
Show the solution
- State form. With state , the second row comes from the equation solved for :
- Put in the numbers.
- Eigenvalues. They solve so .
- What they mean. It rings at 2 rad/s inside an envelope .
Answer the state matrix has rows and and the input vector is ; the eigenvalues are , so it rings at 2 rad/s inside an envelope.
Check
Write in state form with , , as .
(a)
What is the bottom-left entry of A?
(b)
What is the eigenvalue of A closest to zero?
Check
In the RLC state matrix with R = 47 Ω and L = 1.5 mH, what is the bottom-right entry, in 1/s?
Check
A circuit has two capacitors and one inductor, none of them in parallel or series with each other. How many state variables does it need?
Check
What is the slower eigenvalue of ?
Check
In a state-plane picture, the path spirals into the origin. What kind of response is this?
Check
Put with = 2, = 2, = 20 in state form .
(a)
What is the bottom-left entry of ?
(b)
What is the trace of ?
Check
Write a series RLC in state form with : and .
Step 1
What is the bottom-right entry of ?
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
What is ?
Explain why
Why are capacitor voltages and inductor currents the natural choice of state variables for a circuit?
They're the quantities a circuit can't change instantly: a capacitor's voltage needs charge to flow, and an inductor's current needs time to build or collapse. So at any instant they hold the circuit's memory of its past, and the energy stored in it. Given their values and the inputs from now on, every other voltage and current in the circuit can be worked out, which is exactly what a state is.
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.