Maxwell’s Equations
Electromagnetism and Maxwell’s Equations
Electricity and magnetism are not separate theories. They form one unified theory called electromagnetism, summarized by the four Maxwell equations. These equations describe:
How electric charges produce electric fields
Why magnetic fields have no isolated sources
How electric currents produce magnetic fields
How changing magnetic fields produce electric fields
How changing electric fields produce magnetic fields
The final Maxwell equation completes the symmetry between electricity and magnetism and makes electromagnetic waves possible.
1. Faraday’s Law and Ampère’s Law
Two of Maxwell’s equations have a remarkably similar mathematical structure because both involve a line integral around a closed loop.
Faraday’s law
Faraday’s law in integral form is
where:
E is the electric field
dℓ is a small displacement along the path
The circle on the integral indicates a closed loop
ΦB is the magnetic flux through the loop
The minus sign expresses Lenz’s law
The left-hand side is the circulation of the electric field around a closed path. It has a direct physical interpretation as the induced electromotive force, or induced voltage:
Faraday’s law states that a changing magnetic flux produces an induced electric field.
Changing magnetic flux is the source of induced electric fields.
The negative sign means that the induced electric field acts in a direction that opposes the change in magnetic flux that created it.
Ampère’s law before Maxwell’s correction
The original form of Ampère’s law is
where:
B is the magnetic field
Ienclosed is the net current passing through the loop
μ0 is the permeability of free space
The constant μ0 can also be related to the Coulomb constant ke and the speed of light c:
Ampère’s law states conceptually that a current produces a circulating magnetic field.
Electric current is a source of magnetic fields.
Mathematical similarity and physical differences
Faraday’s law and Ampère’s law both have the general form
Their similarities include:
Both integrate a vector field along a closed loop.
Both describe circulation around a source.
Both involve vector fields, since E and B vary with position and have direction.
Both connect field circulation to another physical quantity.
However, the two line integrals have different physical meanings.
Electric-field line integral
The quantity
is related to voltage and work per unit charge. The electric force on a charge is
so the electric field can do work on a charge as the charge moves.
Magnetic-field line integral
The quantity
does not represent work done by the magnetic field. The magnetic force is
and is perpendicular to the velocity of the charge. Therefore, magnetic forces do no work on a point charge, even though the magnetic field can have a nonzero circulation.
The similarity between Faraday’s law and Ampère’s law is therefore primarily a mathematical and vector-field similarity, not an identity of physical interpretation.
2. Conservative and Non-Conservative Vector Fields
A vector field is conservative if its line integral between two points is independent of the path taken. Equivalently, the circulation around every closed path is zero:
For a conservative field, the line integral depends only on the initial and final points.
Static electric fields
The electric field produced by static charges is conservative. Therefore,
for electrostatic fields.
This allows the electrostatic field to be expressed as the gradient of a scalar electric potential:
The direction of E is the direction in which a positive charge would be pushed, and the field can be understood in terms of potential energy and voltage.
Magnetic fields
A magnetic field is not generally conservative as a vector field. In particular, the magnetic field surrounding a current-carrying wire forms closed circular loops. Following a circular path around the wire, the direction of the path can remain aligned with the magnetic field, producing a nonzero line integral.
This does not mean that magnetic fields do work on charges. Rather, it means that the mathematical vector field B has nonzero circulation.
Induced electric fields
An induced electric field produced by changing magnetic flux is also non-conservative:
when the magnetic flux changes with time.
Unlike an electrostatic field, an induced electric field cannot generally be written as the gradient of a single-valued scalar potential. The induced electric field forms closed, vortex-like loops around the changing magnetic field.
Because the force from an electric field is proportional to the field itself, the force due to an induced electric field is also non-conservative.
Energy conservation remains valid even when an induced electric field is non-conservative. The energy transferred to charges comes from the changing magnetic system, such as a changing current or moving magnet.
3. Divergence, Curl, and the Geometry of Fields
Two important mathematical properties of vector fields are divergence and curl.
Divergence
Divergence describes whether a vector field spreads outward from or converges inward toward a point.
Positive divergence indicates a local source.
Negative divergence indicates a local sink.
Zero divergence indicates no net outward or inward flow from a small closed surface.
The integral associated with divergence is a flux through a closed surface:
A surface integral is two-dimensional and covers an entire closed surface.
Curl
Curl describes the local tendency of a vector field to circulate around a point. A field with curl often has a vortex-like structure.
The integral associated with curl is a line integral around a closed loop:
A line integral is one-dimensional and follows a path.
Source-like and vortex-like fields
Two broad visual patterns are useful:
Radial or source-like field
A field produced by a static point charge points radially outward or inward. If a closed surface surrounds the charge, the net flux can be nonzero.
However, a closed line integral around such a field is zero because contributions in opposite directions cancel.
Circulating or vortex-like field
A magnetic field surrounding a current-carrying wire forms circles around the wire. An induced electric field surrounding a changing magnetic flux has a similar circular pattern.
For a loop encircling the source, the field and path direction can remain aligned, giving a nonzero line integral.
This distinction corresponds to the difference between:
Divergence: associated with sources and sinks
Curl: associated with circulation and vortices
4. Gauss’s Laws
Two of Maxwell’s equations are called Gauss’s laws: one for electric fields and one for magnetic fields.
Gauss’s law for electric fields
In integral form,
where:
The integral is over a closed surface.
Qenclosed is the total electric charge inside the surface.
ε0 is the permittivity of free space.
Conceptually:
Electric charge is a source of electric-field flux.
A positive charge produces a net outward flux, while a negative charge produces a net inward flux. The actual shape of the closed surface does not matter; only the total enclosed charge determines the net flux.
The differential form is
where ρ is the local charge density.
This local equation says that the divergence of the electric field at a point is determined by the charge density at that point.
Gauss’s law for magnetic fields
The corresponding magnetic-field equation is
Its differential form is
This means that magnetic fields have no net flux through any closed surface.
No magnetic monopoles
Magnetic field lines do not begin or end at isolated magnetic charges. Instead, they form continuous loops.
A bar magnet has a north pole and a south pole. Outside the magnet, field lines conventionally emerge from the north pole and enter the south pole; inside the magnet, they continue from south to north, forming closed loops.
If a bar magnet is cut in half, the result is not an isolated north pole and an isolated south pole. Each piece becomes a smaller magnet with its own north and south poles.
Thus, several equivalent descriptions are possible:
Every magnet has both a north and a south pole.
Magnetic field lines form closed loops.
Every closed surface has zero net magnetic flux.
No experimentally confirmed magnetic monopoles have been observed.
Gauss’s law for magnetism can be interpreted as saying that the enclosed magnetic charge would always be zero because no magnetic monopoles have been found.
If magnetic monopoles were eventually discovered, this equation would need to be modified to include magnetic charge density.
5. Ampère’s Law and Enclosed Current
Ampère’s law relates the circulation of the magnetic field to the current enclosed by a loop:
The meaning of “enclosed current” requires careful geometric definition.
The surface bounded by a loop
A closed loop defines a boundary. A surface can be stretched across that boundary, much like a rubber sheet or balloon opening.
The current is considered enclosed when it passes through the surface bounded by the loop.
Each crossing is counted with a sign determined by the chosen orientation of the surface:
Crossings in one direction contribute positively.
Crossings in the opposite direction contribute negatively.
Net current
A wire can enter and leave the surface. If it crosses once in one direction and once in the opposite direction, the two contributions cancel.
Therefore, a wire that bends through a surface and returns does not necessarily produce a nonzero enclosed current. What matters is the net current through the surface.
A current that passes through the surface and continues away without returning contributes a nonzero amount.
Why the choice of surface normally does not matter
A single loop can bound many different surfaces. At first, this seems ambiguous: one surface might appear to be pierced by a current while another is not.
For ordinary steady currents, this ambiguity does not affect Ampère’s law because of charge conservation. Current cannot simply disappear in the space between two surfaces. Any current entering a region must leave it somewhere.
Consequently, the net current through any two surfaces sharing the same boundary is the same, provided the current is steady and charge does not accumulate between the surfaces.
This reasoning becomes crucial when considering a charging capacitor.
6. Why the Original Ampère’s Law Is Incomplete
The original Ampère’s law works for steady currents but fails in situations where charge density changes with time.
Charging capacitor setup
Consider a wire carrying current toward a capacitor.
Current flows through the wire toward one capacitor plate.
Charge accumulates on that plate.
An opposite charge accumulates on the other plate.
No charge physically crosses the gap between the plates.
Now choose an Amperian loop around the wire. There are two possible surfaces bounded by this loop:
A surface that cuts through the wire
A surface that bulges between the capacitor plates
Contradictory predictions
For the surface cutting through the wire, the enclosed current is
For the surface passing between the capacitor plates, no charge crosses the gap, so the conduction current is
The original Ampère’s law would therefore give two different values for the same magnetic-field circulation:
or
The magnetic field should not suddenly change merely because a portion of the circuit has been replaced by a capacitor. The contradiction shows that the original law is incomplete.
7. Displacement Current
Maxwell resolved the contradiction by introducing a quantity called displacement current.
Although displacement current has the word “current” in its name, it is not necessarily caused by charge physically crossing the surface. Instead, it is associated with a changing electric field.
Electric field between capacitor plates
As charge accumulates on the capacitor plates, the electric field between them grows.
For an ideal parallel-plate capacitor, the electric field is
where σ is the surface charge density.
Surface charge density is charge per unit plate area:
Therefore,
Solving for charge gives
The current entering the capacitor is the rate at which charge accumulates:
Substituting the expression for Q,
For a fixed plate area A and constant ε0,
The product of electric field and area is the electric flux:
For a uniform electric field perpendicular to the plates, this reduces to
Therefore,
This motivates the definition of displacement current:
More generally, in vacuum,
Meaning of displacement current
Displacement current does not mean that charge is moving through the capacitor gap. Instead:
Charge moves in the wires.
The moving charge causes charge to accumulate on the plates.
The accumulating charge produces an increasing electric field.
The changing electric flux acts as a source of magnetic field.
Thus, the displacement current supplies the same magnetic-field effect on the surface between the plates as the conduction current supplies on the surface through the wire.
A changing electric field produces a magnetic field in the same way that an electric current produces a magnetic field.
8. The Maxwell Correction to Ampère’s Law
The corrected form of Ampère’s law is called the Ampère–Maxwell law:
Using the displacement current,
The additional term,
is called the Maxwell term.
The Maxwell term makes the result independent of which surface is chosen:
Through the wire, the conduction current is I0.
Between the plates, the conduction current is zero, but the displacement current equals I0.
Both surfaces therefore predict the same magnetic field.
Maxwell did not discover all four laws individually. Rather, he identified the missing term that completed the set and made the theory internally consistent. The complete group of four equations is consequently known as Maxwell’s equations.
9. The Four Maxwell Equations
In integral form, the four equations are:
Gauss’s law for electricity
Meaning: Electric charge produces electric-field flux.
Gauss’s law for magnetism
Meaning: There are no confirmed magnetic monopoles; magnetic field lines form closed loops.
Faraday’s law
Meaning: A changing magnetic flux produces a circulating electric field.
Ampère–Maxwell law
Meaning: Electric current and changing electric flux produce a circulating magnetic field.
Together, these equations describe the sources and interactions of electric and magnetic fields.
10. Electricity and Magnetism as Reciprocal Phenomena
The history of electromagnetism can be understood as a gradual discovery of connections between electric and magnetic phenomena.
Electric charge produces electric fields
Gauss’s law establishes the basic electrostatic relationship:
Electric charge produces electric field.
Moving charge produces magnetic fields
Ampère’s law adds that moving charges, or electric currents, produce magnetic fields.
This creates the first major link between electricity and magnetism:
Moving electric charge produces magnetic field.
The magnetic force on a charge is described by the Lorentz force law:
where:
q is the charge
E is the electric field
v is the charge velocity
B is the magnetic field
A magnetic force requires a moving charge because the magnetic part is proportional to v×B.
Changing magnetic field produces electric field
Faraday’s law establishes the reverse relationship:
A changing magnetic field or magnetic flux produces an electric field.
This is not described as magnetic charge producing electric field because isolated magnetic charge has not been observed. Instead, the relationship is expressed using changing magnetic flux.
Changing electric field produces magnetic field
The Maxwell term completes the reverse direction:
A changing electric field produces a magnetic field.
This relationship is the key addition that makes the electric–magnetic interaction fully interconnected.
The apparent asymmetry between electricity and magnetism is primarily due to the absence of magnetic monopoles. If magnetic charges existed, additional equations involving magnetic charge and magnetic current would be possible.
11. Electromagnetic Waves
The Maxwell term allows electric and magnetic fields to sustain one another through space.
Consider a charge oscillating up and down:
The charge produces an electric field.
Because the charge is moving, it constitutes a current.
The current produces a magnetic field that circulates around the motion.
The changing magnetic field produces an electric field through Faraday’s law.
The changing electric field produces a magnetic field through the Maxwell term.
The process continues, allowing the disturbance to travel outward.
This self-sustaining sequence is an electromagnetic wave.
Without the Maxwell term, the chain would stop after the changing magnetic field produced an electric field. A changing electric field would not produce any additional magnetic field under the incomplete theory.
With the Maxwell term:
The fields produced by radiation decrease approximately as
rather than as the electrostatic inverse-square behavior
This difference allows electromagnetic disturbances to propagate over large distances as waves.
The complete Maxwell equations therefore predict electromagnetic radiation, including the physical basis of light and other electromagnetic waves.
12. Differential Forms of Maxwell’s Equations
Integral equations describe fields over finite paths, surfaces, or volumes. Differential equations describe what happens locally at each point.
The differential forms of Maxwell’s equations in vacuum are:
Gauss’s law for electricity
Gauss’s law for magnetism
Ampère–Maxwell law
Faraday’s law
where:
ρ is charge density
J is current density
∂E/∂t is the local rate of change of electric field
∂B/∂t is the local rate of change of magnetic field
The differential equations are local. For example, the electric field at one point is related to the charge density and field derivatives at that point. Integral forms are obtained by adding up local contributions over a surface, loop, or volume.
13. The Gradient Operator
The symbol ∇ is called the del operator or nabla operator. It is a vector differential operator.
In Cartesian coordinates,
The operator itself is not a function. It becomes meaningful when it acts on a scalar or vector field.
Gradient
When ∇ acts on a scalar function f(x,y,z), it produces the gradient:
The gradient is a vector that indicates:
The direction in which the scalar increases most rapidly
The rate at which the scalar changes in that direction
For example, the temperature gradient indicates how temperature varies through space.
Divergence
The divergence of a vector field A is written
It is the dot product of the del operator with the vector field, so it produces a scalar.
If
then
Divergence measures the net tendency of a field to flow outward from a point.
Positive divergence: local source
Negative divergence: local sink
Zero divergence: no net source or sink
Electric and magnetic fields are examples of vector fields because each has three spatial components and can vary with position and time.
Curl
The curl of a vector field A is written
It is the cross product of the del operator with the vector field, so it produces another vector.
The curl is
The curl measures the local circulation or vortex-like tendency of a vector field.
The order of the operation matters:
is the curl, whereas writing the factors in another order does not represent the same operation. Since ∇ contains derivatives, it must appear before the field on which it acts.
14. Cross Products and the Curl Formula
The component form of a cross product can be remembered using a determinant-like arrangement:
Expanding gives
The positive terms follow one set of diagonal patterns, and the negative terms follow the opposite diagonal patterns.
To calculate the curl, the first vector is replaced by ∇:
This produces the component expression:
The curl equations in Maxwell’s theory are therefore:
and
These equations express the central reciprocal relationship of electromagnetism: changing magnetic fields create electric-field circulation, while currents and changing electric fields create magnetic-field circulation.

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