As far as particles go, we're familiar with the momentum and energy of charges. With fields, we have a similar situation. The fields determine what the particles do, and together with the energy/momentum of the particles themselves, the energy/momentum of the fields form a set of conservation laws
Conservation of Charge
We know that charge is conserved. You can't create or destroy charge by itself - you must compensate by destroying or creating some other charge. It's captured in the equation of continuity, which relates charge to the divergence of current. In laymen's terms, it says "if a charge was here, it must still be here or it must flow away." You can relate the amount of charge that's missing from a given region of space to the amount of charge that flows away from that element of space. This is a statement of conservation of local charge, not just global charge, which is a much stronger statement.
Say we have some charge distribution ρ(r,t) over a region S, and we have some current defined over the boundary J(r,t). The relation between ρ and J gives the equation of continuity. The change of charge within the entire volume must be compensated for by an amount of charge flowing in/out of the system:
dtdQ=dtd∫Vρdτ=−∮J⋅da
We get a negative sign because by convention the normal to the surface points outward. We can take the time integral inside, and use Gauss's theorem (divergence theorem) on the right-side
∫V∂t∂ρdτ=−∫V(∇⋅J)dτ
Since we chose an arbitrary volume, it must be the case that the integrands are equal, over all space.
∂t∂ρ=−∇⋅J(8.1)
Let's check that this is consistent with our Maxwell equations. Ampere law:
The energy conservation we'll find is a combination of the energy stored in / done on the charges and the energy stored in the field. The new concept is the Poynting vector, describing the spatial flow of energy.
The Maxwell's equations tell us how to get from distributions of charges and currents to fields E and B. The given distributions must satisfy the continuity relation, of course. Let's take a look at the amount of work that's done on the source charges, and use the result to connect to "where" the energy is, in some volume.
F=q[E+v×B]
dW=F⋅dl=q(E+v×B)⋅vdt
We want to generalize to a charge distribution dq=ρdτ
dtdW=∫VE⋅[(ρdτ)v]=∫V(E⋅J)dτ
Can we get an expression for dW in terms of the fields only? Let's try and eliminate F in terms of E and B using Maxwell's equations.
The integrands in the middle are just the energy densities of the electric and magnetic fields
2μ0B2=um2ϵ0E2=ueuem≡ue+um=u
dtdW=−dtd∫Vuemdτ−∮SS⋅da(8.2)
So what does this tell us? The left hand side reads "the change in energy in a region V". The first part of the r.h.s is the change in the local energy stored in the E and B fields, and the second part is an acknowledgment that our region is part of a larger space, and energy may be flowing in/out of the region. The flow of energy is therefore given by the Poynting vector, so we call (8.1)"Poynting's Theorem"
Let's look at an example of the application of this statement of conservation of energy.
Problem 8.2
Consider the charging capacitor from problem 7.34. (a) Find the electric and magnetic fields in the gap, as functions of the distance s from the axis at time t (assume the charge is zero at t = 0). (b) Find the energy density uem and the Poynting vector S in the gap. Note especially the direction of S. Check that (8.2) is satisfied. (c) Determine the total energy in the gap, as a function of time. Calculate the total power flowing into the gap, by integrating the Poynting vector over the appropriate surface. Check that the power input is equal to the rate of increase of energy in the gap.
(a) From the ch. 7 problems, we know
B=2πa2μ0Isϕ^
Treating the gap as a parallel-plate capacitor, the electric field in the gap is
First, let's check what the direction of S is. We know that B is azimuthal and E is axial, so S must point radially inward. Working through the expression, we get
S=−ϵ012π2a4I2sts^
Checking Poynting's theorem...
∂t∂uem=π2a4ϵ0I2t
∇⋅S=s1∂s∂(sSs)=π2a4ϵ0I2t✓
(c) The power flowing into the gap: we add a negative sign, since conventionally the normal direction is outwards, and the poynting vector points inwards.
The rate of increase of energy in the gap would be the time integral of the volume integral of the energy density uem in the gap. Again, the area of the cylinder is πa2w