# Maxwell's equations

**Maxwell's equations** are the four coupled laws that govern the electric and magnetic fields in classical electromagnetism, relating each field to its sources, electric charge and current, and to changes in the other field. Together with the [Lorentz force](https://www.edgepedia.org/lorentz-force) law, they encompass all the laws of electricity and magnetism.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup>

| Key fact | Detail |
|---|---|
| The four laws | Gauss's law, Gauss's law for magnetism, Faraday's law of induction, and the Ampère-Maxwell law<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup> |
| Displacement current | Defined as \( I_{\mathrm{d}} = \epsilon_0 \, d\Phi_E/dt \), where \( \Phi_E \) is the electric flux; it lets a changing electric field act as a source of magnetic field<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup> |
| Wave speed | The equations predict electromagnetic waves traveling at \( c = 1/\sqrt{\epsilon_0 \mu_0} \), independent of frequency<sup>[2](https://openstax.org/books/university-physics-volume-2/pages/chapter-16)</sup> |
| Historical form | Maxwell's 1864 paper "A Dynamical Theory of the Electromagnetic Field" presented eight equations of the electromagnetic field and an electromagnetic theory of light<sup>[3](https://journals.aps.org/prper/abstract/10.1103/PhysRevPhysEducRes.19.020113)</sup> |
| Why the correction was needed | Without the displacement current term, Ampère's law is inconsistent with charge conservation<sup>[4](https://ocw.mit.edu/courses/6-641-electromagnetic-fields-forces-and-motion-spring-2005/e9209c908e2d840ed58fb6cf2f925279_01.pdf)</sup> |
| In matter | The macroscopic equations are written with the fields D and H and involve only free charge and free current<sup>[5](https://uclnatsci.github.io/Electromagnetism-Fluids-and-Waves/electromagnetism/maxwelleqns.html)</sup> |
| Relativistic form | The inhomogeneous equations reduce to the single covariant equation \( \partial_\beta F^{\alpha\beta} = \mu_0 j^\alpha \)<sup>[6](https://www2.physics.siu.edu/~shajesh/rp/files/EM-lnotes.pdf)</sup> |

## The four equations in integral form

In vacuum, the integral forms state the following.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup>

1. **Gauss's law.** The electric flux through any closed surface equals the enclosed charge divided by \( \epsilon_0 \):
\[ \oint \vec{E} \cdot d\vec{A} = \frac{Q_{\text{in}}}{\epsilon_0}. \]
2. **Gauss's law for magnetism.** The magnetic flux through any closed surface is zero, which is equivalent to saying magnetic field lines are continuous, with no beginning or end; no [magnetic monopoles](https://www.edgepedia.org/magnetic-monopole) are known to exist.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup>
3. **Faraday's law.** A changing magnetic flux induces an electromotive force, and hence an electric field, whose direction opposes the change ([Lenz's law](https://www.edgepedia.org/lenzs-law)):
\[ \oint \vec{E} \cdot d\vec{l} = -\frac{d\Phi_m}{dt}. \]
4. **Ampère-Maxwell law.** Magnetic fields are generated by moving charges or by changing electric fields:
\[ \oint \vec{B} \cdot d\vec{l} = \mu_0 I + \epsilon_0 \mu_0 \frac{d\Phi_E}{dt}. \]

In differential form, the same laws read, in vacuum and in MKS units,<sup>[7](https://sites.science.oregonstate.edu/physics/coursewikis/GSR/book/gsr/maxwell.html)</sup>

\[ \nabla \cdot \vec{E} = \frac{\rho}{\epsilon_0}, \qquad \nabla \cdot \vec{B} = 0, \qquad \nabla \times \vec{E} = -\frac{\partial \vec{B}}{\partial t}, \qquad \nabla \times \vec{B} = \mu_0 \vec{J} + \mu_0 \epsilon_0 \frac{\partial \vec{E}}{\partial t}, \]

where \( \rho \) is the charge density and \( \vec{J} \) the current density. Once the fields are found, the Lorentz force law \( \vec{F} = q\vec{E} + q\vec{v} \times \vec{B} \) gives the force on a particle of charge \( q \) moving with velocity \( \vec{v} \).<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup>

## The displacement current

**The problem.** Ampère's original law, \( \oint \vec{B} \cdot d\vec{l} = \mu_0 I \), fails for time-dependent situations. For a charging parallel-plate capacitor, one surface bounded by the same loop cuts the wire and gives \( \mu_0 I \), while another surface passing between the plates encloses no conduction current and gives zero; the law's answer depends on the choice of surface, an internal contradiction.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup> The inconsistency is deeper still: taking the divergence of the quasi-static Ampère's law gives \( \nabla \cdot \vec{J} = 0 \), which cannot hold when charge is accumulating, since charge conservation requires \( \nabla \cdot \vec{J} = -\partial\rho/\partial t \).<sup>[8](https://ocw.mit.edu/courses/22-105-electromagnetic-interactions-fall-2005/c2f968d15662cff0b755fd027d18582e_chap3.pdf)</sup>

**Maxwell's fix.** Adding the term \( \epsilon_0 \, \partial\vec{E}/\partial t \), called the displacement current density, restores consistency, because \( \nabla \cdot (\vec{J} + \epsilon_0 \, \partial\vec{E}/\partial t) = 0 \) follows from [Gauss's law](https://www.edgepedia.org/gausss-law).<sup>[8](https://ocw.mit.edu/courses/22-105-electromagnetic-interactions-fall-2005/c2f968d15662cff0b755fd027d18582e_chap3.pdf)</sup> At the time there was no experimental evidence for this term; the equations demanded it.<sup>[8](https://ocw.mit.edu/courses/22-105-electromagnetic-interactions-fall-2005/c2f968d15662cff0b755fd027d18582e_chap3.pdf)</sup> With the correction, the line integral of \( \vec{B} \) around a loop is the same whether the spanning surface cuts the wire or passes between the capacitor plates, because the displacement current \( \epsilon_0 \, d\Phi_E/dt \) through the second surface equals the conduction current \( I \) through the first.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup> In a charging capacitor the displacement current between the plates equals the real current in the wires at every instant.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup> The term \( \partial\vec{D}/\partial t \) is often called the displacement current density because its units are the same as current density, A/m².<sup>[9](https://ocw.mit.edu/courses/6-013-electromagnetics-and-applications-spring-2009/be09fe40701d8ba037ddc18fea301449_MIT6_013S09_chap03.pdf)</sup>

## Electromagnetic waves

The displacement current makes the source-free equations symmetric: a changing \( \vec{B} \) field induces an \( \vec{E} \) field (induction), and a changing \( \vec{E} \) field induces a \( \vec{B} \) field.<sup>[8](https://ocw.mit.edu/courses/22-105-electromagnetic-interactions-fall-2005/c2f968d15662cff0b755fd027d18582e_chap3.pdf)</sup> This symmetry is essential to the existence of combined electric and magnetic waves propagating through space; the extra term is responsible for electromagnetic waves.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup><sup> • </sup><sup>[8](https://ocw.mit.edu/courses/22-105-electromagnetic-interactions-fall-2005/c2f968d15662cff0b755fd027d18582e_chap3.pdf)</sup> The wave speed that follows from the equations is \( c = 1/\sqrt{\epsilon_0 \mu_0} \), independent of frequency.<sup>[2](https://openstax.org/books/university-physics-volume-2/pages/chapter-16)</sup> Maxwell first realized the link between electromagnetism and light in 1862, and the prediction was not detected unequivocally for another 23 years.<sup>[10](https://meetings-archive.aps.org/mar/2012/b19/1/)</sup><sup> • </sup><sup>[8](https://ocw.mit.edu/courses/22-105-electromagnetic-interactions-fall-2005/c2f968d15662cff0b755fd027d18582e_chap3.pdf)</sup>

## History

[James Clerk Maxwell](https://www.edgepedia.org/james-clerk-maxwell) (1831–1879) combined the existing laws of electricity and magnetism with insights of his own into a complete electromagnetic theory.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup> In 1864 he published "A Dynamical Theory of the Electromagnetic Field," presenting eight equations of the electromagnetic field and an experimentally testable electromagnetic theory of light; one of the most original aspects of the theory was the introduction of electrical displacement and the displacement current as another source of field.<sup>[3](https://journals.aps.org/prper/abstract/10.1103/PhysRevPhysEducRes.19.020113)</sup> In his own mechanical picture, grounded in a belief in the ether, the displacement current was always associated with the motion of bound charges in a medium.<sup>[3](https://journals.aps.org/prper/abstract/10.1103/PhysRevPhysEducRes.19.020113)</sup> The two-volume *Treatise on Electricity and Magnetism* followed in 1873, and Maxwell died in 1879 while beginning a radically revised edition.<sup>[10](https://meetings-archive.aps.org/mar/2012/b19/1/)</sup>

The modern four-equation form is much simpler than what Maxwell published, and it emerged through an analytical reinterpretation in which charge and current become the fundamental quantities and the field acts directly on matter at the point of interest; contributors include Lorentz and Heaviside, with Hertz succeeding in experimentally contrasting the prediction of electromagnetic waves.<sup>[11](https://www.ocw.mit.edu/ans7870/18/18.013a/textbook/HTML/chapter29/section03.html)</sup><sup> • </sup><sup>[3](https://journals.aps.org/prper/abstract/10.1103/PhysRevPhysEducRes.19.020113)</sup> Later, applying Einstein's theory of relativity to the completed theory showed that electric and magnetic forces are not separate but different manifestations of the same electromagnetic force.<sup>[1](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)</sup>

## Maxwell's equations in matter

Inside materials, electromagnetic fields are described using the auxiliary fields \( \vec{D} \) and \( \vec{H} \), and the equations are rewritten in terms of free charge and free current:<sup>[5](https://uclnatsci.github.io/Electromagnetism-Fluids-and-Waves/electromagnetism/maxwelleqns.html)</sup>

\[ \nabla \cdot \vec{D} = \rho_{\text{free}}, \qquad \nabla \cdot \vec{H} = -\nabla \cdot \vec{M}, \qquad \nabla \times \vec{E} = -\frac{\partial \vec{B}}{\partial t}, \qquad \nabla \times \vec{H} = \vec{J}_{\text{free}} + \frac{\partial \vec{D}}{\partial t}.<sup>[14](https://phys.libretexts.org/Bookshelves/Electricity_and_Magnetism/Electromagnetics_and_Applications_(Staelin)/04:_Static_and_Quasistatic_Fields/4.04:_Static_fields_in_inhomogeneous_materials)</sup>
 \]

This formulation absorbs the bound charge and bound currents of the material into the definitions of \( \vec{D} \) and \( \vec{H} \), so that only the free charge and current, which are typically the known quantities, appear as sources.<sup>[5](https://uclnatsci.github.io/Electromagnetism-Fluids-and-Waves/electromagnetism/maxwelleqns.html)</sup> To apply the macroscopic equations, the relations between \( \vec{D} \) and \( \vec{E} \), and between \( \vec{H} \) and \( \vec{B} \), must be specified; in simple linear media these are the constitutive relations \( \vec{D} = \epsilon \vec{E} \) and \( \vec{B} = \mu \vec{H} \).<sup>[12](https://ocw.mit.edu/courses/6-013-electromagnetics-and-applications-spring-2009/0ec2c39ffccb37e83b43f6f59868f8d7_MIT6_013S09_lec02.pdf)</sup>

## Charge conservation and relativistic form

The equations are mutually consistent only because they encode charge conservation. Taking the divergence of the Ampère-Maxwell equation and using Gauss's law yields the continuity equation \( \nabla \cdot \vec{J} = -\partial\rho/\partial t \); conversely, charge conservation can be taken as the reason Maxwell added the displacement term.<sup>[7](https://sites.science.oregonstate.edu/physics/coursewikis/GSR/book/gsr/maxwell.html)</sup><sup> • </sup><sup>[4](https://ocw.mit.edu/courses/6-641-electromagnetic-fields-forces-and-motion-spring-2005/e9209c908e2d840ed58fb6cf2f925279_01.pdf)</sup>

In the covariant language of special relativity, the electric and magnetic fields combine into the antisymmetric field-strength tensor \( F^{\alpha\beta} \), and the two equations with physical sources, Gauss's law and the Ampère-Maxwell law, become the single equation \( \partial_\beta F^{\alpha\beta} = \mu_0 j^\alpha \). The antisymmetry of \( F^{\alpha\beta} \) then implies \( \partial_\alpha j^\alpha = 0 \), charge conservation, automatically.<sup>[6](https://www2.physics.siu.edu/~shajesh/rp/files/EM-lnotes.pdf)</sup> The two source-free equations are likewise summarized by the vanishing divergence of the dual field tensor.<sup>[6](https://www2.physics.siu.edu/~shajesh/rp/files/EM-lnotes.pdf)</sup> Written in terms of the scalar and vector potentials in the Lorenz gauge, the whole theory reduces to a single 4-vector wave equation for the potential 4-vector \( \Phi^\mu = (c\vec{A}, \phi) \).<sup>[13](https://farside.ph.utexas.edu/teaching/em/lectures/node117.html)</sup>

## References

1. [16.1 Maxwell's Equations and Electromagnetic Waves, University Physics Volume 2, OpenStax](https://openstax.org/books/university-physics-volume-2/pages/16-1-maxwells-equations-and-electromagnetic-waves)
2. [Answer Key Chapter 16, University Physics Volume 2, OpenStax](https://openstax.org/books/university-physics-volume-2/pages/chapter-16)
3. [Electromagnetic field presented in introductory physics textbooks and consequences for its teaching, Phys. Rev. Phys. Educ. Res. 19, 020113 (2023)](https://journals.aps.org/prper/abstract/10.1103/PhysRevPhysEducRes.19.020113)
4. [Lecture 1, Electromagnetic Fields, Forces, and Motion (6.641), MIT OpenCourseWare](https://ocw.mit.edu/courses/6-641-electromagnetic-fields-forces-and-motion-spring-2005/e9209c908e2d840ed58fb6cf2f925279_01.pdf)
5. [Differential Forms and Maxwell's Equations, Electromagnetism, Fluids and Waves (UCL)](https://uclnatsci.github.io/Electromagnetism-Fluids-and-Waves/electromagnetism/maxwelleqns.html)
6. [Notes on Electrodynamics, Southern Illinois University Carbondale](https://www2.physics.siu.edu/~shajesh/rp/files/EM-lnotes.pdf)
7. [Maxwell's Equations, Geometry of Special Relativity, Oregon State University](https://sites.science.oregonstate.edu/physics/coursewikis/GSR/book/gsr/maxwell.html)
8. [Chapter 3, Electromagnetic Interactions (22.105), MIT OpenCourseWare](https://ocw.mit.edu/courses/22-105-electromagnetic-interactions-fall-2005/c2f968d15662cff0b755fd027d18582e_chap3.pdf)
9. [Chapter 3, Electromagnetics and Applications (6.013), MIT OpenCourseWare](https://ocw.mit.edu/courses/6-013-electromagnetics-and-applications-spring-2009/be09fe40701d8ba037ddc18fea301449_MIT6_013S09_chap03.pdf)
10. [The discovery of Maxwell's equations, APS March Meeting 2012](https://meetings-archive.aps.org/mar/2012/b19/1/)
11. [Maxwell's Consistent Equations, 18.013A, MIT OpenCourseWare](https://www.ocw.mit.edu/ans7870/18/18.013a/textbook/HTML/chapter29/section03.html)
12. [Lecture 2: Media and Boundary Conditions, Electromagnetics and Applications (6.013), MIT OpenCourseWare](https://ocw.mit.edu/courses/6-013-electromagnetics-and-applications-spring-2009/0ec2c39ffccb37e83b43f6f59868f8d7_MIT6_013S09_lec02.pdf)
13. [The potential 4-vector, Electromagnetism lecture notes, University of Texas at Austin](https://farside.ph.utexas.edu/teaching/em/lectures/node117.html)
14. [4.4: Static fields in inhomogeneous materials](https://phys.libretexts.org/Bookshelves/Electricity_and_Magnetism/Electromagnetics_and_Applications_(Staelin)/04:_Static_and_Quasistatic_Fields/4.04:_Static_fields_in_inhomogeneous_materials)

---
*Topic: Encyclopedia › Physical world and mathematics › Physics › Classical physics › Electromagnetism › Electric and magnetic fields › Maxwell's equations and field formulations › Maxwell's equations and potentials*

*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
