Total electrostatic PE of a system of n charges — sum over all unique pairs. For 3 charges: U = U₁₂ + U₁₃ + U₂₃. Counts each pair once (i < j condition).
Assembly argument
Bring charges one by one from infinity:
- q1: W1=0
- q2: W2=q2V1(r12)=4πε0r12q1q2
- q3: W3=q3[V1(r13)+V2(r23)]=4πε0r13q1q3+4πε0r23q2q3
- And so on...
Total PE is the sum of all pairwise contributions:
U=4πε01i<j∑rijqiqj
The condition i<j ensures each pair is counted exactly once.
Explicit form for 3 charges
U=4πε01(r12q1q2+r13q1q3+r23q2q3)
Alternative form
U=21i=1∑nqiVi
where Vi is the potential at the location of qi due to all other charges. The factor 21 corrects for double-counting each pair.
Note
For $n$ charges there are $n(n-1)/2$ pairs. For $n = 10$ that is 45 pairs. The $\frac{1}{2}\sum q_i V_i$ form is more compact for large $n$.