Sub topic 4
Labeling Node Voltages
This chapter assumes you can apply Ohm's law and Kirchhoff's current law (KCL). It also assumes you have picked a reference node, as in the previous chapter. Here you will turn a schematic into a set of named unknowns. Each unknown is a node voltage.
What a node voltage is
A node is a point where two or more circuit elements connect. A node voltage is the voltage of that node measured relative to the reference node. The reference node is also called ground, and it is defined to be 0 V.
A node voltage is never a property of a single point on its own. "V1 = 5 V" means "node 1 is 5 V higher than the reference." If you move the reference, every node voltage changes. The voltage across any element does not change, because it depends only on differences between node voltages.
Labeling matters because the equations in later chapters are only as good as the unknowns you define. A missing node, a duplicate node, or an unclear polarity gives wrong equations, and the algebra will not warn you.
Finding the nodes
Follow the wires, not the drawing. A node is every point connected by ideal wire, no matter how the wire bends or how long it is. Two corners of a schematic joined by a plain wire are one node and carry one voltage.
Use these rules:
- Treat every continuous run of ideal wire as one node.
- Treat a dot where wires meet as a junction. Wires that cross without a dot do not connect.
- Give each node one label, even if the drawing shows it in several places.
- Count the node only once, no matter how many elements attach to it.
Some nodes are more useful than others. An essential node is a node where three or more elements meet. A node with only two elements attached is a simple node. It sits in series between two elements, and the same current passes through both. You may still label simple nodes. This is often wise if you want to read a voltage there later. Labeling one adds an unknown and an equation, so skipping it saves work.
Counting the unknowns
If the circuit has N nodes in total, one is the reference. That leaves N - 1 unknown node voltages, and you will need N - 1 independent equations.
| Circuit feature | Effect on the count |
|---|---|
| Each node other than the reference | Adds one unknown |
| Voltage source from a node to the reference | Fixes that node voltage, so it is no longer unknown |
| Floating voltage source between two non-reference nodes | Links two node voltages (handled with supernodes later) |
| Wire between two labeled points | Merges them into one node, so one fewer unknown |
Count before you write any equations. If the number of unknowns does not match the number of equations you plan to write, find the mistake first.
Choosing label names and polarity
Use short, consistent names. The convention in this tutorial is:
- Name the reference node
0and draw the ground symbol on it. - Name the other nodes
1,2,3, and so on, and write the voltages as V1, V2, V3. - Write the unknown vector as
v = [V1, V2, ...]. Its order will become the row and column order of the matrix later.
The polarity of a node voltage is fixed by its definition. Vk is the voltage at node k with respect to the reference, so the positive side is the node and the negative side is ground. You do not choose a polarity for it. You do choose a direction when you assume branch currents, and that choice is independent of node labels. A wrong guess only produces a negative answer.
A diagram helps. This one shows the circuit used throughout this chapter. A 2 A source feeds node 1. Resistor R1 (4 ohm) runs from node 1 to ground. R2 (2 ohm) joins node 1 to node 2. R3 (6 ohm) runs from node 2 to ground.
There are three nodes, so there are two unknowns, V1 and V2.
From node voltages to branch quantities
Once the node voltages are labeled, every element's voltage is a difference. For a resistor between node a and node b, the voltage from a to b is:
v_ab = Va - Vb
The current from a to b follows from Ohm's law: i_ab = (Va - Vb) / R, or equivalently G * (Va - Vb) with G = 1/R. When one end is the reference, Vb = 0 and the voltage across the resistor is just the node voltage.
This is why node voltages are a compact set of unknowns. Two numbers, V1 and V2, determine all three resistor voltages and currents.
Using the values from the earlier chapters' solution, V1 = 16/3 V and V2 = 4 V, the following code computes every branch voltage and current:
import numpy as np
# v[k] is the voltage of node k. Node 0 is the reference, so v[0] = 0.
v = np.array([0.0, 16 / 3, 4.0])
# (name, node a, node b, resistance in ohms)
branches = [("R1", 1, 0, 4.0), ("R2", 1, 2, 2.0), ("R3", 2, 0, 6.0)]
for name, a, b, ohms in branches:
v_ab = v[a] - v[b]
i_ab = v_ab / ohms
print(f"{name}: v = {v_ab:.3f} V, i = {i_ab:.3f} A from node {a} to node {b}")The output is:
R1: v = 5.333 V, i = 1.333 A from node 1 to node 0
R2: v = 1.333 V, i = 0.667 A from node 1 to node 2
R3: v = 4.000 V, i = 0.667 A from node 2 to node 0At node 1, the 2 A source current equals the two currents leaving: 1.333 A + 0.667 A = 2 A. The labels carry enough information to check KCL without any further measurement.
Worked labeling example
Consider a circuit with these connections, described in words:
- A wire joins the top of a 3 ohm resistor to the top of a 6 ohm resistor and to the positive terminal of a 1 A current source.
- The other end of the 3 ohm resistor goes to a 5 ohm resistor, which then goes to ground.
- The other end of the 6 ohm resistor goes to ground.
- The current source's other terminal goes to ground.
Work through it in order:
- List the connection points: the shared top point (A), the junction between the 3 ohm and 5 ohm resistors (B), and ground (G).
- Point A is one node, because a wire joins three elements there. It is essential.
- Point B has only two elements attached. It is a simple node. You can label it, giving three nodes in all and two unknowns, or you can combine 3 ohm + 5 ohm into one 8 ohm resistor and keep one unknown.
- Ground is the reference. All the lower terminals share it.
Labeling B costs you an extra equation but keeps the voltage across the 5 ohm resistor available. Combining the resistors removes B but hides that voltage. Which you choose depends on whether you need that voltage. Either choice gives correct values at A.
Common errors
- Counting a wire as a separate node. If two points are joined by a wire, they have the same voltage. Giving them different labels adds an unknown with no equation to determine it.
- Counting the reference as an unknown. The reference is 0 V by definition. The number of unknowns is N - 1.
- Mixing up crossings and junctions. A crossing without a dot is not a connection. A junction dot is.
- Treating a node voltage as a voltage across an element. Only an element connected to the reference has a voltage equal to a node voltage. Others use differences.
- Changing the reference halfway. If you move ground, relabel everything. Mixing values from two references gives results that look plausible but do not match.
- Splitting one node because a drawing places it in two places. The same label must appear everywhere the same electrical node appears.
Why the reference choice affects your labels
Any node can serve as the reference, but not all choices are equally convenient. A good choice is the node with the most elements attached, or the node where a voltage source has one terminal. Choosing it this way reduces the number of unknowns, since a source tied to ground fixes its other node. The next chapters use this fact.
Changing the reference shifts every node voltage by the same amount. Branch voltages and currents stay the same. You can use this as a test of your understanding: if you recompute with a different reference and get different branch currents, you made an error.
Exercise
A circuit has five distinct nodes after you merge all wire-connected points. One voltage source connects node 3 directly to the reference node, and a second voltage source connects node 4 to the reference node. How many unknown node voltages remain, and what are V3 and V4? In the same circuit, a resistor connects node 1 to node 2 and the node voltages are V1 = 7 V and V2 = 3 V. What is the voltage from node 1 to node 2, and which way does current flow through a 2 ohm resistor there?
Show answer
There are five nodes and one is the reference, so there are four node voltages (V1 to V4). The two grounded sources fix V3 and V4 to their source values, so only two unknowns remain. The voltage from node 1 to node 2 is V1 - V2 = 7 - 3 = 4 V. The current is 4 V / 2 ohm = 2 A, flowing from node 1 to node 2, because node 1 is at the higher voltage.