Sub topic 3
Choosing the Reference Node
This chapter assumes you know Ohm's law, series and parallel resistors, and Kirchhoff's current law (KCL). You should also be comfortable solving two or three linear equations.
Why a reference node is needed
A voltage is always measured between two points. A "node voltage" is the voltage of one node relative to some agreed-upon node. That agreed-upon node is the reference node, usually called ground. It is defined to be 0 V.
If a circuit has N nodes, you pick one as the reference. That leaves N − 1 unknown node voltages, so you write N − 1 KCL equations. Without a reference, every node voltage could shift by the same amount and all the currents would stay the same. The equations would have no single answer.
The choice of reference does not change any branch current or any voltage across a component. It only shifts the node voltages by a constant.
How to choose it
Any node works. Some choices save effort. Use these rules in order:
- Pick the node with the most branches attached. Each branch to ground then adds a term to only one equation.
- If a voltage source has one terminal on a candidate node, prefer that node. The other terminal's voltage is then known, and you need one fewer equation.
- If the circuit has a natural "bottom rail", such as a battery's negative terminal, use it.
Node 0 has three branches attached: the source, R1, and R3. Nodes 1 and 2 have three and two. Choosing node 0 makes every resistor to ground a simple term in one equation.
Worked example: choosing between two references
Take the circuit above. With node 0 as ground, you solve for V1 and V2. The KCL equations are:
- Node 1: V1/4 + (V1 − V2)/2 = 2
- Node 2: (V2 − V1)/2 + V2/6 = 0
Solving gives V1 = 16/3 V (about 5.333 V) and V2 = 4 V.
Now suppose you choose node 2 as ground instead. The unknowns become the voltages of nodes 0 and 1 relative to node 2. Node 0 sits at −4 V, and node 1 sits at 16/3 − 4 = 4/3 V. The voltage across R2 is the same either way:
| Quantity | Ground = node 0 | Ground = node 2 |
|---|---|---|
| Voltage at node 1 | 5.333 V | 1.333 V |
| Voltage at node 2 | 4 V | 0 V |
| Voltage across R2 (node 1 to node 2) | 1.333 V | 1.333 V |
| Current through R2 | 0.667 A | 0.667 A |
The node voltages differ, but the physical quantities agree.
import numpy as np
# Ground = node 0. Unknowns: V1, V2.
g1, g2, g3 = 1/4, 1/2, 1/6
G = np.array([[g1 + g2, -g2],
[-g2, g2 + g3]])
i = np.array([2.0, 0.0])
v = np.linalg.solve(G, i)
v_across_r2 = v[0] - v[1]
print(v) # [5.33333333 4. ]
print(v_across_r2) # 1.3333333333333333
print(v_across_r2 / 2) # 0.6666666666666666 A through R2Common errors
- Choosing no reference. Writing KCL at every node gives N equations that are not independent. The matrix is singular, and the solver fails or returns nonsense.
- Treating ground as a node to solve for. Its voltage is 0 V by definition. Do not write a KCL equation for it.
- Mixing references. Pick one reference and measure every voltage from it. If you read a voltage from a diagram that used a different ground, convert it first.
- Assuming "ground" means earth. In analysis, ground is only the 0 V label. It need not connect to the earth.
Exercise
A circuit has 6 nodes. After you choose one reference node, how many unknown node voltages and how many KCL equations do you need? Then say what happens to the voltage across a resistor if you move the reference to a different node.
Show answer
You need 5 unknown node voltages and 5 KCL equations (N − 1 with N = 6). The voltage across the resistor does not change. Moving the reference shifts every node voltage by the same constant, and that constant cancels in the difference between the resistor's two terminals.