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 system of two linear equations. Here you will use Ohm's law to turn a current into a voltage drop and to get the polarity of that drop right. Mesh analysis relies on this step. Every term in a mesh equation is a resistor voltage written as a resistance times a current.
The law and its three forms
Ohm's law states that the voltage across an ideal resistor is proportional to the current through it:
v = R · i
Voltage is in volts (V), current in amperes (A), and resistance in ohms (Ω). You can rearrange the law depending on which quantity is unknown.
| Unknown | Formula | Example (R = 4 Ω) |
|---|---|---|
| Voltage | v = R · i | i = 2 A gives v = 8 V |
| Current | i = v / R | v = 12 V gives i = 3 A |
| Resistance | R = v / i | v = 6 V, i = 1.5 A gives R = 4 Ω |
Two properties matter for what follows:
- The relationship is linear. Doubling the current doubles the voltage. Linearity is why mesh equations form a linear system you can solve with matrices.
- The law holds at every instant for a resistor with a fixed value. In a DC circuit the currents and voltages are constant, so you can treat each equation as plain algebra.
Polarity: what "voltage drop" means
The formula v = R · i gives a magnitude. To use it in a loop equation you also need a sign, and the sign depends on a reference choice.
A resistor has two terminals. If the current you assign enters the terminal marked +, the voltage across the resistor is v = +R · i, measured from + to −. This is the passive sign convention. Physically, current flows from higher potential to lower potential through a resistor, so the + end is where the current enters. The potential falls by R · i as the current passes through. That fall is the voltage drop.
If the current you assigned actually flows the other way, solving the equations gives a negative value for i. Nothing is wrong. A negative current means the real direction is opposite to the one you drew. The drop R · i then comes out negative too, and the arithmetic stays consistent.
Worked example: one loop
A 12 V source drives a 2 Ω and a 4 Ω resistor in series. Take one clockwise loop current i.
The same current passes through both resistors, so the drops are 2i and 4i. KVL says the sum of voltage rises equals the sum of drops around the loop:
12 = 2i + 4i, so i = 2 A.
The drops are 2 × 2 = 4 V and 4 × 2 = 8 V. They add up to 12 V, which matches the source. That sum check works for any single loop and is a quick way to catch arithmetic errors.
A resistor shared by two meshes
Mesh analysis gets harder when one resistor lies on the border between two meshes. Two different mesh currents flow through it, and the resistor responds only to their net effect.
Suppose both mesh currents run clockwise. In the shared branch they run in opposite directions, because the branch is the right edge of mesh 1 and the left edge of mesh 2. Take mesh 1's direction as the reference. The net current through the shared resistor R in that direction is i1 − i2. Therefore:
- Seen from mesh 1, the drop across R is R · (i1 − i2).
- Seen from mesh 2, the drop across the same resistor is R · (i2 − i1).
These two numbers have opposite signs. That is correct. They describe the same physical voltage, written with respect to two different directions of travel.
Expanding R · (i1 − i2) gives R · i1 − R · i2. The first term adds to mesh 1's total resistance. The second becomes the off-diagonal term −R in the resistance matrix that you will build in a later chapter.
Worked example: drops in a two-mesh circuit
Use the circuit from the topic's first code example. Mesh 1 contains V1 = 10 V, R1 = 2 Ω and the shared R2 = 4 Ω. Mesh 2 contains the shared R2, R3 = 6 Ω, and V2 = 5 V, which opposes clockwise current. The solved mesh currents are i1 = 80/44 ≈ 1.818 A and i2 = 10/44 ≈ 0.227 A.
The resistor drops are:
- R1: 2 × 1.818 = 3.636 V
- R2 in mesh 1's direction: 4 × (1.818 − 0.227) = 4 × 1.591 = 6.364 V
- R3: 6 × 0.227 = 1.364 V
Check mesh 1: 10 − 3.636 − 6.364 = 0. Check mesh 2, travelling clockwise. The drop across R2 in mesh 2's direction is −6.364 V and the drop across R3 is +1.364 V, so the drops total −5.000 V. The opposing source contributes a rise of −5 V. The rises and drops match, so KVL holds.
The following script performs these calculations and checks both loops.
import math
R1, R2, R3 = 2.0, 4.0, 6.0
V1, V2 = 10.0, 5.0
# Mesh currents found by solving the mesh equations (both clockwise).
i1 = 80.0 / 44.0
i2 = 10.0 / 44.0
# Drop across each resistor, using the passive sign convention
# relative to the direction of travel stated in the comment.
v_r1 = R1 * i1 # mesh 1 direction
v_r2_m1 = R2 * (i1 - i2) # shared resistor, mesh 1 direction
v_r2_m2 = R2 * (i2 - i1) # shared resistor, mesh 2 direction
v_r3 = R3 * i2 # mesh 2 direction
print(f"v_R1 = {v_r1:.3f} V")
print(f"v_R2 (mesh 1 view) = {v_r2_m1:.3f} V")
print(f"v_R2 (mesh 2 view) = {v_r2_m2:.3f} V")
print(f"v_R3 = {v_r3:.3f} V")
# KVL residual: sum of rises minus sum of drops around each loop.
kvl_mesh1 = V1 - (v_r1 + v_r2_m1)
kvl_mesh2 = -V2 - (v_r2_m2 + v_r3)
print("Mesh 1 KVL satisfied:", math.isclose(kvl_mesh1, 0.0, abs_tol=1e-9))
print("Mesh 2 KVL satisfied:", math.isclose(kvl_mesh2, 0.0, abs_tol=1e-9))The two views of R2 print as +6.364 V and −6.364 V. They are the same physical voltage, written relative to two different directions of travel.
Common errors
| Error | Symptom | Fix |
|---|---|---|
| Using R · i1 for a shared resistor | KVL residual is nonzero | Use R · (i1 − i2) when both meshes share a rotation direction |
| Marking polarity before choosing current direction | Some drops have the wrong sign | Fix the current direction first, then put + where it enters |
| Treating a negative answer as a mistake | Unnecessary re-derivation | A negative current only means the real direction is opposite to your assumption |
| Mixing units (kΩ with A, mΩ with V) | Results off by a factor of 1000 | Convert to base units before calculating |
| Applying v = R · i to a source | Meaningless result | Ohm's law applies to resistors only. Source voltages are given or constrained |
Where this fits
The mesh equation for any mesh is KVL written with every resistor drop expressed through Ohm's law. In the next chapters you will combine the drop terms with the source terms. You will also see why the diagonal entries of the resistance matrix are sums of resistances and the off-diagonal entries are negative shared resistances. Both facts come from the R · (i1 − i2) expression above.
Exercise
In a two-mesh circuit with both mesh currents clockwise, i1 = 3 A and i2 = 1 A. A 5 Ω resistor is shared by the two meshes. What is the voltage drop across it in mesh 1's direction, and what is the drop in mesh 2's direction?
Show answer
The net current in mesh 1's direction is i1 − i2 = 2 A, so the drop is 5 × 2 = 10 V. In mesh 2's direction the net current is i2 − i1 = −2 A, so the drop is 5 × (−2) = −10 V. Both values describe the same physical voltage of 10 V, written relative to opposite directions of travel.
Exercise
A single clockwise loop has a 24 V source and three series resistors of 2 Ω, 3 Ω and 7 Ω. Find the loop current and the voltage drop across each resistor, then confirm the drops add up to the source voltage.
Show answer
The total resistance is 2 + 3 + 7 = 12 Ω, so i = 24 / 12 = 2 A. The drops are 2 × 2 = 4 V, 3 × 2 = 6 V and 7 × 2 = 14 V. Their sum is 4 + 6 + 14 = 24 V, which equals the source voltage, so KVL is satisfied.
Exercise
You solve a mesh problem and find i2 = −0.5 A for a mesh drawn clockwise, with a 6 Ω resistor that belongs only to mesh 2. What does the result mean, and what is the drop across that resistor in the clockwise direction?
Show answer
The negative sign means the actual current in mesh 2 flows counterclockwise at 0.5 A. The assumed direction was simply opposite to reality. The drop in the clockwise direction is 6 × (−0.5) = −3 V. The resistor still drops 3 V in magnitude, and the real polarity is the reverse of the one you marked.