LINEAR-ALGEBRA Β· Unit 12 Β· Video 1 Β· Interactive Practice

From Nodes to Null Spaces: Why Only Differences Ever Matter

IKey Formulas

Formula Name Description
Row of AA: βˆ’1-1 at "from" node, +1+1 at "to" node, 00 elsewhere Incidence Matrix One row per edge, one column per node
(Ax)k=xtoβˆ’xfrom(Ax)_k = x_{\text{to}} - x_{\text{from}} for edge kk Discrete Differentiation AA computes differences across edges
ker⁑(A)=span⁑{(1,1,…,1)}\ker(A) = \operatorname{span}\{(1,1,\ldots,1)\} Null Space Uniform shift produces zero differences
rank⁑(A)=nβˆ’1\operatorname{rank}(A) = n - 1 Rank For a connected graph with nn nodes

IIVisualization 1 β€” Building the Incidence Matrix

Each directed edge becomes one row of AA: βˆ’1-1 at its tail node, +1+1 at its head, zeros elsewhere.

IIIVisualization 2 β€” Reading the Jump Across Each Edge

Multiplying by AA returns the potential difference xtoβˆ’xfromx_{\text{to}} - x_{\text{from}} along every edge.

IVVisualization 3 β€” The Null Space

Adding the same constant to all four nodes leaves every edge difference untouched β€” the shift lives in ker⁑(A)\ker(A).

πŸ’‘ This is why Celsius and Kelvin always agree on temperature differences: the constant 273273 offset between the scales is a null-space shift, invisible to every subtraction.

VVisualization 4 β€” Grounding the Reference

Grounding one node to zero removes the ambiguity: the null space collapses from a line to {0}\{0\}.

VIQuiz Questions

Question 1

Edge e4e_4 goes from node 1 to node 4. What is the corresponding row of the incidence matrix AA?

βœ… Correct! Place βˆ’1-1 at the 'from' node (column 1) and +1+1 at the 'to' node (column 4).

❌ Not quite. Remember: βˆ’1-1 goes at the 'from' column, +1+1 at the 'to' column, zeros elsewhere.

Show solution

Solution:

Edge e4e_4 goes from node 1 to node 4:

  • Place βˆ’1-1 in column 1 (the "from" node)
  • Place +1+1 in column 4 (the "to" node)
  • Columns 2 and 3 get zeros

RowΒ e4=[β€‰βˆ’1,β€…β€Š0,β€…β€Š0,β€…β€Š+1 ]\text{Row } e_4 = [\,-1, \; 0, \; 0, \; +1\,]

Question 2

Given node potentials x=(3,β€…β€Š7,β€…β€Š5,β€…β€Š1)x = (3, \; 7, \; 5, \; 1), what is (Ax)3(Ax)_3 β€” the third entry of the product AxAx?

(Recall: edge e3e_3 goes from node 1 to node 3.)

βœ… Correct! The difference across edge e3e_3 is x3βˆ’x1=5βˆ’3=2x_3 - x_1 = 5 - 3 = 2.

❌ Not quite. For edge e3e_3 (node 1 β†’ node 3), compute xtoβˆ’xfrom=x3βˆ’x1x_{\text{to}} - x_{\text{from}} = x_3 - x_1.

Show solution

Solution:

Row 3 of AA is [βˆ’1,β€…β€Š0,β€…β€Š1,β€…β€Š0][-1, \; 0, \; 1, \; 0] (edge e3e_3: node 1 β†’ node 3).

(Ax)3=(βˆ’1)(3)+(0)(7)+(1)(5)+(0)(1)=βˆ’3+5=2(Ax)_3 = (-1)(3) + (0)(7) + (1)(5) + (0)(1) = -3 + 5 = 2

Equivalently: xtoβˆ’xfrom=x3βˆ’x1=5βˆ’3=2x_{\text{to}} - x_{\text{from}} = x_3 - x_1 = 5 - 3 = 2.

Common mistakes:

  • Getting βˆ’2-2: reversed the subtraction order (x1βˆ’x3x_1 - x_3 instead of x3βˆ’x1x_3 - x_1)
  • Getting 44: used the wrong edge (e1e_1: x2βˆ’x1=7βˆ’3=4x_2 - x_1 = 7 - 3 = 4)
  • Getting 88: added instead of subtracting (x1+x3=3+5=8x_1 + x_3 = 3 + 5 = 8)

Question 3

True or False: For any connected directed graph with nn nodes, the null space of its incidence matrix has dimension exactly 1.

βœ… Correct! The rank is nβˆ’1n-1, leaving exactly one null space dimension β€” spanned by the all-ones vector.

❌ Not quite. Since rank⁑(A)=nβˆ’1\operatorname{rank}(A) = n - 1 for a connected graph, the null space dimension is nβˆ’(nβˆ’1)=1n - (n-1) = 1.

Show solution

Answer: True

For a connected graph with nn nodes:

rank⁑(A)=nβˆ’1\operatorname{rank}(A) = n - 1

dim⁑(ker⁑(A))=nβˆ’rank⁑(A)=nβˆ’(nβˆ’1)=1\dim(\ker(A)) = n - \operatorname{rank}(A) = n - (n - 1) = 1

The null space is spanned by (1,1,…,1)(1, 1, \ldots, 1): adding the same constant to every node produces zero differences on all edges. This single degree of freedom is why we need to choose a reference (ground) to make potentials unique.

Note: This holds for connected graphs. A graph with kk connected components would have null space dimension kk.

Question 4

You add c=100c = 100 to every node potential, replacing xx with x+100β‹…(1,1,1,1)Tx + 100 \cdot (1,1,1,1)^T. What happens to the vector of edge differences AxAx?

βœ… Correct! The all-ones vector is in the null space, so AA annihilates any uniform shift β€” differences are completely unchanged.

❌ Not quite. Recall that (1,1,1,1)T(1,1,1,1)^T is in the null space: Aβ‹…(1,1,1,1)T=0A \cdot (1,1,1,1)^T = \mathbf{0}. What does that imply for A(x+cβ‹…1)A(x + c \cdot \mathbf{1})?

Show solution

Answer: Every difference stays exactly the same.

A(x+100β‹…1)=Ax+100β‹…A1=Ax+100β‹…0=AxA(x + 100 \cdot \mathbf{1}) = Ax + 100 \cdot A\mathbf{1} = Ax + 100 \cdot \mathbf{0} = Ax

Since (1,1,1,1)T(1,1,1,1)^T is in the null space of AA, the matrix maps it to zero. The uniform shift is completely invisible to AA.

This is the same reason Celsius and Kelvin always agree on temperature differences β€” the 273-degree offset cancels in every subtraction:

373Kβˆ’273K=100=100∘Cβˆ’0∘C373\text{K} - 273\text{K} = 100 \quad = \quad 100^{\circ}\text{C} - 0^{\circ}\text{C}

Solved: 0 / 4