Electrostatic Energy and Field Energy Density
Statement
For a static charge distribution of density \(\rho(\vec{r})\) held in vacuum, the total work done to assemble it from infinitely dispersed charge equals \(U=\tfrac{1}{2}\int \rho\,\varphi\,d^3r\), and this same energy can be rewritten purely in terms of the electric field as \(U=\dfrac{\varepsilon_0}{2}\int |\vec{E}|^2\,d^3r\), so that the electrostatic energy is expressible as the volume integral of a strictly non-negative local field-energy density \(u=\tfrac{1}{2}\varepsilon_0 E^2\).
Why it matters
This is the point at which energy stops being a bookkeeping label attached to charges and becomes a property of the field itself, distributed continuously through space. The reinterpretation is not cosmetic: once radiation is admitted, energy detaches from any charge and travels, and the density \(\tfrac{1}{2}\varepsilon_0 E^2\) is exactly the electric term that survives into the Poynting picture and into the electromagnetic stress-energy tensor.
Practically, the field form is what you integrate to find the energy stored in a capacitor, the self-energy in the nuclear liquid-drop model, or the electrostatic contribution to the mass of a charged particle, and its divergence for a point charge is the first honest warning that classical electrodynamics is incomplete at short distances.
Assumptions
Derivation
Result
Reading. The total electrostatic energy equals the volume integral of a strictly non-negative density \(\tfrac12\varepsilon_0 E^2\). Because every point where the field is nonzero carries energy — even far from any charge — energy is best regarded as stored in the field, not on the charges. Where the field is strong (near sharp conductor edges, between close capacitor plates) energy piles up quadratically. Note that \(\tfrac12\rho\varphi\) can be locally negative, yet its integral equals that of the manifestly non-negative \(\tfrac12\varepsilon_0 E^2\).
Units check. \([\varepsilon_0]=\mathrm{C^2\,N^{-1}\,m^{-2}}\) and \([E]=\mathrm{N\,C^{-1}}\), so \([\varepsilon_0 E^2]=\mathrm{C^2\,N^{-1}\,m^{-2}}\cdot\mathrm{N^2\,C^{-2}}=\mathrm{N\,m^{-2}}=\mathrm{J\,m^{-3}}\), an energy density. Multiplying by \(d^3r\) (\(\mathrm{m^3}\)) returns joules. Likewise \([\rho\varphi]=\mathrm{C\,m^{-3}}\cdot\mathrm{V}=\mathrm{J\,m^{-3}}\). Consistent.
Limiting cases
- Zero-field region. Wherever \(\vec{E}=0\) (interior of a conductor, inside a shielded cavity) the density vanishes: no field, no stored energy, regardless of nearby charge.
- Uniform field (ideal capacitor). \(u\) is constant, so \(U=\tfrac12\varepsilon_0 E^2\cdot(\text{volume})=\tfrac12 CV^2\) — the field form reproduces the circuit formula exactly.
- Doubling every charge. \(\vec{E}\to 2\vec{E}\) everywhere (linearity), so \(U\to 4U\): energy is quadratic in the sources, unlike the force between two fixed charges.
- Point charge, \(r\to 0\). \(E\sim 1/r^2\) gives \(\int E^2 r^2\,dr\sim\int dr/r^2\), which diverges at the origin — the classical self-energy is infinite.
Breaks when
- Point (idealised) charges. The field integral diverges at each point charge, so \(U_{\text{field}}=\infty\) while the pair sum \(\tfrac12\sum_{i\neq j}q_i\varphi_i\) is finite. The two forms agree only for smeared-out distributions; the difference is the (infinite) self-energy that the Gauss's-law substitution silently reintroduces.
- Charge extending to infinity (infinite line, plane, or uniform space). \(\varphi\) does not fall to zero and the surface term in Step 8 no longer vanishes, so \(\tfrac12\int\rho\varphi\) and \(\tfrac{\varepsilon_0}{2}\int E^2\) are no longer equal (often both diverge). Only energy differences per unit length or area are physical.
- Non-electrostatic fields. Once \(\partial\vec{B}/\partial t\neq 0\), \(\vec{E}\) is no longer \(-\nabla\varphi\) alone, Step 6 fails, and part of the "stored" energy flows as radiation; the static derivation undercounts the true field-energy balance.
- Nonlinear or hysteretic media. When \(\vec{D}\) is not proportional to \(\vec{E}\), the work of assembly is path-dependent \(\big(\int\vec{E}\cdot d\vec{D}\big)\), and \(\tfrac12\varepsilon_0 E^2\) is simply the wrong density.
Failure modes
- Restricting the integral to where charge lives. The field integral runs over all space; most capacitor energy sits in the empty gap, not in the plates. Cutting the integral at the charge boundary throws away the answer.
- Keeping the surface term. Applying the divergence theorem but forgetting that \(\oint\varphi\vec{E}\cdot d\vec{A}\) vanishes only for a bounded distribution taken to infinity, then reusing the result for an infinite plane where it does not.
- Believing the two forms are equal for point charges. Writing \(U=\tfrac{\varepsilon_0}{2}\int E^2\) for two point charges and being surprised it is infinite — the equality holds only after self-energy is excluded.
- Sign or factor slips in Step 6. Forgetting \(\vec{E}=-\nabla\varphi\) drops the minus sign, turning \(+E^2\) into \(-E^2\) and giving a negative energy density.
- Superposing energies naively. Treating \(U\) of a combined system as \(U_1+U_2\); because \(E^2=(\vec{E}_1+\vec{E}_2)^2\) the cross term \(\varepsilon_0\int\vec{E}_1\cdot\vec{E}_2\) (the interaction energy) is missed.
- Dropping the factor \(\tfrac12\). Writing \(U=\int\rho\varphi\) double-counts every interacting pair; the \(\tfrac12\) comes from assembling each element against the partially-built potential.
Discussion
The physical content of this derivation is entirely in the switch of domain: the source form \(\tfrac12\int\rho\varphi\) integrates only where charge sits, while the field form integrates over empty space too. Both give the same number (for bounded, continuous distributions), yet they tell opposite stories about where the energy is. Electrostatics alone cannot decide between them — both are consistent with every measurable force. It is dynamics, specifically the ability of energy to leave the charges entirely and propagate as radiation, that makes the field localisation physically real rather than a convenient fiction.
The cross term is worth dwelling on. If \(\vec{E}=\vec{E}_1+\vec{E}_2\), then \(E^2=E_1^2+E_2^2+2\,\vec{E}_1\cdot\vec{E}_2\). The first two pieces are the self-energies of each distribution; the last is the interaction energy \(\varepsilon_0\int\vec{E}_1\cdot\vec{E}_2\,d^3r\), which is exactly the finite \(\tfrac12\sum_{i\neq j}\) pair energy from Step 1. This cleanly separates the (often infinite, always constant) self-energies — which never change as you move rigid bodies — from the interaction energy that actually produces forces.
The divergence at a point charge is not a defect of the algebra; it is a genuine statement that a classical point charge has infinite field energy, and (via \(E=mc^2\)) infinite mass. The classical electron radius \(r_e=e^2/(4\pi\varepsilon_0 m_e c^2)\approx 2.8\ \mathrm{fm}\) is defined precisely as the radius at which the field energy would equal the electron rest mass — a marker of where classical field theory must yield to quantum electrodynamics and its renormalisation program.
At the deepest level, \(\tfrac12\varepsilon_0 E^2\) is the electric part of the \(T^{00}\) component of the electromagnetic stress-energy tensor \(T^{\mu\nu}=\varepsilon_0\!\left(F^{\mu\alpha}F^{\nu}{}_{\alpha}-\tfrac14\eta^{\mu\nu}F^{\alpha\beta}F_{\alpha\beta}\right)\). Its manifest positivity (energy density is never negative) underlies the energy conditions of general relativity; its covariant partner, the Maxwell stress tensor, carries the momentum flux and yields the outward pressure \(\tfrac12\varepsilon_0 E^2\) on a conductor surface. The same \(\tfrac12\varepsilon_0 E^2\) that we derived by pushing charges together from infinity gravitates, exerts pressure, and sources spacetime curvature — the field is a physical medium carrying energy, momentum, and stress.
Common misconceptions. (i) "Energy is on the charges" — the field form shows it is distributed through space, most of it often in charge-free regions. (ii) "The two integrals are always equal" — they differ by self-energy for point charges and by boundary terms for unbounded distributions. (iii) "Negative energy density is possible" — \(\tfrac12\varepsilon_0 E^2\ge 0\) always, even though the interaction energy between opposite charges can be negative (that negativity lives in the cross term, not in a negative density).
Worked examples
Reading. About \(54\ \mathrm{mJ}\) is stored in the field of this charged ball; one-sixth of it (\(9\ \mathrm{mJ}\)) sits inside the sphere, five-sixths outside. Units: \((\mathrm{N\,m^2\,C^{-2}})(\mathrm{C^2})/\mathrm{m}=\mathrm{N\,m}=\mathrm{J}\). Consistent.
Reading. The field form and the circuit formula \(\tfrac12 CV^2\) give identical answers — as they must, since \(\tfrac12 CV^2\) is just \(\tfrac12\varepsilon_0 E^2\) integrated over the gap. Units: \((\mathrm{F\,m^{-1}})(\mathrm{V\,m^{-1}})^2\,\mathrm{m^3}=\mathrm{F\,V^2}=\mathrm{J}\). Consistent.
Problems
- (A) A parallel-plate capacitor holds a uniform field \(E=3.0\times10^{5}\ \mathrm{V\,m^{-1}}\) in a vacuum gap of volume \(2.0\times10^{-4}\ \mathrm{m^3}\). Find the stored energy.
Solution
\(u=\tfrac12\varepsilon_0 E^2=\tfrac12(8.854\times10^{-12})(3.0\times10^{5})^2=\tfrac12(8.854\times10^{-12})(9.0\times10^{10})=0.398\ \mathrm{J\,m^{-3}}\). Then \(U=u\times V=0.398\times2.0\times10^{-4}=8.0\times10^{-5}\ \mathrm{J}\) (about \(80\ \mu\mathrm{J}\)). - (A) At what distance from a point charge \(q=2.0\ \mathrm{nC}\) does the electrostatic energy density fall to \(u=1.0\times10^{-9}\ \mathrm{J\,m^{-3}}\)?
Solution
From \(u=\tfrac12\varepsilon_0 E^2\), \(E=\sqrt{2u/\varepsilon_0}=\sqrt{2\times10^{-9}/8.854\times10^{-12}}=\sqrt{226}=15.0\ \mathrm{V\,m^{-1}}\). Then \(E=kq/r^2\Rightarrow r=\sqrt{kq/E}=\sqrt{(8.99\times10^{9})(2.0\times10^{-9})/15.0}=\sqrt{1.20}=1.1\ \mathrm{m}\). - (B) Show that assembling two point charges \(+q\) and \(+q\) separated by distance \(a\) gives interaction energy \(kq^2/a\), and explain why the field form \(\tfrac{\varepsilon_0}{2}\int E^2\) gives a different (infinite) answer.
Solution
Bring the first charge in for free (no field yet); bring the second to distance \(a\) against potential \(\varphi=kq/a\), costing \(U=q\varphi=kq^2/a\) — the finite interaction energy. The field form uses \(\vec{E}=\vec{E}_1+\vec{E}_2\), so \(E^2=E_1^2+E_2^2+2\vec{E}_1\cdot\vec{E}_2\). The cross term \(\varepsilon_0\int\vec{E}_1\cdot\vec{E}_2\,d^3r=kq^2/a\) reproduces the interaction energy, but the self-energy terms \(\int E_i^2\) each diverge at their own point charge. The field form thus equals the interaction energy plus two infinite self-energies; only the finite cross term is physically comparable to the assembly work. Answer: \(U_{\text{int}}=kq^2/a\). - (B) A thin spherical shell of radius \(R\) carries total charge \(Q\) on its surface. Using the field energy, find its self-energy and compare with the solid sphere of Example 1.
Solution
For a shell, \(E=0\) inside (\(r<R\)) and \(E=kQ/r^2\) outside. Only the exterior contributes: \(U=\tfrac{\varepsilon_0}{2}\int_R^\infty(kQ/r^2)^2\,4\pi r^2\,dr=\tfrac{\varepsilon_0}{2}(kQ)^2 4\pi\int_R^\infty dr/r^2=\tfrac{\varepsilon_0}{2}(kQ)^2\,4\pi/R\). With \(k=1/4\pi\varepsilon_0\): \(U=Q^2/(8\pi\varepsilon_0 R)=\tfrac12 kQ^2/R\). The solid sphere gave \(\tfrac35 kQ^2/R\), larger by \((3/5)/(1/2)=6/5\), because it also stores energy in the interior field the shell lacks. - (C) A sphere of radius \(R\) carries charge with density \(\rho(r)=\rho_0\,r/R\). Find the total charge in terms of \(\rho_0\), the interior field, and the interior contribution to the field energy.
Solution
Total charge: \(Q=\int_0^R(\rho_0 r/R)4\pi r^2\,dr=(4\pi\rho_0/R)\int_0^R r^3\,dr=(4\pi\rho_0/R)(R^4/4)=\pi\rho_0 R^3\). Enclosed charge at radius \(r\): \(q(r)=\int_0^r(\rho_0 r'/R)4\pi r'^2\,dr'=\pi\rho_0 r^4/R\). Gauss: \(E(r)=q(r)/(4\pi\varepsilon_0 r^2)=\rho_0 r^2/(4\varepsilon_0 R)\). Interior energy: \(U_{\text{in}}=\tfrac{\varepsilon_0}{2}\int_0^R E^2\,4\pi r^2\,dr=\tfrac{\varepsilon_0}{2}\Big(\frac{\rho_0}{4\varepsilon_0 R}\Big)^2 4\pi\int_0^R r^4\cdot r^2\,dr=\tfrac{\varepsilon_0}{2}\frac{\rho_0^2}{16\varepsilon_0^2 R^2}4\pi\frac{R^7}{7}=\frac{\pi\rho_0^2 R^5}{56\varepsilon_0}\). In terms of \(Q\) (\(\rho_0=Q/\pi R^3\)): \(U_{\text{in}}=\dfrac{Q^2}{56\pi\varepsilon_0 R}\).