Sub topic 12
Electrostatic potential energy of charge systems
This chapter assumes you know Coulomb's law, superposition, and the work-energy theorem. It also assumes you can add scalars over pairs.
What the energy measures
The potential energy of a system of charges is the work an external agent does to assemble it. The agent brings each charge slowly from infinity to its final position. The energy at infinite separation is defined as zero.
For two point charges a distance r apart:
U = k q₁q₂ / r
U is a scalar and carries a sign. Like charges give U > 0, because you must push them together. Opposite charges give U < 0, because the system is bound and you must supply energy to separate them.
Systems of many charges
Bring in charges one at a time. Charge 1 costs nothing. Charge 2 costs work against charge 1. Charge 3 costs work against both charges 1 and 2, and so on. The total is a sum over every pair, counted once:
U = k Σ (over pairs i < j) qᵢqⱼ / rᵢⱼ
Worked example: four equal charges on a square
Place charge q at each corner of a square of side a. There are 6 pairs: 4 sides at distance a and 2 diagonals at distance a√2.
U = (kq²/a)(4 + 2/√2) = (kq²/a)(4 + √2)
For q = 1 nC and a = 0.1 m, kq²/a = 8.99 × 10⁻⁸ J. So U ≈ 4.87 × 10⁻⁷ J.
You can check this by computing every pair in code:
from itertools import combinations
import math
K = 8.9875e9 # N m^2 / C^2
def system_energy(charges):
"""charges: list of (q, x, y). Returns total electrostatic energy in joules."""
u = 0.0
for (q1, x1, y1), (q2, x2, y2) in combinations(charges, 2):
u += K * q1 * q2 / math.hypot(x2 - x1, y2 - y1)
return u
a = 0.1
q = 1e-9
square = [(q, 0, 0), (q, a, 0), (q, a, a), (q, 0, a)]
print(system_energy(square)) # about 4.866e-07
print(K * q**2 / a * (4 + math.sqrt(2))) # same valuecombinations visits each pair exactly once, which prevents the most common error.
Self-energy of a charged sphere
A single charged body also has energy, because its own charge had to be assembled against repulsion. Building up Q on a sphere of radius R gives:
| Body | Energy |
|---|---|
| Conducting sphere or thin shell | kQ² / (2R) |
| Uniformly charged solid insulating sphere | 3kQ² / (5R) |
The solid sphere stores more energy because its charge sits closer together on average. Both values come from adding up the work for each thin layer of charge.
Common errors
- Double counting. Summing over all ordered pairs gives 2U. Count each pair once.
- Dropping signs. Keep the sign of each q in every term. Do not use magnitudes.
- Treating U as a vector. Energies add as plain numbers, so no components are needed.
- Confusing U with the energy of one charge. The energy of a charge in an external field is qV. The energy of the system is the pair sum.
- Forgetting that work done by you is positive U. Work done by the field during assembly is −U.
Exercise
Four charges of +1 nC sit at the corners of a square of side 0.1 m. How much work must an external agent do to remove one corner charge to infinity, leaving the other three fixed?
Show answer
Only the pairs that include that charge matter: two sides at 0.1 m and one diagonal at 0.1√2 m. W = (kq²/a)(2 + 1/√2) = 8.99 × 10⁻⁸ × 2.707 ≈ 2.43 × 10⁻⁷ J.