Sub topic 12
Nodal analysis with dependent sources and supernodes
This chapter assumes you can write KCL equations, apply Ohm's law, and solve a 2×2 or 3×3 linear system. It also assumes you can classify a dependent source and name its controlling variable, which earlier chapters covered.
The method in one pass
Nodal analysis picks a reference node (ground) and treats every other node voltage as an unknown. You write KCL at each non-reference node, expressing each resistor current as a voltage difference divided by resistance. Independent and dependent sources only change what appears in those equations.
The one rule that matters for dependent sources is this: a dependent source must be rewritten in terms of node voltages before you solve. Its value is not a known number. It is an extra expression that adds coefficients to your system.
Dependent current sources
A dependent current source goes into the KCL sum like any current source. The difference is that its value contains an unknown.
Consider this circuit. An independent 3 mA source pushes current into node 1. R1 = 1 kΩ connects node 1 to ground. R2 = 2 kΩ connects node 1 to node 2. R3 = 1 kΩ connects node 2 to ground. A VCCS pushes current from ground into node 2, with value 2 mS × v1. Here v1 is the voltage at node 1.
Write KCL as "currents leaving the node equal currents entering".
Node 1:
v1/1k + (v1 − v2)/2k = 3 mA
Multiply by 2000 and simplify: 3v1 − v2 = 6.
Node 2:
(v2 − v1)/2k + v2/1k = 0.002·v1
The right side contains v1, so move it to the left. Multiply by 2000:
(v2 − v1) + 2v2 − 4v1 = 0, which gives −5v1 + 3v2 = 0.
Solve the pair. From the second equation, v2 = (5/3)v1. Substitute into the first: 3v1 − (5/3)v1 = 6, so v1 = 4.5 V and v2 = 7.5 V.
Check at node 2. The resistors carry 1.5 mA (through R2) plus 7.5 mA (through R3), which is 9 mA. The source supplies 2 mS × 4.5 V = 9 mA. The check passes.
You can confirm the result in SPICE. The G element's current flows from its first node to its second node through the source, so G1 0 n2 n1 0 2m injects current into n2.
* VCCS example: expect v(n1) = 4.5 V, v(n2) = 7.5 V
I1 0 n1 DC 3m
R1 n1 0 1k
R2 n1 n2 2k
R3 n2 0 1k
G1 0 n2 n1 0 2m
.op
.endVoltage sources and the problem they create
A resistor current is (node voltage difference)/R. A voltage source has no such formula, because its current is set by the rest of the circuit. You cannot write that current in terms of node voltages. Two cases arise.
- Source connected to ground. The node voltage equals the source value (with sign). That node is no longer an unknown, and you skip KCL there.
- Floating source between two non-reference nodes. Neither node voltage is fixed, and the source current is unknown. This case needs a supernode.
Supernodes
A supernode is a closed surface drawn around a floating voltage source and the two nodes it connects. KCL holds for any closed surface, so the total current leaving the supernode is zero. This lets you ignore the unknown source current, because it flows inside the surface.
You get two equations from a supernode:
- KCL for the whole supernode. Sum the currents leaving through every other element attached to either node.
- A constraint. The source sets the voltage difference between the two nodes.
Example: a 9 mA independent source pushes current into node 1. A floating 6 V source has its positive terminal at node 1 and its negative terminal at node 2. R1 = 1 kΩ connects node 1 to ground. R2 = 2 kΩ connects node 2 to ground.
Constraint: v1 − v2 = 6.
Supernode KCL: v1/1k + v2/2k = 9 mA. Multiply by 2000: 2v1 + v2 = 18.
Substitute v1 = v2 + 6: 3v2 + 12 = 18, so v2 = 2 V and v1 = 8 V.
* Supernode example: expect v(n1) = 8 V, v(n2) = 2 V
I1 0 n1 DC 9m
V1 n1 n2 DC 6
R1 n1 0 1k
R2 n2 0 2k
.op
.endDependent voltage sources
A floating dependent voltage source also forms a supernode. The only change is in the constraint, which now contains an unknown.
Replace the 6 V source above with a VCVS whose value is 0.5 × v2, with the same polarity. The constraint becomes v1 − v2 = 0.5·v2, so v1 = 1.5·v2. The supernode KCL is unchanged: 2v1 + v2 = 18. Substituting gives 3v2 + v2 = 18, so v2 = 4.5 V and v1 = 6.75 V. Check the KCL: 6.75 mA + 2.25 mA = 9 mA.
In SPICE the VCVS line is E1 n1 n2 n2 0 0.5, which sets v(n1) − v(n2) = 0.5 × v(n2).
If the controlling quantity is the current in some branch, write that current using node voltages. For a resistor, use Ohm's law. If the branch is a voltage source, its current is not available that way. Then include that current as an additional unknown, or choose a different method such as mesh analysis.
Common errors
| Error | Why it fails | Fix |
|---|---|---|
| Leaving the controlling variable in the equation | The system has more unknowns than equations | Rewrite it in node voltages |
| Writing a current through a floating voltage source in KCL | That current cannot be expressed with node voltages | Use a supernode |
| Forgetting the constraint equation | Equation count is one short | Add v(+) − v(−) = source value |
| Wrong sign on the constraint | Polarity of the source was misread | Re-check which terminal is + |
| Treating a dependent source as zero | Dependent sources stay active | Keep it in every equation |
Exercise
Exercise
An independent 4 mA source pushes current into node 1. R1 = 1 kΩ connects node 1 to ground. R2 = 1 kΩ connects node 1 to node 2. R3 = 2 kΩ connects node 2 to ground. A VCCS pushes current from ground into node 2, with value 1 mS × v1. Find v1 and v2.
Show answer
Node 1: v1/1k + (v1 − v2)/1k = 4 mA, so 2v1 − v2 = 4. Node 2: (v2 − v1)/1k + v2/2k = 0.001·v1. Multiply by 2000: 2v2 − 2v1 + v2 = 2v1, so 3v2 = 4v1 and v2 = (4/3)v1. Substitute: 2v1 − (4/3)v1 = 4, so (2/3)v1 = 4. This gives v1 = 6 V and v2 = 8 V. Check at node 2: 2 mA + 4 mA = 6 mA, and the source gives 1 mS × 6 V = 6 mA.