---
title: "Electromagnetic waves and Maxwell’s equations | Sandbox Physics"
description: "Use Maxwell’s equations to connect the electric field, magnetic field and energy flow in a plane wave. Then predict what a polarizer transmits."
canonical_url: "https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-waves/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/electricity-and-magnetism/electromagnetic-waves/"
last_modified: "2026-11-24"
---

[Volume 3 · Electricity, Magnetism and Circuits](https://sandboxphysics.com/learn/electricity-and-magnetism/)

# How do electric and magnetic fields travel as a wave?

Use Maxwell’s equations to connect the electric field, magnetic field and energy flow in a plane wave. Then predict what a polarizer transmits.

Before you start: [Chapter 1](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-fields-and-flux/), [Chapter 4](https://sandboxphysics.com/learn/electricity-and-magnetism/magnetic-force-and-hall-effect/) and [Chapter 5](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-induction/) on flux, magnetic fields and induction. [Volume 2 Chapter 5](https://sandboxphysics.com/learn/oscillations-and-waves/travelling-waves/) on wave propagation and phase.

After this chapter you can: Find the directions and relative magnitudes of the two fields and compute a plane wave’s intensity and transmission through a polarizer.

In empty space, a changing magnetic field is linked to circulation of the electric field. A changing electric field is linked to circulation of the magnetic field. Together these relations allow a wave to travel through vacuum. In a plane wave, the fields oscillate across the direction of travel and carry energy along it.

Chapters 1, 4 and 5 introduced flux, magnetic circulation and induction. Volume 2, Chapter 5, followed the phase of a wave along a string. Here we use those ideas to derive the speed and direction of a light wave, then see which part of its electric field passes through a polarizer.

## 7.1 Maxwell adds electric flux change to the magnetic circulation law

Take the fixed closed boundary of a volume, $\partial V$, with outward area element $\mathrm d\mathbf A=\hat{\mathbf n}\,\mathrm dA$. The net electric flux gives the charge $Q_{\mathrm{enc}}$ inside. The net magnetic flux through any such surface is zero. Magnetic field lines that enter a closed surface also leave it.

$$
\begin{aligned}
\oint_{\partial V}\mathbf E\cdot\mathrm d\mathbf A
&=\frac{Q_{\mathrm{enc}}}{\varepsilon_0},\\
\oint_{\partial V}\mathbf B\cdot\mathrm d\mathbf A&=0.
\end{aligned}
$$

Now take a fixed loop $C$ bounding an open surface. Choose the loop direction by the right-hand rule from that surface's normal. Let $\Phi_E$ and $\Phi_B$ be the electric and magnetic flux through the open surface. Let $I_{\mathrm{through}}$ be the signed current crossing it, positive along the normal. Maxwell's two circulation laws are

$$
\begin{aligned}
\oint_C\mathbf E\cdot\mathrm d\boldsymbol\ell
&=-\frac{\mathrm d\Phi_B}{\mathrm dt},\\
\oint_C\mathbf B\cdot\mathrm d\boldsymbol\ell
&=\mu_0 I_{\mathrm{through}}
+\mu_0\varepsilon_0\frac{\mathrm d\Phi_E}{\mathrm dt}.
\end{aligned}
$$

The constants $\varepsilon_0$ and $\mu_0$ are the vacuum permittivity and permeability. The electric circulation law is Faraday induction for a fixed loop. The magnetic circulation law includes the change of electric flux as well as the current of charges.

Picture a wire charging a parallel-plate capacitor. One surface spanning a loop around the wire cuts the wire. Another can bulge between the plates and miss the wire. In the ideal parallel-plate limit with a negligible edge field, the gap has electric flux $Q/\varepsilon_0$ oriented consistently with the charging current. Its contribution $\varepsilon_0\,\mathrm d\Phi_E/\mathrm dt=\mathrm dQ/\mathrm dt$ matches the wire current. Both surfaces give the same magnetic circulation. This extra term is called displacement current. The capacitor gap can have it even in vacuum. [OpenStax, University Physics Volume 2, Section 16.1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves).

## 7.2 In vacuum the two circulation laws give a wave equation

Use right-handed axes. Consider a field that varies only in position $x$ and time $t$, with electric component $E_y$ and magnetic component $B_z$. Take a narrow rectangle in the $xy$ plane with normal along positive $z$. Its sides parallel to $y$ contribute the difference of electric fields at two nearby positions. Dividing circulation by its area and shrinking the rectangle gives the local slope of the transverse electric field. For a rectangle in the $xz$ plane with normal along positive $y$, the corresponding magnetic circulation per area has the opposite slope sign. In vacuum without charges or conduction currents, the two laws become

$$
\begin{aligned}
\frac{\partial E_y}{\partial x}&=-\frac{\partial B_z}{\partial t},\\
-\frac{\partial B_z}{\partial x}&=\mu_0\varepsilon_0
\frac{\partial E_y}{\partial t}.
\end{aligned}
$$

Differentiate the first equation in position. Use the second to replace the position derivative of the magnetic field before taking its time derivative. For smooth fields this yields

$$
\frac{\partial^2 E_y}{\partial t^2}
=\frac{1}{\mu_0\varepsilon_0}
\frac{\partial^2 E_y}{\partial x^2}.
$$

This has the same form as the string wave equation from Volume 2. A travelling pattern depends on $x-ct$ or $x+ct$, where $c=1/\sqrt{\mu_0\varepsilon_0}$. Substituting either pattern into the equation gives the coefficient $c^2$ in front of its second spatial derivative. The speed is about $3.00\times10^8\,\mathrm{m\,s^{-1}}$, the speed of light in vacuum. [OpenStax, University Physics Volume 2, Section 16.2](https://openstax.org/books/university-physics-volume-2/pages/16-2-plane-electromagnetic-waves).

## 7.3 For one plane wave the fields are in phase and perpendicular

Let the wave travel along positive $x$. A sinusoid with phase $kx-\omega t$ has wavenumber $k=2\pi/\lambda$ and angular frequency $\omega=2\pi f$, where $\lambda$ is wavelength and $f$ is frequency. Substitute its electric field into the first local circulation law. The position derivative has a sine with factor $-k$. The negative time derivative of the matching magnetic field gives the same sine with factor $-\omega$. The two fields are in phase and their amplitudes have ratio $E_0/B_0=\omega/k=c$.

$$
\begin{aligned}
\mathbf E&=\hat{\mathbf y}E_0\cos(kx-\omega t),\\
\mathbf B&=\hat{\mathbf z}\frac{E_0}{c}\cos(kx-\omega t).
\end{aligned}
$$

The fields reverse together each half cycle. When the electric field points along positive $y$, the magnetic field points along positive $z$. When both point the other way, their cross product still points along positive $x$.

For $\lambda=3.00\,\mathrm m$ and $E_0=30.0\,\mathrm{V\,m^{-1}}$, the frequency is about $99.9\,\mathrm{MHz}$ and the magnetic amplitude is about $100\,\mathrm{nT}$. The field panels in Figure 7.1 show how the two amplitudes have different units while their zeros and extrema occur at the same positions.

**Figure 7.1** An analytic snapshot of a plane wave in vacuum. The transverse electric field is parallel to the y-axis and the magnetic field is parallel to the z-axis. The positive x-axis is the direction of travel.

## 7.4 The fields carry energy along the direction of travel

The vacuum field energy density $u$ is energy per volume. Its electric and magnetic contributions are $\tfrac12\varepsilon_0|\mathbf E|^2$ and $|\mathbf B|^2/(2\mu_0)$. For this plane wave the two contributions are equal at each position and time. The Poynting vector $\mathbf S$ gives energy crossing unit area per second, in watts per square metre.

$$
\begin{aligned}
u&=\tfrac12\varepsilon_0|\mathbf E|^2
+\frac{|\mathbf B|^2}{2\mu_0},\\
\mathbf S&=\frac{\mathbf E\times\mathbf B}{\mu_0}.
\end{aligned}
$$

Differentiate the two energy terms in time and replace the time derivatives using the local circulation laws. The two terms combine by the product rule to give $\partial u/\partial t=-\partial S_x/\partial x$. Energy in a small slab increases when more field energy enters on one side than leaves through the other. For a wave travelling along positive $x$, $S_x=cu$. The flux falls to zero where both fields cross zero and is otherwise positive through a surface with normal along the wave direction.

In the example of Section 7.3 the instantaneous flux peaks at about $2.39\,\mathrm{W\,m^{-2}}$. It follows a cosine squared, so its average over a period is about $1.19\,\mathrm{W\,m^{-2}}$. An ideal absorber facing the wave receives that much average power per square metre. [OpenStax, University Physics Volume 2, Section 16.3](https://openstax.org/books/university-physics-volume-2/pages/16-3-energy-carried-by-electromagnetic-waves).

## 7.5 A polarizer tests the orientation of the electric field

At a fixed point in Figure 7.1, the electric field oscillates along one line. That is linear polarization. Adding a second transverse component with equal amplitude and a quarter-cycle phase difference makes the electric vector rotate with constant length. That is circular polarization. A linear polarizer passes the component along its transmission axis.

For linearly polarized input and an ideal analyzer tilted by angle $\alpha$ from the input direction, the signed projection of the field onto the transmission axis multiplies its amplitude by $\cos\alpha$. Power is proportional to amplitude squared, giving Malus's law for transmitted power $I_D$ relative to incident power $I_0$.

$$
\frac{I_D}{I_0}=\cos^2\alpha .
$$

Open [Polarization State Explorer](https://sandboxphysics.com/labs/polarization-state-explorer/) with its default input and choose **Single analyzer**. Move the **Final analyzer transmission axis** through $0^\circ$, $45^\circ$ and $90^\circ$. Record the transmitted fraction at each angle. Then set the ellipticity angle to $45^\circ$ to make the fully polarized input circular, and repeat the same analyzer settings. Each orientation now transmits half on average because the electric vector sweeps through all directions in the transverse plane.

**Table 7.1** Simulated optical power fractions in single-analyzer mode with fully polarized input. The optical model calculates the transmitted fraction from the electric polarization state.

| Analyzer angle | Linear input | Circular input |
| --- | --- | --- |
| 0° | 1.0000 | 0.5000 |
| 45° | 0.5000 | 0.5000 |
| 90° | 0.0000 | 0.5000 |

This Lab uses normalized incident power and ideal linear polarizers. Its fractions test the electric-field projection. The magnetic amplitude and absolute energy flux in Sections 7.3 and 7.4 come from the vacuum wave calculation. [OpenStax, University Physics Volume 3, Section 1.7](https://openstax.org/books/university-physics-volume-3/pages/1-7-polarization).

## 7.6 Exercises

1. A wire charges a parallel-plate capacitor at $2.0\,\mathrm{\mu A}$. In the ideal capacitor limit, what is the displacement current through the gap? Why must the two values agree?
2. A vacuum plane wave travels along positive $x$. At an instant its electric field points along positive $z$. Which way does the magnetic field point?
3. At the instant shown in Figure 7.1, compare the fields and energy flow at $x=0$ and $x=1.50\,\mathrm m$. Explain the sign of the energy flow at both locations.
4. A vacuum plane wave has electric amplitude $E_0=6.0\,\mathrm{V\,m^{-1}}$. Find its magnetic amplitude and cycle-averaged energy flux.
5. Keeping the wavelength fixed, double the electric amplitude of a vacuum plane wave. What happens to the magnetic amplitude and the average energy flux?
6. Set a linear analyzer at $60^\circ$ to linearly polarized input. What fraction of the incident power passes an ideal polarizer? What fraction passes for circular input?
7. A flat detector of area $0.020\,\mathrm{m^2}$ faces the wave in Section 7.3 at normal incidence. How much average power crosses it? What if its normal is tilted by $60^\circ$ to the propagation direction?
8. Two equal plane waves travel in opposite directions. At a point and time their electric fields both point along positive $y$ and have the same magnitude. How do their magnetic fields add at that point? What is the instantaneous total energy flux there?

## 7.7 Answers and explanations

Exercise 1

The displacement current is $2.0\,\mathrm{\mu A}$. The rate at which plate charge builds up sets the rate of change of electric flux across the gap. The two spanning surfaces must give the same circulation around their common boundary.

Exercise 2

The magnetic field points along negative $y$. With the electric field along positive $z$, this makes $\mathbf E\times\mathbf B$ point along positive $x$, the direction of propagation.

Exercise 3

Both components have positive extrema at the origin and negative extrema at half a wavelength. The cross product points forward at both places. Its magnitude is the same because the magnitudes of the two factors are unchanged.

Exercise 4

Use $B_0=E_0/c$ to get about $20\,\mathrm{nT}$. The average power per area is $E_0^2/(2\mu_0 c)$, about $0.048\,\mathrm{W\,m^{-2}}$. The factor of one half comes from averaging the squared sinusoid.

Exercise 5

The magnetic amplitude also doubles because the ratio of amplitudes is fixed by the vacuum wave speed. The energy flux grows by a factor of four because it is a product of the two fields.

Exercise 6

The linear fraction is $\cos^2 60^\circ=1/4$. Circular input has no preferred axis in the transverse plane. An ideal linear analyzer passes half of its power at any angle.

Exercise 7

The normal-incidence result is the wave's average flux times area, about $0.0239\,\mathrm W$. Tilting reduces the projected area by $\cos60^\circ=1/2$, so about $0.0119\,\mathrm W$ crosses.

Exercise 8

The two magnetic fields point opposite ways because the energy directions of the separate waves are opposite. Their equal magnitudes cancel. The total Poynting vector is zero there at that instant, since the total magnetic field is zero.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[Polarization State Explorer → Rotate polarizers on a bench to see Malus’s law and the third-polarizer effect, then measure Stokes parameters from counts and see when the handedness becomes ambiguous.](https://sandboxphysics.com/labs/polarization-state-explorer/)

## Sources and reading scope

1. [OpenStax, University Physics Volume 2, §16.1 Maxwell’s Equations and Electromagnetic Waves](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)

   The section summarizes the four equations and uses a charging capacitor to derive the displacement-current term.

2. [OpenStax, University Physics Volume 2, §16.2 Plane Electromagnetic Waves](https://openstax.org/books/university-physics-volume-2/pages/16-2-plane-electromagnetic-waves)

   For a plane wave in vacuum the section derives the wave speed, the ratio of field magnitudes, and the direction of each field.

3. [OpenStax, University Physics Volume 2, §16.3 Energy Carried by Electromagnetic Waves](https://openstax.org/books/university-physics-volume-2/pages/16-3-energy-carried-by-electromagnetic-waves)

   The Poynting vector gives the direction and rate of energy flow. Averaging its magnitude over a cycle gives the intensity of a sinusoidal plane wave.

4. [OpenStax, University Physics Volume 3, §1.7 Polarization](https://openstax.org/books/university-physics-volume-3/pages/1-7-polarization)

   The section explains polarization through the direction of the electric field and relates the angle of a linear analyzer to the transmitted intensity.

[← Chapter 6 · How do capacitors and inductors respond to a changing voltage?](https://sandboxphysics.com/learn/electricity-and-magnetism/transients-and-ac-impedance/)

Chapters in this volume

- [1. How do charges interact through an electric field?](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-fields-and-flux/)
- [2. How does electric potential reveal the electric field?](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-potential-and-capacitance/)
- [3. How do currents divide at junctions and around loops?](https://sandboxphysics.com/learn/electricity-and-magnetism/direct-current-circuits/)
- [4. Why does a magnetic field bend a moving charge?](https://sandboxphysics.com/learn/electricity-and-magnetism/magnetic-force-and-hall-effect/)
- [5. Why does changing magnetic flux produce an emf?](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-induction/)
- [6. How do capacitors and inductors respond to a changing voltage?](https://sandboxphysics.com/learn/electricity-and-magnetism/transients-and-ac-impedance/)
- [7. How do electric and magnetic fields travel as a wave?](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-waves/)

## Keep reading

Interactive Physics Textbook · Reading path

### Electricity, Magnetism and Circuits

1. [Article **How do charges interact through an electric field?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-fields-and-flux/)
2. [Article **How does electric potential reveal the electric field?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electric-potential-and-capacitance/)
3. [Article **How do currents divide at junctions and around loops?**](https://sandboxphysics.com/learn/electricity-and-magnetism/direct-current-circuits/)
4. [Article **Why does a magnetic field bend a moving charge?**](https://sandboxphysics.com/learn/electricity-and-magnetism/magnetic-force-and-hall-effect/)
5. [Article **Why does changing magnetic flux produce an emf?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-induction/)
6. [Article **How do capacitors and inductors respond to a changing voltage?**](https://sandboxphysics.com/learn/electricity-and-magnetism/transients-and-ac-impedance/)
7. [You are here **How do electric and magnetic fields travel as a wave?**](https://sandboxphysics.com/learn/electricity-and-magnetism/electromagnetic-waves/)
