Solved Problems · Set 8

Network Topology

Part 1 · DC Circuits — the graph beneath the circuit. Where the equation counts of Sets 4 to 7 actually come from, why mesh analysis needs planarity and nodal does not, and how both matrices fall out of a single incidence matrix.

Prof. Mithun Mondal 20 solved · 12 practice · 3 challenge GATE · ESE · University

Set 8 — Network Topology

Sets 3 to 7 asserted two numbers repeatedly: \(n-1\) independent KCL equations and \(b-n+1\) independent KVL equations. Neither was ever proved. This set supplies the proof, and rather more: strip a circuit of its element values and what remains is a graph, whose structure alone determines how many equations there are, which sets of them are independent, and whether mesh analysis is available at all. The nodal and loop matrices then appear as \(\mathbf{A}\mathbf{G}\mathbf{A}^{\mathsf T}\) and \(\mathbf{B}\mathbf{R}\mathbf{B}^{\mathsf T}\) — two faces of one object.

Textbook Chapter 4 · 20 solved · 12 practice · 3 challenge · 12 MCQs

i Method Recap
  • The graph. Replace every two-terminal element by a line segment and every junction by a dot. What survives is a graph with \(b\) branches and \(n\) nodes. Element values are irrelevant to everything in this set.

  • Tree and co-tree. A tree is a connected subgraph touching every node with no loops. It always has exactly \(n-1\) branches, called twigs; the remaining \(b-n+1\) are links and form the co-tree.

  • Adding one link creates exactly one loop — the fundamental loop of that link. There are therefore \(b-n+1\) of them, and they are independent because each contains a link no other contains.

  • Removing one twig splits the tree in two — the fundamental cutset of that twig. There are \(n-1\) of them, independent for the same reason.

  • Three matrices, one structure. The incidence matrix \(\mathbf{A}\) records which branches touch which nodes; the tie-set matrix \(\mathbf{B}\) records which branches lie in which loop; the cutset matrix \(\mathbf{Q}\) records which branches cross which cutset. KCL is \(\mathbf{A}\mathbf{i} = \mathbf{0}\), KVL is \(\mathbf{B}\mathbf{v} = \mathbf{0}\).

  • Orthogonality. \(\mathbf{B}\mathbf{A}^{\mathsf T} = \mathbf{0}\) always. Every branch current lies in the null space of \(\mathbf{A}\) and every branch voltage in the row space of \(\mathbf{A}^{\mathsf T}\) — which is Tellegen's theorem in one line.

Problem 1CoreCircuit to Graph

Draw the graph of the unbalanced bridge used throughout Sets 2, 4 and 6: nodes \(a, b, c, d\), with resistors \(R_{ac} = 6\), \(R_{ad} = 12\), \(R_{cd} = 18\), \(R_{cb} = 9\), \(R_{db} = 6\ \Omega\) and an 8 V source across \(a\!-\!b\). State \(b\), \(n\) and \(l\), and identify the graph.

a c d b 1 2 3 4 5 6
The bridge as a graph — gold branch 6 is the source
Solution

Every two-terminal element becomes one branch, regardless of what it is. Five resistors plus one source:

\[ b = 6,\qquad n = 4 \]

A 6 Ω resistor and an 8 V source are the same object here — a line joining two dots. Topology cannot tell them apart, and does not need to.

The number of independent loops:

\[ l = b - n + 1 = 6 - 4 + 1 = 3 \]

Exactly the three meshes Set 4 used. Problem 12 proves this formula rather than quoting it.

Identifying the graph. Four nodes, and every pair of them joined by exactly one branch: \(\binom{4}{2} = 6\) branches. This is the complete graph \(K_4\).

Note what the drawing loses and keeps. Bending branch 6 into an arc is not a change of circuit — the graph is defined by which nodes each branch joins, not by where the lines are drawn. Two drawings that look nothing alike may be the same graph.

\(K_4\) is the smallest interesting circuit graph. Every pair of nodes is connected, so no branch can be deleted without changing the topology, and no two branches are in series or parallel — which is precisely why Set 2 could not reduce the bridge by series–parallel combination and had to reach for delta–wye. The graph explains the difficulty before any resistance value is mentioned.
Answer\(b = 6,\ n = 4,\ l = 3\); the graph is \(K_4\)
Problem 2CoreTrees and Co-Trees

For the bridge graph, choose the tree consisting of branches 1 \((a\!-\!c)\), 3 \((c\!-\!d)\) and 5 \((d\!-\!b)\). Verify it is a tree, identify the co-tree, and show that any tree of this graph must have three branches.

a c d b 1 3 5
Tree — twigs 1, 3, 5 form a path \(a\!-\!c\!-\!d\!-\!b\)
a c d b 2 4 6
Co-tree — links 2, 4, 6, one per fundamental loop
Solution

A subgraph is a tree if it (i) is connected, (ii) touches every node, and (iii) contains no loop. Checking branches \(\{1,3,5\}\):

\[ a \xrightarrow{\ 1\ } c \xrightarrow{\ 3\ } d \xrightarrow{\ 5\ } b \]

A single path visiting all four nodes: connected \(\checkmark\), touches every node \(\checkmark\), no loop \(\checkmark\). The three chosen branches are the twigs.

The co-tree is everything left over — branches 2 \((a\!-\!d)\), 4 \((c\!-\!b)\) and 6 \((b\!-\!a)\), called the links:

\[ \text{twigs} = n - 1 = 3,\qquad \text{links} = b - n + 1 = 3 \]

Why a tree must have exactly \(n-1\) branches. Start with one node and no branches. Each branch added to a tree must reach a node not yet included — otherwise both its ends are already in the tree, and a loop is formed. So each branch adds exactly one node, and reaching all \(n\) nodes from the initial one requires exactly \(n-1\) branches.

Two consequences follow at once. A tree with fewer than \(n-1\) branches cannot reach every node, so it is disconnected; one with more must contain a loop. Both bounds are tight, which is what makes the count exact rather than approximate.

The tree is a choice, and different choices give different equations. Nothing distinguishes \(\{1,3,5\}\) from any of the other fifteen trees this graph possesses — Problem 3 counts them. Each yields a valid but different set of loop equations, all with the same solution. Problem 10 uses this tree and obtains a loop matrix quite unlike Set 4's mesh matrix, yet identical branch currents.
AnswerTwigs \(\{1,3,5\}\), links \(\{2,4,6\}\); every tree has \(n-1 = 3\) branches
Problem 3Exam levelMatrix-Tree Theorem

How many distinct trees does the bridge graph have? Count them by the matrix-tree theorem, and confirm against Cayley's formula for complete graphs.

Solution

Build the Laplacian \(\mathbf{L}\): diagonal entry \(L_{kk}\) is the number of branches at node \(k\), and \(L_{jk} = -1\) if nodes \(j\) and \(k\) are joined. Every node of \(K_4\) has degree 3:

\[ \mathbf{L} = \begin{bmatrix} 3 & -1 & -1 & -1\\ -1 & 3 & -1 & -1\\ -1 & -1 & 3 & -1\\ -1 & -1 & -1 & 3 \end{bmatrix} \]

Every row sums to zero, so \(\mathbf{L}\) is singular — as it must be, since the count cannot depend on which node is deleted.

The matrix-tree theorem states that the number of trees equals any cofactor of \(\mathbf{L}\) — that is, the determinant after deleting any one row and the matching column. Deleting the first of each:

\[ \det\begin{bmatrix} 3 & -1 & -1\\ -1 & 3 & -1\\ -1 & -1 & 3 \end{bmatrix} = 3(9-1) + 1(-3-1) - 1(1+3) = 24 - 4 - 4 = 16 \]

Cayley's formula gives the number of trees of a complete graph on \(n\) nodes directly:

\[ \tau(K_n) = n^{\,n-2} \;\Longrightarrow\; \tau(K_4) = 4^2 = 16\;\checkmark \]

A useful sub-count: of these 16, exactly 8 avoid the source branch 6 and so are trees of the five-resistor sub-network alone. Deleting a branch from \(K_4\) leaves a graph whose Laplacian cofactor is 8.

Sixteen valid sets of loop equations for one small circuit. Every one gives the same branch currents, and none is more correct than another — the mesh set of Set 4 is simply the one a planar drawing suggests. This is why "choose a tree" is a real choice and not a disguised instruction, and why simulators, which have no drawing to look at, pick the tree that keeps the matrix sparsest (Problem 18).
Answer\(\tau = 16\) trees, by cofactor and by \(n^{n-2}\)
Problem 4CoreIncidence Matrix

Write the complete incidence matrix \(\mathbf{A}_a\) of the bridge graph, taking branch orientations \(1: a\!\to\!c\), \(2: a\!\to\!d\), \(3: c\!\to\!d\), \(4: c\!\to\!b\), \(5: d\!\to\!b\), \(6: b\!\to\!a\). State its two structural properties and its rank.

Solution

Entry \(a_{jk}\) is \(+1\) if branch \(k\) leaves node \(j\), \(-1\) if it enters, and 0 if the branch does not touch the node. Rows are nodes \(a, c, d, b\):

\[ \mathbf{A}_a = \begin{bmatrix} 1 & 1 & 0 & 0 & 0 & -1\\ -1 & 0 & 1 & 1 & 0 & 0\\ 0 & -1 & -1 & 0 & 1 & 0\\ 0 & 0 & 0 & -1 & -1 & 1 \end{bmatrix} \]

Property 1: every column sums to zero. A branch has exactly two ends, so it leaves one node and enters another, contributing one \(+1\) and one \(-1\):

\[ \sum_{j=1}^{n} a_{jk} = 0 \quad\text{for every branch } k \]

Property 2: the rows are linearly dependent. Because every column sums to zero, adding all \(n\) rows gives the zero row:

\[ \sum_{j=1}^{n} (\text{row } j) = \mathbf{0} \]

So \(\operatorname{rank}(\mathbf{A}_a) \le n-1 = 3\), and for a connected graph it is exactly \(n-1\) (Problem 19 proves the converse).

Deleting any one row gives the reduced incidence matrix \(\mathbf{A}\), of full rank \(n-1\). Deleting the row for node \(b\) — that is, choosing \(b\) as the reference:

\[ \mathbf{A} = \begin{bmatrix} 1 & 1 & 0 & 0 & 0 & -1\\ -1 & 0 & 1 & 1 & 0 & 0\\ 0 & -1 & -1 & 0 & 1 & 0 \end{bmatrix} \]
The deleted row is the choice of reference node. Set 6 treated grounding as a practical convenience; here it appears as the algebraic act of discarding a redundant row. That the choice is arbitrary and cannot affect any current is Set 6, Problem 20 — and now it is visible as the statement that all \(n\) reduced matrices have the same rank and the same null space.
AnswerColumns sum to zero; rows sum to the zero row; \(\operatorname{rank} = n-1 = 3\)
Problem 5Exam levelKCL in Matrix Form

Show that Kirchhoff's current law for the whole network is the single matrix statement \(\mathbf{A}_a\mathbf{i} = \mathbf{0}\), and use the rank of \(\mathbf{A}_a\) to prove that exactly \(n-1\) of the node equations are independent.

Solution

Take row \(j\) of \(\mathbf{A}_a\) and multiply it into the branch-current vector \(\mathbf{i} = (i_1,\dots,i_b)^{\mathsf T}\). The entries are \(+1\) for branches leaving node \(j\) and \(-1\) for those entering, so the product is

\[ \sum_{k=1}^{b} a_{jk}\,i_k = \underbrace{\sum_{\text{leaving}} i_k - \sum_{\text{entering}} i_k}_{\text{KCL at node } j} = 0 \]

One row is one node equation. Collecting all \(n\) rows gives \(\mathbf{A}_a\mathbf{i} = \mathbf{0}\).

Now the independence question. The number of independent equations in a linear system is the rank of its coefficient matrix, and Problem 4 established

\[ \operatorname{rank}(\mathbf{A}_a) = n - 1 \]

Hence exactly \(n-1\) node equations are independent — the number asserted without proof throughout Sets 3, 6 and 7.

What the redundancy means physically. The dependence is \(\sum_j (\text{row } j) = \mathbf{0}\), so adding all \(n\) node equations gives \(0 = 0\). Charge that leaves any node must arrive at another; once \(n-1\) nodes balance, the last is forced.

Verifying on the bridge with the branch currents of Sets 2 and 4, in amperes:

\[ \mathbf{i} = (0.5833,\; 0.4167,\; 0.0833,\; 0.5,\; 0.5,\; 1)^{\mathsf T} \]
\[ \text{Node } a:\ 0.5833 + 0.4167 - 1 = 0\;\checkmark \qquad \text{Node } c:\ -0.5833 + 0.0833 + 0.5 = 0\;\checkmark \]

Node \(d\) gives \(-0.4167 - 0.0833 + 0.5 = 0\;\checkmark\), and node \(b\) then follows automatically: \(-0.5 - 0.5 + 1 = 0\).

The generalised KCL of Set 3 is the same statement. A closed surface enclosing several nodes corresponds to adding those rows of \(\mathbf{A}_a\); branches internal to the surface then have \(+1\) and \(-1\) in the sum and cancel. The supernode of Set 7 is exactly one such row addition, which is why its equation had to be the sum of the two node equations.
Answer\(\mathbf{A}_a\mathbf{i} = \mathbf{0}\); \(\operatorname{rank} = n-1\) independent equations
Problem 6Exam levelFundamental Cutsets

Using the tree \(\{1,3,5\}\) of Problem 2, find the three fundamental cutsets of the bridge graph and write the cutset matrix \(\mathbf{Q}\). Show that it has the form \([\,\mathbf{I} \mid \mathbf{Q}_l\,]\).

Solution

Removing one twig from a tree splits its nodes into two groups. The fundamental cutset of that twig is the set of all branches — twig and links alike — joining one group to the other. Since only one twig can be involved, each cutset is identified by its twig.

Twig 1 \((a\!-\!c)\). Removing it separates \(\{a\}\) from \(\{c,d,b\}\). Which other branches cross that divide? Branch 2 \((a\!-\!d)\) and branch 6 \((b\!-\!a)\):

\[ C_1 = \{1,\, 2,\, 6\} \]

Twig 3 \((c\!-\!d)\). Removing it separates \(\{a,c\}\) from \(\{d,b\}\). Crossing branches: 2 \((a\!-\!d)\), 4 \((c\!-\!b)\), and 6 \((b\!-\!a)\):

\[ C_3 = \{3,\, 2,\, 4,\, 6\} \]

Twig 5 \((d\!-\!b)\). Removing it separates \(\{a,c,d\}\) from \(\{b\}\). Crossing branches: 4 \((c\!-\!b)\) and 6 \((b\!-\!a)\):

\[ C_5 = \{5,\, 4,\, 6\} \]

Now the matrix, with rows ordered by twig and columns by branch. Orient each cutset in the direction of its own twig; entries are \(\pm1\) according to whether a branch crosses with or against that direction:

\[ \mathbf{Q} = \begin{array}{c|ccc|ccc} & 1 & 3 & 5 & 2 & 4 & 6\\\hline C_1 & 1 & 0 & 0 & 1 & 0 & -1\\ C_3 & 0 & 1 & 0 & -1 & 1 & -1\\ C_5 & 0 & 0 & 1 & 0 & -1 & -1 \end{array} \]

Ordering the columns twigs-first makes the structure explicit:

\[ \mathbf{Q} = [\;\mathbf{I}_{n-1} \mid \mathbf{Q}_l\;] \]

The identity block appears because each twig lies in its own cutset and no other — which is exactly what guarantees the \(n-1\) cutset equations are independent, since no row can be built from the others.

A fundamental cutset is a generalised node. Cutset \(C_5\) separates \(\{b\}\) alone, so its equation is ordinary KCL at \(b\); but \(C_3\) separates two nodes from two, and its equation is a generalised KCL over a closed surface. The supernode of Set 7 is a fundamental cutset for a tree chosen to make the voltage source a twig.
Answer\(C_1 = \{1,2,6\}\), \(C_3 = \{3,2,4,6\}\), \(C_5 = \{5,4,6\}\); \(\mathbf{Q} = [\mathbf{I} \mid \mathbf{Q}_l]\)
Problem 7Exam levelFundamental Loops

For the same tree, find the three fundamental loops and write the tie-set matrix \(\mathbf{B}\). Show that it has the form \([\,\mathbf{B}_t \mid \mathbf{I}\,]\), and that KVL is \(\mathbf{B}\mathbf{v} = \mathbf{0}\).

Solution

A tree has no loops, so adding any one link creates exactly one — the fundamental loop of that link, consisting of the link plus the unique tree path joining its two ends. Orient each loop along its own link.

Link 2 \((a\!\to\!d)\). The tree path from \(d\) back to \(a\) runs \(d \to c \to a\), traversing branch 3 backwards and branch 1 backwards:

\[ L_2 = \{+2,\, -3,\, -1\} \]

Link 4 \((c\!\to\!b)\). Path from \(b\) back to \(c\) runs \(b \to d \to c\), traversing 5 backwards and 3 backwards:

\[ L_4 = \{+4,\, -5,\, -3\} \]

Link 6 \((b\!\to\!a)\). Path from \(a\) back to \(b\) runs \(a \to c \to d \to b\), all three twigs forwards:

\[ L_6 = \{+6,\, +1,\, +3,\, +5\} \]

Assembling, with columns ordered twigs then links:

\[ \mathbf{B} = \begin{array}{c|ccc|ccc} & 1 & 3 & 5 & 2 & 4 & 6\\\hline L_2 & -1 & -1 & 0 & 1 & 0 & 0\\ L_4 & 0 & -1 & -1 & 0 & 1 & 0\\ L_6 & 1 & 1 & 1 & 0 & 0 & 1 \end{array} \qquad\Longrightarrow\qquad \mathbf{B} = [\;\mathbf{B}_t \mid \mathbf{I}_{b-n+1}\;] \]

Each link appears in its own loop and no other, giving the identity block — and with it, independence of the \(b-n+1\) loop equations.

KVL in matrix form. Row \(m\) of \(\mathbf{B}\) dotted with the branch-voltage vector \(\mathbf{v}\) sums the voltages round loop \(m\), with signs given by the traverse direction:

\[ \mathbf{B}\mathbf{v} = \mathbf{0} \]

Checking with the bridge's branch voltages \(\mathbf{v} = (3.5,\, 5,\, 1.5,\, 4.5,\, 3,\, -8)^{\mathsf T}\) V, in branch order 1 to 6:

\[ L_2:\ -3.5 - 1.5 + 5 = 0\;\checkmark \qquad L_4:\ -1.5 - 3 + 4.5 = 0\;\checkmark \]
\[ L_6:\ 3.5 + 1.5 + 3 - 8 = 0\;\checkmark \]
Meshes are one possible loop set, not the definition of one. Loop \(L_6\) here runs all the way round the outside through four branches — nothing like a mesh — yet it is perfectly valid, and Problem 10 solves the circuit with it. Only planar graphs have meshes; every connected graph has fundamental loops.
Answer\(L_2 = \{2,-3,-1\}\), \(L_4 = \{4,-5,-3\}\), \(L_6 = \{6,1,3,5\}\); \(\mathbf{B} = [\mathbf{B}_t \mid \mathbf{I}]\)
Problem 8ChallengeOrthogonality

Prove that \(\mathbf{B}\mathbf{A}^{\mathsf T} = \mathbf{0}\) for any graph and any tree, and verify it for the bridge. What does the relation say about the two subspaces involved?

Solution

Take row \(m\) of \(\mathbf{B}\) (loop \(m\)) and row \(j\) of \(\mathbf{A}\) (node \(j\)). Their inner product is

\[ \left(\mathbf{B}\mathbf{A}^{\mathsf T}\right)_{mj} = \sum_{k=1}^{b} b_{mk}\,a_{jk} \]

A term survives only where branch \(k\) lies in loop \(m\) and touches node \(j\).

Now count. A loop is a closed walk, so it either misses node \(j\) altogether — in which case every term is zero — or passes through it exactly once, entering by one branch and leaving by another. Exactly two terms survive.

Suppose the loop enters node \(j\) along branch \(p\) and leaves along branch \(q\). Entering means the traverse direction agrees with the branch pointing into \(j\), so \(b_{mp}a_{jp} = -1\); leaving gives \(b_{mq}a_{jq} = +1\). Whatever the individual signs, the two terms are opposite:

\[ \sum_k b_{mk}a_{jk} = (+1) + (-1) = 0 \]

This holds for every loop and every node, so \(\mathbf{B}\mathbf{A}^{\mathsf T} = \mathbf{0}\) identically. Nothing about tree choice, planarity or element values entered the argument.

Verification on the bridge. Take \(L_6 = (1,1,1,0,0,1)\) in branch order and the row of \(\mathbf{A}\) for node \(c\), which is \((-1,0,1,1,0,0)\):

\[ (1)(-1) + (1)(0) + (1)(1) + (0)(1) + (0)(0) + (1)(0) = 0\;\checkmark \]

Loop \(L_6\) enters \(c\) by branch 1 and leaves by branch 3; the two contributions cancel and everything else is zero. All nine entries of the product vanish.

What it means. KCL forces \(\mathbf{i}\) into the null space of \(\mathbf{A}\), of dimension \(b - (n-1) = l\). KVL forces \(\mathbf{v}\) into the row space of \(\mathbf{A}\), of dimension \(n-1\). These two subspaces are orthogonal complements in \(\mathbb{R}^b\):

\[ \underbrace{l}_{\dim\,\text{currents}} + \underbrace{(n-1)}_{\dim\,\text{voltages}} = b \]
This one relation contains both Kirchhoff laws and their independence. The rows of \(\mathbf{B}\) span all admissible current patterns; the rows of \(\mathbf{A}\) span all admissible voltage patterns; and they are perpendicular. Problem 11 shows Tellegen's theorem is nothing more than that perpendicularity written as a dot product — which is why it holds for networks that share only a topology, however different their elements.
Answer\(\mathbf{B}\mathbf{A}^{\mathsf T} = \mathbf{0}\); current and voltage spaces are orthogonal complements, dimensions \(l\) and \(n-1\)
Problem 9ChallengeDeriving the G Matrix

Derive the nodal conductance matrix as \(\mathbf{Y} = \mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\), where \(\mathbf{G}_b\) is the diagonal matrix of branch conductances. Apply it to the bridge and solve for \(V_c\) and \(V_d\).

Solution

Three facts, each already established. KCL: \(\mathbf{A}\mathbf{i} = \mathbf{0}\) for the source-free part, or \(\mathbf{A}\mathbf{i} = \mathbf{i}_s\) with injected currents. Ohm's law branch by branch: \(\mathbf{i} = \mathbf{G}_b\mathbf{v}\). And branch voltages from node voltages:

\[ \mathbf{v} = \mathbf{A}^{\mathsf T}\mathbf{V}_n \]

The last is the matrix form of "branch voltage = potential at the tail minus potential at the head", and it is where the transpose enters.

Substituting each into the next:

\[ \mathbf{i}_s = \mathbf{A}\mathbf{i} = \mathbf{A}\mathbf{G}_b\mathbf{v} = \underbrace{\mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}}_{\textstyle \mathbf{Y}}\mathbf{V}_n \]

The symmetry and diagonal dominance asserted in Set 6, Problem 19 are now immediate. For any vector \(\mathbf{x}\),

\[ \mathbf{x}^{\mathsf T}\mathbf{Y}\mathbf{x} = (\mathbf{A}^{\mathsf T}\mathbf{x})^{\mathsf T}\mathbf{G}_b(\mathbf{A}^{\mathsf T}\mathbf{x}) = \sum_k G_k\,(\mathbf{A}^{\mathsf T}\mathbf{x})_k^2 \;\ge\; 0 \]

A sum of positive conductances times squares. So \(\mathbf{Y}\) is symmetric positive semi-definite for any network of positive resistors — and positive definite when the graph is connected, guaranteeing a unique solution.

Applying it to the bridge. Take \(\mathbf{G}_b = \operatorname{diag}(\tfrac16, \tfrac1{12}, \tfrac1{18}, \tfrac19, \tfrac16, 0)\) — the source branch carries no conductance — and \(\mathbf{A}\) from Problem 4. Multiplying out:

\[ \mathbf{Y} = \begin{bmatrix} 0.2500 & -0.1667 & -0.0833\\ -0.1667 & 0.3333 & -0.0556\\ -0.0833 & -0.0556 & 0.3056 \end{bmatrix} \]

Rows and columns for nodes \(a, c, d\). Note \(Y_{aa} = \tfrac16 + \tfrac1{12} = 0.25\) and \(Y_{ac} = -\tfrac16\) — exactly the "by inspection" rules of Set 6, produced here by matrix multiplication rather than assertion.

The 8 V source fixes \(V_a = 8\), so delete that row and move its column to the right-hand side:

\[ \begin{bmatrix} 0.3333 & -0.0556\\ -0.0556 & 0.3056 \end{bmatrix} \begin{bmatrix} V_c\\ V_d \end{bmatrix} = \begin{bmatrix} 8/6\\ 8/12 \end{bmatrix} \;\Longrightarrow\; V_c = 4.5\ \text{V},\ V_d = 3\ \text{V} \]

Precisely Set 6, Problem 16, and hence the same 83.3 mA in the 18 Ω arm.

\(\mathbf{A}\mathbf{G}\mathbf{A}^{\mathsf T}\) is what a simulator actually builds. It never draws a circuit or writes a node equation; it reads a netlist into \(\mathbf{A}\), fills a diagonal \(\mathbf{G}_b\), and multiplies. Every property Set 6 offered as a check — symmetry, positive diagonal, dominance — is now a theorem about that product rather than a rule of thumb.
Answer\(\mathbf{Y} = \mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\), symmetric positive definite; \(V_c = 4.5\), \(V_d = 3\ \text{V}\)
Problem 10ChallengeDeriving the R Matrix

Derive the loop impedance matrix as \(\mathbf{Z} = \mathbf{B}\mathbf{R}_b\mathbf{B}^{\mathsf T}\) and solve the bridge with the fundamental loops of Problem 7. Compare with Set 4's mesh solution.

Solution

The argument is Problem 9 with every word dualised. KVL: \(\mathbf{B}\mathbf{v} = \mathbf{0}\), or \(\mathbf{B}\mathbf{v} = \mathbf{v}_s\) with source rises. Ohm's law: \(\mathbf{v} = \mathbf{R}_b\mathbf{i}\). And branch currents from loop currents:

\[ \mathbf{i} = \mathbf{B}^{\mathsf T}\mathbf{I}_l \]

This last equation is the whole justification for loop analysis: any current of this form automatically satisfies KCL, since \(\mathbf{A}\mathbf{i} = \mathbf{A}\mathbf{B}^{\mathsf T}\mathbf{I}_l = \mathbf{0}\) by the orthogonality of Problem 8.

Substituting:

\[ \mathbf{v}_s = \mathbf{B}\mathbf{v} = \mathbf{B}\mathbf{R}_b\mathbf{i} = \underbrace{\mathbf{B}\mathbf{R}_b\mathbf{B}^{\mathsf T}}_{\textstyle \mathbf{Z}}\mathbf{I}_l \]

With \(\mathbf{R}_b = \operatorname{diag}(6, 12, 18, 9, 6, 0)\) and \(\mathbf{B}\) from Problem 7:

\[ \mathbf{Z} = \begin{bmatrix} 36 & 18 & -24\\ 18 & 33 & -24\\ -24 & -24 & 30 \end{bmatrix}, \qquad \mathbf{v}_s = \begin{bmatrix} 0\\ 0\\ 8 \end{bmatrix} \]

Only loop \(L_6\) contains the source, and it traverses it as a rise.

Solving:

\[ \mathbf{I}_l = (0.4167,\; 0.5,\; 1)^{\mathsf T}\ \text{A} \]

Recovering the branch currents from \(\mathbf{i} = \mathbf{B}^{\mathsf T}\mathbf{I}_l\):

\[ \mathbf{i} = (0.5833,\; 0.4167,\; 0.0833,\; 0.5,\; 0.5,\; 1)^{\mathsf T}\ \text{A} \]

The source carries 1 A, so \(R_{ab} = 8/1 = 8\ \Omega\), and the 18 Ω arm carries 83.3 mA — the same two numbers Sets 2, 4 and 6 produced.

The comparison is the point. Set 4's mesh matrix was

\[ \mathbf{R}_{\text{mesh}} = \begin{bmatrix} 36 & -18 & -12\\ -18 & 33 & -6\\ -12 & -6 & 18 \end{bmatrix} \]

A different matrix entirely — and note the \(+18\) off-diagonal above, impossible for uniformly clockwise meshes. The loop currents differ too. Yet every branch current agrees to the last digit.

Loop currents are bookkeeping; branch currents are physics. Sixteen trees give sixteen loop matrices, none more correct than another, all yielding one set of branch currents. Set 4's rule that off-diagonal entries are negative is not a law of nature but a consequence of choosing all meshes clockwise — a convention available only when meshes exist at all.
Answer\(\mathbf{Z} = \mathbf{B}\mathbf{R}_b\mathbf{B}^{\mathsf T}\); different loop matrix, identical branch currents, \(R_{ab} = 8\ \Omega\)
Problem 11ChallengeTellegen's Theorem

Prove Tellegen's theorem, \(\sum_k v_k i_k = 0\), from the orthogonality relation. Verify it on the bridge, and state the surprising form of the theorem that follows from the proof.

Solution

The sum in question is an inner product of the branch-voltage and branch-current vectors:

\[ \sum_{k=1}^{b} v_k i_k = \mathbf{v}^{\mathsf T}\mathbf{i} \]

Substitute \(\mathbf{v} = \mathbf{A}^{\mathsf T}\mathbf{V}_n\) from Problem 9:

\[ \mathbf{v}^{\mathsf T}\mathbf{i} = \left(\mathbf{A}^{\mathsf T}\mathbf{V}_n\right)^{\mathsf T}\mathbf{i} = \mathbf{V}_n^{\mathsf T}\,\mathbf{A}\mathbf{i} = \mathbf{V}_n^{\mathsf T}\,\mathbf{0} = 0 \]

Three lines. KVL supplied the first substitution, KCL killed the middle factor, and nothing else was used.

Verification on the bridge, with the sign convention that \(v_k\) and \(i_k\) follow the same branch orientation:

Branch\(v_k\) (V)\(i_k\) (A)\(v_k i_k\) (W)
1 · 6 Ω3.50.5833+2.0417
2 · 12 Ω5.00.4167+2.0833
3 · 18 Ω1.50.0833+0.1250
4 · 9 Ω4.50.5+2.2500
5 · 6 Ω3.00.5+1.5000
6 · source−8.01.0−8.0000
Total0.0000

The five resistors absorb 8 W between them and the source delivers 8 W — conservation of energy, recovered as a special case.

The surprising form. The proof used \(\mathbf{A}\) only. So if two different networks share the same graph, the voltages of one and the currents of the other still satisfy the relation:

\[ \sum_k v_k^{(1)}\,i_k^{(2)} = 0 \qquad\text{and}\qquad \sum_k v_k^{(2)}\,i_k^{(1)} = 0 \]

Replace all five bridge resistors with capacitors, inductors or diodes and drive it with an arbitrary waveform: the products of those currents with the original DC voltages still sum to zero.

The quantities being summed are not powers of anything — they mix one network's voltage with another's current — so this is not energy conservation. It is a statement about topology, which is why it survives non-linear and time-varying elements untouched.

Tellegen's theorem is the deepest result in elementary circuit theory. It assumes only that the two Kirchhoff laws hold, and knows nothing of Ohm's law, linearity or time-invariance. Sensitivity analysis, the adjoint network method used in circuit optimisation, and several proofs of reciprocity all rest on it — and all of them exploit precisely the interchange above.
Answer\(\mathbf{v}^{\mathsf T}\mathbf{i} = \mathbf{V}_n^{\mathsf T}\mathbf{A}\mathbf{i} = 0\); holds across two networks sharing a graph
Problem 12CoreThe Counts, Derived

Sets 3 to 7 used \(n-1\) independent KCL equations and \(b-n+1\) independent KVL equations without proof. Derive both, and show the total is exactly what is needed to solve for all \(b\) branch currents.

Solution

KCL count. From Problem 5, the node equations are the rows of \(\mathbf{A}_a\), and the number of independent ones is its rank. Problem 4 established \(\operatorname{rank}(\mathbf{A}_a) = n-1\):

\[ \#\,\text{independent KCL} = n - 1 \]

KVL count. From Problem 7, the fundamental loops number one per link, and \(\mathbf{B} = [\mathbf{B}_t \mid \mathbf{I}]\) contains an identity block, so its rows are independent:

\[ \#\,\text{independent KVL} = \text{links} = b - (n-1) = b - n + 1 \]

Why no more exist. The two subspaces of Problem 8 are orthogonal complements in \(\mathbb{R}^b\), so their dimensions must sum to \(b\). Having found \(n-1\) and \(b-n+1\), which already sum to \(b\), no further independent equation of either kind can exist:

\[ \underbrace{(n-1)}_{\text{KCL}} + \underbrace{(b-n+1)}_{\text{KVL}} = b \]

The count matches the unknowns. There are \(b\) branch currents to find. Kirchhoff's laws supply exactly \(b\) independent equations — no fewer, so the circuit is solvable; no more, so it is not over-determined. That the two match is not a coincidence but a consequence of the orthogonal-complement structure.

Checking against the sets already worked:

Circuit\(b\)\(n\)KCLKVLSet
Bridge64332, 4, 6
Ladder75432, 4, 6
Two-mesh54324

In each case mesh analysis used the KVL count and nodal the KCL count, and Set 4, Problem 7's advice — compare the two and pick the smaller — is now visible as a comparison of two subspace dimensions.

The choice between mesh and nodal is a choice between orthogonal complements. One method parameterises the current space with \(l\) loop currents, the other the voltage space with \(n-1\) node voltages. Since the dimensions must sum to \(b\), making one method cheaper necessarily makes the other dearer — there is no topology on which both are simultaneously easy.
Answer\((n-1) + (b-n+1) = b\) — exactly as many equations as branch currents
Problem 13Exam levelPlanarity

Define a planar graph, state Kuratowski's theorem, and explain precisely why mesh analysis requires planarity while nodal analysis does not. Is the bridge graph \(K_4\) planar?

Solution

A graph is planar if it can be drawn on a plane with no two branches crossing. The test is on the graph, not on a particular drawing: a drawing with crossings proves nothing until every alternative has been ruled out.

Is \(K_4\) planar? Yes. The drawing in Problem 1 has no crossings, which settles it — redraw the bridge with \(c\) and \(d\) inside the triangle \(a\!-\!b\) and all six branches lie flat. That is exactly why Set 4 could use meshes on it.

Kuratowski's theorem. A graph is non-planar if and only if it contains a subgraph that is a subdivision of either

\[ K_5 \ (\text{five nodes, all pairs joined})\qquad\text{or}\qquad K_{3,3}\ (\text{two sets of three, all cross-pairs joined}) \]

"Subdivision" means branches may be split by extra nodes in series without affecting the result. These two graphs are the only obstructions there are.

Why mesh analysis needs planarity. A mesh is defined as a loop with no other loop inside it — a window in a plane drawing. The definition refers to the drawing, so without one the concept does not exist. Note that the count \(l = b - n + 1\) remains perfectly valid; what fails is the identification of those \(l\) loops with windows you can point at.

Why nodal analysis does not. Nodes and branches are defined by the incidence matrix alone, which records only which node each branch touches. Nothing in \(\mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\) refers to a drawing, so it is constructed identically for planar and non-planar graphs.

Loop analysis via a tree also survives, since the fundamental loops of Problem 7 are found by tracing tree paths — no drawing required. What is lost with planarity is only the convenience of reading the loops off a picture.

The asymmetry noted in Set 7, Problem 18 has its explanation here. Supermesh and supernode are exact duals algebraically, but only one of them presupposes a planar drawing — and the reason is that meshes are a property of an embedding, while nodes are a property of the graph. Problem 17 works a circuit where the difference is decisive.
Answer\(K_4\) is planar; non-planarity requires a \(K_5\) or \(K_{3,3}\) subdivision; meshes need an embedding, nodes do not
Problem 14Exam levelDual Networks

Construct the dual of a planar graph, and use it to explain the duality that ran through Sets 4 to 7. Find the dual of a single loop containing a voltage source, a resistor and an inductor in series.

Solution

The construction. Place one node of the dual graph inside each mesh of the original, plus one in the outer region. For every branch of the original, draw one dual branch crossing it and joining the two dual nodes on either side. The result is the dual graph.

The counts transform predictably. Each mesh becomes a node and each node a mesh, while branches map one-to-one:

\[ n^{*} = l + 1 = b - n + 2,\qquad b^{*} = b,\qquad l^{*} = n - 1 \]

So a circuit needing 3 mesh and 4 nodal equations has a dual needing 4 mesh and 3 nodal — the counts swap exactly.

The element dictionary follows from the branch correspondence, since a branch shared by two meshes becomes a branch between two dual nodes:

OriginalDual
MeshNode
Mesh currentNode voltage
KVLKCL
Resistance \(R\)Conductance \(G\)
SeriesParallel
Voltage source \(V\)Current source \(I\)
Inductance \(L\)Capacitance \(C\)
Short circuitOpen circuit
SupermeshSupernode

The worked example. A series loop \(V\!-\!R\!-\!L\) has one mesh, so its dual has two nodes: one inside, one outside. All three branches cross between them, giving three parallel branches:

\[ V,\ R,\ L \ \text{in series} \qquad\longleftrightarrow\qquad I = V,\ G = R,\ C = L \ \text{in parallel} \]

The governing equations confirm it. The original obeys

\[ V = Ri + L\frac{di}{dt} \qquad\longleftrightarrow\qquad I = Gv + C\frac{dv}{dt} \]

Identical in form with every symbol replaced by its dual. Any result proved for one is thereby proved for the other, which is why the series and parallel \(RL\) and \(RC\) circuits of Set 18 need be solved only once.

The duality of Sets 4 to 7 was not an analogy but a theorem. Mesh and nodal analysis are the same procedure applied to a graph and its dual; supermesh and supernode are the same construction likewise. And now the asymmetry of Problem 13 is explained too: only planar graphs have duals, so the correspondence must break exactly where planarity does.
AnswerSeries \(V\!-\!R\!-\!L\) ↔ parallel \(I\!-\!G\!-\!C\); \(n^{*} = l+1\), \(l^{*} = n-1\)
Problem 15CoreLadder Topology

The ladder of Sets 2, 4 and 6 has a 20 V source, then series 4 Ω, shunt 15 Ω, series 4 Ω, shunt 18 Ω, series 3 Ω, shunt 6 Ω. Find \(b\), \(n\), \(l\), choose a natural tree, and explain why both the mesh and nodal matrices come out tridiagonal.

Solution

Counting elements: one source, three series resistors, three shunt resistors.

\[ b = 7 \]

The nodes are the reference rail, the source's top terminal, and the three junctions along the ladder — but the source's top terminal and the first series resistor's left end are the same point, giving \(n = 5\).

Hence

\[ l = b - n + 1 = 7 - 5 + 1 = 3 \]

Three meshes, as Set 4 used; four node equations, of which the source fixes one, leaving the three unknowns of Set 6.

A natural tree. Take the source branch and the three series resistors as twigs — a path from the reference up through the source and along the ladder, touching all five nodes with four branches:

\[ \text{twigs} = \{\text{source},\, 4\,\Omega,\, 4\,\Omega,\, 3\,\Omega\},\qquad \text{links} = \{15\,\Omega,\, 18\,\Omega,\, 6\,\Omega\} \]

Each shunt resistor is a link, and its fundamental loop is exactly one rung of the ladder — the mesh set recovers itself.

Why tridiagonal. Each rung touches only the rungs immediately before and after it, so meshes 1 and 3 share no branch:

\[ R_{13} = R_{31} = 0 \]
\[ \mathbf{R} = \begin{bmatrix} 19 & -15 & 0\\ -15 & 37 & -18\\ 0 & -18 & 27 \end{bmatrix} \]

Every non-zero off-diagonal entry corresponds to a shared branch, so the sparsity pattern of the matrix is the adjacency structure of the graph.

The same holds nodally: node 1 connects only to node 2, node 2 to nodes 1 and 3, and so on, giving another tridiagonal matrix — which is why Set 6's ladder solution eliminated so cleanly from the far end back, and why the assumed-current method of Set 2 worked at all.

Tridiagonal systems solve in time proportional to their size, not its cube. A 100-rung ladder needs about 300 arithmetic operations by forward elimination, against roughly a million for a full \(100\times100\) matrix. This is why transmission lines, filter cascades and finite-difference models are all deliberately given ladder topology — the structure of the graph is chosen for the structure of the matrix it produces.
Answer\(b = 7,\ n = 5,\ l = 3\); series branches as twigs; tridiagonal because rungs touch only their neighbours
Problem 16ChallengeResistance by Counting

Kirchhoff's resistance formula gives the resistance between two nodes as a ratio of two sums over subgraphs, with no equations solved at all. State it, and use it to find \(R_{ab}\) for the bridge.

Solution

The formula. For a network of resistors, with the source branch removed,

\[ R_{ab} = \frac{W_{ab}}{W} \]

where \(W\) sums, over every spanning tree, the product of the resistances not in that tree; and \(W_{ab}\) sums, over every two-component spanning forest that puts \(a\) and \(b\) in different components, the product of the resistances not in that forest.

The five-resistor bridge has eight spanning trees, each of three branches, leaving two excluded:

Tree branchesExcludedProduct
6, 12, 918 · 6108
6, 12, 618 · 9162
6, 18, 912 · 672
6, 18, 612 · 9108
6, 9, 612 · 18216
12, 18, 96 · 636
12, 18, 66 · 954
12, 9, 66 · 18108
Total \(W\)864

Only 8 of the \(\binom{5}{3} = 10\) three-branch subsets are trees; the two triangles \(\{6,12,18\}\) and \(\{18,9,6\}\) contain loops and are excluded.

Now the two-component forests separating \(a\) from \(b\). Each has two branches, leaving three excluded:

ForestProduct of excluded
6, 12972
6, 18648
6, 61944
12, 18324
12, 9648
18, 9432
18, 6648
9, 61296
Total \(W_{ab}\)6912

The ratio:

\[ R_{ab} = \frac{6912}{864} = 8\ \Omega \]

Exactly the value delta–wye gave in Set 2, mesh analysis in Set 4, nodal in Set 6, and loop analysis in Problem 10 — reached this time without solving a single simultaneous equation.

When it is worth using. Almost never for computation: the number of spanning trees grows so fast that \(K_6\) already has 1296. Its value is theoretical. Because both sums have positive terms, \(R_{ab} > 0\) always; and because increasing any resistance increases some terms of \(W_{ab}\) at least as fast as those of \(W\), no resistance increase can ever lower \(R_{ab}\) — Rayleigh's monotonicity law, obtained by inspection of a formula.

Five methods, one number. The bridge has now been solved by series–parallel with delta–wye, by mesh, by nodal, by fundamental loops on a non-mesh tree, and by pure combinatorics. Agreement across methods with nothing in common but the circuit is the strongest evidence available that all five are implementations of the same underlying structure — which is precisely the claim this set exists to make.
Answer\(R_{ab} = W_{ab}/W = 6912/864 = 8\ \Omega\)
Problem 17Exam levelA Non-Planar Circuit

Five nodes are joined pairwise by ten resistors, so that the graph is \(K_5\). Determine \(b\), \(n\) and \(l\); state how many equations each method requires; and say which methods can be used at all.

Solution

Every pair of five nodes is joined once:

\[ b = \binom{5}{2} = 10,\qquad n = 5,\qquad l = 10 - 5 + 1 = 6 \]

The three counts:

MethodEquationsAvailable?
Nodal\(n-1 = 4\)Yes
Loop (via a tree)\(l = 6\)Yes
MeshNo

Why mesh analysis is unavailable. \(K_5\) is the smallest non-planar graph — one of the two Kuratowski obstructions of Problem 13. Any drawing has at least one crossing, so there are no windows to call meshes. The number 6 is still correct as a count of independent loops; what is missing is a way to identify them by eye.

Loop analysis still works, because a tree can be chosen without any drawing. Take any four branches forming a path through all five nodes as twigs; the remaining six links each close one fundamental loop, and \(\mathbf{Z} = \mathbf{B}\mathbf{R}_b\mathbf{B}^{\mathsf T}\) follows as in Problem 10.

Nodal wins decisively: four equations against six, and no topological difficulty. Set 4, Problem 7 advised nodal as the safe default on unfamiliar topologies; this is the case that advice was aimed at.

A quick check that the counts are consistent: \((n-1) + l = 4 + 6 = 10 = b\;\checkmark\), exactly as Problem 12 requires. Non-planarity costs the mesh method but leaves the arithmetic of topology untouched.

Non-planar circuits are common in practice. Any multi-layer printed board, any integrated circuit with more than one metal layer, and every three-phase network with a neutral interconnection is likely non-planar. Mesh analysis survives in textbooks because textbook circuits are drawn flat; the methods that scale are the ones that never needed a drawing.
Answer\(b = 10,\ n = 5,\ l = 6\); nodal needs 4, loop 6, mesh unavailable
Problem 18ChallengeSparsity and Fill-in

Explain why the nodal matrix of a large circuit is sparse, what "fill-in" means during elimination, and why node ordering is one of the central problems in circuit simulation.

Solution

Why sparse. From Problem 9, \(Y_{jk} \ne 0\) only when nodes \(j\) and \(k\) are joined by a branch. Real circuits have bounded fan-out — a node meets perhaps three to six elements, whatever the total size — so the number of non-zeros grows linearly with \(n\):

\[ \text{non-zeros} \approx n + 2b \ll n^2 \]

A million-node integrated circuit gives a matrix with a few million non-zeros out of \(10^{12}\) entries — a density around one in a million.

What fill-in is. Eliminating node \(k\) connects every neighbour of \(k\) to every other. In graph terms, the elimination deletes node \(k\) and adds a clique on its neighbours:

\[ Y_{jm} \;\longleftarrow\; Y_{jm} - \frac{Y_{jk}Y_{km}}{Y_{kk}} \]

If \(Y_{jm}\) was zero and both factors are not, a new non-zero appears where the circuit had no branch. That is fill-in, and it is pure cost.

Why ordering matters. Consider a star: one central node joined to \(n-1\) others. Eliminate the centre first and its \(n-1\) neighbours all become mutually connected — the matrix fills completely. Eliminate the outer nodes first and there is no fill-in at all, since each has only one neighbour.

\[ \text{worst order}: \ O(n^2)\ \text{fill} \qquad\text{vs}\qquad \text{best order}: \ 0 \]

Same circuit, same matrix, same answer — and a difference of several orders of magnitude in time and memory, decided entirely by the sequence in which nodes are eliminated.

What is actually done. Finding the ordering that minimises fill-in is NP-hard, so simulators use heuristics: minimum degree eliminates the node with fewest neighbours next, and nested dissection recursively splits the graph along small separators. Both are graph algorithms operating on the structure of this set, run before any numerical value is looked at.

The graph is analysed before the circuit is. A modern simulator spends its first phase entirely on topology — building \(\mathbf{A}\), ordering the nodes, predicting where fill-in will occur, and allocating storage — and only then substitutes numbers. Whether a large simulation finishes in seconds or hours is usually decided in that phase, by the graph rather than the physics.
AnswerSparse because \(Y_{jk} \ne 0\) only for adjacent nodes; elimination creates cliques; ordering changes cost by orders of magnitude
Problem 19ChallengeRank and Connectedness

Prove that \(\operatorname{rank}(\mathbf{A}_a) = n - 1\) if and only if the graph is connected, and find the rank for a graph with \(s\) separate parts. What does a disconnected graph mean for a circuit?

Solution

If connected, the rank is \(n-1\). Problem 4 gave \(\operatorname{rank} \le n-1\). For the reverse, take any tree — one exists precisely because the graph is connected — and consider the \(n-1\) columns of \(\mathbf{A}_a\) belonging to its twigs. Remove a leaf node of the tree: its single twig is the only branch touching it, so that column has exactly one non-zero entry. Deleting the pair and repeating shows the twig columns are independent, giving \(n-1\) independent columns.

If disconnected, the rank is lower. Suppose the graph falls into \(s\) parts with \(n_1, \dots, n_s\) nodes. No branch joins one part to another, so \(\mathbf{A}_a\) is block-diagonal after reordering:

\[ \mathbf{A}_a = \operatorname{diag}\!\left(\mathbf{A}^{(1)}, \dots, \mathbf{A}^{(s)}\right) \]

Each block is the incidence matrix of a connected graph, of rank \(n_p - 1\). Ranks of block-diagonal matrices add:

\[ \operatorname{rank}(\mathbf{A}_a) = \sum_{p=1}^{s}(n_p - 1) = n - s \]

So the rank detects the number of parts, and the case \(s = 1\) recovers \(n-1\). The two directions together give the "if and only if".

The loop count is unaffected in form. The general result, valid for any \(s\), is

\[ l = b - n + s \]

A forest of \(s\) trees has \(n-s\) twigs, so the links number \(b - n + s\). Every formula in this set is the special case \(s = 1\).

What it means for a circuit. A disconnected circuit is \(s\) independent circuits, each solvable alone. The complication is that node voltages are then determined only within each part: one reference node is needed per part, and the potential difference between two parts is undefined, since no branch connects them.

This is not a curiosity. A transformer, an optocoupler and a relay all couple two circuits with no conductive path, so their graphs have \(s = 2\). Simulators require an explicit reference in each isolated part, and reporting "singular matrix — node has no DC path to ground" is exactly the detection of \(s > 1\).

The rank of one matrix answers a question about the drawing. Nowhere in computing \(\operatorname{rank}(\mathbf{A}_a)\) does anything examine connectivity directly, yet the answer counts the separate pieces exactly. This is the recurring lesson of the set: structural questions about circuits become linear-algebraic questions about the incidence matrix, and are then answered mechanically.
Answer\(\operatorname{rank}(\mathbf{A}_a) = n - s\); connected \(\Leftrightarrow s = 1 \Leftrightarrow\) rank \(n-1\); \(l = b-n+s\)
Problem 20ChallengeSynthesis

Set out every method of Sets 3 to 7 as a choice made within the topological framework of this set, and identify what is genuinely different between them.

Solution

Each method chooses which subspace of \(\mathbb{R}^b\) to parameterise, and how:

MethodUnknownsCountMatrix
Branch currents (Set 3)all \(i_k\)\(b\)both \(\mathbf{A}\) and \(\mathbf{B}\)
Mesh (Set 4)mesh currents\(b-n+1\)\(\mathbf{B}\mathbf{R}_b\mathbf{B}^{\mathsf T}\), meshes as loops
Supermesh (Set 5)as abovefewerrows of \(\mathbf{B}\) added
Nodal (Set 6)node voltages\(n-1\)\(\mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\)
Supernode (Set 7)as abovefewerrows of \(\mathbf{A}\) added
Loop (Problem 10)link currents\(b-n+1\)\(\mathbf{B}\mathbf{R}_b\mathbf{B}^{\mathsf T}\), any tree
Cutsettwig voltages\(n-1\)\(\mathbf{Q}\mathbf{G}_b\mathbf{Q}^{\mathsf T}\)

Superposition and supermesh are the same operation. Both add rows. Adding two rows of \(\mathbf{A}\) gives a generalised KCL over a surface enclosing two nodes — a supernode; adding two rows of \(\mathbf{B}\) gives a KVL round a path avoiding a shared branch — a supermesh. Set 7, Problem 2 and Set 5, Problem 2 both proved this by hand.

What is genuinely different. Only two things:

\[ \text{(i) which complement is parameterised};\qquad \text{(ii) whether an embedding is required} \]

Everything else — the sign conventions, the symmetry rules, the by-inspection shortcuts, the special handling of sources — follows from those two choices.

What is not different. The branch currents and voltages. Sixteen trees, three or more methods, and one answer, because all of them solve \(\mathbf{A}\mathbf{i} = \mathbf{i}_s\) and \(\mathbf{B}\mathbf{v} = \mathbf{v}_s\) subject to the element laws — a system with a unique solution whenever \(\mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\) is non-singular.

What this does not cover. Topology is silent on element values, so it cannot tell you which method will be less arithmetic in a given case, and it says nothing about dependent sources — which break the symmetry of both matrices without altering the graph at all. Set 4, Problem 20 and Set 6, Problem 9 remain the authorities there.

Sets 3 to 7 taught seven techniques; this set shows there was one. That is worth more than the labour saved: a method understood as a choice can be adapted when the circumstances change — non-planar topology, a machine rather than a hand, a network too large to draw — whereas a method learned as a ritual cannot.
AnswerAll seven differ only in which orthogonal complement is parameterised, and whether an embedding is needed
Practice

Practice Problems

Work each on paper before opening the answer. The answer is given so you can check yourself; the method is deliberately not.

  1. P1. A circuit has 12 branches and 7 nodes. How many twigs, links and independent loops?

    Show answer
    Twigs \(= n-1 = 6\); links \(= b-n+1 = 6\); independent loops \(= 6\). Nodal and loop analysis tie at six equations here.
  2. P2. How many trees does a graph of 3 nodes with all pairs joined \((K_3)\) have?

    Show answer
    \(\tau(K_3) = 3^{3-2} = 3\) — omit any one of the three branches and the other two form a tree.
  3. P3. Why does every column of the complete incidence matrix sum to zero?

    Show answer
    A branch has exactly two ends, so it contributes \(+1\) at the node it leaves and \(-1\) at the node it enters — nothing else.
  4. P4. A tie-set matrix has 4 rows and 9 columns. How many nodes does the graph have?

    Show answer
    Rows = links = \(b-n+1\), so \(4 = 9-n+1\) and \(n = 6\).
  5. P5. True or false: the fundamental loops of a graph are unique.

    Show answer
    False. They depend on the tree chosen, and there are as many loop sets as trees — 16 for the bridge (Problem 3). All give the same branch currents.
  6. P6. A graph has \(b = 15\), \(n = 9\), and falls into 2 separate parts. Find the number of independent loops.

    Show answer
    \(l = b - n + s = 15 - 9 + 2 = 8\) — Problem 19.
  7. P7. What is \(\mathbf{B}\mathbf{A}^{\mathsf T}\) for a graph with 5 nodes and 8 branches, and what are its dimensions?

    Show answer
    The zero matrix, of size \((b-n+1) \times (n-1) = 4 \times 4\). It vanishes for every graph and every tree — Problem 8.
  8. P8. A tie-set matrix is written with columns ordered twigs-then-links. What shape does it take, and why does that guarantee independence?

    Show answer
    \([\mathbf{B}_t \mid \mathbf{I}]\). The identity block means each link appears in exactly one loop, so no row is a combination of the others.
  9. P9. Which of these graphs is non-planar: \(K_4\), \(K_5\), a 5-rung ladder?

    Show answer
    Only \(K_5\). \(K_4\) is the bridge, drawn flat in Problem 1; a ladder is obviously flat.
  10. P10. The dual of a planar graph has how many nodes, if the original has \(b = 9\) and \(n = 5\)?

    Show answer
    \(n^{*} = l + 1 = (9-5+1) + 1 = 6\) — one dual node per mesh, plus one for the outer region.
  11. P11. A nodal matrix has a non-zero entry \(Y_{37}\). What does that tell you about the circuit?

    Show answer
    There is at least one branch directly joining nodes 3 and 7. Conversely, a zero there means no such branch — the sparsity pattern is the adjacency structure.
  12. P12. Tellegen's theorem is applied to two circuits with identical graphs but completely different elements. Does \(\sum_k v_k^{(1)} i_k^{(2)} = 0\) still hold?

    Show answer
    Yes. The proof uses only \(\mathbf{A}\), so it needs the shared topology and nothing else — not linearity, not even time-invariance. Problem 11.
Challenge

Challenge Problems

Each needs an idea rather than a formula. Decide what the governing principle is before opening the answer.

  1. C1. Prove Euler's formula \(n - b + f = 2\) for a connected planar graph, where \(f\) counts the faces including the outer one, and use it to show that the number of meshes equals \(b - n + 1\).

    Show answer
    Proof by building up from a tree. A tree has \(n\) nodes, \(n-1\) branches and exactly one face (the outside), so \(n - (n-1) + 1 = 2\;\checkmark\).

    Now add the links one at a time. Each added link joins two nodes already present, so it closes a loop and divides one existing face into two: \(b\) increases by 1 and \(f\) increases by 1, while \(n\) is unchanged. The alternating sum \(n - b + f\) is therefore invariant, and equals 2 throughout.

    The mesh count. Meshes are the bounded faces, so \(\#\text{meshes} = f - 1\). From Euler, \(f = 2 - n + b\), hence
    \[ \#\text{meshes} = b - n + 1 = l \]
    So for a planar graph the meshes are exactly as numerous as the fundamental loops of any tree — they form one valid loop set among the many. Note the proof used planarity twice (faces exist; a link divides a face), which is precisely why the identification fails for \(K_5\).
  2. C2. Two networks have the same graph and the same resistance in every branch, but a source in different places. Use Tellegen's theorem to prove reciprocity: a source \(V\) in branch \(p\) producing current \(i_q\) in branch \(q\) gives the same reading as the source moved to \(q\) and the current read at \(p\).

    Show answer
    Let network (1) have the source in branch \(p\) and network (2) in branch \(q\), all resistances identical. Tellegen in its cross form (Problem 11) gives both
    \[ \sum_k v_k^{(1)}i_k^{(2)} = 0 \qquad\text{and}\qquad \sum_k v_k^{(2)}i_k^{(1)} = 0 \]
    Subtract. For every resistive branch, \(v_k = R_k i_k\) in both networks, so
    \[ v_k^{(1)}i_k^{(2)} - v_k^{(2)}i_k^{(1)} = R_k i_k^{(1)}i_k^{(2)} - R_k i_k^{(2)}i_k^{(1)} = 0 \]
    Every resistive term cancels identically. Only branches \(p\) and \(q\) survive, since they hold sources in one network and plain shorts in the other:
    \[ v_p^{(1)}i_p^{(2)} + v_q^{(1)}i_q^{(2)} - v_p^{(2)}i_p^{(1)} - v_q^{(2)}i_q^{(1)} = 0 \]
    With \(v_p^{(1)} = -V\), \(v_q^{(2)} = -V\), and the other two branch voltages zero (an ideal source replaced by a short), this reduces to
    \[ V\,i_p^{(2)} = V\,i_q^{(1)} \;\Longrightarrow\; i_p^{(2)} = i_q^{(1)} \]
    which is reciprocity. Compare Set 4, Problem 19, which proved the same result from symmetry of \(\mathbf{R}^{-1}\). This proof shows why that symmetry holds: the cancellation needs \(v_k = R_k i_k\) with the same \(R_k\) in both networks — which a dependent source violates, since its value changes when the excitation moves.
  3. C3. A graph has \(n\) nodes and is a single cycle. Find its number of trees, its incidence matrix rank, and its dual. Then explain what happens to all three as the cycle is opened.

    Show answer
    Trees: a cycle has \(b = n\) branches, and deleting any one leaves a path touching all nodes with no loop. So there are exactly \(n\) trees, one per deleted branch.
    Rank: the graph is connected, so \(\operatorname{rank}(\mathbf{A}_a) = n-1\), and \(l = b-n+1 = 1\) — a single loop, as expected.
    Dual: a cycle drawn in the plane has two faces, inside and outside, so the dual has 2 nodes joined by \(n\) parallel branches. Series becomes parallel exactly as Problem 14 requires: \(n\) elements in series dualise to \(n\) in parallel.

    Opening the cycle (deleting one branch): \(b\) falls to \(n-1\), so \(l = 0\) — no loops at all, and the graph is its own unique tree. The rank stays at \(n-1\), since the graph is still connected, but there is now only one tree instead of \(n\). The dual degenerates: with one face, the dual has a single node and \(n-1\) self-loops, reflecting the fact that a series chain with a break carries no current whatever the elements are. This is the topological content of "an open circuit carries zero current" — it is a statement about \(l = 0\), not about resistance being infinite.
MCQ

Multiple-Choice Questions

Twelve questions in GATE/ESE style. Commit to an answer before opening the explanation.

  1. Q1. A connected graph has \(b = 9\) and \(n = 6\). The number of links is

    (a) 3   (b) 4   (c) 5   (d) 6

    Show answer
    (b). \(b - n + 1 = 9 - 6 + 1 = 4\). Twigs number \(n-1 = 5\).
  2. Q2. The rank of the complete incidence matrix of a connected graph with \(n\) nodes is

    (a) \(n\)   (b) \(n-1\)   (c) \(b\)   (d) \(b-n+1\)

    Show answer
    (b). The rows sum to the zero row, so the rank cannot reach \(n\) — Problems 4 and 19.
  3. Q3. A tie-set matrix written with links last has the form

    (a) \([\mathbf{I} \mid \mathbf{B}_l]\)   (b) \([\mathbf{B}_t \mid \mathbf{I}]\)   (c) diagonal   (d) symmetric

    Show answer
    (b). Each link lies in its own fundamental loop only. Option (a) is the cutset matrix's form, with twigs first.
  4. Q4. The product \(\mathbf{B}\mathbf{A}^{\mathsf T}\) equals

    (a) \(\mathbf{I}\)   (b) \(\mathbf{0}\)   (c) \(\mathbf{A}\)   (d) it depends on the tree

    Show answer
    (b). Always zero, for every graph and every tree — a loop entering a node must also leave it, so the two surviving terms cancel.
  5. Q5. The number of trees of the complete graph \(K_5\) is

    (a) 16   (b) 25   (c) 125   (d) 625

    Show answer
    (c). Cayley's formula: \(n^{n-2} = 5^3 = 125\).
  6. Q6. Mesh analysis cannot be applied to a circuit whose graph is

    (a) disconnected   (b) non-planar   (c) a tree   (d) complete

    Show answer
    (b). Meshes are faces of a plane drawing, which non-planar graphs do not possess. \(K_4\) is complete and perfectly planar.
  7. Q7. The nodal conductance matrix is obtained as

    (a) \(\mathbf{A}^{\mathsf T}\mathbf{G}_b\mathbf{A}\)   (b) \(\mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\)   (c) \(\mathbf{B}\mathbf{G}_b\mathbf{B}^{\mathsf T}\)   (d) \(\mathbf{A}\mathbf{G}_b\)

    Show answer
    (b). Its size is \((n-1)\times(n-1)\); option (a) would be \(b \times b\).
  8. Q8. Tellegen's theorem requires

    (a) linear elements   (b) only KCL and KVL   (c) planarity   (d) time-invariance

    Show answer
    (b). The proof uses \(\mathbf{v} = \mathbf{A}^{\mathsf T}\mathbf{V}_n\) and \(\mathbf{A}\mathbf{i} = \mathbf{0}\) and nothing else — which is why it survives non-linear and time-varying elements.
  9. Q9. A graph with \(n = 10\) falls into 3 separate parts. The rank of its incidence matrix is

    (a) 7   (b) 9   (c) 10   (d) 3

    Show answer
    (a). \(n - s = 10 - 3 = 7\) — Problem 19.
  10. Q10. In the dual of a planar network, a series connection becomes

    (a) a series connection   (b) a parallel connection   (c) a short circuit   (d) undefined

    Show answer
    (b). And with it, \(R \to G\), \(L \to C\), voltage source → current source, supermesh → supernode.
  11. Q11. Fill-in during Gaussian elimination on a nodal matrix means

    (a) rounding error   (b) new non-zeros where the circuit has no branch   (c) adding rows   (d) a singular pivot

    Show answer
    (b). Eliminating a node connects all its neighbours to each other. Node ordering is chosen to keep this small — Problem 18.
  12. Q12. Two different trees of the same graph give

    (a) different branch currents   (b) different loop matrices but the same branch currents   (c) identical loop matrices   (d) different numbers of loops

    Show answer
    (b). Problem 10 solved the bridge with a non-mesh tree: a quite different \(\mathbf{Z}\), different loop currents, and branch currents agreeing to the last digit.
Formulas

Key Formulas

QuantityRelationNotes
Twigs\(n - 1\)Branches of any tree
Links\(b - n + 1\)Co-tree; one per fundamental loop
Loops, \(s\) parts\(l = b - n + s\)Connected graph: \(s = 1\)
Incidence rank\(\operatorname{rank}(\mathbf{A}_a) = n - s\)Detects connectedness
KCL\(\mathbf{A}_a\mathbf{i} = \mathbf{0}\)\(n-1\) independent rows
KVL\(\mathbf{B}\mathbf{v} = \mathbf{0}\)\(b-n+1\) independent rows
Branch voltages\(\mathbf{v} = \mathbf{A}^{\mathsf T}\mathbf{V}_n\)From node voltages
Branch currents\(\mathbf{i} = \mathbf{B}^{\mathsf T}\mathbf{I}_l\)Satisfies KCL automatically
Orthogonality\(\mathbf{B}\mathbf{A}^{\mathsf T} = \mathbf{0}\)Any graph, any tree
Nodal matrix\(\mathbf{Y} = \mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\)Symmetric positive definite
Loop matrix\(\mathbf{Z} = \mathbf{B}\mathbf{R}_b\mathbf{B}^{\mathsf T}\)Depends on the tree chosen
Cutset matrix\(\mathbf{Q} = [\mathbf{I} \mid \mathbf{Q}_l]\)Twigs first
Tie-set matrix\(\mathbf{B} = [\mathbf{B}_t \mid \mathbf{I}]\)Links last
Tellegen\(\sum_k v_k i_k = 0\)Holds across two networks sharing a graph
Matrix-tree\(\tau = \) any cofactor of \(\mathbf{L}\)\(\tau(K_n) = n^{n-2}\)
Kirchhoff resistance\(R_{ab} = W_{ab}/W\)Sums over trees and 2-forests
Euler's formula\(n - b + f = 2\)Planar; meshes \(= f - 1 = l\)
Dual counts\(n^{*} = l+1,\ l^{*} = n-1\)Planar graphs only
Pitfalls

Common Mistakes

  1. Counting elements instead of branches, or the reverse. Every two-terminal element is one branch, sources included. A source with a series resistor is two branches, not one.

  2. Assuming a tree must look like a tree. Any connected loop-free subgraph touching all nodes qualifies, including a single path. The bridge's \(\{1,3,5\}\) is a straight chain.

  3. Believing the fundamental loops are unique. They depend entirely on the tree, and there are 16 trees for a graph as small as the bridge.

  4. Confusing meshes with fundamental loops. Meshes are one valid loop set, available only for planar graphs. Loop \(L_6\) of Problem 7 runs round four branches and is no mesh at all.

  5. Declaring a graph non-planar because your drawing has crossings. Planarity is a property of the graph. Redraw before concluding, and use Kuratowski's criterion to be certain.

  6. Writing \(\mathbf{A}^{\mathsf T}\mathbf{G}\mathbf{A}\) for the nodal matrix. The order matters: \(\mathbf{A}\mathbf{G}_b\mathbf{A}^{\mathsf T}\) is \((n-1)\times(n-1)\); reversing it gives a \(b \times b\) matrix of the wrong thing entirely.

  7. Forgetting to delete a row before inverting. The complete incidence matrix is singular by construction. One row must go, and which one is the choice of reference node.

  8. Using \(l = b - n + 1\) on a disconnected graph. The correct form is \(l = b - n + s\). Transformers and optocouplers give \(s = 2\).

  9. Assuming Tellegen's theorem is conservation of energy. It is more general: the cross form multiplies one network's voltages by another's currents, and those products are not powers of anything.

  10. Expecting topology to settle questions it cannot see. Element values, dependent sources and non-linearity are invisible to the graph. Topology fixes how many equations there are, never what is in them.

Looking Ahead

Part 1 has now covered the systematic methods and the structure underneath them. Every linear resistive circuit can be solved by what has been established so far, and Problem 20 showed that the several techniques are one technique wearing different clothes.

The remaining sets of Part 1 change the question. Rather than solving a network completely, the theorems replace part of it with something simpler — an equivalent source, a superposed contribution, a single resistance seen from two terminals. Each is proved using the methods of Sets 3 to 7, and each buys a great deal of labour for a small amount of theory.

Next: Set 9 — Thévenin's Theorem, which reduces any linear two-terminal network, however large, to one source and one resistance. Its proof rests on superposition, and its usefulness rests on the fact that a load can then be changed without solving anything again.