Sub topic 9
Floating Voltage Sources and Supernodes
This chapter assumes you can write KCL equations in terms of conductance, solve G v = i, and handle a voltage source tied to ground. Here you will handle a voltage source with neither terminal on the reference node.
Why a floating source breaks the usual method
The current through an ideal voltage source can take any value. Its voltage is fixed, but you cannot write that current as a function of node voltages with Ohm's law. If you write KCL at a node that touches the source, you get an extra unknown: the source current.
You have two ways out. You can add the source current as a new unknown. Or you can avoid it by merging the two nodes into a supernode.
The supernode idea
A supernode is a closed surface drawn around a floating voltage source and the two nodes it connects. KCL holds for any closed surface. The source current flows inside the surface, so it never crosses the boundary and drops out of the equation.
You then write two equations for the two unknown node voltages:
- KCL for the supernode: the sum of currents leaving through the boundary is zero.
- Source constraint: the difference between the two node voltages equals the source voltage.
Worked example
A 6 A current source pushes current into node 1. A 2 Ω resistor connects node 1 to ground. A 4 Ω resistor connects node 2 to ground. A 6 V voltage source sits between node 1 (+) and node 2 (−).
Currents leaving the supernode through resistors:
- Through the 2 Ω resistor:
V1/2 - Through the 4 Ω resistor:
V2/4
The 6 A source feeds current into the supernode, so KCL gives:
V1/2 + V2/4 = 6
V1 - V2 = 6Substitute V1 = V2 + 6:
(V2 + 6)/2 + V2/4 = 6
0.75 V2 + 3 = 6
V2 = 4 V, V1 = 10 VThe two equations map directly onto a matrix. The first row holds conductances, and the second row holds the constraint coefficients.
import numpy as np
# Row 1: KCL for the supernode (1/2 S at node 1, 1/4 S at node 2).
# Row 2: constraint V1 - V2 = 6.
A = np.array([[1/2, 1/4],
[1.0, -1.0]])
b = np.array([6.0, 6.0])
v = np.linalg.solve(A, b)
print(v) # [10. 4.]Only the first row has units of siemens. The second row is a voltage equation, so the matrix is no longer a pure conductance matrix.
Recovering the source current
The supernode hides the source current. To find it, write KCL at node 1 alone. The 6 A source brings current in, and 10/2 = 5 A leaves through the resistor. The remaining 1 A must flow through the voltage source, from + to −.
Checking with power balance
- The 6 A source delivers 6 × 10 = 60 W.
- The 2 Ω resistor absorbs 10²/2 = 50 W.
- The 4 Ω resistor absorbs 4²/4 = 4 W.
- The voltage source absorbs 1 A × 6 V = 6 W, because current enters its + terminal.
Absorbed power is 50 + 4 + 6 = 60 W, which equals the delivered power.
Common errors
- Forgetting the constraint equation. The supernode KCL alone has two unknowns.
- Reversing the polarity. If the + terminal is at node 2, the constraint is
V2 - V1 = Vs. - Dropping resistor currents from one node of the supernode. Include every branch crossing the boundary, but not the source branch.
Exercise
In the worked example, change the voltage source to 4 V with + at node 1, and keep the 6 A source and both resistors. Find V1 and V2.
Show answer
The supernode KCL is V1/2 + V2/4 = 6, and the constraint is V1 - V2 = 4. Substituting V1 = V2 + 4 gives (V2 + 4)/2 + V2/4 = 6, so 0.75 V2 + 2 = 6 and V2 = 16/3 ≈ 5.333 V. Then V1 = 28/3 ≈ 9.333 V.
Exercise
Why does the source current not appear in the KCL equation for a supernode?
Show answer
The current through the voltage source flows entirely inside the closed surface, entering at one node and leaving at the other. It does not cross the boundary, so it cancels out of the sum of currents.