Continuity, Conservation, Stokes, and Maxwell
Continuity, Conservation, Stokes, and Maxwell
1 ∂2ψ
− + ∇2 ψ = 0
c2 ∂t2
in a medium of density µ, and consider the definitions
" 2 #
µ ∂ψ 2
ρ = + c ∇ψ · ∇ψ
2 ∂t
∂ψ
J = −µc2 ∇ψ
∂t
These have units of
2
∂ψ
[ρ] = [µ]
∂t
kg m2
=
m3 s2
E
=
m3
which we may think of as energy density and
∂ψ
[J] = [µ] c2 [∇ψ]
∂t
kg m2 m m
=
m3 s2 s m
Ec
=
m3
E
=
m2 s
which an energy flux (energy per unit area per second).
Then (magically),
∂ψ ∂ 2 ψ
∂ρ 2 ∂ψ
= µ + µc ∇ψ · ∇
∂t ∂t ∂t2 ∂t
∂ψ ∂ψ
∇·J = −µc2 ∇ · ∇ψ − µc2 ∇ · ∇ψ
∂t ∂t
1
If we add these together,
∂ψ ∂ 2 ψ
∂ρ 2 ∂ψ
2 ∂ψ ∂ψ
+∇·J = µ + µc ∇ψ· ∇
− µc ∇ ·
∇ψ − µc2 ∇ · ∇ψ
∂t ∂t ∂t2 ∂t ∂t ∂t
1 ∂2ψ
∂ψ
= −µc2 − 2 2 + ∇2 ψ
∂t c ∂t
= 0
Now, recall that the divergence theorem tells us that the volume integral of a divergence of a vector field
equals the flux of that vector field across the boundary,
ˆ ˛
∇ · vd3 x = n̂ · vd2 x
V S
Here V is any volume and S is the closed boundary of that volume; n̂ is the unit outward normal to S, so
that at any point on the boundary, n̂ · v is the part of v crossing the boundary.
Returning to the time rate of change of E and applying the divergence theorem,
˛
dE
= − n̂ · Jd2 x
dt
S
This means that the only change in energy E in the volume V is that decrease due to a flow of energy
outward across the boundary of the region. If no energy crosses the boundary (or the boundary is taken at
infinity) then energy is conserved.
2
1.2 Probability and the Schrödinger equation
This sort of conservation law applies to most field theories. For example, starting with the Schrödinger
equation,
~2 2 ∂ψ
− ∇ ψ + V ψ = i~
2m ∂t
we multiply by the complex conjugate of the wave function, ψ ∗ ,
~2 ∗ 2 ∂ψ
− ψ ∇ ψ + V ψ ∗ ψ = i~ψ ∗
2m ∂t
Now take the complex conjugate of the whole equation,
~2 ∂ψ ∗
− ψ∇2 ψ ∗ + V ψψ ∗ = −i~ψ
2m ∂t
These must both be true. Now subtract the two equations,
~2 ∂ψ ∗
∂ψ
ψ ∗ ∇2 ψ − ψ∇2 ψ ∗ = i~ ψ ∗
− +ψ (2)
2m ∂t ∂t
Exercise: Show that
ψ ∗ ∇2 ψ − ψ∇2 ψ ∗ = ∇ · (ψ∇ψ ∗ − ψ ∗ ∇ψ)
and that
∂ψ ∂ψ ∗ ∂
ψ∗ +ψ = (ψψ ∗ )
∂t ∂t ∂t
3
1.3 Conservation of electric charge
We will look at Maxwell’s equations in more detail shortly. In particular, we will show that it is a consequence
of Maxwell’s equations that the electric charge density ρ and the current density J satisfy the continuity
equation. Therefore, total electric charge is conserved, and the charge in any volume V changes only if
current flows across the boundary of V .
u x v = Area of
v parallelogram
Direction
perpendicular
to xy plane
q (right hand rule)
j
u
x
The two vectors shown lie in the xy-plane. The area of the parallelogram is the base times the height,
which we may take as the projection of →−
v perpendicular to →−u , times the length of →
−u . The direction is the
direction perpendicular to both, given by the right hand rule. Here it is the z-direction, so
→
−
u ×→
−
v = uv sin θ k̂
4
But the components of ũ and ṽ are just found by rotation through the angle −ϕ between ũ and the x-axis,
ũx cos ϕ sin ϕ ux
=
0 − sin ϕ cos ϕ uy
ux cos ϕ + uy sin ϕ
=
−ux sin ϕ + uy cos ϕ
and
ṽx cos ϕ sin ϕ vx
=
ṽy − sin ϕ cos ϕ vy
vx cos ϕ + vy sin ϕ
=
−vx sin ϕ + vy cos ϕ
Therefore, we know that
ũx = ux cos ϕ + uy sin ϕ
ṽy = −vx sin ϕ + vy cos ϕ
and the condition that ũy = 0 shows that
−ux sin ϕ + uy cos ϕ = 0
We can also express the sine and cosine in terms of the original components,
ux
cos ϕ =
u
uy
sin ϕ =
u
where u2 = u2x + u2y .
Now we have
→
−u ×→ −
v = uv sin θ
= ũx ṽy
= (ux cos ϕ + uy sin ϕ) (−vx sin ϕ + vy cos ϕ)
= −vx ux cos ϕ sin ϕ + vy ux cos2 ϕ − vx uy sin ϕ sin ϕ + vy uy sin ϕ cos ϕ
= −vx ux cos ϕ sin ϕ + vy ux cos2 ϕ − vx uy sin2 ϕ + vy uy sin ϕ cos ϕ
ux uy u2 u2y uy ux
= −vx ux + vy ux x2 − vx uy 2 + vy uy
u u u u u u
1
−vx uy ux + vy ux ux − vx uy uy + ux vy u2y
2 2 2
=
u2
1
(−vx uy + vy ux ) u2x + (−vx uy + ux vy ) u2y
= 2
u
1
(−vx uy + vy ux ) u2x + u2y
= 2
u
= ux vy − uy vx
Therefore, the curl is
→
−
u ×→
−
v = (ux vy − uy vx ) k̂
We may carry out the same sort of calculation for all three components of a more general pair of vectors to
show that for arbitrary →
−
u and →
−
v , the cross product is given by
→
−
u ×→
−
v = (uy vz − uz vy ) ĵ + (uz vx − ux vy ) ĵ + (ux vy − uy vx ) k̂ (3)
5
2.2 The curl
An important variant of the cross product occurs if we replace the first vector with the gradient,
∂ ∂ ∂
∇ = î + ĵ + k̂
∂x ∂y ∂z
and let the derivatives act on the second vector. Let v (x) be a vector field with Cartesian components
v = vx î + vy ĵ + vz k̂
Proof: We start with a small rectangular surface with sides a and b. We may choose our coordinates in any
way we please, so let the x and y directions be taken along the sides of the rectangle, with the normal
in the z-direction.
dl = - i dx
b (a,b)
dl = - j dy dl = j dy
S
dl = i dx a x
6
Then the surface integral of the curl is
¨ ¨
∂vy (x, y) ∂vx (x, y) ∂vx ∂vy (x, y)
n̂ · (∇ × v) = k̂ · k̂ − −
∂x ∂y ∂y ∂x
S S
ˆa ˆb
∂vy (x, y) ∂vx (x, y)
= dx −dy
∂x ∂y
0 0
ˆb ˆa ˆa ˆ
b
∂vy (x, y) ∂vx (x, y)
= dy dx − dx dy
∂x ∂y
0 0 0 0
ˆb ˆa
= dy (vy (a, y) − vy (0, y)) − dx (vx (x, b) − vx (x, 0))
0 0
¨ ˆa ˆb ˆa ˆb
n̂ · (∇ × v) = dxvx (x, 0) + dyvy (a, y) − dxvx (x, b) − dyvy (0, y)
S 0 0 0 0
Now let dl be an infinitesimal vector along the counterclockwise boundary of the rectangle. That is, along
y = 0, dl = îdx, then along the side at x = a we have dl = ĵdy. Back across the top at y = b the displacement
is along dl = −îdx, and returning down the y axis to the origin dl = −ĵdy. The remaining integrals become
¨ ˆa ˆb ˆa ˆb
n̂ · (∇ × v) = dxvx (x, 0) + dyvy (a, y) − dxvx (x, b) − dyvy (0, y)
S 0 0 0 0
ˆa ˆb ˆa ˆb
= îdx · v (x, 0) dx + ĵdy · v (a, y) + −îdx · v (x, b) + −ĵdy · v (0, y)
0 0 0 0
ˆa ˆb ˆa ˆb
= dl · v (x, 0) dx + dl · v (a, y) + dl · v (x, b) + dl · v (0, y)
0 0 0 0
˛
= v · dl
boundary
To complete the proof, we cover a general surface S with infinitesimal rectangles and apply this result to
each one. Where the rectangles have sides in common, the counterclockwise paths cancel so the net effect a
line integral around the perimeter of the entire surface.
From Stokes’ theorem we see that the curl tells us how much the vector field v tends to circle around
any given closed curve.
3 Maxwell’s equations
We are now in a position to discuss the Maxwell equations for electromagnetism. Maxwell’s equations may be
written as either integral equations or differential equations. The two forms are connected by the divergence
theorem and Stokes’ theorem.
7
3.1 Gauss’s law
In integral form, the first equation expresses Gauss’s law that the integral of the electric field over any closed
surface is proportional to the total enclosed charge,
‹
E · n̂ d2 x = 4πQenclosed
If we write the charge enclosed as a volume integral over the region inside the closed Gaussian surface,
˚
Qenclosed = ρ d3 x
V
and use the divergence theorem to write the surface integral as an integral over the same volume,
‹ ˚
2
E · n̂ d x = ∇ · E d3 x
V
Since this holds for any volume V we may take the limit as V approaches any point, and the integrand must
vanish at that point. Therefore,
∇·E = 4πρ (4)
is the differential form of Gauss’s law.
while the potential around the loop (“electromotive force”) is given by the integral of the electric field around
the boundary C of S, so the law is
˛ ¨
1 d
E · dl = − B · n̂ d2 x
c dt
C S
The relative negative sign follows from Lenz’s law. Using Stokes theorem to write the electric integral as a
curl, ˛ ¨
E · dl = n̂ · (∇ × E) d2 x
C S
8
both the two integrals and the dot products with the normal combine,
¨
1 ∂
n̂ · ∇ × E + B d2 x = 0
c ∂t
S
The surface is arbitrary, so we may shrink it to any point to find that the integrand must vanish. In fact,
since we may tip the surface in any direction at the point in question, the direction of the normal is also
arbitrary and we conclude that
1 ∂B
∇×E+ =0
c ∂t
at every point.
Stokes’ theorem lets us write all three integrals as a single surface integral by setting
˛ ¨
B · dl = n̂ · (∇ × B) d2 x
C S
and once again, since we may orient the surface in any direction as we shrink it to any point, we get the
differential form of Ampère’s law,
1 ∂E 4π
∇×B− = J
c ∂t c
9
Exercise: Show that the divergence of a curl always vanishes,
∇ · (∇ × v) = 0
∇ × ∇f = 0
Exercise: Add the time derivative of Eq.(6) to c times the divergence of Eq.(9) to show that ρ and J satisfy
the continuity equation. What is the conserved charge?
∇ × (∇ × v)
There are much easier ways to prove this once we have a bit more notation, but it is not too bad if we just
take it a step at a time. Let w be the curl of v,
w = ∇×v
∂vz ∂vy ∂vx ∂vz ∂vy ∂vx
= î − + ĵ − + k̂ −
∂y ∂z ∂z ∂x ∂x ∂y
so the components of w are
∂vz ∂vy
wx = −
∂y ∂z
∂vx ∂vz
wy = −
∂z ∂x
∂vy ∂vx
wz = −
∂x ∂y
Then
∇ × (∇ × v) = ∇×w
∂wz ∂wy ∂wx ∂wz ∂wy ∂wx
= î − + ĵ − + k̂ −
∂y ∂z ∂z ∂x ∂x ∂y
∂ ∂vy ∂vx ∂ ∂vx ∂vz
= î − − −
∂y ∂x ∂y ∂z ∂z ∂x
∂ ∂vz ∂vy ∂ ∂vy ∂vx
+ĵ − − −
∂z ∂y ∂z ∂x ∂x ∂y
∂ ∂vx ∂vz ∂ ∂vz ∂vy
+k̂ − − −
∂x ∂z ∂x ∂y ∂y ∂z
2
∂ 2 vx ∂ 2 vx ∂ 2 vz
∂ vy
= î − − +
∂y∂x ∂y 2 ∂z 2 ∂z∂x
2 2 2
∂ 2 vx
∂ vz ∂ vy ∂ vy
+ĵ − − +
∂z∂y ∂z 2 ∂x2 ∂x∂y
2
∂ 2 vz ∂ 2 vz ∂ 2 vy
∂ vx
+k̂ − − +
∂x∂z ∂x2 ∂y 2 ∂y∂z
10
Within each component we replace the unmixed second derivatives with the Laplacian,
∂ 2 vx ∂ 2 vx ∂ 2 vx
− 2
− = − ∇ 2 vx
∂y ∂z 2 ∂x2
and similarly for the other two components. This gives
2
∂ 2 vx ∂ 2 vz
∂ vy
∇ × (∇ × v) = î + + − ∇2 vx î
∂y∂x ∂x2 ∂z∂x
2
∂ 2 vy ∂ 2 vx
∂ vz
+ĵ + + − ∇2 vy ĵ
∂z∂y ∂y 2 ∂x∂y
2
∂ 2 vz ∂ 2 vy
∂ vx
+k̂ + + − ∇2 vz k̂
∂x∂z ∂z 2 ∂y∂z
The remaining terms all have a common derivative. Pulling it out, what remains is a divergence,
∂ ∂vx ∂vy ∂vz
∇ × (∇ × v) = î + + − ∇2 vx î
∂x ∂x ∂y ∂z
∂ ∂vx ∂vy ∂vz
+ĵ + + − ∇2 vy ĵ
∂y ∂x ∂y ∂z
∂ ∂vx ∂vy ∂vz
+k̂ + + − ∇2 vz k̂
∂z ∂x ∂y ∂z
We can recombine the gradient with the Laplacian terms combining as ∇2 v:
∇ × (∇ × v) = ∇ (∇ · v) − ∇2 v
Now we blink twice in amazement and smile.
11
3.7 Electric and magnetic potentials
Two of Maxwell’s equations–Gauss’s law for magnetism, Eq.(7) and Faraday’s law, Eq.(8),
∇·B = 0
1 ∂B
∇×E+ = 0
c ∂t
allow us to define potentials. We have seen that the divergence of a curl vanishes, and there is a converse:
if the divergence of a vector field vanishes then (in a suitable region) the vector field may be written as the
curl of another vector. Therefore, Gauss’s law for magnetism implies the existence of another vector A such
that
B = ∇×A
The new vector A is called the vector potential. If we substitute this into Faraday’s law, the entire law
becomes a vanishing curl,
1 ∂
∇×E+ (∇ × A) = 0
c ∂t
1 ∂A
∇× E+ = 0
c ∂t
´
Recall that potential energy V = − F · dx exists when the integral for the work
ˆ
W = F · dx
is independent of path. Path independence means that if we go up any one path and back another we get
zero, so that ˛
F · dx = 0
for any closed curve. By Stokes’ theorem, this means that the curl of the force vanishes.
The situation is the same here. Because the curl of E + 1c ∂A
∂t vanishes, it may be written as the gradient
of a potential,
1 ∂A
E+ = −∇φ
c ∂t
Therefore, given the scalar and vector potentials φ and A, we may find both the electric and magnetic fields,
1 ∂A
E = −∇φ −
c ∂t
B = ∇×A (12)
0 = ∇·E
1 ∂A
= ∇ · −∇φ −
c ∂t
1 ∂
= −∇2 φ − (∇ · A)
c ∂t
12
Reorganizing this into a wave equation by adding and subtracting a second time derivative, there is a bit
extra:
1 ∂2φ 2 1 ∂2φ 1 ∂
− + ∇ φ + + (∇ · A) = 0
c2 ∂t2 c2 ∂t
2 c ∂t
1 ∂2φ
1 ∂ 1 ∂φ
− 2 2 + ∇2 φ + +∇·A = 0 (13)
c ∂t c ∂t c ∂t
Before dealing with the extra terms, we consider a second equation. Substituting the potentials for the
fields in the source-free Ampère law,
1 ∂E
∇×B− = 0
c ∂t
1 ∂ 1 ∂A
∇ × (∇ × A) − −∇φ − = 0
c ∂t c ∂t
1 ∂φ 1 ∂2A
∇ (∇ · A) − ∇2 A + ∇ + 2 2 = 0
c ∂t c ∂t
Once again, we have a wave equation plus extra terms
1 ∂2A
1 ∂φ
− 2 2 + ∇2 A − ∇ +∇·A = 0 (14)
c ∂t c ∂t
13
3.10 Back to the wave equation
Using our freedom to choose the function f in the gauge transformation, we now ask if it is possible to choose
f so that
1 ∂ φ̃
+ ∇ · Ã = 0
c ∂t
Suppose we start with a potential and vector potential such that this expression does not vanish, but instead
gives some function, g
1 ∂φ
+∇·A=g
c ∂t
Now compute the same combination of derivatives in a different gauge choice,
1 ∂ φ̃ 1 ∂ 1 ∂f
+ ∇ · Ã = φ− + ∇ · (A + ∇f )
c ∂t c ∂t c ∂t
1 ∂φ 1 ∂2f
= − 2 2 + ∇ · A + ∇ · ∇f
c ∂t c ∂t
1 ∂2f
1 ∂φ
= + ∇ · A − 2 2 + ∇2 f
c ∂t c ∂t
2
1 ∂ f
= g − 2 2 + ∇2 f
c ∂t
We would like to choose f so that this new expression vanishes. But we can, because it just involves solving
1 ∂2f
− + ∇2 f = −g
c2 ∂t2
This is just another wave
equation
with g as a source. Once we solve this, we may make a gauge transfor-
mation from (φ, A) to φ̃, Ã , and the new potentials will satisfy
1 ∂ φ̃
+ ∇ · Ã = 0 (16)
c ∂t
This choice is called the Lorentz gauge.
With the new potentials satisfying the Lorentz gauge condition, the wave equations, Eqs.(13) and (14)
reduce to
1 ∂ 2 φ̃
− + ∇2 φ̃ = 0
c2 ∂t2
1 ∂ 2 Ã
− 2 2 + ∇2 Ã = 0
c ∂t
Therefore, the potentials may be chosen to satisfy the wave equation.
14
Consider the dot product of the electric field with Faraday’s law,
1 ∂E
E · (∇ × B) − E · = 0
c ∂t
and a similar expression from the dot product of the magnetic field with Ampère’s law,
1 ∂B
B · (∇ × E) + B · = 0
c ∂t
Subtracting,
1 ∂B 1 ∂E
B · (∇ × E) + B · − E · (∇ × B) − E · = 0
c ∂t c ∂t
1 ∂E 1 ∂B
E· B· + B · (∇ × E) − E · (∇ × B) = 0 (17)
c ∂t c ∂t
The first two terms may each be written as half the time derivative of E · E and B · B,
1 ∂E 1 ∂
E· = (E · E)
c ∂t 2c ∂t
1 ∂B 1 ∂
B· = (B · B)
c ∂t 2c ∂t
To simplify the remaining two terms, we need the triple product of three vectors, A · (B × C). The triple
product is the volume of a parallelepiped: the cross product gives the area of the base and the dot product
gives the height perpendicular to the base. Since we may regard any two of the vectors as defining the base,
we may cyclically permute the order of the vectors,
A · (B × C) = B · (C × A) = C · (A × B)
A similar result holds if one of the vectors is the gradient operator. Taking into account the sign because of
the odd permutation, we can show that
B · (∇ × E) − E · (∇ × B) = ∇ · (E × B)
Combining these results, Eq.(17) simplifies to
1 ∂
E2 + B2 + ∇ · (E × B) = 0
2c ∂t
and identifying
1
E2 + B2
u≡
2c
S≡E×B
we recognize the continuity equation,
∂u
+∇·S=0
∂t
1
The density u = 2c E2 + B2 is the energy density of an electromagnetic wave, while the Poynting
vector,
S=E×B
gives the energy flux (joules per square meter per second ) of an electromagnetic wave. The Poynting vector
points in the direction of propagation of the wave. The integral of the continuity equation shows that
ˆ
dE d
= u d3 x
dt dt
V
ˆ
= − n̂ · S d2 x
S
15
´
so that the total energy E = V
ud3 x in any volume V changes only by the Poynting flux out across the
boundary S of V .
16