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

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 +1s and −1s, 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 R3 and the source. Whatever you do, the current in R1 equals the currents in R2 and R3 added together. That's KCL at node a, and in this lesson it becomes AT𝐲=𝟎.

Predict

A connected circuit has 4 nodes and 6 branches. How many independent loops does it have?

Name it

The four subspaces

For an m×n matrix A of rank r:

SubspaceLives inDimension
Column space C(A)ℝmr
Null space N(A)ℝnn−r
Row space C(AT)ℝnr
Left null space N(AT)ℝmm−r

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 1,…,m and the nodes 1,…,n, and give each branch a direction. Row k of the m×n incidence matrix A has −1 in the column of branch k's starting node and +1 in its ending node. For a square of 4 nodes with one diagonal:

A=[−1100−10100−1100−10100−11]branch 1: 1→2branch 2: 1→3branch 3: 2→3branch 4: 2→4branch 5: 3→4

What each subspace means

  • A𝐱, for node voltages 𝐱, gives the voltage across each branch.
  • Null space N(A): voltages with no differences anywhere, 𝐱=(c,c,c,c). 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 N(A) is 1D, so r=n−1.
  • Column space C(A): 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 N(AT): branch currents 𝐲 with AT𝐲=𝟎. Row j of AT𝐲 is the net current into node j, so this is KCL. Its dimension m−r=m−n+1 is the number of independent loops: each loop current is a basis vector.
  • Row space C(AT): 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 C, Ohm's law is 𝐲=C(A𝐱) and KCL with injected currents 𝐟 is AT𝐲=𝐟. Together:

ATCA𝐱=𝐟

ATCA is the conductance matrix G from lesson 12, built from the circuit's structure. Grounding a node deletes its column, which removes the null space and makes G invertible.

Worked example

Find a basis for the loop currents of the square with a diagonal above.

Show the solution
  1. Count the loops. m−n+1=5−4+1=2
  2. Loop 1. It goes 1→2→3 and back to 1 against branch 2: 𝐲=(1,−1,1,0,0)
  3. Loop 2. It goes 2→3→4 and back to 2 against branch 4: 𝐲=(0,0,1,−1,1)
  4. Check loop 1 at node 2. Branch 1 brings +1 in, branch 3 takes 1 out, net zero. Each column of AT𝐲 balances the same way.

Answer the two loops (1,−1,1,0,0) and (0,0,1,−1,1) are a basis for the loop currents.

Worked example

With every branch a 1 S conductance and node 4 grounded, find G=ATCA.

Show the solution
  1. Ground node 4. Drop column 4 and use C=I.
  2. Read off ATA. It has each node's number of branches on the diagonal and −1 for each branch joining two nodes: G=[2−1−1−13−1−1−13]
  3. Compare with KCL. That's exactly what writing KCL node by node would give: the matrix product does the bookkeeping.

Answer G has rows (2,−1,−1), (−1,3,−1) and (−1,−1,3).

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
  1. Size and rank. The incidence matrix A is 8 × 5, one row per branch. For a connected graph its null space is the constant potentials, dimension 1, so the rank is 5−1=4.
  2. The four subspaces.
SubspaceDimension
column space4, in ℝ8
row space4, in ℝ5
null space1 (raise every node by the same voltage)
left null space8−4=4
  1. Loops. The left null space holds the currents that satisfy KCL with no sources: the loop currents. So there are 4 independent loops, the b−n+1 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 G=ATCA, 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 R1 and 2 mA leaves through R2. How much leaves through R3?

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, N(AT)?

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 m×n matrix has rank r.

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°.

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.

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.