Sub topic 2
Ohm's law and voltage drops across resistors
This chapter assumes you know what voltage, current, and resistance are, and that you can solve a small system of linear equations. Here we fix the sign rule for a resistor. Every mesh equation in later chapters depends on it.
The law and its units
Ohm's law relates the voltage across a resistor to the current through it:
v = R · i
Voltage v is in volts (V), current i in amperes (A), and resistance R in ohms (Ω). The law holds for a linear resistor, one whose resistance does not change with voltage or current. Mesh analysis assumes every resistor is linear.
The equation is only correct when v and i are measured with a matching reference convention. That is the source of most sign errors.
The passive sign convention
Pick a direction for the current through the resistor. Then define the voltage v so that its positive terminal is where the current enters. This pairing is the passive sign convention. With it, v = R · i holds with a plus sign.
Current flows from the higher potential to the lower potential through a resistor. So the entry end is more positive than the exit end. We call this a voltage drop in the direction of the current.
If you reverse the assumed current direction but keep the voltage polarity, you must write v = −R · i. Choosing the pairing correctly from the start avoids this.
Drops along and against a mesh current
In mesh analysis you assign a current to each loop and walk around the loop in that direction. For a resistor that carries only this mesh current, the current enters one end and leaves the other. Walking with the current, you move from the plus end to the minus end, so you cross a drop of R · i.
A resistor shared by two meshes carries both mesh currents. If both are drawn clockwise, they run in opposite directions through the shared branch. The net current in the direction of mesh 1 is i1 − i2, so the drop in that direction is R · (i1 − i2). From mesh 2's point of view, the same resistor has a drop of R · (i2 − i1).
A worked example
A 12 V source drives a 3 Ω resistor and a 5 Ω resistor in series, forming one loop. The loop current is found from KVL, which later chapters cover in full. Here the total resistance is 8 Ω, so i = 12 / 8 = 1.5 A.
Apply Ohm's law to each resistor:
- Across the 3 Ω resistor: v = 3 × 1.5 = 4.5 V.
- Across the 5 Ω resistor: v = 5 × 1.5 = 7.5 V.
The two drops add to 12 V, which matches the source. This agreement is the idea behind Kirchhoff's Voltage Law.
The same calculation in code:
R1, R2 = 3.0, 5.0
V = 12.0
i = V / (R1 + R2)
v1 = R1 * i
v2 = R2 * i
print(f"i = {i:.2f} A")
print(f"v1 = {v1:.2f} V, v2 = {v2:.2f} V")
print(f"v1 + v2 = {v1 + v2:.2f} V (source = {V:.2f} V)")Common errors
| Error | Result | Fix |
|---|---|---|
| Mixing voltage polarity and current direction | Wrong sign on v | Put the plus end where the current enters |
| Using one mesh current on a shared resistor | Missing term in the equation | Use the difference of the two mesh currents |
| Forgetting units | Results off by factors of 1000 | Convert kΩ to Ω before calculating |
Exercise
A 4 Ω resistor is shared by mesh 1 (current i1 = 3 A) and mesh 2 (current i2 = 1 A), both clockwise. What is the voltage drop across the resistor in the direction of mesh 1, and in the direction of mesh 2?
Show answer
The net current in mesh 1's direction is i1 − i2 = 2 A, so the drop is 4 × 2 = 8 V. In mesh 2's direction the net current is i2 − i1 = −2 A, so the drop is 4 × (−2) = −8 V. The two values are equal in size and opposite in sign, because they describe the same voltage seen from opposite directions.