Maxwell’s Equations and Light


Maxwell’s Equations and Light

Corey
Every morning, sunlight crosses about 150 million kilometres of empty space and reaches Earth in roughly eight minutes. There’s nothing between the Sun and us to carry it. So what is light—and how can Maxwell’s equations tell us how fast it travels?

Hope
That’s our destination. In the 1860s, James Clerk Maxwell wrote four equations about electricity and magnetism. We’ll build the mathematical tools they use, then show how those equations produce a wave—and reveal its speed.

Corey
The first tool is a symbol called del, written like an upside-down triangle. It’s a vector made of derivatives: the derivative with respect to x, the derivative with respect to y, and the derivative with respect to z. On its own, del is waiting; what it does depends on the field it acts on.

Hope
Like an ordinary vector, del can be involved in a dot product or a cross product. Acting on a scalar field, it gives the gradient. Acting on a vector field, its dot product gives divergence, and its cross product gives curl.

Corey
The gradient tells us how a scalar field changes in space. Its components are the field’s slopes in the x, y, and z directions, and the resulting vector points in the direction where the field rises fastest—like an arrow pointing uphill.

Hope
Divergence is del dotted with a vector field. In components, you differentiate the x component with respect to x, the y component with respect to y, and the z component with respect to z, then add those three results. It gives one number at every point.

Corey
To understand that number, picture flow passing through a tiny box. Compare what leaves each face with what enters through the opposite face. The differences across the x, y, and z pairs add up to the net outflow, and dividing by the box’s volume gives divergence.

Hope
So positive divergence means more flows out than in: that point acts like a source, such as water emerging from a spring. Negative divergence means more flows in than out: it acts like a sink, such as a drain.

Corey
Curl is del crossed with a vector field. You can calculate it using the familiar determinant pattern, but there’s a sign to watch: the middle, y-component has a minus sign that reverses the order of its derivatives.

Hope
Curl measures local turning. Imagine a small square in a flow: differences in the flow along its edges create a net tendency to rotate it. A tiny paddle wheel placed there turns, and the curl’s direction gives the axis of that turning.

Corey
There’s an important operator-order trap. Del dot A differentiates the components of A and adds them, so it produces divergence. But A dot del puts the field before the derivatives; nothing has acted on anything yet. Del is an operator dressed up as a vector, so it must stay to the left of what it acts on.

Hope
The same caution applies to the cross product: del acts on the field to its right. So our three operations have distinct jobs: gradient describes a scalar’s rise, divergence measures net outflow, and curl measures turning.

Corey
Let’s calculate those last two for a field with components x sine y, cosine y, and x y. Its divergence is the x derivative of x sine y, plus the y derivative of cosine y, plus the z derivative of x y. That gives sine y minus sine y plus zero: the divergence is zero everywhere.

Hope
That means there’s as much flow entering as leaving every tiny region. A field with zero divergence is called incompressible, like water that can’t be squeezed.

Corey
For its curl, we need the other six derivatives: each component differentiated with respect to the two coordinates that aren’t its own. Putting them into the curl gives x in the i direction, minus y in the j direction, and minus x cosine y in the k direction.

Hope
That curl isn’t zero, so the field turns. Its strength and direction vary from point to point. This example already shows that divergence and curl ask different questions.

Corey
Here’s a simpler pair. The field A equals x in the i direction plus y in the j direction points straight away from the origin, growing stronger farther out. Its divergence is one plus one, or two, so every point is a little source; its curl is zero, so a paddle wheel is carried along without turning.

Hope
Now take B, which equals minus y in the i direction plus x in the j direction. Its arrows circle around the origin. Its divergence is zero, while its curl is two in the k direction. A paddle wheel turns at the centre—and at exactly the same rate far from the centre, because that curl is the same everywhere.

Corey
Add A and B. Because derivatives of sums add, the combined field has divergence two and curl two in the k direction. The flow spirals outward: it spreads and turns at the same time. So a field can have both divergence and curl.

Hope
That’s a useful way to think about water flowing into a drain while swirling around it. Divergence detects sources and sinks; curl detects turning. Neither measure tells the whole story by itself.

Corey
There’s also a neat connection to rigid rotation. A body rotating about the z-axis with angular velocity omega has velocity omega cross r. In components, that’s minus omega y in the i direction plus omega x in the j direction.

Hope
Taking the curl gives two omega in the k direction. So the curl of a rigid body’s velocity is twice its angular velocity. A tiny paddle wheel in that flow spins at half the curl—which is the body’s own angular velocity.

Corey
Now let del act twice. Take the gradient of a scalar field phi, then take the divergence of that gradient. The result is the sum of the three second derivatives: the x derivative twice, the y derivative twice, and the z derivative twice.

Hope
That’s the Laplacian, written del squared phi. It compares the value at a point with the values around it. In one dimension, a positive second derivative means the point is below the average of its neighbours, like the bottom of a dip; a negative one means it’s above their average, like the top of a bump.

Corey
The Laplacian does that comparison in all three directions. That’s one reason it appears in heat flow: a cold spot, lower than its neighbours, warms up. At the top of a hill, the Laplacian is negative, so the uphill gradient arrows gather toward the top; the divergence of the gradient is negative there.

Hope
For a worked calculation, the lecture’s example adds the three second derivatives and gets six y. The x-dependent curvatures cancel: one pair contributes six x and minus six x, leaving the curvature of y cubed, which is six y. And remember, del squared f means the sum of second derivatives—not the square of the gradient.

Corey
Derivative rules carry over to del. The gradient of a sum is the sum of the gradients, constants can come out, and products follow the product rule. For a scalar times a vector, the divergence or curl has contributions from differentiating both the scalar and the vector; don’t pull the scalar out as if del can’t differentiate it.

Hope
Two especially useful identities are that the divergence of any curl is zero, and the curl of any gradient is zero. For a gradient, the curl compares mixed second derivatives taken in opposite orders. If the function is smooth, those derivatives are equal, so they cancel.

Corey
That matches the hill picture: a gradient field points uphill, and water running straight downhill doesn’t swirl a paddle wheel. For the divergence of a curl, the second derivatives also come in equal-and-opposite pairs, so they cancel. A curl field has no sources or sinks; its lines don’t start or end.

Hope
And one more identity will matter for light: the curl of a curl equals the gradient of the divergence minus the Laplacian of the vector field. That Laplacian acts on each component. We’ll use this identity to turn Maxwell’s equations into a wave equation.

Corey
The same operators can be written in coordinates better suited to round shapes. In an orthogonal coordinate system, changing a coordinate by a small amount doesn’t necessarily move you that same distance. The actual distance is a scale factor times the coordinate change.

Hope
In cylindrical coordinates, the position is described by rho, phi, and z. The little distances along those directions are d rho, rho d phi, and d z, so the scale factors are one, rho, and one. The factor rho appears because turning through an angle d phi traces an arc of length rho d phi.

Corey
In spherical coordinates, the little distances are d r, r d theta, and r sine theta d phi. The scale factors are one, r, and r sine theta. Those factors account for how much physical distance corresponds to a small change in each coordinate.

Hope
That changes the gradient, which measures change per unit distance. In cylindrical coordinates it’s the radial slope, plus one over rho times the phi derivative, plus the z slope. In spherical coordinates the corresponding factors are one, one over r, and one over r sine theta.

Corey
The one-over-rho factor is easy to miss. A derivative with respect to phi measures change per radian, not per metre; dividing by rho converts it to change per distance.

Hope
Divergence also needs the scale factors because it measures outflow per volume. In cylindrical coordinates it’s one over rho times the rho derivative of rho A-rho, plus one over rho times the phi derivative of A-phi, plus the z derivative of A-z.

Corey
In spherical coordinates, the volume factor is r squared sine theta. The divergence is one over r squared times the radial derivative of r squared A-r, plus one over r sine theta times the theta derivative of sine theta A-theta, plus one over r sine theta times the phi derivative of A-phi.

Hope
This makes the point-charge example especially simple. Its electric field points radially outward and falls as one over r squared. In spherical divergence, the radial component gets multiplied by r squared, leaving a constant; its derivative is zero. So away from the charge, the field has no divergence—the arrows spread out, but no charge is being created there.

Corey
Be careful with a different field: unit arrows pointing straight out from a cylindrical axis have length one everywhere, but they spread apart as rho increases. Their divergence is one over rho, not zero. The geometry matters, not just whether the arrows’ lengths change.

Hope
Curl uses the same determinant pattern, adjusted for the scale factors. For example, in cylindrical coordinates its z component is one over rho times the rho derivative of rho A-phi, minus the phi derivative of A-rho. In spherical coordinates the factors include r and r sine theta, with one over r squared sine theta in front of the determinant.

Corey
The Laplacian is divergence of the gradient, so it inherits those geometric factors too. In cylindrical coordinates it is one over rho times the rho derivative of rho times the radial derivative, plus one over rho squared times the second phi derivative, plus the second z derivative.

Hope
In spherical coordinates it is one over r squared times the radial derivative of r squared times the radial derivative, plus one over r squared sine theta times the theta derivative of sine theta times the theta derivative, plus one over r squared sine squared theta times the second phi derivative. That form is useful for waves spreading from a point and for the hydrogen atom.

Corey
Now we have the tools to read Maxwell’s four equations. They connect charge density and current density—the sources—to electric and magnetic fields. The first equation says the divergence of the electric field is charge density divided by epsilon naught.

Hope
The second says the divergence of the magnetic field is zero. Since divergence measures sources, magnetic field lines have no magnetic charges to begin or end on. They close on themselves; cutting a magnet in half gives two magnets, each with a north and a south pole, not a lone north pole.

Corey
The third equation says the curl of the electric field is minus the rate of change of the magnetic field. A changing magnetic field makes the electric field circulate. The minus sign gives the direction: the circulation opposes the change. That’s induction, the principle behind generators, transformers, and charging a phone without a wire.

Hope
The fourth equation says the curl of the magnetic field is mu naught times the current density, plus mu naught epsilon naught times the rate of change of the electric field. Current makes magnetic field circulate around a wire, but Maxwell’s added term says a changing electric field can make magnetic field circulate even when there’s no current.

Corey
Put those two curl equations side by side and they’re remarkably symmetric: a changing magnetic field makes an electric field circulate, and a changing electric field makes a magnetic field circulate. That suggests the two fields might sustain each other, even without charges or currents.

Hope
Let’s test it by taking every charge and current away. In empty space, both divergences are zero, and the curls of the electric and magnetic fields are tied to each other’s rates of change. We’ll find an equation for the electric field alone by taking the curl of Faraday’s law.

Corey
The curl of the electric field is minus the time derivative of the magnetic field. Take the curl of both sides. The curl operator acts on space and the time derivative acts on time, so they can be interchanged; then Maxwell’s fourth equation lets us replace the curl of the magnetic field.

Hope
With no current, that substitution leaves the electric field differentiated twice in time, multiplied by mu naught epsilon naught. Now use the curl-of-a-curl identity: curl curl E equals gradient of divergence E minus the Laplacian of E.

Corey
In empty space, the divergence of E is zero, so its gradient is zero too. The remaining terms give the wave equation: the Laplacian of E equals mu naught epsilon naught times the second time derivative of E. Starting instead with the curl of the Ampere-Maxwell equation gives the same wave equation for B.

Hope
How do we read the speed from it? A simple wave equation has one over speed squared multiplying the second time derivative. A travelling shape written as a function of x minus v t keeps its form as it moves to the right at speed v.

Corey
Comparing the equations gives one over the wave speed squared equal to mu naught epsilon naught. So the speed is one over the square root of mu naught epsilon naught. Those two constants were measured in experiments on electricity and magnetism.

Hope
Put their measured values into the formula and the result is three point zero zero times ten to the eight metres per second: exactly the measured speed of light. The product mu naught epsilon naught is one over c squared.

Corey
So what is light? It’s an electromagnetic wave. The electric field and magnetic field oscillate at right angles to each other and to the direction of travel. Each changing field helps generate the other, so the fields can carry the wave across empty space.

Hope
That answers our opening puzzle: light doesn’t need air, water, or another material to carry it. The equations of electricity and magnetism predict its speed from two measured constants—and that speed is the speed of light.

Corey
The best coordinates depend on the wave’s shape. A small source sends light out in spherical fronts, so spherical coordinates suit it. A long wire, like an antenna, produces cylindrical fronts; far away, a small section of any front is nearly flat, so a plane wave is a useful picture.

Hope
And the Laplacian reaches beyond electromagnetism. It also appears in quantum mechanics: in the Schrödinger equation it gives the energy of motion of the wave function, and for an electron in a hydrogen atom it’s written in spherical coordinates.

Corey
We started with del: gradient for a field’s rise, divergence for net outflow, and curl for turning. We added the Laplacian and its identities, learned how scale factors adapt the operators to curved coordinates, and then used Maxwell’s equations to derive electromagnetic waves.

Hope
And the wave speed came out as one over the square root of mu naught epsilon naught—the speed of light. Maxwell’s equations don’t just describe electricity and magnetism; together, they show how light travels through empty space.

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