The Problem
This is for dealing with a voltage source connecting two unknown node voltages (example: source in schematic below). Since a voltage source may have any current flowing through it, there is no device equation to plug into the KCL equations.
The unknown current through the voltage source can be written as:
However, these currents are coupled by , which means it can be eliminated.
Supernode Usage
We can skip the step of defining the unknown current by taking a broader interpretation of KCL: The sum of currents into and out of any boundary in a circuit must equal zero. We can define a supernode that encompasses both nodes A and B. There is now only one nodal equation, with the 2 V source supplying the missing equation.
The currents entering the resistor cancel each other, so the supernode can also be expanded to include the resistor and eliminate the redundant currents: