logo

Work and Energy in Electrostatics 📂Electrodynamics

Work and Energy in Electrostatics

Moving a Charge1

The following equation holds between potential and electric field.

abEdl=ab(V)dl=V(b)V(a) -\int_\mathbf{a} ^\mathbf{b} \mathbf{E} \cdot d\mathbf{l} = \int_\mathbf{a} ^ \mathbf{b} \left( \nabla V \right) \cdot d\mathbf{l} = V(\mathbf{b}) - V(\mathbf{a})

Thus, if there is a fixed source charge distribution, and we move a test charge QQ from point a\mathbf{a} to point b\mathbf{b}, the work done is calculated as follows.

W=abFdl=QabEdl=Q[V(b)V(a)] W=\int_{\mathbf{a}}^\mathbf{b} \mathbf{F} \cdot d\mathbf{l} = -Q\int_\mathbf{a}^\mathbf{b} \mathbf{E} \cdot d\mathbf{l} =Q[V(\mathbf{b})-V(\mathbf{a})]

Dividing the above equation by QQ yields this. It means that the potential difference between a\mathbf{a} and b\mathbf{b} is equal to the work done to move the charge QQ from a\mathbf{a} to b\mathbf{b}.

V(b)V(a)=WQ V(\mathbf{b})-V(\mathbf{a})=\dfrac{W}{Q}

The work done to move charge QQ from a very distant place to location r\mathbf{r} is

W=Q[V(r)V()]=QV(r) W=Q[V(\mathbf{r}) - V( \infty ) ]=QV(\mathbf{r})

Energy of a Point Charge Distribution

Let’s assume a charge q1q_{1} 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 q2q_2 from a distant place to r2\mathbf{r}_2. Now that q1q_{1} exists, there’s an electric field, and work is done to move q2q_2. Let’s call the value of the potential created by q1q_{1} at r2\mathbf{r}_2 as V1(r2)V_{1}(\mathbf{r}_2), and the distance between q1q_{1} and q2q_2 after q2q_2 has been moved as 12\cR_{12}. Then, according to the formula derived above,

W2=q2V1(r2)=q214πϵ0q112 W_2=q_2V_{1}(\mathbf{r}_2)=q_2\dfrac{1}{4\pi\epsilon_{0}}\dfrac{q_{1}}{\cR_{12}}

Similarly, let’s say we move charge q3q_{3} from a distant place to r3\mathbf{r}_{3}. Since it is influenced by the electric field created by q1,q2q_{1}, q_2,

W3=q3[V1(r3)+V2(r3)]=q314πϵ0(q113+q223) W_{3}=q_{3}\left[ V_{1}(\mathbf{r}_{3})+V_{2}(\mathbf{r}_{3}) \right] =q_{3}\dfrac{1}{4\pi\epsilon_{0}} \left( \dfrac{q_{1}}{\cR_{13}}+\dfrac{q_2}{\cR_{23} }\right)

Likewise, if we bring in charge q4q_{4},

W4=q4[V1(r4)+V2(r4)+V3(4)]=q414πϵ0(q114+q224+q334) W_{4}=q_{4}\left[ V_{1}(\mathbf{r}_{4}) +V_2(\mathbf{r}_{4}) +V_{3}(\mathbf{4}) \right]=q_{4}\dfrac{1}{4\pi\epsilon_{0}} \left( \dfrac{q_{1}}{\cR_{14}}+\dfrac{q_2}{\cR_{24}} +\dfrac{q_{3}}{\cR_{34}}\right)

Thus, the total work done in bringing the first 4 charges together is

W=14πϵ0(q1q212+q1q313+q1q414+q2q323+q2q424+q3q434) W=\dfrac{1}{4\pi\epsilon_{0}}\left(\dfrac{q_{1}q_2}{\cR_{12}} +\dfrac{q_{1}q_{3}}{\cR_{13}}+\dfrac{q_{1}q_{4}}{\cR_{14}}+\dfrac{q_2q_{3}}{\cR_{23}}+\dfrac{q_2q_{4}}{\cR_{24}}+\dfrac{q_{3}q_{4}}{\cR_{34}} \right)

Generalizing it for nn charges,

W=1214πϵ0injinqiqjij W=\dfrac{1}{2}\dfrac{1}{4\pi\epsilon_{0}}\sum \limits_{i}^n \sum \limits_{j \ne i } ^n \dfrac{q_{i}q_{j}}{\cR_{ij}}

Since the case with i=2i=2, j=3j=3 and the case with i=3i=3, j=2j=2 are the same, we divide the total cases by 22. Summarizing,

W=12inqi(jin14πϵ0qjij) W=\dfrac{1}{2}\sum \limits_{i}^n q_{i} \left( \sum \limits_{j \ne i} ^n \dfrac{1}{4 \pi \epsilon_{0}}\dfrac{q_{j}}{\cR_{ij}} \right)

At this point, the terms inside the parentheses are the potentials created by <qjq_{j}s at the location where qiq_{i} is present and ri\mathbf{r}_{i} is present with charge jij\ne i,

W=12inqiV(ri) W=\dfrac{1}{2}\sum \limits_{i}^n q_{i}V(\mathbf{r}_{i})

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= 12λVdlW= 12σVdaW= 12ρVdτ \begin{align*} W =&\ \dfrac{1}{2} \int \lambda V dl W =&\ \dfrac{1}{2} \int \sigma V da W =&\ \dfrac{1}{2} \int \rho V d\tau \end{align*}

In the formula for volume charge, if we use Gauss’s law E=ρϵ0\nabla \cdot \mathbf{E} = \dfrac{\rho}{\epsilon_{0}} to replace ρ\rho with E\mathbf{E},

W=ϵ02(E)Vdτ W=\dfrac{\epsilon_{0}}{2} \int (\nabla \cdot \mathbf{E}) V d\tau

This formula can be further transformed using integration by parts as follows.

W=ϵ02[E(V)dτ+VEda] W=\dfrac{\epsilon_{0}}{2} \left[ -\int \mathbf{E} \cdot (\nabla V)d\tau + \oint V\mathbf{E} \cdot d\mathbf{a} \right]

Since V=E\nabla V=-\mathbf{E},

W=ϵ02[VE2dτ+SVEda] W= \dfrac{\epsilon_{0}}{2} \left[ \int _\mathcal{V} E^2 d\tau + \oint_\mathcal{S}V\mathbf{E}\cdot d\mathbf{a} \right]

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\rho=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 WW, 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=ϵ02total spaceE2dτ W=\dfrac{\epsilon_{0}}{2} \int_{\mathrm{total\ space}} E^2 d\tau


  1. David J. Griffiths, Introduction to Electrodynamics (4th Edition, 2014), p100-106 ↩︎