A7 · Lesson 19 · The four subspaces
Kirchhoff's laws are linear algebra
Write down which branches of a circuit connect which nodes, as a matrix of s and s, and you've captured its whole structure. That one incidence matrix contains Kirchhoff's current law, Kirchhoff's voltage law, the number of independent loops, the reason one node must be grounded, and the conductance matrix of nodal analysis. Every matrix has four fundamental subspaces, and for a circuit each one has a physical meaning.
- The circuit has four nodes (in, a, b and ground) and five branches. The meters read the branch currents into and out of node a.
- Change and the source. Whatever you do, the current in equals the currents in and added together. That's KCL at node a, and in this lesson it becomes .
Predict
A connected circuit has 4 nodes and 6 branches. How many independent loops does it have?
Three: . Building the circuit one branch at a time, the first branches can connect all the nodes without closing a loop (a tree), and every branch after that closes exactly one new loop. This count is the dimension of a null space, as you'll see.
Name it
The four subspaces
For an matrix of rank :
| Subspace | Lives in | Dimension |
|---|---|---|
| Column space | ||
| Null space | ||
| Row space | ||
| Left null space |
The row space and null space are perpendicular, and so are the column space and left null space (lesson 24).
The incidence matrix
Number the branches and the nodes , and give each branch a direction. Row of the incidence matrix has in the column of branch 's starting node and in its ending node. For a square of 4 nodes with one diagonal:
What each subspace means
- , for node voltages , gives the voltage across each branch.
- Null space : voltages with no differences anywhere, . Raising every node by the same amount changes nothing, which is why you must ground a node to fix the voltages. For a connected circuit is 1D, so .
- Column space : the branch voltages a circuit can actually have. A set of branch voltages is possible exactly when it adds to zero around every loop: that's KVL.
- Left null space : branch currents with . Row of is the net current into node , so this is KCL. Its dimension is the number of independent loops: each loop current is a basis vector.
- Row space : the possible net current injections at the nodes; they must add to zero, since current that goes in must come out.
Nodal analysis
With branch conductances on the diagonal of , Ohm's law is and KCL with injected currents is . Together:
is the conductance matrix from lesson 12, built from the circuit's structure. Grounding a node deletes its column, which removes the null space and makes invertible.
Worked example
Find a basis for the loop currents of the square with a diagonal above.
Show the solution
- Count the loops.
- Loop 1. It goes and back to 1 against branch 2:
- Loop 2. It goes and back to 2 against branch 4:
- Check loop 1 at node 2. Branch 1 brings in, branch 3 takes out, net zero. Each column of balances the same way.
Answer the two loops and are a basis for the loop currents.
Worked example
With every branch a 1 S conductance and node 4 grounded, find .
Show the solution
- Ground node 4. Drop column 4 and use .
- Read off . It has each node's number of branches on the diagonal and for each branch joining two nodes:
- Compare with KCL. That's exactly what writing KCL node by node would give: the matrix product does the bookkeeping.
Answer has rows , and .
Worked example
A connected circuit has 5 nodes and 8 branches. What are the dimensions of its incidence matrix's four subspaces, and how many independent loops does it have?
Show the solution
- Size and rank. The incidence matrix is 8 × 5, one row per branch. For a connected graph its null space is the constant potentials, dimension 1, so the rank is .
- The four subspaces.
| Subspace | Dimension |
|---|---|
| column space | 4, in |
| row space | 4, in |
| null space | 1 (raise every node by the same voltage) |
| left null space |
- Loops. The left null space holds the currents that satisfy KCL with no sources: the loop currents. So there are 4 independent loops, the of mesh analysis.
Answer the column space and row space have dimension 4, the null space 1 and the left null space 4, so the circuit has 4 independent loops.
Check
A connected circuit has 6 nodes and 8 branches. How many independent loops does it have?
Check
What is the rank of the incidence matrix of a connected circuit with 8 nodes?
Check
A node has three resistors attached: 1 kΩ, 2 kΩ and 5 kΩ. What is its diagonal entry of , in mS?
Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.
Check
At node a, 5 mA arrives through and 2 mA leaves through . How much leaves through ?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
A 5 × 3 matrix has rank 3. What is the dimension of its left null space, ?
Check
Why must one node of a circuit be grounded before solving for node voltages?
Check
A connected circuit has 5 nodes and 8 branches.
(a)
What is the rank of its incidence matrix?
(b)
How many independent loops does it have?
Check
An matrix has rank .
Step 1
What is the dimension of its null space?
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 the dimension of its left null space?
Explain why
Explain why the branch currents of a circuit satisfy KCL exactly when they're in the left null space of its incidence matrix.
Column of the incidence matrix has a for each branch that ends at node and a for each branch that starts there. So entry of adds up the currents flowing into node and subtracts those flowing out: it's the net current into the node. says the net current into every node is zero, which is exactly Kirchhoff's current law. The currents that satisfy it form the left null space, and its basis vectors are the loop currents.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.