Maxwell’s Equations and Light
Vector Calculus, Maxwell’s Equations, and Light
The del operator and its three actions
The del operator, written ∇, is a vector whose components are spatial derivative operators:
Unlike an ordinary vector, ∇ does not represent a fixed set of numbers. It acts on the field to its right. Depending on how it acts, it produces the gradient, divergence, or curl.
Gradient: how a scalar field changes
For a scalar field ϕ, the gradient is
The gradient is a vector pointing in the direction in which ϕ increases most rapidly. Its magnitude gives the rate of increase in that direction. For example, the gradient of a height field points uphill.
Divergence: sources, sinks, and net outflow
For a vector field A=Axi^+Ayj^+Azk^, the divergence is
The divergence is a scalar that measures net outward flow per unit volume at a point. Consider a tiny box in a flow: the difference between the amount leaving and the amount entering each pair of opposite faces gives the corresponding derivative. Adding the contributions from all three directions gives the divergence.
Positive divergence indicates net outflow: the point behaves like a source.
Negative divergence indicates net inflow: the point behaves like a sink.
Zero divergence means there is no net creation or removal of flow locally.
A field with zero divergence is called incompressible in the relevant fluid-flow context: its local flow does not expand or contract in volume.
Curl: local circulation and turning
The curl of a vector field is a vector:
The curl measures local circulation or turning. Its direction is the axis about which the local rotation occurs, and its magnitude describes the strength of the rotation. A small paddle wheel placed in a flow illustrates this effect: it turns when the flow has curl. The wheel’s angular velocity is half the local curl.
The middle component has a crucial minus sign. It is
not the same terms in the opposite order.
Why the order of del matters
Although ∇ resembles a vector, it is also an operator. In ∇⋅A, the derivatives act on the components of A. By contrast, writing A⋅∇ places the field before the derivatives; it defines a different operator that still needs something to act on. Thus, the ordinary rule that a dot product is unchanged by swapping its factors does not apply in the same way. Del must remain on the left of the field on which it acts. The same caution applies to the curl.
Divergence and curl in example fields
Divergence and curl measure different features of a field. A flow can have either one, both, or neither.
A field with zero divergence but nonzero curl
Consider the vector field
Its divergence is
There is no net source or sink at any point. Its curl, however, is
The nonzero curl means the field turns. Its strength and direction vary from point to point.
Radial expansion and circular rotation
The field
points directly away from the origin and grows in magnitude with distance from it. Its divergence and curl are
It behaves like a source everywhere, but a paddle wheel carried by it does not rotate.
The field
circulates around the origin. Its divergence and curl are
It has no sources or sinks, but it produces rotation. The curl is the same at every point, including points away from the centre of the circular flow.
Adding the fields produces a flow that both expands outward and rotates:
This demonstrates that divergence and curl are independent properties: one field can spread and turn at the same time.
Curl of a rigid-body rotation
For a rigid body rotating about the z axis with angular velocity ω=ωk^, the velocity at position r is ω×r. In Cartesian components,
Its curl is
Thus, for rigid rotation, the curl of the velocity is twice the angular velocity. A small paddle wheel in the flow spins at half the curl, matching the body’s angular velocity.
The Laplacian and vector identities
The Laplacian as divergence of the gradient
Applying ∇ twice to a scalar field means taking its gradient and then the divergence of that gradient. The result is the Laplacian:
The Laplacian measures how the value at a point compares with values in its neighbourhood. In one dimension, a positive second derivative indicates that nearby values average higher than the value at the point, as at the bottom of a dip. A negative second derivative indicates a value higher than its neighbours, as at the top of a bump. The three-dimensional Laplacian combines this comparison across all spatial directions.
This interpretation helps explain heat flow: a relatively cold spot is below the temperature of its surroundings and tends to warm, while a relatively hot spot tends to cool. For a hill-shaped height field, the Laplacian is negative near a local peak; consequently, the divergence of the uphill gradient is negative there, meaning the uphill arrows gather toward the peak.
The Laplacian is not the square of the gradient’s magnitude. It is the sum of the second derivatives, not the sum of squared first derivatives.
Common derivative rules and identities
Because del is built from derivatives, standard derivative rules apply.
The gradient of a sum is the sum of the gradients, and constants can be factored out.
The product rule applies to gradients and to products of scalar and vector fields.
The divergence of a scalar times a vector field is
The curl of a scalar times a vector field is
A scalar field cannot simply be pulled out of a divergence or curl: the derivatives act on it as well as on the vector field.
Two especially useful identities are
The curl of a gradient vanishes because its components contain pairs of mixed second derivatives with opposite signs. For a smooth field, taking the mixed derivatives in either order gives the same result, so the terms cancel. A gradient field therefore has no local turning.
The divergence of a curl also vanishes: its second-derivative terms likewise cancel in pairs. A curl field has no sources or sinks; its field lines do not begin or end locally. Magnetic field lines, for example, form closed loops.
Another identity combines curl and divergence:
Here, the vector Laplacian ∇2A means applying the scalar Laplacian to each Cartesian component. This identity is central to deriving electromagnetic wave equations.
A related product identity is
The minus sign reflects the order change in the cross product.
Curvilinear coordinates and scale factors
Cartesian coordinates are not always the most convenient choice. Problems with cylindrical symmetry or spherical symmetry are often simpler in coordinates adapted to their geometry.
Orthogonal coordinates and scale factors
In an orthogonal coordinate system with coordinates u1,u2,u3, each coordinate line has a unit direction vector. A small change in a coordinate generally does not equal a distance. Instead, a change dui moves a point a distance
where hi is that coordinate’s scale factor. The scale factor is the length of the change in position per unit change of that coordinate.
The length element therefore has contributions h1du1, h2du2, and h3du3 along the three perpendicular coordinate directions. Scale factors enter the formulas for spatial derivatives because the operators must measure change per unit physical distance.
Cylindrical and spherical scale factors
For cylindrical coordinates (ρ,ϕ,z), the scale factors are
A change dϕ corresponds to an arc length ρdϕ, so angular changes become larger physical distances farther from the axis.
For spherical coordinates (r,θ,ϕ), where θ is the polar angle and ϕ is the azimuthal angle, the scale factors are
The corresponding small distances are dr in the radial direction, rdθ along a meridian, and rsinθdϕ around a circle of latitude.
Gradient in orthogonal coordinates
The gradient measures the rate of change per unit physical distance. In general orthogonal coordinates,
The factors 1/hi convert a derivative per unit coordinate change into a derivative per unit length.
In cylindrical coordinates,
The factor 1/ρ is essential: differentiation with respect to ϕ measures change per radian, not per metre.
In spherical coordinates,
Divergence in orthogonal coordinates
Divergence measures net outflow divided by volume. The flow through each face depends on that face’s area, and the volume depends on all three scale factors. For a vector field with components A1,A2,A3,
In cylindrical coordinates,
In spherical coordinates,
The factors account for the changing areas of coordinate surfaces. For example, radial surfaces in spherical coordinates have areas that grow in proportion to r2.
Curl in orthogonal coordinates
The curl can be written as a determinant-like expression that includes the scale factors:
In cylindrical coordinates,
In spherical coordinates,
Laplacian in cylindrical and spherical coordinates
Since the Laplacian is the divergence of the gradient, the scale factors determine its form.
In cylindrical coordinates,
In spherical coordinates,
These forms are particularly useful when a problem has an axis or a centre. Spherical coordinates suit fields spreading from a point, while cylindrical coordinates suit fields around a long straight axis.
Point-charge field and divergence
A point charge’s electric field is radial and falls off in proportion to 1/r2. In spherical coordinates, the factor r2 in the radial divergence term cancels this radial dependence, leaving zero divergence away from the charge. The field weakens as it spreads, but the weakening is not the creation or destruction of field lines. The charge itself is the source, at the singular point.
A similar geometric effect occurs for unit vectors pointing outward from a cylindrical axis. Although their lengths are constant, the arrows spread apart with distance, and their divergence is 1/ρ, not zero.
Maxwell’s equations and the meaning of their terms
Maxwell’s equations connect the electric field E and magnetic field B to charge density ρf and current density Jf. The charge and current densities describe sources, while the fields can vary with position and time.
The equations are
Here, ϵ0 and μ0 are constants associated with electric and magnetic phenomena. The symbol ρf denotes free charge density; it is distinct from the cylindrical coordinate ρ.
Electric and magnetic divergence laws
Gauss’s law for electricity states that electric-field divergence is proportional to charge density. Positive charges act as sources of electric field lines, while negative charges act as sinks. Where there is no charge, the local divergence is zero, even though field lines can spread out and become less dense.
The magnetic-field divergence law states that magnetic field lines have no sources or sinks. There are no isolated magnetic charges in this description: a cut magnet still has both a north and a south pole. Magnetic field lines close on themselves.
The curl laws: changing fields and currents
Faraday’s law states that a changing magnetic field produces a circulating electric field. The minus sign specifies that the induced circulation opposes the change in magnetic flux. This induction underlies generators, transformers, and wireless charging.
The Ampère–Maxwell law says that electric current produces a circulating magnetic field. Maxwell’s added term says that a changing electric field also produces magnetic circulation, even when no current is present. This addition makes it possible for electric and magnetic fields to sustain one another in empty space.
Electromagnetic waves in empty space
In empty space with no charges or currents, the source densities vanish:
Maxwell’s equations then become
The two fields have no divergence in empty space, while each field’s curl is linked to the time variation of the other.
Deriving the electric-field wave equation
Take the curl of Faraday’s law:
Substitute the empty-space Ampère–Maxwell law for ∇×B:
The curl-of-curl identity gives
Because ∇⋅E=0 in empty space, the gradient-divergence term vanishes. The result is
This is a wave equation: spatial curvature of the electric field is related to its second time derivative. Taking the curl of the Ampère–Maxwell law and following the same reasoning gives the corresponding equation for the magnetic field:
Wave speed and the speed of light
A one-dimensional wave travelling at speed v has the form
A travelling profile such as f(x−vt) keeps its shape as it moves in the positive x direction at speed v. Comparing this standard wave equation with the electromagnetic wave equation gives
The measured values of μ0 and ϵ0 give a speed of approximately
which is the measured speed of light in vacuum. Thus, the electric and magnetic constants together determine the speed of light.
Light is an electromagnetic wave. Its electric and magnetic fields oscillate perpendicular to each other and to the direction of travel. A changing electric field generates magnetic field circulation, and a changing magnetic field generates electric field circulation, allowing the wave to travel through empty space without a material medium.
The geometry of a wave determines which coordinate form of the Laplacian is most convenient. Waves spreading from a small source are naturally described using spherical coordinates; waves from a long wire or antenna can have cylindrical geometry; and sufficiently far from a source, a small portion of a wavefront is nearly flat and can be approximated as a plane wave.
The Laplacian also appears in quantum mechanics. In the Schrödinger equation it describes spatial variation of the wave function ψ and is associated with kinetic energy; spherical coordinates are useful for the hydrogen atom.

Ask anything
We've read this whole study set, so questions about it get the best answers.