- Gauss's law: Electric charges produce an electric field. The electric flux across a closed surface is proportional to the charge enclosed.
- Gauss's law for magnetism: There are no magnetic monopoles. The magnetic flux across a closed surface is zero.
- Faraday's law: Time-varying magnetic fields produce an electric field.
- Ampère's law: Steady currents and time-varying electric fields (the latter due to Maxwell's correction) produce a magnetic field.
First assembled together by James Clerk 'Jimmy' Maxwell in the 1860s, Maxwell's equations specify the electric and magnetic fields and their time evolution for a given configuration.
In essence, one takes the part of the electromagnetic force that arises from interaction with moving charge () as the magnetic field and the other part to be the electric field.
Gauss's law: The earliest of the four Maxwell's equations to have been discovered (in the equivalent form of Coulomb's law) was Gauss's law. In its integral form in SI units, it states that the total charge contained within a closed surface is proportional to the total electric flux (sum of the normal component of the field) across the surface:
where the constant of proportionality is the reciprocal of the electric constant. The total charge is expressed as the charge density integrated over a region.
Gauss's law for magnetism: Although magnetic dipoles can produce an analogous magnetic flux, which carries a similar mathematical form, there exist no equivalent magnetic monopoles, and therefore the total "magnetic charge" over all space must sum to zero. Therefore, Gauss' law for magnetism reads simply
Faraday's law: The electric and magnetic fields become intertwined when the fields undergo time evolution. In the 1820s, Faraday discovered that a change in magnetic flux produces an electric field over a closed loop. This relation is now called Faraday's law:
Ampère's law: Finally, Ampère's law suggests that steady current across a surface leads to a magnetic field (expressed in terms of flux). In addition, Maxwell determined that that rapid changes in the electric flux can also lead to changes in magnetic flux. Altogether, Ampère's law with Maxwell's correction holds that
- Gauss' law:
- Gauss' law for magnetism:
- Faraday's law:
- Ampère's law:
In their integral form, Maxwell's equations can be used to make statements about a region of charge or current.
To make local statements and evaluate Maxwell's equations at individual points in space, one can recast Maxwell's equations in their differential form, which use the differential operators div and curl.
Differential form of Gauss's law: The divergence theorem holds that a surface integral over a closed surface can be written as a volume integral over the divergence inside the region. Thus,
Since the statement is true for all closed surfaces, it must be the case that the integrands are equal and thus
(The derivation of the differential form of Gauss's law for magnetism is identical.)
Ampère's law says that
Of course, the surface integral in both equations can be taken over any chosen closed surface, so the integrands must be equal:
Differential form of Faraday's law: It follows from the integral form of Faraday's law that
As was done with Ampère's law, one can invoke Stokes' theorem on the left side to equate the two integrands:
Again, one argues that since the relationship must hold true for any arbitrary surface , it must be the case that the two integrands are equal and therefore
In all, the result is as follows:
- Gauss's law
- Gauss's law for magnetism
- Faraday's law
- Ampère's law
By assembling all four of Maxwell's equations together and providing the correction to Ampère's law, Maxwell was able to show that electromagnetic fields could propagate as traveling waves. In other words, Maxwell's equations could be combined to form a wave equation. Maxwell's insight stands as one of the greatest theoretical triumphs of physics. A simple sketch of this result is as follows:
For simplicity, suppose there is some region of space in which the electric field is non-zero only along the -axis and the magnetic field is non-zero only along the -axis, such that both are functions of only. Then Faraday's law gives
Even though , with the additional term, Ampere's law now gives
Taking the partial derivative of the first equation with respect to and the second with respect to yields
This equation has solutions for and corresponding solutions for that represent traveling electromagnetic waves. In fact, the equation that has just been derived is in fact in the same form as the classical wave equation in one dimension. In other words, the laws of electricity and magnetism permit for the electric and magnetic fields to travel as waves, but only if Maxwell's correction is added to Ampère's law. Indeed, Maxwell was the first to provide a theoretical explanation of a classical electromagnetic wave and, in doing so, compute the speed of light.
(The general solution consists of linear combinations of sinusoidal components as shown below.)
 Griffiths, D.J. Introduction to Electrodynamics. Fourth edition. Pearson, 2014.
 Purcell, E.M. Electricity and Magnetism. Third edition. Cambridge University Press, 2013.