Sub topic 4
Potential Energy of Two or More Point Charges
This chapter assumes you know Coulomb's law, the idea of a conservative force, and basic algebra. The derivation uses a short integral. You can skip it and still use the result.
What you will be able to do
- Write the potential energy of a pair of point charges and interpret its sign.
- Add pair energies to get the energy of a system of three or more charges.
- Avoid the common counting and sign errors.
- Compute the total with a short program.
The energy of one pair
Two point charges q1 and q2 are separated by a distance r. The electrostatic force between them is conservative. The work it does when the charges move depends only on the starting and ending separations, not on the path. Because of this, we can define a potential energy U that depends only on r.
The usual choice is to set U = 0 when the charges are infinitely far apart. With that reference, U(r) equals the work an outside agent must do to bring the charges from infinity to separation r without changing their kinetic energy.
Derivation
Fix q1 at the origin. Move q2 in from infinity along a radial line. The Coulomb force on q2 is F = k q1 q2 / r², directed outward if the product q1 q2 is positive. An outside agent must push with the opposite force. The work the agent does is:
U(r) = W_agent = ∫ from ∞ to r of ( −k q1 q2 / r'² ) dr'
= k q1 q2 / rThe result is:
U = k q1 q2 / r
Here k = 8.99 × 10⁹ N·m²/C², the charges are in coulombs, r is in metres, and U is in joules. Each charge enters with its own sign.
Reading the sign
The sign of U carries physical meaning.
| Charges | Sign of U | What it means |
|---|---|---|
| Like (both + or both −) | Positive | You must do positive work to push them together. They would gain kinetic energy if released. |
| Opposite | Negative | The field does positive work as they approach. You must do positive work to pull them apart to infinity. |
A negative U does not mean "less than nothing" in a mysterious sense. It means the pair is bound relative to the zero reference. Separating them completely requires adding energy equal to |U|.
Why the value depends on distance only
U depends on r, the distance between the charges, and not on the direction from one to the other. Swapping the labels of the two charges gives the same value. The energy belongs to the pair, not to either charge alone. Saying "the energy of q2" is shorthand for "the energy of the pair, as seen when q1 is held fixed."
Systems of three or more charges
For more than two charges, the energy of the system is the work needed to assemble it from infinity, one charge at a time. Because the force is conservative, the order of assembly does not change the total.
Assemble three charges like this:
- Bring
q1in from infinity. No other charge is present, so no work is done. - Bring
q2in. It feels onlyq1. The work isk q1 q2 / r12. - Bring
q3in. It feels bothq1andq2. The work isk q1 q3 / r13 + k q2 q3 / r23.
Adding the steps gives:
U = k q1 q2 / r12 + k q1 q3 / r13 + k q2 q3 / r23
This is the sum over every distinct pair. For N charges there are N(N−1)/2 pairs.
| Charges | Distinct pairs |
|---|---|
| 2 | 1 |
| 3 | 3 |
| 4 | 6 |
| 5 | 10 |
| 10 | 45 |
Why this works: superposition
At step 3, the force on q3 is the vector sum of the forces from q1 and q2. Work is a line integral of force, so it splits into one integral per source charge. That gives one pair term for each source charge. Energy is a scalar, so the terms add as plain numbers with signs. No vector components are needed.
A worked example
Place three charges at the corners of a right triangle. A charge of +1.0 nC sits at (0, 0). A second +1.0 nC sits at (0.10 m, 0). A charge of −1.0 nC sits at (0, 0.10 m).
The distances are:
r12 = 0.10 mr13 = 0.10 mr23 = √(0.10² + 0.10²) = 0.1414 m
The pair terms use k q² = 8.99 × 10⁹ × (1.0 × 10⁻⁹)² = 8.99 × 10⁻⁹ J·m:
- Pair 1–2 (like):
+8.99 × 10⁻⁹ / 0.10 = +8.99 × 10⁻⁸ J - Pair 1–3 (opposite):
−8.99 × 10⁻⁸ J - Pair 2–3 (opposite):
−8.99 × 10⁻⁹ / 0.1414 = −6.36 × 10⁻⁸ J
The total is +8.99 − 8.99 − 6.36 = −6.36 × 10⁻⁸ J. The system is bound. The attractive pairs outweigh the repulsive one.
Computing it in code
The function below loops over every distinct pair with itertools.combinations, which produces each pair once. This avoids double counting.
from itertools import combinations
from math import hypot
K = 8.9875517923e9 # Coulomb constant, N m^2 / C^2
def system_energy(charges):
"""charges: list of (q, x, y) with q in coulombs, x and y in metres.
Returns the total electric potential energy in joules."""
total = 0.0
for (q1, x1, y1), (q2, x2, y2) in combinations(charges, 2):
r = hypot(x2 - x1, y2 - y1)
total += K * q1 * q2 / r
return total
# +1 nC, +1 nC and -1 nC at the corners of a right triangle
print(system_energy([(1e-9, 0, 0), (1e-9, 0.1, 0), (-1e-9, 0, 0.1)]))The output is about -6.36e-08, which matches the hand calculation.
Common errors
- Double counting pairs. Summing
k q_i q_j / r_ijover alliand allj ≠ icounts each pair twice. Either sum overi < jor multiply the full double sum by1/2. - Dropping signs. Use the signed charge values in the formula. If you take magnitudes, you lose the sign of
U, and with it the answer to whether the system is bound. - Using the wrong distance.
ris the separation between the two charges. It is not the distance from the origin. Compute it from the coordinates of both charges. - Mixing up
Uwith a field quantity.Ufalls as1/r, and the force falls as1/r². Do not reuse the force formula in place of the energy formula. - Unit slips. Convert nanocoulombs and centimetres to coulombs and metres before applying
k. - Treating one charge's "own" energy as part of the sum. A point charge has no pair term with itself. The formula covers interactions between distinct charges only.
Edge cases
- Zero total energy.
U = 0does not mean no forces act. Attractive and repulsive terms can cancel in the sum while each charge still feels a net force. - Order independence. You can assemble the charges in any order and get the same total. Try it with the example above to check your arithmetic.
- Moving one charge. If you move one charge in a system, only the pair terms that include it change. Compute the change in
Ufrom those terms and ignore the rest. - Two charges of equal sign released. Their total energy is conserved. As they fly apart,
Ufalls toward zero and kinetic energy rises by the same amount.
Exercise
Four equal charges of +2.0 nC sit at the corners of a square with side 0.50 m. Find the total electric potential energy. (Use k = 8.99 × 10⁹ N·m²/C².)
Show answer
There are 6 pairs: 4 sides of length 0.50 m and 2 diagonals of length 0.50 × √2 = 0.707 m. Each pair term has k q² = 8.99 × 10⁹ × (2.0 × 10⁻⁹)² = 3.596 × 10⁻⁸ J·m. The side terms give 4 × 3.596 × 10⁻⁸ / 0.50 = 2.877 × 10⁻⁷ J. The diagonal terms give 2 × 3.596 × 10⁻⁸ / 0.707 = 1.017 × 10⁻⁷ J. The total is about 3.89 × 10⁻⁷ J. It is positive because all pairs repel.
Exercise
A proton and an electron are 5.3 × 10⁻¹¹ m apart, as in the hydrogen atom. What is their potential energy in joules? (e = 1.602 × 10⁻¹⁹ C.)
Show answer
The charges are +e and −e, so U = −k e² / r = −(8.99 × 10⁹)(1.602 × 10⁻¹⁹)² / (5.3 × 10⁻¹¹) ≈ −4.35 × 10⁻¹⁸ J. This is about −27 eV. The negative sign shows the pair is bound.
Exercise
Charges +3.0 nC and −3.0 nC are 0.20 m apart. A third charge of +1.0 nC is placed midway between them. Does the total energy of the three-charge system come out positive or negative, and what is its value?
Show answer
The outer pair has r = 0.20 m and the two outer-to-middle pairs have r = 0.10 m. With k = 8.99 × 10⁹ and charges in coulombs: outer pair = k(3.0 × 10⁻⁹)(−3.0 × 10⁻⁹)/0.20 = −4.05 × 10⁻⁷ J. The +3.0 nC and +1.0 nC pair = k(3.0 × 10⁻⁹)(1.0 × 10⁻⁹)/0.10 = +2.70 × 10⁻⁷ J. The −3.0 nC and +1.0 nC pair = −2.70 × 10⁻⁷ J. The total is −4.05 × 10⁻⁷ J, which is negative. The two terms involving the middle charge cancel.