1. Home
  2. Explore
  3. Physics
  4. Maxwell’s Equations and Light

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Maxwell’s Equations and Light

Transcript

Every morning, sunlight crosses a hundred and fifty million kilometres of empty space to reach us, in about eight minutes. There is nothing in between to carry it. So what is light, and why does it travel at that speed? In the eighteen sixties, James Clerk Maxwell wrote four short equations about electricity and magnetism. Hidden inside them is a wave of electric and magnetic fields, and its speed. By the end of this lecture, you will find that wave yourself, and its speed. To read them, we need one new symbol, an upside down triangle called del, and the three things it does to a field. A field can rise, like a hill. That is the gradient. It can spread out from a point, like water from a spring.

That is the divergence. And it can turn around a point, like a whirlpool. That is the curl. Maxwell's equations are written in these three words. Here's the plan, part by part. First, what each one measures, and how to compute it. Then del applied twice, which gives the Laplacian, with the rules it follows. Then all of them in cylindrical and spherical coordinates, where round fields become simple. And finally, Maxwell's four equations, from which the wave, and its speed, will come out.

Lecture eighteen, part one: the del operator, and what it does to a field. Let's meet the new symbol. Del is a vector, but a strange one. Its three components are not numbers, they are derivatives: the derivative with respect to x, with respect to y, and with respect to z. On its own it does nothing. It is waiting for a field to act on. Think about what you can do with an ordinary vector. You can multiply it by a number. You can dot it with another vector.

Or you can cross it with another vector. Del does all three. Acting on a scalar field phi, like a number on a vector, it gives the gradient: the three slopes of the field, made into one vector. It points the way the field rises fastest. Acting on a vector field A, it can make a dot product, which gives a scalar, the divergence. Or a cross product, which gives a vector, the curl. Let's see what each one measures. First, the dot product. Dot del with the field,

exactly like a dot product: the x part of del times the x part of A, and so on, added up. Each part of del is a derivative, so we get the derivative of A x with respect to x, plus the derivative of A y with respect to y, plus the derivative of A z with respect to z. It's a single number at each point. But what does it mean? Picture a flow, and a small box sitting in it. Some of the flow comes into the box, and some leaves. The gold arrows show what leaves, the grey arrows what comes in.

Look at the right and left faces of the box. Through the right face, the flow carries out A x at x plus d x, times the area of the face. Through the left face it brings in A x at x. What leaves minus what comes in is the difference. And a small difference in A x, over a small step d x, is the derivative times d x. So this pair of faces gives the derivative of A x with respect to x, times the volume of the box. The top and bottom faces give the same with y, and the front and back with z.

Add the three pairs: the net outflow is exactly our sum, times the volume. So the divergence is the net outflow per unit volume. Positive means more leaves than enters: a source, like a spring. Negative means a sink, like a drain. Now the cross product. Cross del with the field, using the same determinant as for any cross product: the unit vectors along the top row, del in the middle row, and the field on the bottom. Expand it along the top row. For i hat, cover its row and column: what is left is the derivative of A z with respect to y, minus the derivative of A y with respect to z. Pause the video, and expand the j hat and k hat terms yourself. Watch the sign of the middle one.

The middle term comes with a minus sign, which flips the order: the derivative of A x with respect to z, minus the derivative of A z with respect to x. The k hat term is the derivative of A y with respect to x, minus the derivative of A x with respect to y. Students most often lose that minus sign, and get the j hat term upside down. Why does this measure turning? Take a flow in the plane, and a small square in it. Look at the k hat part. The flow pushes up along the right side, and up along the left side too. On the right that push turns the square counterclockwise, on the left clockwise. What survives is the difference: how much A y changes with x. The top and bottom do the same with A x, and that gives the second term, with its minus sign. Now drop a tiny paddle wheel into the flow, right where the square was. It turns.

The curl measures that turning, and its direction is the axis the wheel turns around. One last thing about the order. Here's a belief that sounds reasonable. Del is a vector, and a dot product does not care about order. So del dot A should be the same as A dot del. Write both out. Del dot A takes derivatives of the field and adds them: a number at each point. A dot del puts the field first. Nothing is differentiated yet. It's another operator, still waiting for something to act on.

So the belief is false. Del is an operator dressed as a vector: it acts on what stands to its right, and the order matters. The same goes for the cross product. Keep del on the left of what it acts on. Let's sum up. Del is a vector whose components are derivatives. On a scalar field it gives the gradient, the way the field rises. Dotted with a vector field it gives the divergence, the net outflow per volume. Crossed with it, the curl, which measures how the flow turns.

In part two, we compute them for real fields, and watch a flow that spreads and turns at the same time. Watch water leave a bath. It swirls around the drain, and at the same time it flows into it. Turning and sinking, in one flow. Can a single field really do both at once? And how would we tell, from its formula? Lecture eighteen, part two: divergence and curl at work. Let's start with a field that has a little of everything. Here's a vector field with three components. We want its divergence and its curl. For the divergence, each component is differentiated along its own direction. The x component, x sine y, differentiated with respect to x, gives sine y. The y component, cosine y, differentiated with respect to y, gives minus sine y.

And the z component, x y, does not contain z at all, so its derivative is zero. Add them: sine y minus sine y plus zero. The divergence is zero, at every point. Take a moment to notice what that means. Around every point, as much flows in as flows out. A field like this is called incompressible, like water, which can't be squeezed. Now the curl of the same field. Put the field into the bottom row of the determinant. The curl needs the other six derivatives: each component,

differentiated along the two directions that are not its own. The x component, x sine y: with respect to y, x cosine y; with respect to z, zero. The y component, cosine y, depends on y only, so both are zero. And the z component, x y: with respect to x, y; with respect to y, x. Pause the video, and put these six numbers into the three brackets of the curl.

The i hat bracket is the derivative of V z with respect to y, minus that of V y with respect to z: x minus zero. The j hat bracket: zero minus y. The k hat bracket: zero minus x cosine y. So the curl is x i hat, minus y j hat, minus x cosine y k hat. Not zero: this field turns, and how strongly, and about which axis, changes from point to point. Now two simple flows, so that we can watch. The first flow, A, is x i hat plus y j hat.

At every point it is the position itself: it points straight away from the origin, and gets stronger further out. Its divergence is one plus one, two. Positive everywhere: every point is a little source. And its curl is zero. Drop a paddle wheel in, and it is carried along without turning. The second flow, B, is minus y i hat plus x j hat. Its arrows go round in circles. Pause the video, and find its divergence and its curl.

B x does not depend on x, and B y does not depend on y, so the divergence is zero: nothing is created anywhere. In two dimensions only the k hat part of the curl survives: one, minus minus one, so two k hat. Drop a paddle wheel in at the centre, and it turns. Now a surprise. Put a second wheel far from the centre. It turns too, and at exactly the same rate. The curl is two k hat at every point, not only where the circles are centred. Now add the two flows.

Many people expect a flow to do one thing or the other: spread out from a point, or turn around it. Not both. Add the two flows together, component by component. Del is made of derivatives, and the derivative of a sum is the sum of the derivatives. So the divergence of the sum is two plus zero, two, and its curl is zero plus two k hat. Watch it. The flow spirals outward. It spreads, and it turns, at the same time. Drop in a paddle wheel, and it turns. So the belief is false.

Divergence and curl measure two different things, and a flow can have both, like the water in the drain. Divergence detects sources and sinks. Curl detects turning. Each is blind to the other. One more, from mechanics: a turning body. A wheel, or any rigid body, turns about the z axis with angular velocity omega. Every point moves with the velocity omega cross r: faster the further it is from the axis. Working out the cross product gives minus omega y i hat, plus omega x j hat.

What is the curl of this velocity field? Put it into the determinant. Nothing depends on z, and the z component is zero, so the i hat and j hat terms vanish. The k hat term is the derivative of omega x with respect to x, minus that of minus omega y with respect to y. That's omega plus omega: two omega k hat. The curl of the velocity is twice the angular velocity. Look at the little wheel glued to the body. It turns once for every turn of the body, so it spins at omega, half the curl.

That's the rule in general: a small paddle wheel spins at half the curl. And with omega equal to one, this is exactly the second flow we watched. Let's sum up. The divergence detects sources and sinks, and a field with zero divergence is incompressible. The curl detects turning: a small paddle wheel turns at half of it. One flow can do both, like a spiral. And for a rigid rotation, the curl is twice the angular velocity.

In part three, we apply del twice, and meet the Laplacian, the most important operator in physics. Here is the map of a hill, with its gradient arrows pointing uphill. The gradient is itself a vector field, so we can ask the next question: what is its divergence? Near the top, do the arrows spread out, or gather in? Make a guess before we work it out. Lecture eighteen, part three: the Laplacian, and the vector identities. Now let del act twice in a row. Take the gradient of phi, then dot del into it. Each part of del meets the matching slope: the x derivative of the x slope, and so on. So we get the sum of the three second derivatives. This is called the Laplacian of phi, and it's written del squared phi. But what does it measure? Look at one variable first. Take a point on a curve, and its two neighbours, a small step h to either side.

Their average sits a little above the point, and the gap is about half of h squared times the second derivative. So the second derivative compares a point with its neighbours. Positive: the point sits below their average, in a dip. Negative: above it, on a bump. The Laplacian does this in all three directions at once. That's why it rules heat: a cold spot, below its neighbours, warms up. Now back to the hill from the start. Its top is higher than every point around it: a bump. So the Laplacian there is negative, and the divergence of the gradient is negative: the uphill arrows gather in toward the top. Was that your guess? An example, step by step. First the three slopes, one variable at a time, holding the others fixed. There's no z anywhere in f, so its z slope is zero. Pause the video, and differentiate each one once more, in its own variable.

Differentiate each slope once more, in its own variable. The z slope was zero, and it stays zero. Add them. The six x and the minus six x cancel, and the Laplacian is six y. A quick check, piece by piece. The first two terms together have a Laplacian of six x minus six x, which is zero: their curvatures in x and in y cancel exactly. All that's left is y cubed, whose Laplacian is six y. And a classic mistake: del squared f does not mean the square of the gradient. It adds second derivatives.

It does not square first derivatives. There are a few rules for del worth knowing by heart. Del is made of derivatives, so the rules of derivatives carry over. The gradient of a sum is the sum of the gradients, constants come out, and a product follows the product rule. Then two identities that look like magic. The divergence of any curl is zero. And the curl of any gradient is zero. We'll prove both in a moment. Next, product rules: a scalar times a vector field.

Del hits the scalar, then the field, and the two pieces add. The divergence of a cross product has a minus sign, from swapping the order of the cross product. And the curl of a curl: the gradient of the divergence, minus the Laplacian of the field, which means the Laplacian of each component. Keep an eye on this one. At the end of this lecture, it turns Maxwell's equations into a wave. Why is the curl of a gradient always zero? Look at the k hat part of the curl, with the gradient's components put in. The x derivative of the y slope, minus the y derivative of the x slope. Those are the same mixed derivative, taken in the two orders, and for smooth functions the order does not matter. So they cancel. The other two parts cancel the same way. Picture it: the gradient of a hill. Water running straight downhill doesn't swirl. A field that is a gradient never turns a paddle wheel. Now it's your turn.

Pause the video, and show that the divergence of a curl is zero. Dot del into the three parts of the curl. Six second derivatives appear, and they come in pairs: the x derivative of the y slope of A z, and the y derivative of the x slope of A z, with opposite signs. Every pair cancels. So a field that is a curl has no sources and no sinks. Its lines never start or end. They close on themselves, like circles. Hold on to that picture. It's exactly what magnetic field lines do. One more trap, from the product rule.

Don't pull a field phi out of a divergence as if it were just a number. Del differentiates it too. Let's sum up. The Laplacian is the divergence of the gradient, the sum of the second derivatives, and it compares a point with its neighbours. The curl of a gradient and the divergence of a curl are always zero. And the curl of a curl is the gradient of the divergence, minus the Laplacian. In part four, we write all of these in cylindrical and spherical coordinates.

Here's the electric field of a point charge, written in x, y and z. Imagine taking its divergence in this form: a quotient rule for every term. Now the same field in spherical coordinates: straight out, falling off as one over r squared. One term. If only del could speak spherical. Lecture eighteen, part four: the operators in curvilinear coordinates. Let's describe any coordinate system at once. Any three numbers, u one, u two and u three, that fix a point can serve as coordinates, as long as x, y and z can be computed from them. At each point, a unit vector runs along each coordinate line, the direction in which only that coordinate changes. Orthogonal means these three are at right angles, everywhere. Spherical coordinates are an example: r hat, theta hat and phi hat.

A vector field is written with these unit vectors, with components A one, A two, A three. Here's the key idea. Change one coordinate a little. How far does the point move? Not d u, in general: an angle is not a length. It moves h times d u, where h, the scale factor, is the length of the derivative of the position with respect to that coordinate. So a small step is h one d u one along u one hat, plus the same for the other two. Let's find them for the systems we use.

Cylindrical coordinates first. The position is rho cosine phi i hat, plus rho sine phi j hat, plus z k hat. Differentiate with respect to phi, and take the length. Sine squared plus cosine squared is one, so the scale factor of phi is rho. Turning by d phi moves the point rho d phi, an arc of radius rho. In Cartesian coordinates every step is already a length: all three scale factors are one. For cylindrical coordinates, look at the small element: its sides are d rho, rho d phi, and d z. Each side is a scale factor times a small change: one, rho, and one. In spherical coordinates, the sides are d r, r d theta down the meridian, and r sine theta d phi around the circle of latitude. So the scale factors are one, r, and r sine theta. Now the operators, one at a time. First the gradient.

The gradient is the rate of change per unit length in each direction. A small change in u one changes f by the derivative times d u one, but the point moves h one d u one. So the rate per length is one over h one times the derivative. The same for the other two. With cylindrical coordinates, the scale factors are one, rho and one. Only the phi term changes: it gets one over rho. In spherical coordinates: one, one over r, and one over r sine theta. The classic slip is to forget the one over rho.

The derivative with respect to phi is a change per radian, not per metre, and a gradient must be per metre. Next, the divergence. The divergence is outflow per volume. The flow through a face is the field times the face's area, and the area of the face across u one is h two h three times the small changes. So each term differentiates the field times the other two scale factors, and we divide by the volume, h one h two h three. Cylindrical: the product of the scale factors is rho.

Put in one, rho, one, and simplify. Pause the video, and try the spherical divergence. The product of the scale factors is r squared sine theta. Spherical: across r, the face has h two h three, r squared sine theta. Across theta, r sine theta. Across phi, r. Then cancel what does not depend on the variable being differentiated. Now the payoff. The point charge's field has only a radial component, one over r squared. Times r squared, that's one, and its derivative is zero. Away from the charge, the field has no divergence at all. What spreads out is only thinning, not being created. And a warning.

Arrows of length one pointing straight out from an axis look constant, so you might guess zero divergence. But they spread apart, and the formula gives one over rho. The curl keeps its determinant. The curl is still a determinant, with scale factors: each unit vector and each component carries its own h, and the whole thing is divided by h one h two h three. In cylindrical coordinates, rho goes with phi hat and with A phi. Its k hat part, for example, is one over rho times the rho derivative of rho A phi, minus the phi derivative of A rho. And in spherical coordinates, with r and r sine theta, and one over r squared sine theta in front. And the Laplacian, the divergence of the gradient. Put the gradient's components, one over h times the derivative, into the divergence. Each term picks up the other two scale factors, over its own. Cylindrical: put in one, rho, one.

And simplify: one over rho times the rho derivative of rho times the rho slope, plus one over rho squared times the second phi derivative, plus the second z derivative. The same steps in spherical coordinates give this. It's the form of the Laplacian that waves spreading from a point, and the hydrogen atom, are written in. Here is all of it in one place, cylindrical first. The scale factors, and then the gradient, the divergence and the Laplacian.

Rho, phi and theta keep their colours from the pictures. And spherical. The same four rows. Keep both cards: you'll use them whenever a problem has an axis or a centre. Let's sum up. In any coordinates, a small change of a coordinate moves the point a scale factor times that change. Cylindrical coordinates have scale factors one, rho and one; spherical, one, r and r sine theta. They enter every operator, and with them the point charge's field has no divergence away from the charge.

In part five, the four equations of electricity and magnetism, written in the language of divergence and curl. Charges sit in one region of space, and currents flow through it. Far away, at another point, there is an electric field and a magnetic field. Move the charges, and the fields over there change. What are the rules that connect them? Lecture eighteen, part five: Maxwell's equations. Here are the rules. The sources are the charge density, rho f, and the current density, J f, at source points r prime. The fields are the electric field, E, and the magnetic field, B, at field points r. All of them can change with time. First, the divergence of the electric field is the charge density divided by epsilon naught. Second, the divergence of the magnetic field is zero. Third,

the curl of the electric field is minus the rate of change of the magnetic field. And fourth, 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. Epsilon naught and mu naught are two constants, measured long ago with charges and magnets on a laboratory bench. Remember them. They come back at the end. Pause the video. Which of the four says that there are no magnetic charges?

The second. A divergence measures sources, and the magnetic field has none, anywhere. Let's read the two divergences first. Gauss's law says the outflow of the electric field from a point is the charge there. Positive charges are sources: field lines start on them. Negative charges are sinks: lines end on them. Away from the charge the outflow is zero: the field lines only thin out as they spread, just as the one over r squared field showed.

One warning: this rho is a charge per volume, not the distance from an axis. That's why it carries the little f, for free charge. The magnetic field has no divergence at all. There is no magnetic charge for its lines to start or end on. Around a wire carrying a current toward you, they run in circles. Cut a magnet in half, and you get two magnets, each with a north and a south pole. Never a lone north pole. The lines always close on themselves, just like the lines of a curl.

Now the two curls, which make fields circulate. Faraday's law. Here a magnetic field points toward you, the blue dots, and it is growing. The changing magnetic field makes the electric field circulate around it. The minus sign sets the direction: the circulation opposes the change. That's induction. It's how every generator and transformer works, and how a phone charges without a wire. Here's what most of us believe: a magnetic field needs something to make it, a current or a magnet.

The Ampere Maxwell law. Its first term says a current makes the magnetic field circulate around it, as around our wire. But look at the second term, the one Maxwell added. Even with no current at all, an electric field that changes in time makes the magnetic field circulate. So the belief is false. A changing electric field is enough. Now put the two curls side by side. A changing magnetic field makes an electric field. A changing electric field makes a magnetic field.

Each can keep the other going, with no charges and no currents at all. What would that look like? Let's sum up. The divergence of the electric field is the charge density over epsilon naught. The magnetic field has no divergence: no magnetic charges, and its lines close. And the two curls: a changing magnetic field makes the electric field circulate, and currents, and changing electric fields, make the magnetic field circulate.

In part six, the last one, we take away every charge and current, and a wave appears, travelling at the speed of light. Every wave you know travels in something. Sound in air, ripples in water, a pulse on a string. So, the belief goes, light must travel in something too. But between the Sun and the Earth there is nothing: no air, no charges, no currents. Can Maxwell's equations still allow any fields there at all? Make a guess, and keep it in mind.

Lecture eighteen, part six: the wave equation of light. Start by emptying space. Take away every charge and every current. The charge density and the current density are zero. Maxwell's equations become beautifully symmetric. Neither field has any divergence. And each field's curl is the rate of change of the other. Two unknown fields, tangled together. Our goal is an equation for the electric field alone. Here's the plan: take the curl of Faraday's law. Step one.

Take the curl of both sides of Faraday's law. On the right, the curl only looks at space and the time derivative only at time, so they can change places. What appears is the curl of B. Step two. The Ampere Maxwell law tells us the curl of B. Put it in. B is gone, and the electric field is differentiated twice in time. Bring everything to one side. Pause the video. Use the curl of a curl identity, and the fact that the divergence of E is zero in empty space.

Step three. The curl of a curl is the gradient of the divergence, minus the Laplacian. But in empty space the divergence of E is zero, so the first term is gone. What's left is an equation for the electric field alone. The Laplacian of E, how it curves in space, is a constant times how it curves in time. That is a wave equation. Start from the curl of the Ampere Maxwell law instead, and the same steps give the same wave equation for the magnetic field. A wave equation hides a speed.

Let's read it off. Compare with the simplest wave there is: a pulse on a string. Its equation has the same shape, with one over v squared in front of the time derivative. Why is v a speed? Any shape, f of x minus v t, solves it. Differentiating twice in x gives f double prime; twice in t gives v squared times f double prime. And f of x minus v t is the same shape, sliding to the right at speed v. So our electric field travels as a wave, and one over its speed squared is mu naught epsilon naught.

The speed is one over the square root of mu naught epsilon naught. Now the two constants, measured on a bench with magnets and with charges. Pause the video, and work out the speed. Three point zero zero times ten to the eight metres per second. That is exactly the measured speed of light. Take a moment to notice what just happened. Two numbers from experiments on electricity and on magnetism, combined, give the speed of light. So mu naught epsilon naught is one over c squared. So what is light? Written with c, the two wave equations say it plainly. Light is an electromagnetic wave. The electric field and the magnetic field oscillate at right angles to each other,

and to the direction of travel. The changing electric field makes the magnetic field, and the changing magnetic field makes the electric field. Nothing else is needed. Remember the belief we started with? False, for light. Its fields carry each other across empty space. That is how sunlight reaches us. Light from a small source spreads out in spheres, so its Laplacian is best written in spherical form. From a long wire, like an antenna, the fronts are cylinders: cylindrical form. And far away, a small piece of any front is nearly flat: a plane wave, like the one we just watched. And the same Laplacian runs quantum mechanics. In the Schrödinger equation it gives the energy of motion of the wave function psi, and for the electron of a hydrogen atom it's written in spherical coordinates.

Let's look back at the whole lecture. We asked how four short equations could predict light. Del, with its gradient, divergence and curl, let us read them. In empty space they give a wave equation for the electric and magnetic fields, and its speed, one over the square root of mu naught epsilon naught, is the speed of light. Light is an electromagnetic wave. In the next lecture, we integrate fields along curves and over surfaces, and meet the great theorems of Gauss and Stokes. The whole playlist is linked below.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent