LINEAR-ALGEBRA ยท Unit 12 ยท Video 2 ยท Interactive Practice

One Matrix Unlocks Kirchhoff's Law, Loop Currents, and Euler's Formula

IKey Formulas

Formula Name Description
Aij=โˆ’1A_{ij} = -1 (start), +1+1 (end), 00 (else) Incidence matrix rule Each row has one โˆ’1-1 and one +1+1
AโŠคy=0A^\top y = 0 Kirchhoff's Current Law Currents balance at every node
rank(A)=nโˆ’1\text{rank}(A) = n - 1 Rank (connected graph) One less than number of nodes
nโˆ’m+โ„“=1n - m + \ell = 1 Euler's formula Nodes โˆ’- edges ++ independent loops =1= 1

IIVisualization 1 โ€” Graph โ†” Incidence Matrix

Each edge becomes one matrix row: โˆ’1-1 at its start node, +1+1 at its end, 00 elsewhere.

๐Ÿ’ก Adding the rows of e1,e2,e3e_1, e_2, e_3 gives zero โ€” the closed loop 1โ†’2โ†’3โ†’11 \to 2 \to 3 \to 1 makes those incidence rows linearly dependent.

IIIVisualization 2 โ€” Loop Currents Satisfy KCL

Any combination y=aโ€‰loop1+bโ€‰loop2y = a\,\text{loop}_1 + b\,\text{loop}_2 balances the current at every node: AโŠคy=0A^\top y = 0.

๐Ÿ’ก The basis currents (1,1,โˆ’1,0,0)(1,1,{-1},0,0) and (0,0,1,โˆ’1,1)(0,0,1,{-1},1) span the null space of AโŠคA^\top, whose dimension equals the number of independent loops, โ„“=2\ell = 2.

IVVisualization 3 โ€” Why nโˆ’m+โ„“=1n - m + \ell = 1

Split the edges into a spanning tree (nโˆ’1n-1) plus โ„“\ell loop edges, and the alternating count always lands on 11.

VQuiz Questions

Question 1

In the video's graph, edge 3 goes from node 1 to node 3. What is the entry in row 3 (edge 3), column 2 (node 2) of the incidence matrix AA?

โœ… Correct! Node 2 is not an endpoint of edge 3, so the entry is 0.

โŒ Not quite. Only the start node gets โˆ’1 and the end node gets +1. All other entries are 0.

Show solution

Solution:

Edge 3 goes from node 1 to node 3. By the incidence matrix rule:

  • Column 1 (start node): โˆ’1-1
  • Column 3 (end node): +1+1
  • All other columns: 00

Row 3 of AA: [โˆ’1,โ€…โ€Š0,โ€…โ€Š1,โ€…โ€Š0][-1, \; 0, \; 1, \; 0]

Node 2 is not an endpoint of edge 3, so the entry at (row 3, column 2) is 0.

Question 2

True or False: For a connected graph with nn nodes, the rank of its incidence matrix AA equals nn (the number of nodes).

โœ… Correct! The rank is n โˆ’ 1 because the columns of A always sum to zero โ€” there is always one dependency.

โŒ Not quite. Consider: what happens when you add all columns of A together?

Show solution

Solution:

False. The rank is nโˆ’1n - 1, not nn.

Every row of AA has entries that sum to zero (one โˆ’1-1 and one +1+1). This means the columns of AA always sum to the zero vector โ€” a linear dependence. So the column space has dimension at most nโˆ’1n - 1.

For a connected graph, the rank is exactly nโˆ’1n - 1. The null space N(A)N(A) has dimension 1, spanned by the constant vector (1,1,โ€ฆ,1)(1, 1, \ldots, 1) โ€” this represents the "ground" reference potential.

Question 3

A connected graph has 6 nodes and 10 edges. How many independent loops does it have?

โœ… Correct! โ„“ = m โˆ’ n + 1 = 10 โˆ’ 6 + 1 = 5 independent loops.

โŒ Not quite. Apply the formula: โ„“ = m โˆ’ n + 1.

Show solution

Solution:

For a connected graph with nn nodes and mm edges, the number of independent loops is:

โ„“=mโˆ’n+1\ell = m - n + 1

With n=6n = 6 and m=10m = 10:

โ„“=10โˆ’6+1=5\ell = 10 - 6 + 1 = 5

Why? A spanning tree uses nโˆ’1=5n - 1 = 5 edges. The remaining 10โˆ’5=510 - 5 = 5 edges each create exactly one independent loop when added back to the tree. This count equals dimโกN(AโŠค)=mโˆ’r=mโˆ’(nโˆ’1)\dim N(A^\top) = m - r = m - (n-1).

Question 4

In the video's incidence matrix, Row 1 is [โˆ’1,1,0,0][-1, 1, 0, 0] (edge 1โ†’2) and Row 2 is [0,โˆ’1,1,0][0, -1, 1, 0] (edge 2โ†’3). Their sum equals Row 3: [โˆ’1,0,1,0][-1, 0, 1, 0] (edge 1โ†’3). What does this linear dependence represent in the graph?

โœ… Correct! The row dependence Row 1 + Row 2 = Row 3 directly corresponds to the closed triangle loop 1โ†’2โ†’3โ†’1 in the graph.

โŒ Not quite. Think about what it means when traversing edges 1 then 2 arrives at the same place as edge 3 alone.

Show solution

Solution:

Row 1 + Row 2 = Row 3 means the trip along edge 1 (1โ†’21 \to 2) followed by edge 2 (2โ†’32 \to 3) reaches the same destination as edge 3 (1โ†’31 \to 3). Reversing edge 3, we get a closed loop: 1โ†’2โ†’3โ†’11 \to 2 \to 3 \to 1.

Every closed loop in a graph creates a linear dependence among the corresponding rows of the incidence matrix. This is the fundamental connection between graph topology and linear algebra.

In general, the number of independent row dependencies equals mโˆ’(nโˆ’1)m - (n-1) โ€” exactly the number of independent loops.

Solved: 0 / 4