A connected circuit has 5 nodes and 9 branches. How many independent KVL equations does it give?
- (A)
4
- (B)
5
- (C)
8
- (D)
9
Answer and solution
Answer: (B)
Independent KVL equations equal the number of links, .
.
FOUNDATION · CHAPTER 4 OF 7
This chapter counts a circuit's independent equations, sets up nodal and mesh analysis as matrix equations, and solves them by elimination and Cramer's rule. You need it to set up any circuit without guessing.
Updated 12 Oct 2026
You will count a circuit's independent equations and show why. You will write nodal and mesh equations as matrices by inspection, with dependent sources, supernodes and supermeshes. You will pick the method with fewer unknowns and solve 2 x 2 or 3 x 3 systems by elimination or Cramer's rule.
Chapter 1, Charge, current, voltage and power: what the quantities mean (KCL, KVL, the passive sign convention)
Ohm's law as , with in siemens (S)
Ideal voltage and current sources: each holds its value whatever the other quantity
Linear equations; independence: no equation is a sum of multiples of the others
2 x 2 and 3 x 3 determinants, expanded along a row
Euler's formula for a connected drawing with no crossings, the outside counted as one face
A node is a point where two or more elements join; a branch is one element between two nodes. A loop is a closed path that visits no node twice. A circuit is connected when a path of branches joins any two nodes; a tree is a set of branches connecting all the nodes with no loop. Grow a tree from one node a branch at a time: each branch reaches one new node, since joining two reached nodes closes a loop. So a tree has of the branches; the other are links.
INDEPENDENT KCL EQUATIONS
For a connected circuit with nodes. Each branch current leaves one node and enters another, so all KCL equations add to : drop the one at the reference node, the node taken as 0 V. Suppose the rest, node 's equation times , add to . A branch between nodes and is in only their equations, with opposite signs, so it cancels only if ; one from to the reference forces . Along a path from the reference each node's equals the one before, starting at 0, so every .
INDEPENDENT KVL EQUATIONS
For the same circuit with branches. Each link closes one loop with the tree path between its ends. Its voltage is in that loop's KVL and in no other link's loop, so these equations are independent. The list below shows they imply every other loop's KVL.
Give the reference node the value 0. For node , walk the tree path from to the reference adding tree-branch voltages: + when you cross a branch from its + end to its - end (a drop), - the other way. The total is (V).
A tree branch from node (its - end) to node (its + end) then has voltage : the tree paths from and differ only by that branch.
So crossing a tree branch from node to node is a drop of .
A link from (-) to (+) closes a loop with the tree path between them. Walk from through the link to , a drop of the link's voltage, then along the tree back to .
The tree drops telescope to , each node between cancelling. The loop's equation sets the total to 0, so the link's voltage is .
So every branch from (-) to (+) has voltage . Round any loop each step from to drops ; every node's value cancels, so the drops total zero: that loop's KVL.
Each method makes one law hold by itself. Nodal analysis takes the node voltages as unknowns: every branch voltage is a difference of two of them (or one, for a branch to the reference), so KVL holds and the KCL equations remain. A mesh is a loop with no branch inside it, in a circuit drawn flat with no crossings (planar). Mesh analysis takes mesh currents as unknowns: each branch carries one or the difference of two, so KCL holds and one KVL equation per mesh remains.
NUMBER OF MESHES
For a connected circuit drawn flat. The drawing splits the page into faces, the outside counted as one, and Euler's formula gives . Every face but the outside is bounded by one mesh, so there are meshes, as many as links.
The mesh equations are independent. Suppose each mesh's KVL, times a number , added to with some not zero. Shade every mesh whose is not zero. The outside is never shaded, so somewhere a branch has a shaded mesh on one side and, on the other, an unshaded mesh or the outside. That branch's voltage appears in only one shaded mesh's equation, so in the sum it keeps the coefficient , which is not zero. So the sum cannot be , and the meshes give all independent KVL equations.
NODAL EQUATIONS BY INSPECTION
For resistors and independent current sources, shown for two nodes. is the node conductance matrix (S), node 's voltage (V), the source current into node (A). sums the conductances at node ; , with the conductance joining and . Why: the current leaving node toward node is ( for the reference), and by KCL these sum to .
MESH EQUATIONS BY INSPECTION
For a planar circuit of resistors and independent voltage sources, mesh currents (A) all clockwise; is the mesh resistance matrix (). KVL round mesh : resistor drops equal , the source rises met clockwise (V). A resistor shared with mesh carries , so is mesh 's total resistance and is minus the shared resistance.
WORKED EXAMPLE
Nodes 1 and 2 and a reference node 0. A 9 mA source sends current from 0 into node 1. Three resistors of 1 k each join 1 to 0, 1 to 2, and 2 to 0. Find , and the current in the resistor between 1 and 2.
Each resistor has mS. Nodes 1 and 2 each touch two resistors, so mS; one resistor joins them, so mS.
Only node 1 has a source entering, so mA and . In mS, mA and V the equations are and .
The second gives ; substituting into the first, , so V and V.
From node 1 to node 2 flows mA. Check KCL at node 2: its resistor to 0 takes mA, the same current.
Answer: V, V, and 3 mA flows from node 1 to node 2.
A dependent source's value is set by a voltage or current elsewhere, such as a current ( in S). Treat it as independent, write its control in the unknowns, and move those terms left. If enters node 1, KCL there reads , so the entry becomes and is in general not symmetric. A controlling current in a resistor from node to is . Likewise, a voltage source ( in ) rising clockwise in mesh 1 adds to ; moved left, it makes the entry .
An ideal voltage source, independent or dependent, allows any current, so node voltages cannot give its current. From a node to the reference, it fixes that node's voltage: if its + terminal is at the node, else . Between non-reference nodes (+) and , enclose it and both nodes in a supernode. Write KCL for the enclosure, where its current stays inside, plus . It replaces the KCL equation lost in the merge.
Mesh analysis mirrors this. A current source (A) in one mesh only sets that mesh current to (+ if it points clockwise). One in the branch shared by clockwise meshes and , pointing along mesh 's current, forms a supermesh. That branch carries that way, so . Add KVL round the loop enclosing both meshes, which skips the shared branch.
To choose a method, count unknowns: node voltages, less one for each ideal voltage source, against the number of meshes, less one for each ideal current source. Take the smaller count. Mesh analysis needs a flat drawing, so a circuit that cannot be drawn flat takes nodal analysis.
WORKED EXAMPLE
Nodes 1 and 2 and a reference node 0. A 9 mA source sends current from 0 into node 1. A 2 k resistor joins node 1 to 0, and a 1 k resistor joins node 2 to 0. An ideal 6 V source joins node 1 (+) to node 2 (-). Find and .
The source joins two non-reference nodes, so its current is unknown. Enclose both nodes in a supernode. The extra equation is .
KCL on the enclosure: the source's current stays inside, so the currents leaving through the resistors equal the 9 mA entering: (V over k gives mA).
Substitute and multiply by 2 to clear the fraction: , so V and V.
Check at node 1: 9 mA enters and mA leaves through 2 k, so 4 mA goes through the source to node 2, exactly what node 2's resistor takes at 4 V.
Answer: V, V.
Elimination removes one unknown at a time: scale two equations until an unknown has equal coefficients, then subtract. For three equations, use the first to remove from the other two (swap equations if ), solve that pair, then the first for . Substituting the answers into every equation catches a slip. Cramer's rule is the same elimination done once in general form. If the determinant of the coefficients is 0, there is no single solution: the equations contradict, or one follows from the others.
CRAMER'S RULE FOR TWO EQUATIONS
For and , valid when . and are with the or column replaced by the 's. Why: equation 1 times minus equation 2 times gives ; equation 2 times minus equation 1 times gives .
CRAMER'S RULE FOR THREE EQUATIONS
For (), valid when . is the coefficient determinant, expanded along row 1; is with column replaced by the . It extends the two-equation elimination.
A connected circuit has 5 nodes and 9 branches. How many independent KVL equations does it give?
4
5
8
9
Answer: (B)
Independent KVL equations equal the number of links, .
.
A connected circuit has nodes, only resistors and independent current sources, and a reference node is chosen. Which statements about its nodal equations are correct?
There are unknown node voltages.
The Y matrix is symmetric.
The off-diagonal entries are positive.
Each diagonal entry is the sum of the conductances touching that node.
Answer: (A), (B), (D)
The reference node's voltage is zero, so voltages are unknown: A is correct.
A conductance between nodes and gives the same entry in and : B is correct.
Off-diagonal entries are , so they are negative, or zero where no conductance joins the two nodes: C is wrong.
collects every conductance at node : D is correct.
Solve , and by Cramer's rule. What is ?
Answer: (accepted range )
Expand along the first row: .
has column 2 replaced by , so its rows are , , : .
.
Check by elimination: the third equation gives , the second then gives , and the first gives , so and .
A planar circuit has two meshes, both mesh currents clockwise. Mesh 1 holds a 4 k resistor and a 10 V source that rises in the clockwise direction; mesh 2 holds a 3 k resistor and no source; a 2 k resistor is the one branch the meshes share. Find in mA.
Answer: (accepted range )
k, k, k. V, .
Equations in k, mA, V: and .
.
With : , so mA.