Sub topic 9
Supernodes for Voltage Sources Between Nodes
This chapter assumes you can write a KCL equation at one node, express a resistor current as a voltage difference divided by resistance, and solve a small linear system. It also assumes you have seen the basic nodal method, where each non-reference node gets one KCL equation. Here you will handle the case that breaks that method: an ideal voltage source connected between two non-reference nodes.
The problem with a voltage source between nodes
In ordinary nodal analysis, every branch current is written as a function of node voltages. For a resistor this works because Ohm's law gives i = (va - vb) / R. An ideal voltage source has no such formula. It fixes the voltage across itself, and its current is whatever the rest of the circuit demands. Current is therefore an unknown that you cannot express in terms of node voltages.
Suppose a voltage source joins node 1 and node 2. If you write KCL at node 1 and at node 2 separately, each equation contains the unknown source current iV. That adds one unknown and gives you nothing to eliminate it with. There are two ways out:
- Keep
iVas an extra unknown and add the source's voltage constraint as an extra equation. - Combine the two nodes into one supernode, so
iVnever appears.
The second approach gives a smaller system and is the usual hand method.
What a supernode is
A supernode is the union of two non-reference nodes connected by an ideal voltage source, together with the source itself. Draw a closed surface around both nodes and the source. KCL holds for that surface, because charge cannot accumulate inside it. The source current flows between two points inside the surface, so it never crosses the boundary and drops out of the equation.
The supernode procedure produces two equations from the two nodes:
- A KCL equation for the supernode. Sum the currents crossing the boundary. Every resistor or source that connects the supernode to the outside contributes one term.
- A constraint equation. Write the source's voltage as a difference of node voltages, for example
v1 - v2 = Vs.
Two unknowns (v1, v2) and two equations give a solvable system. The count works out because merging two nodes removes one KCL equation, and the constraint replaces it.
Worked example
Take this circuit, with node 0 as ground (the reference node):
- A 10 mA current source pushes current into node 1.
- R1 = 1 kΩ connects node 1 to ground.
- An ideal 4 V source connects node 1 (positive terminal) to node 2 (negative terminal), so
v1 - v2 = 4. - R2 = 2 kΩ connects node 2 to ground.
Step 1: Draw the supernode and list boundary crossings
The supernode contains nodes 1 and 2 and the voltage source. Four things touch the outside:
- The current source delivers 10 mA into the surface.
- R1 carries
v1 / 1000out of the surface to ground. - R2 carries
v2 / 2000out of the surface to ground. - The voltage source lies inside, so it is not counted.
Step 2: Write KCL for the supernode
Current entering equals current leaving:
0.010 = v1/1000 + v2/2000Step 3: Write the constraint
v1 - v2 = 4Step 4: Solve
Substitute v1 = v2 + 4 and multiply the KCL equation by 2000:
20 = 2(v2 + 4) + v2
20 = 3 v2 + 8
v2 = 4 V, v1 = 8 VStep 5: Recover the source current
The supernode equation never gave you the source current. Get it afterward with ordinary KCL at node 1. The current source supplies 10 mA, and R1 takes 8 / 1000 = 8 mA. The remaining 2 mA must leave node 1 through the voltage source. At node 2, that same 2 mA arrives and R2 carries 4 / 2000 = 2 mA to ground, which is consistent.
The source current is 2 mA, flowing from node 1 to node 2 through the source. That is into the positive terminal, so the 4 V source absorbs power: 4 V × 2 mA = 8 mW.
As a power check, the current source delivers 10 mA × 8 V = 80 mW. R1 absorbs 64 mW, R2 absorbs 8 mW, and the voltage source absorbs 8 mW. The total is 80 mW, so delivered and absorbed power balance.
The procedure as a flow
Doing it in code
The supernode equation and the constraint become the two rows of a matrix. The first row holds the conductances from the boundary KCL, and the second row holds the coefficients of the constraint.
import numpy as np
# 10 mA source into node 1. R1 = 1 kohm (node 1 to ground),
# R2 = 2 kohm (node 2 to ground), 4 V source with + at node 1, - at node 2.
R1, R2 = 1000.0, 2000.0
Is, Vs = 0.010, 4.0
A = np.array([
[1/R1, 1/R2], # supernode KCL: v1/R1 + v2/R2 = Is
[1.0, -1.0], # constraint: v1 - v2 = Vs
])
b = np.array([Is, Vs])
v1, v2 = np.linalg.solve(A, b)
print(f"v1 = {v1:.3f} V, v2 = {v2:.3f} V")
# Recover the voltage-source current (node 1 to node 2) with KCL at node 1
i_vs = Is - v1 / R1
print(f"source current = {i_vs * 1000:.3f} mA")
# Check KCL at node 2: source current arrives, R2 carries it to ground
print(f"node 2 balance = {(i_vs - v2 / R2) * 1000:.3f} mA")The output is v1 = 8.000 V, v2 = 4.000 V, then source current = 2.000 mA, then node 2 balance = 0.000 mA. The last line is an independent KCL check. The solver never used the node 2 equation, so a zero there means the solution is consistent.
Edge cases and variations
Source connected to the reference node
If one terminal of the voltage source is ground, there is no supernode to form. The other terminal's voltage equals ±Vs, so that node voltage is known and its KCL equation is not needed. You skip it, and the source current is not required to find the other voltages.
Chains of sources
If voltage sources link three non-reference nodes in a chain, the supernode contains all three nodes. You still write one boundary KCL equation, plus one constraint per source. The count stays balanced: N merged nodes lose N − 1 KCL equations and gain N − 1 constraints.
A source in series with a resistor
A voltage source with a resistor in series is not an ideal source between two nodes. The resistor creates a middle node, or you can write the branch current as (va - vb - Vs) / R directly. No supernode is needed. Use a supernode only when the source branch contains no resistance.
Which nodes go inside
The supernode surface must include both end nodes and the source, and nothing else. If a resistor also joins the two nodes in parallel with the source, that resistor is inside the surface too. Its current does not cross the boundary, so it does not appear in the boundary equation. Its current can be found afterward from (va - vb) / R = Vs / R.
Conflicting sources
Two ideal voltage sources of different values across the same pair of nodes contradict each other. The constraint equations are inconsistent, and the matrix is singular. This is a flaw in the circuit model, not in the method.
Common errors
| Error | Result | Fix |
|---|---|---|
| Writing separate KCL at each node and leaving `iV` out | Equations ignore a real current | Use the supernode, or add `iV` as an unknown |
| Including the source current in the supernode equation | Extra unknown, unsolvable system | The source is internal, so omit it |
| Forgetting the constraint equation | One equation short | Always add `va - vb = Vs` |
| Reversing the polarity in the constraint | Correct magnitudes, wrong signs on voltages | Check which terminal is positive |
| Counting a resistor between the two supernode nodes at the boundary | Wrong total | That resistor is internal, so omit it |
| Reading the source current from the supernode equation | No such value exists there | Apply KCL at one member node afterward |
Exercises
Exercise
A 6 mA current source feeds node 1. R1 = 1 kΩ connects node 1 to ground, and R2 = 1 kΩ connects node 2 to ground. A 3 V source has its positive terminal at node 1 and its negative terminal at node 2. Find v1, v2, and the current through the voltage source from node 1 to node 2.
Show answer
Supernode KCL: 0.006 = v1/1000 + v2/1000. Constraint: v1 - v2 = 3. Substituting v1 = v2 + 3 gives 6 = 2 v2 + 3, so v2 = 1.5 V and v1 = 4.5 V. KCL at node 1: the source current is 6 mA − 4.5 mA = 1.5 mA from node 1 to node 2. Check at node 2: 1.5 mA arrives and R2 carries 1.5 V / 1 kΩ = 1.5 mA to ground.
Exercise
Why does the voltage source current not appear in the supernode KCL equation, and how do you find that current afterward?
Show answer
The source lies entirely inside the closed surface around the supernode, so its current flows between two points within the surface and does not cross the boundary. KCL on the surface sums only the boundary crossings. After solving for the node voltages, write ordinary KCL at one of the two member nodes. The source current is the only unknown in that equation.