Sub topic 13
Electrostatic potential energy of charge systems
This chapter assumes you know Coulomb's law, superposition, the electric field of point charges, and the work-energy theorem. It also assumes you can integrate simple powers of r. Electric potential is the next chapter, so here we work only with energy of charges.
What potential energy means here
The electrostatic force is conservative. The work it does between two configurations depends only on the start and end, not on the path. This lets us define a potential energy U.
The electrostatic potential energy of a system is the work an external agent must do to assemble the charges from infinite separation, moving each one slowly (with no change in kinetic energy). We set U = 0 when all charges are infinitely far apart.
For two point charges q1 and q2 a distance r apart:
U = k q1 q2 / r, where k = 1/(4 pi epsilon_0) = 8.99 x 10^9 N m^2 / C^2.
Derivation: bring q2 in from infinity to distance r from q1. The external force opposes the Coulomb force, so
W_ext = integral from infinity to r of (-k q1 q2 / x^2) dx = k q1 q2 / r.
The sign carries the physics:
- Like charges (q1 q2 > 0) give U > 0. You must do positive work to push them together.
- Unlike charges (q1 q2 < 0) give U < 0. The system is bound, and you must supply energy to separate them.
Substitute the charges with their signs. Do not use magnitudes and then guess the sign.
Systems of many charges
Energy is a scalar, so there are no components. Sum over every pair exactly once:
U = sum over all pairs i < j of k qi qj / r_ij
A system of N charges has N(N-1)/2 pairs. Three charges have 3 pairs, four have 6, and so on.
from itertools import combinations
import math
K = 8.9875e9 # N m^2 / C^2
def system_energy(charges):
"""charges: list of (q, (x, y)) tuples. Returns total electrostatic energy in joules."""
total = 0.0
for (q1, p1), (q2, p2) in combinations(charges, 2):
r = math.dist(p1, p2)
total += K * q1 * q2 / r
return total
# Equilateral triangle, side 0.1 m, charges +1 uC, +1 uC, -2 uC
a = 0.1
h = a * math.sqrt(3) / 2
charges = [
(1e-6, (0.0, 0.0)),
(1e-6, (a, 0.0)),
(-2e-6, (a / 2, h)),
]
print(system_energy(charges)) # about -0.135 JBy hand: the pair terms are k(1)(1)/a = +0.0899 J once, and k(1)(-2)/a = -0.1798 J twice. The sum is 0.0899 - 0.3595 = -0.2696 J, in units where the charges are in microcoulombs squared times 10^-12. Check the arithmetic against the code output when you run it. Always compute each pair's term separately and add them.
Work done and energy conservation
If an external agent moves charges slowly from configuration A to B, then
Wext = UB - U_A.
If charges are released and move freely, total energy is conserved:
Uinitial + KEinitial = Ufinal + KEfinal.
This is the usual JEE route for speeds. Two equal charges Q and mass m released from rest at separation d fly apart. At large distance, all U becomes kinetic energy. By symmetry each has the same speed v, so
2 (1/2) m v^2 = k Q^2 / d, giving v = Q sqrt(k / (m d)).
If the masses differ, use momentum conservation as well. The centre of mass stays at rest, so m1 v1 = m2 v2.
Self energy of a charged sphere
The pair formula ignores the energy needed to build each charge distribution itself. For a continuous body we assemble it in thin layers.
Take a thin conducting shell (or conducting sphere) of radius R and total charge Q. Suppose it already holds charge q, and we add dq from infinity. The potential at the surface is k q / R, so
dW = (k q / R) dq.
Integrating from 0 to Q:
U = k Q^2 / (2R)
For a uniformly charged solid insulating sphere, the interior field is weaker, and the same method (building in layers of growing radius) gives
U = (3/5) k Q^2 / R.
The solid sphere stores more energy than the shell of the same charge and radius. The charge sits closer to the centre, on average, which is not the reason; the reason is that the charge is spread through the volume where the field is non-zero and the layers are built against the field of a smaller enclosed charge.
Both results are also reproduced by integrating the field energy density (1/2) epsilon_0 E^2 over all space. For the shell, the field exists only outside, and integrating gives the same k Q^2 / (2R).
K = 8.9875e9
def self_energy_shell(Q, R):
return K * Q**2 / (2 * R)
def self_energy_solid(Q, R):
return 3 * K * Q**2 / (5 * R)
Q, R = 1e-6, 0.1
print(self_energy_shell(Q, R)) # 0.0449 J
print(self_energy_solid(Q, R)) # 0.0539 JEnergy change when a shell expands
A shell of radius R and charge Q is allowed to expand to radius 2R. The self energy falls from kQ^2/(2R) to kQ^2/(4R). The released energy is kQ^2/(4R). It appears as the work done by the electrostatic force, and it equals the integral of pressure times the change in volume. This links directly to the electrostatic pressure chapter later in the plan.
Common errors
- Counting pairs twice. Each pair contributes once. Writing sum over i and j with both orders gives double the answer.
- Dropping signs. A negative charge makes a pair term negative. Keep the sign in each q.
- Using the shell formula for a solid sphere. The factors 1/2 and 3/5 are different.
- Treating energy as a vector. Never resolve U into components or use symmetry cancellation to set it to zero. Cancellation applies to forces and fields, not to energies.
- Forgetting that U depends on the reference. U = 0 at infinity is a convention. Only differences are physical.
- Confusing "energy of the system" with "energy of one charge in the field of the others." The second counts only the pairs that involve that charge.
A worked example: four charges at square corners
Four equal charges q sit at the corners of a square of side a. Find the energy of the system.
There are 6 pairs. Four are side pairs at distance a. Two are diagonal pairs at distance a sqrt(2). So
U = 4 k q^2 / a + 2 k q^2 / (a sqrt(2)) = (k q^2 / a)(4 + sqrt(2)).
Numerically, the bracket is 5.414.
Now find the work needed to bring one more charge q from infinity to the centre. The centre is at distance a / sqrt(2) from each corner. The work is the pair energy with all four corners:
W = 4 k q^2 / (a / sqrt(2)) = 4 sqrt(2) k q^2 / a.
import math
K = 8.9875e9
q, a = 1e-6, 0.2
U_square = K * q**2 / a * (4 + math.sqrt(2))
W_centre = 4 * math.sqrt(2) * K * q**2 / a
print(U_square, W_centre)Energy flow when charges rearrange
Exercise
Three identical point charges of +q sit at the corners of an equilateral triangle of side a. (a) Find the total electrostatic energy. (b) The charges have equal mass m and are released together. Find the speed of each when they are very far apart.
Show answer
(a) There are 3 pairs, each at distance a, so U = 3 k q^2 / a. (b) By symmetry all three have the same speed v. Energy conservation gives 3 (1/2) m v^2 = 3 k q^2 / a, so v^2 = 2 k q^2 / (m a) and v = q sqrt(2k / (m a)).
Exercise
A conducting sphere of radius 0.20 m carries 4.0 microcoulombs. How much energy is stored in its electric field? Use k = 9.0 x 10^9 N m^2 / C^2.
Show answer
U = k Q^2 / (2R) = (9.0 x 10^9)(4.0 x 10^-6)^2 / (2 x 0.20) = (9.0 x 10^9)(1.6 x 10^-11) / 0.40 = 0.144 / 0.40 = 0.36 J.