Sub topic 3
Vector form and the principle of superposition
This chapter assumes you can resolve vectors into components, know the dot and cross product basics, and can use Newton's laws and SI units. It also assumes you know the scalar form of Coulomb's law from the previous chapter.
Coulomb's law as a vector
The scalar law gives only the size of the force. The vector form adds its direction.
Let charge q₁ sit at position vector r₁ and charge q₂ at r₂. Define r₂₁ = r₂ − r₁, the vector from q₁ to q₂. The force on q₂ due to q₁ is:
F₂₁ = k q₁ q₂ r₂₁ / |r₂₁|³
Here k = 1/(4πε₀) ≈ 9 × 10⁹ N m²/C². Dividing r₂₁ by |r₂₁| gives a unit vector, so the magnitude is still k q₁ q₂ / r².
The signs do the work:
- If q₁q₂ > 0, F₂₁ points along r₂₁, away from q₁. The force is repulsive.
- If q₁q₂ < 0, F₂₁ points opposite to r₂₁, toward q₁. The force is attractive.
Newton's third law holds: F₁₂ = −F₂₁. The two forces are equal in size, opposite in direction, and lie along the line joining the charges.
In a medium of relative permittivity (dielectric constant) εᵣ, the force is reduced by that factor: Fmedium = Fvacuum / εᵣ. Water has εᵣ ≈ 80, so the force between two charges in water is about 80 times weaker than in air.
The principle of superposition
The force between two charges is not changed by the presence of other charges. So when several charges act on one charge, you add the individual forces as vectors.
For charge q₀ in the presence of q₁, q₂, …, qₙ:
F_net = F₁ + F₂ + … + Fₙ
Each Fᵢ is found as if the other charges were absent. The sum must be a vector sum. Adding magnitudes is the most common error in this topic.
Worked example: a charge on a line
Charges +2 µC at x = 0 and −2 µC at x = 0.4 m lie on the x-axis. Find the net force on a +1 µC charge at x = 0.2 m, the midpoint.
The +2 µC charge repels the test charge, so that force points along +x. The −2 µC charge attracts it, which also points along +x. Both forces have the same size because the distances and charge magnitudes are equal, and they add:
F = 2 × k (2×10⁻⁶)(1×10⁻⁶) / (0.2)² = 2 × 9×10⁹ × 2×10⁻¹² / 0.04 = 0.9 N
The net force is 0.9 N along +x.
Check the physics: if the second charge were +2 µC instead, the forces would point in opposite directions and cancel to zero at the midpoint.
Doing the sum in code
The vector form translates directly into code. This script finds the net force on a charge from several others, in two dimensions.
import math
k = 9e9 # N m^2 / C^2
def force_on(q0, pos0, q, pos):
"""Force vector (Fx, Fy) on charge q0 at pos0 due to charge q at pos."""
rx = pos0[0] - pos[0]
ry = pos0[1] - pos[1]
r = math.hypot(rx, ry)
f = k * q0 * q / r**3
return (f * rx, f * ry)
def net_force(q0, pos0, others):
fx = fy = 0.0
for q, pos in others:
dfx, dfy = force_on(q0, pos0, q, pos)
fx += dfx
fy += dfy
return fx, fy
# Three charges at the corners of a square of side 0.1 m; test charge at the fourth corner
others = [(2e-6, (0.0, 0.0)), (2e-6, (0.1, 0.0)), (2e-6, (0.0, 0.1))]
fx, fy = net_force(2e-6, (0.1, 0.1), others)
print(fx, fy)
print(math.hypot(fx, fy))The vector from the source charge to the test charge is (rx, ry), so a positive product q0·q pushes the test charge away from the source. By symmetry, fx equals fy, and the net force points along the diagonal away from the opposite corner.
Common errors
| Error | Fix |
|---|---|
| Adding force magnitudes | Add vectors, using components |
| Using the wrong direction for a negative charge | Attraction points toward the source charge, repulsion away from it |
| Using r as the distance between the wrong pair | Use the distance from the source charge to the charge you are analysing |
| Forgetting to convert µC to C | 1 µC = 10⁻⁶ C |
| Applying the medium factor to only some terms | Divide every force by εᵣ if the whole setup is in the medium |
Exercise
Three charges sit at the corners of an equilateral triangle of side a. Each charge is +q. What is the magnitude of the net force on one of them?
Show answer
Each of the other two charges exerts a repulsive force of magnitude F = kq²/a². The two forces make an angle of 60° with each other. Their components perpendicular to the bisector cancel, and each contributes F cos 30° along the bisector. The net force is 2F cos 30° = √3 kq²/a², directed away from the other two charges along the bisector.
Exercise
Two point charges exert a force of 0.18 N on each other in air. The same charges at the same separation are placed in oil with εᵣ = 2. What is the force now, and does a third charge placed nearby change it?
Show answer
In oil the force is 0.18 / 2 = 0.09 N. A third charge does not change the force between these two. It adds its own separate forces on each of them, and those are combined with the original forces as vectors.