Skip to main content
Physics LibreTexts

7.2: Maxwell’s Equations and Electromagnetic Waves

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives

    By the end of this section, you will be able to:

    • Explain Maxwell’s correction of Ampère’s law by including the displacement current
    • State and apply Maxwell’s equations in integral form
    • Describe how the symmetry between changing electric and changing magnetic fields explains Maxwell’s prediction of electromagnetic waves
    • Describe how Hertz confirmed Maxwell’s prediction of electromagnetic waves

    James Clerk Maxwell (1831–1879) was one of the major contributors to physics in the nineteenth century (Figure \(\PageIndex{1}\)). Although he died young, he made major contributions to the development of the kinetic theory of gases, to the understanding of color vision, and to the nature of Saturn’s rings. He is probably best known for having combined existing knowledge of the laws of electricity and of magnetism with insights of his own into a complete overarching electromagnetic theory, represented by Maxwell’s equations.

    Photograph of James Clerk Maxwell.
    Figure \(\PageIndex{1}\): James Clerk Maxwell, a nineteenth-century physicist, developed a theory that explained the relationship between electricity and magnetism, and correctly predicted that visible light consists of electromagnetic waves.

    Maxwell’s Correction to the Laws of Electricity and Magnetism

    The four basic laws of electricity and magnetism had been discovered experimentally through the work of physicists such as Oersted, Coulomb, Gauss, and Faraday. Maxwell discovered logical inconsistencies in these earlier results and identified the incompleteness of Ampère’s law as their cause.

    Recall that according to Ampère’s law, the integral of the magnetic field around a closed loop C is proportional to the current I passing through any surface whose boundary is loop C itself:

    \[\oint \vec{B} \cdot d\vec{s} = \mu_0 I. \label{Eq1}\]

    There are infinitely many surfaces that can be attached to any loop, and Ampère’s law stated in Equation \ref{Eq1} is independent of the choice of surface.

    Consider the set-up in Figure \(\PageIndex{2}\). A source of emf is abruptly connected across a parallel-plate capacitor so that a time-dependent current I develops in the wire. Suppose we apply Ampère’s law to loop C shown at a time before the capacitor is fully charged, so that \( I \neq 0\). Surface \(S_1\) gives a nonzero value for the enclosed current I, whereas surface \(S_2\) gives zero for the enclosed current because no current passes through it:

    \[\underbrace{\oint_C \vec{B} \cdot d\vec{s} = \mu_0 I}_{\text{if surface } S_1 \text{is used}}\]

    \[\underbrace{ \, =0 }_{\text{if surface } S_2 \text{is used}}\]

    Clearly, Ampère’s law in its usual form does not work here. This may not be surprising, because Ampère’s law as applied in earlier chapters required a steady current, whereas the current in this experiment is changing with time and is not steady at all.

    Figure shows a wire connected to a plate of a parallel plate capacitor. A current I passes through it in the downward direction. The wire also passes through the flat surface of a cylinder at the top of the capacitor. This surface is labeled S1 and its circular boundary is labeled C. An arrow B is shown tangential to C. The sides of the cylinder taper downward and inward. This surface is labeled S2. Field lines labeled vector E are shown between two plates of the capacitor, pointing down.
    Figure \(\PageIndex{2}\): The currents through surface \(S_1\) and surface \(S_2\) are unequal, despite having the same boundary loop C.

    How can Ampère’s law be modified so that it works in all situations? Maxwell suggested including an additional contribution, called the displacement current \(I_d\), to the real current I,

    \[\boxed{\oint_S \vec{B} \cdot d\vec{s} = \mu_0 (I + I_d)} \label{EQ4}\]

    where the displacement current is defined to be

    \[\boxed{I_d = \epsilon_0 \dfrac{d\Phi_E}{dt}.} \label{EQ5}\]

    Here \(\epsilon_0\) is the permittivity of free space and \(\Phi_E\) is the electric flux, defined as

    \[\Phi_E = \iint_{Surface \, S} \vec{E} \cdot d\vec{A}.\]

    The displacement current is analogous to a real current in Ampère’s law, entering into Ampère’s law in the same way. It is produced, however, by a changing electric field. It accounts for a changing electric field producing a magnetic field, just as a real current does, but the displacement current can produce a magnetic field even where no real current is present. When this extra term is included, the modified Ampère’s law equation becomes

    \[\oint_C \vec{B} \cdot d\vec{s} = \mu_0 I + \epsilon_0 \mu_0 \dfrac{d\Phi_E}{dt}\]

    and is independent of the surface S through which the current I is measured.

    We can now examine this modified version of Ampère’s law to confirm that it holds independent of whether the surface \(S_1\) or the surface \(S_2\) in Figure \(\PageIndex{2}\) is chosen. The electric field \(\vec{E}\) corresponding to the flux \(\Phi_E\) in Equation \ref{EQ5} is between the capacitor plates. Therefore, the \(\vec{E}\) field and the displacement current through the surface \(S_1\) are both zero, and Equation \ref{EQ4} takes the form

    \[\oint_C \vec{B} \cdot d\vec{s} = \mu_0 I. \label{16.5}\]

    We must now show that for surface \(S_2\), through which no actual current flows, the displacement current leads to the same value \(\mu_0 I\) for the right side of the Ampère’s law equation. For surface \(S_2\) the equation becomes

    \[\oint_C \vec{B} \cdot d\vec{s} = \mu_0 \dfrac{d}{dt} \left[ \epsilon_0 \iint_{Surface \, S_2} \vec{E} \cdot d\vec{A} \right].\]

    Gauss’s law for electric charge requires a closed surface and cannot ordinarily be applied to a surface like \(S_1\) alone or \(S_2\) alone. But the two surfaces \(S_1\) and \(S_2\) form a closed surface in Figure \(\PageIndex{2}\) and can be used in Gauss’s law. Because the electric field is zero on \(S_1\), the flux contribution through \(S_1\) is zero. This gives us

    \[ \begin{align} \oint_{Surface \, S_1 + S_2} \vec{E} \cdot d\vec{A} &= \iint_{Surface \, S_1} \vec{E} \cdot d\vec{A} + \iint_{Surface \, S_2} \vec{E} \cdot d\vec{A} \\[4pt] &= 0 + \iint_{Surface \, S_2} \vec{E} \cdot d\vec{A} \\[4pt] &= \iint_{Surface \, S_2} \vec{E} \cdot d\vec{A}. \end{align}\]

    Therefore, we can replace the integral over \(S_2\) in Equation \ref{16.5} with the closed Gaussian surface \(S_1 + S_2\) and apply Gauss’s law to obtain

    \[\oint_{S_1} \vec{B} \cdot d\vec{s} = \mu_0 \dfrac{dQ_{in}}{dt} = \mu_0 I.\]

    Thus, the modified Ampère’s law equation is the same using surface \(S_2\), where the right-hand side results from the displacement current, as it is for the surface \(S_1\), where the contribution comes from the actual flow of electric charge.

    Displacement current in a charging capacitor

    A parallel-plate capacitor with capacitance C whose plates have area A and separation distance d is connected to a resistor R and a battery of voltage V. The current starts to flow at \(t = 0\).

    1. Find the displacement current between the capacitor plates at time t.
    2. From the properties of the capacitor, find the corresponding real current \(I = \dfrac{dQ}{dt}\), and compare the answer to the expected current in the wires of the corresponding RC circuit.


    We can use the equations from the analysis of an RC circuit (Alternating-Current Circuits) plus Maxwell’s version of Ampère’s law.


    1. The voltage between the plates at time t is given by \[V_C = \dfrac{1}{C} Q(t) = V_0 \left(1 - e^{-t/RC}\right). \nonumber\] Let the z-axis point from the positive plate to the negative plate. Then the z-component of the electric field between the plates as a function of time t is \[E_z (t) = \dfrac{V_0}{d}\left(1 - e^{-t/RC}\right). \nonumber\] Therefore, the z-component of the displacement current \(I_d\) between the plates is \[I_d (t) = \epsilon_0 A\dfrac{\partial E_z (t)}{\partial t} = \epsilon_0 A \dfrac{V_0}{d} \times \dfrac{1}{RC} e^{-t/RC} = \dfrac{V_0}{R} e^{-t/RC}, \nonumber\] where we have used \(C = \epsilon_0 \dfrac{A}{d}\) for the capacitance.
    2. From the expression for \(V_C\) the charge on the capacitor is \[Q(t) = CV_C = CV_0 \left(1 - e^{-t/RC}\right). \nonumber\] The current into the capacitor after the circuit is closed, is therefore \[I = \dfrac{dQ}{dt} = \dfrac{V_0}{R}e^{-t/RC}. \nonumber\] This current is the same as \(I_d\) found in (a).

    Maxwell’s Equations

    With the correction for the displacement current, Maxwell’s equations take the form

    \[ \begin{align} \oint \vec{E} \cdot d\vec{A} &= \dfrac{Q_{in}}{\epsilon_0} \, (\text{Gauss's law}) \label{eq1} \\[4pt] \oint \vec{B} \cdot d\vec{A} &= 0 \, (\text{Gauss's law for magnetism}) \label{eq2} \\[4pt] \oint \vec{E} \cdot d\vec{s} &= - \dfrac{d\Phi_m}{dt} \, (\text{Faraday's law}) \label{eq3} \\[4pt] \oint \vec{B} \cdot d\vec{s} &= \mu_0 I + \epsilon_0I + \epsilon_0 \mu_0 \dfrac{d\Phi_E}{dt} (\text{Ampere-Maxwell law}). \label{eq4} \end{align}\]

    Once the fields have been calculated using these four equations, the Lorentz force equation

    \[\vec{F} = q\vec{E} + q\vec{v} \times \vec{B}\]

    gives the force that the fields exert on a particle with charge q moving with velocity \(\vec{v}\). The Lorentz force equation combines the force of the electric field and of the magnetic field on the moving charge. The magnetic and electric forces have been examined in earlier modules. These four Maxwell’s equations are, respectively:

    Maxwell's Equations

    1. Gauss’s law

    The electric flux through any closed surface is equal to the electric charge \(Q_{in}\) enclosed by the surface. Gauss’s law (Equation \ref{eq1}) describes the relation between an electric charge and the electric field it produces. This is often pictured in terms of electric field lines originating from positive charges and terminating on negative charges, and indicating the direction of the electric field at each point in space.

    2. Gauss’s law for magnetism

    The magnetic field flux through any closed surface is zero (Equation \ref{eq2}). This is equivalent to the statement that magnetic field lines are continuous, having no beginning or end. Any magnetic field line entering the region enclosed by the surface must also leave it. No magnetic monopoles, where magnetic field lines would terminate, are known to exist (see section on Magnetic Fields and Lines).

    3. Faraday’s law

    A changing magnetic field induces an electromotive force (emf) and, hence, an electric field. The direction of the emf opposes the change. Equation \ref{eq3} is Faraday’s law of induction and includes Lenz’s law. The electric field from a changing magnetic field has field lines that form closed loops, without any beginning or end.

    4. Ampère-Maxwell law

    Magnetic fields are generated by moving charges or by changing electric fields. This fourth of Maxwell’s equations, Equation \ref{eq4}, encompasses Ampère’s law and adds another source of magnetic fields, namely changing electric fields.

    Maxwell’s equations and the Lorentz force law together encompass all the laws of electricity and magnetism. The symmetry that Maxwell introduced into his mathematical framework may not be immediately apparent. Faraday’s law describes how changing magnetic fields produce electric fields. The displacement current introduced by Maxwell results instead from a changing electric field and accounts for a changing electric field producing a magnetic field. The equations for the effects of both changing electric fields and changing magnetic fields differ in form only where the absence of magnetic monopoles leads to missing terms. This symmetry between the effects of changing magnetic and electric fields is essential in explaining the nature of electromagnetic waves.

    Later application of Einstein’s theory of relativity to Maxwell’s complete and symmetric theory showed that electric and magnetic forces are not separate but are different manifestations of the same thing—the electromagnetic force. The electromagnetic force and weak nuclear force are similarly unified as the electroweak force. This unification of forces has been one motivation for attempts to unify all of the four basic forces in nature—the gravitational, electrical, strong, and weak nuclear forces (see Particle Physics and Cosmology).

    The Mechanism of Electromagnetic Wave Propagation

    To see how the symmetry introduced by Maxwell accounts for the existence of combined electric and magnetic waves that propagate through space, imagine a time-varying magnetic field \(\vec{B}_0(t)\) produced by the high-frequency alternating current seen in Figure \(\PageIndex{3}\). We represent \(\vec{B}_0(t)\) in the diagram by one of its field lines. From Faraday’s law, the changing magnetic field through a surface induces a time-varying electric field \(\vec{E}_0(t)\) at the boundary of that surface. The displacement current source for the electric field, like the Faraday’s law source for the magnetic field, produces only closed loops of field lines, because of the mathematical symmetry involved in the equations for the induced electric and induced magnetic fields. A field line representation of \(\vec{E}_0(t)\) is shown. In turn, the changing electric field \(\vec{E}_0(t)\) creates a magnetic field \(\vec{B}_1(t)\) according to the modified Ampère’s law. This changing field induces \(\vec{E}_1(t)\) which induces \(\vec{B}_2(t)\) and so on. We then have a self-continuing process that leads to the creation of time-varying electric and magnetic fields in regions farther and farther away from O. This process may be visualized as the propagation of an electromagnetic wave through space.

    Figure shows a 3 dimensional diagram. A wire carrying an AC current is along the z axis. A circle labeled B0 goes around the wire. It lies in the xy plane. Another circle, labeled E0 goes through B0. E0 lies in the xz plane. Circle B1 goes through E0 and E1 goes through B1, and so on forming what looks like a chain. Circles B0, B1 and B2 are in the xy plane, with their centres along the x axis. These are interspersed with circles E0, E1 and E2 in the xz plane, whose centers lie on the y axis.
    Figure \(\PageIndex{3}\): How changing \(\vec{E}\) and \(\vec{B}\) fields propagate through space.

    In the next section, we show in more precise mathematical terms how Maxwell’s equations lead to the prediction of electromagnetic waves that can travel through space without a material medium, implying a speed of electromagnetic waves equal to the speed of light.

    Prior to Maxwell’s work, experiments had already indicated that light was a wave phenomenon, although the nature of the waves was yet unknown. In 1801, Thomas Young (1773–1829) showed that when a light beam was separated by two narrow slits and then recombined, a pattern made up of bright and dark fringes was formed on a screen. Young explained this behavior by assuming that light was composed of waves that added constructively at some points and destructively at others (see Interference). Subsequently, Jean Foucault (1819–1868), with measurements of the speed of light in various media, and Augustin Fresnel (1788–1827), with detailed experiments involving interference and diffraction of light, provided further conclusive evidence that light was a wave. So, light was known to be a wave, and Maxwell had predicted the existence of electromagnetic waves that traveled at the speed of light. The conclusion seemed inescapable: Light must be a form of electromagnetic radiation. But Maxwell’s theory showed that other wavelengths and frequencies than those of light were possible for electromagnetic waves. He showed that electromagnetic radiation with the same fundamental properties as visible light should exist at any frequency. It remained for others to test, and confirm, this prediction.

    Exercise \(\PageIndex{1}\)

    When the emf across a capacitor is turned on and the capacitor is allowed to charge, when does the magnetic field induced by the displacement current have the greatest magnitude?


    It is greatest immediately after the current is switched on. The displacement current and the magnetic field from it are proportional to the rate of change of electric field between the plates, which is greatest when the plates first begin to charge.

    Hertz’s Observations

    The German physicist Heinrich Hertz (1857–1894) was the first to generate and detect certain types of electromagnetic waves in the laboratory. Starting in 1887, he performed a series of experiments that not only confirmed the existence of electromagnetic waves but also verified that they travel at the speed of light.

    Hertz used an alternating-current RLC (resistor-inductor-capacitor) circuit that resonates at a known frequency \(f_0 = \dfrac{1}{2\pi \sqrt{LC}}\) and connected it to a loop of wire, as shown in Figure \(\PageIndex{4}\). High voltages induced across the gap in the loop produced sparks that were visible evidence of the current in the circuit and helped generate electromagnetic waves.

    Across the laboratory, Hertz placed another loop attached to another RLC circuit, which could be tuned (as the dial on a radio) to the same resonant frequency as the first and could thus be made to receive electromagnetic waves. This loop also had a gap across which sparks were generated, giving solid evidence that electromagnetic waves had been received.

    Figure shows a circuit on the left with R, L and C connected in series to an AC voltage source. This resonates at f subscript 0 equal to 1 upon 2 pi root LC. The inductor in this circuit forms the primary coil of a transformer. The secondary coil is connected to a loop labeled loop 1 transmitter. Within this loop are the words spark gap. Some distance to the right of this is another loop labeled loop 2 receiver. Within this loop are the words induced sparks. This is connected to a box labeled tuner.
    Figure \(\PageIndex{4}\): The apparatus used by Hertz in 1887 to generate and detect electromagnetic waves.

    Hertz also studied the reflection, refraction, and interference patterns of the electromagnetic waves he generated, confirming their wave character. He was able to determine the wavelengths from the interference patterns, and knowing their frequencies, he could calculate the propagation speed using the equation \(v = f\lambda\), where v is the speed of a wave, f is its frequency, and \(\lambda\) is its wavelength. Hertz was thus able to prove that electromagnetic waves travel at the speed of light. The SI unit for frequency, the hertz \((1 \, Hz = 1 \, cycle/second)\), is named in his honor.

    Exercise \(\PageIndex{2}\)

    Could a purely electric field propagate as a wave through a vacuum without a magnetic field? Justify your answer.


    No. The changing electric field according to the modified version of Ampère’s law would necessarily induce a changing magnetic field.

    This page titled 7.2: Maxwell’s Equations and Electromagnetic Waves is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.