Thus, if there is a fixed source charge distribution, and we move a test charge Q from point a to point b, the work done is calculated as follows.
W=∫abF⋅dl=−Q∫abE⋅dl=Q[V(b)−V(a)]
Dividing the above equation by Q yields this. It means that the potential difference between a and b is equal to the work done to move the charge Q from a to b.
V(b)−V(a)=QW
The work done to move charge Q from a very distant place to location r is
W=Q[V(r)−V(∞)]=QV(r)
Energy of a Point Charge Distribution
Let’s assume a charge q1 was moved from a very distant place into empty space. Since it was an empty space, there is no electric field, and thus, no work is done.
Next, let’s say we move charge q2 from a distant place to r2. Now that q1 exists, there’s an electric field, and work is done to move q2. Let’s call the value of the potential created by q1 at r2 as V1(r2), and the distance between q1 and q2 after q2 has been moved as 12. Then, according to the formula derived above,
W2=q2V1(r2)=q24πϵ0112q1
Similarly, let’s say we move charge q3 from a distant place to r3. Since it is influenced by the electric field created by q1,q2,
Since the case with i=2, j=3 and the case with i=3, j=2 are the same, we divide the total cases by 2. Summarizing,
W=21i∑nqij=i∑n4πϵ01ijqj
At this point, the terms inside the parentheses are the potentials created by <qjs at the location where qi is present and ri is present with charge j=i,
W=21i∑nqiV(ri)
This represents the energy stored in the gathered point charges.
Energy of a Continuous Charge Distribution
If we represent the formula derived above for point charges in terms of line charge density, surface charge density, and volume charge density, respectively,
W=21∫λVdlW=21∫σVdaW=21∫ρVdτ
In the formula for volume charge, if we use Gauss’s law∇⋅E=ϵ0ρ to replace ρ with E,
In this case, the integration domain can be any region as long as it encompasses the charge. Since the charge density in a region without charge is ρ=0, as long as all charges are included, the integration domain can be made infinitely large without affecting the result. Examining the first term reveals that as the integration domain expands, the integral value continues to increase since the integrand is positive. Because the total value is fixed at W, the magnitude of the first term must increase while the value of the surface integral, the second term, continues to decrease. Therefore, integrating over the entire space,
W=2ϵ0∫totalspaceE2dτ
David J. Griffiths, Introduction to Electrodynamics (4th Edition, 2014), p100-106 ↩︎