Work necessary to assemble a charge collection from charges at infinitely separated configuration is called electrostatic energy of the collection. Any collection of charges can be built by bringing one charge at a time at the final location as following examples illustrate.
Assembling two charges \(q_1\) and \(q_2\) separated by a distance \(r_{12}\text{.}\)
We first bring charge \(q_1\) from infinity and fix it at the origin. Since there was no charge before this charge, we would need no work to accomplish this since there is no force on the charge.
\begin{equation*}
W_1 = 0
\end{equation*}
Next, we bring \(q_2\) from infinity to a point that is a distance \(r_{12}\) from \(q_1\text{.}\)
Figure31.17.
The work done by the agent for bringing this charge will equal the change in the potentialenergy of \(q_2\text{.}\) That is,
Now, we hold \(q_1\) and \(q_2\) fixed it their final positions, and bring \(q_3\) fron infinity in the common field of both \(q_1\) and \(q_2\text{.}\) The work will be equal to the change in potential energy of \(q_3\text{,}\) which will be
Assembling \(N\) charges \(q_1\text{,}\)\(q_2\text{,}\)\(\cdots\text{,}\)\(q_N\) separated by distance \(r_{12}\text{,}\)\(r_{13}\text{,}\)\(\cdots\)
Eq. (31.12) shows a general way to think about the problem. We will get energy from every pair of charges. We need to be careful to count each pair only once.
\begin{equation}
U = \sum_{\lt ij \gt \text{ pairs}}\ \dfrac{1}{4\pi\epsilon_0}\, \dfrac{q_i q_j}{r_{ij}}.\tag{31.13}
\end{equation}
Subsection31.5.1(Calculus) Electrostatic Energy of a Continuous Charge System
Equation (31.13) can be generaized for application to continuous charges. First we note that we can count each pair double and divide by 2 to get the same answer. We can treat the sum as two sums, one for \(i\) and the other for \(j\text{.}\) Factor out \(q_i\text{,}\) we find that the other sum is just potential of all other charges at the location of \(i\text{.}\)
where \(\phi_i\) is the potential of other charges at the location of charge \(i\text{.}\) Treating this for continuous charges is simply replacing \(q_i\) by \(\rho(x,y,z)dV\text{,}\)\(\phi_{\text{i}}\) by \(\phi(x,y,z)\text{,}\) and the sum by integral over entire space.
\begin{equation}
U = \dfrac{1}{2}\iiint \rho(x,y,z)\, \phi(x,y,z)\, dV.\tag{31.14}
\end{equation}
Example31.19.Electrostatic Energy of Charges at Corners of a Square.
Four charges, \(+q,\ -q,\ +q,\ -q \) alternate on corners of a square of side \(a\text{.}\) What is the electrostatic energy?
Electrostatic energy has contribution from every pair counted only once. We have pairs \((1,2)\text{,}\)\((1,3)\text{,}\)\((1,4)\text{,}\)\((2,3)\text{,}\)\((2,4)\text{,}\)\((3,4)\text{.}\) The pairs \((1,3)\) and \((2,4)\) have positive energy and the others have negative.
To form a helium atom, an alpha particle which contains two protons and two neutrons was fixed at one place, and two electrons were brought from far away one at a time. The first electron was placed at \(6.0 \times 10^{-11}\text{ m}\) from the alpha particle and held there while the second electron was brought to \(6.0 \times 10^{-11}\text{ m}\) from the alpha particle on the other side of the first electron.
(a) How much work was done in each step in \(\text{J}\text{?}\)
(b) What is the electrostatic energy of the alpha particle and two electrons in the final configuration in \(\text{J}\text{?}\)
Hint.
Work equal to the change in potential energy needs to be provided.
In each step we need to provide energy equal to the change in potential energy of the incoming electron, which is brough from infinity, where energy is zero.
Since work is negative, we will need to extract energy away from the system.
(b) The total work in assembling a charge configuration is called its electrostatic energy. Hence,
\begin{equation*}
U = W_1 + W_2 = -1.34\times 10^{-17}\:\text{J}.
\end{equation*}
Since work is negative, we will need to extract energy away from the system.
2.(Calculus) Electrostatic Energy of Uniformly Charge Sphere.
A sphere of radius \(R\) is uniformly charged with total charge \(q\text{.}\) What is the electrostatic energy?
Hint: Electric potential at a point inside the sphere = \(\dfrac{1}{4\pi\epsilon_0} \dfrac{q}{R} \left( \dfrac{3}{2} - \dfrac{1}{2}\; \dfrac{r_{\text{in}}^2}{R^2} \right)\text{.}\) See Exercise 31.7.5.4.
Hint.
Use the potential for inside points.
Answer.
\(\dfrac{\rho q R^2}{5\epsilon_0} \text{.}\)
Solution.
To calculate the electrostatic energy of a continuous charge distribution, we can use the formula of potential by these charges at points inside the sphere, which is