# Validity of $E$ field energy density equation

As far as I'm aware, the most popular/rigorous way of deriving $$E$$ field energy density is starting with the potential energy of a continuous charge distribution (which itself has some flaws that I will also discuss)

From this expression, $$1/2 \int \phi \rho dv \tag{1}$$

it can be shown that in terms of the fields this becomes

$$\epsilon /2( \int E^2 dv + \int \phi E.da)\tag{2}$$

now... this surface integral, as $$v$$ goes the infinity you are left with

$$\epsilon /2\int E^2 dv$$

People then say that $$\epsilon /2 E^2$$ can be interpreted as the energy density of the electric field

This energy density is used in the Poynting vector and Poynting's theorem which is fundamental to electromagnetism.

Issues I have with this:

Why is this energy density used to calculate things where the volume interested in is not infinite? We know from (2) that this is only true if the volume is infinity, so how can this be used in e.g. Poynting's theorem for non infinite volumes

This leads me on to my second issue. Deriving this formula, as far as I'm aware, requires you to start from the electrostatic potential energy of charges. So how can this be used to determine the energy of electrodynamical phenomena such as the energy of an electromagnetic wave? This second point is actually in line with my first issue as this surface integral contains the potential function, which only makes sense in the electrostatic case.

As stated in first line l, I also have issues with the potential energy of a continuous charge distribution:

This is because, in going from a discrete set of charges to a continuous set, you actually include the potential from the charge that you are "placing" in space in the presence of other charge distributions. As also said in Griffiths introduction to electrodynamics. Now this doesn't matter when working with an average continuous charge distribution as the contribution from a single charge density is zero, however by adding the contribution from this charge that you "place" in position you get problems like the infinite potential energy of a single point charge as you in theory should exclude the contribution of the charge you place but because a point charge exists in 1 single point, the otherwise "infinitesimal contribution" is actually in fact the only contribution so you get a false result of infinite energy of a point charge when in reality it should be zero? So why do we use this broken formula in the first place? (I'm no expert but if Griffiths even has stated the jump from discrete to continuous isn't sound, then I don't know why we use it.)

Edit: Griffiths also states that integrating (1) over any volume will give the same result since $$p=0$$ for the empty space he also applies this logic to (2). So does this mean integrating (2) over a region of space where there is no charge density will give 0 for the answer? Then how can we say energy is stored in the field if this specific case it is zero? Which circles back to the point where, why is this valid for non infinite volumes.

• You can start with Lagrangian for the electromagnetic field, its validity follows from the fact that one can get Maxwell's equations from it. Then simply seek quantity that is conserved as a result of invariance with respect to temporal translations. That's a good general definition of energy. The correct expression will then pop out. I discussed something like that in physics.stackexchange.com/questions/463242/… Is this what you are after? Anyway,start from the beginning. Define energy (don't refer to work) – Cryo Mar 30 at 14:32
• physics.stackexchange.com/questions/484707/… – Cryo Mar 30 at 14:35
• physics.stackexchange.com/questions/3014/… – Cryo Mar 30 at 14:42

## 1 Answer

In general any locally conserved quantity obeys a continuity equation, which is an equation of the form $$\frac{d\rho}{dt}+\nabla \cdot j = \sigma$$ where $$\rho$$ is the density of the conserved quantity (units are conserved quantity per volume), $$j$$ is the flux of the conserved quantity (units are conserved quantity per area per time), and $$\sigma$$ is the generator or the source of the conserved quantity (units are conserved quantity per volume per time). Outside of Noether's theorem this can be taken as the definition of a locally conserved quantity. Any locally conserved quantity obeys this continuity equation and any quantity which obeys this continuity equation is locally conserved.

Directly from Maxwell's equations we can derive Poynting's theorem as follows: The dot product of Faraday's law with $$\vec B$$ is $$\vec B \cdot (\nabla \times \vec E) = -\vec B \cdot \frac{\partial}{\partial t} \vec B$$ The dot product of Ampere's law with $$\vec E$$ is $$\vec E \cdot (\nabla \times \vec B)=\mu_0 \vec E \cdot \vec J + \mu_0 \epsilon_0 \vec E \cdot \frac{\partial}{\partial t}\vec E$$ Subtracting the first from the second gives $$\vec E \cdot (\nabla \times \vec B) - \vec B \cdot (\nabla \times \vec E) = \mu_0 \vec E \cdot \vec J + \mu_0 \epsilon_0 \vec E \cdot \frac{\partial}{\partial t}\vec E + \vec B \cdot \frac{\partial}{\partial t} \vec B$$ Using vector identities gives $$\nabla \cdot (\vec B \times \vec E) = \mu_0 \vec E \cdot \vec J + \frac{\partial}{\partial t} \left(\frac{1}{2}\mu_0 \epsilon_0 E^2+\frac{1}{2}B^2\right)$$ Finally, rearranging and dividing through by $$\mu_0$$ gives Poynting's theorem $$\frac{\partial}{\partial t} \left(\frac{\epsilon_0}{2} E^2+\frac{1}{2 \mu_0}B^2\right) + \nabla \cdot \left(\frac{1}{\mu_0}\vec E \times \vec B\right) = - \vec E \cdot \vec J$$

Comparing this to the continuity equation we find that it has the same form where the conserved quantity is energy. Thus, directly from Maxwell's equations and the continuity equation, without any integrations over some volume and without any restrictions to electrostatics, we learn that the energy density of the electromagnetic field is given by $$\frac{\epsilon_0}{2} E^2+\frac{1}{2 \mu_0}B^2$$.

Then when we say that the electric field energy density is $$\frac{\epsilon_0}{2}E^2$$ we are simply talking about the part of the overall electromagnetic field energy density that is attributable to the $$\vec E$$ field. In this manner none of the concerns that you raise arise at all.

The issue with this derivation is that it is based on the full Maxwell's equations, and sometimes for pedagogical reasons it is desirable to introduce the electric field energy density before students have learned Maxwell's equations. To do that you can use the approach that you describe. That approach should be taken more as a motivational exercise than as a rigorous derivation, with the full derivation waiting until later in the curriculum.