State Variables and State Equations
State variables and state equations give you a systematic way to describe how a circuit (or any dynamic system) evolves over time. Instead of writing one high-order differential equation, you break the system into a set of first-order equations that are easier to solve, simulate, and analyze for properties like stability and controllability.
This unit covers how to choose state variables, how to assemble them into matrix-form state equations, and how the input/output structure ties everything together.
State Variables and Equations
Fundamentals of State Variables
A state variable is one member of the minimum set of variables needed to completely describe a system's internal condition at any instant. If you know every state variable at time , plus the future input, you can predict the system's behavior for all .
Key properties:
- State variables are independent of each other; no state variable can be derived from the others.
- The number of state variables equals the system order.
- In electrical circuits, the natural choices are voltages across capacitors and currents through inductors, because these are the energy-storing elements whose values can't change instantaneously.
Why capacitor voltages and inductor currents? Capacitors store energy in an electric field () and inductors store energy in a magnetic field (). The energy stored in these elements defines the circuit's "memory," so their values at any moment capture everything you need to know about the circuit's past.

State Equations and Vectors
State equations express how each state variable changes over time as a function of the current state and the input. They are always first-order differential equations.
General (possibly nonlinear) form:
where is the vector of state variables, is the input vector, and is time.
The state vector collects all state variables into a single column matrix:
where is the number of state variables (and the system order).
For linear time-invariant (LTI) systems, the state equations simplify to matrix form:
- is the system matrix (also called the state matrix). Its entries come from the circuit element values and topology. The eigenvalues of determine the natural response of the system.
- is the input matrix, mapping the inputs to the state derivatives.
Example: For a series RLC circuit driven by a voltage source , you'd pick (inductor current) and (capacitor voltage) as state variables. The resulting state equations are:
Written in matrix form, the and matrices follow directly from these coefficients.
Applications and Analysis
The state-space framework is not just a different way to write equations; it unlocks tools that transfer-function methods can't easily provide:
- Stability analysis: The eigenvalues of tell you whether the system is stable (all eigenvalues have negative real parts) or unstable.
- Controllability and observability: Matrix rank tests (using and for controllability, and for observability) determine whether you can steer the system to any state or reconstruct internal states from outputs.
- Feedback controller design: State feedback () lets you place the system's poles wherever you want, provided the system is controllable.
- Numerical simulation: Software like MATLAB and Simulink solve state equations directly, making it straightforward to simulate even large, complex circuits.

System Dynamics
Characterizing Dynamic Systems
A dynamic system is one whose output depends not only on the current input but also on the system's history. Circuits with capacitors or inductors are dynamic because energy storage creates memory.
Dynamic systems are described by differential equations that relate inputs, outputs, and state variables. They can be classified along several axes:
- Linear vs. nonlinear (superposition applies or doesn't)
- Time-invariant vs. time-varying (parameters constant or changing)
- Causal (output depends only on present and past inputs, not future)
For this course, the focus is on linear time-invariant (LTI) circuits, where the matrix form applies directly.
Input and Output Vectors
The input vector gathers all external sources driving the system:
where is the number of independent inputs (voltage or current sources).
The output vector contains the quantities you actually want to measure or control:
where is the number of outputs.
The output equation links the state and input to the output. In general form:
For LTI systems, this becomes:
- is the output matrix, selecting which combinations of state variables appear in the output.
- is the feedthrough matrix (also called the direct transmission matrix). In most circuits, because there's no direct path from input to output that bypasses all energy-storage elements. A nonzero appears when, for example, a resistor connects the source directly to the output node.
Together, the four matrices form the complete state-space representation of an LTI system.
System Order and Complexity
The system order equals the number of independent energy-storage elements in the circuit, which matches the number of state variables.
- A single RC or RL circuit is first-order (one state variable).
- A series or parallel RLC circuit is second-order (two state variables: and ).
- Circuits with multiple capacitors and inductors yield higher-order systems.
Higher order means more complex transient behavior: a second-order system can oscillate, while a first-order system can only exhibit exponential decay or growth.
One practical note: if two capacitors are connected in parallel with no resistance between them, they act as a single equivalent capacitor, so they contribute only one state variable, not two. Always check for such dependencies when counting independent energy-storage elements.
For very high-order systems, model reduction techniques (like balanced truncation) can approximate the system with fewer state variables while preserving the dominant dynamic behavior. This becomes important when simulating or designing controllers for large-scale circuits.