Understanding Maxwell’s Equations
Understanding Maxwell’s Equations
Maxwell’s equations form the foundation of classical electromagnetism. They describe how electric fields and magnetic fields are produced, how they change, and how they interact with electric charge and current.
These equations are especially important in electrical engineering because they explain the behavior of:
- Capacitors
- Inductors
- Transformers
- Motors and generators
- Power converters
- Transmission lines
- Antennas
- Electromagnetic waves
A useful way to organize the four equations is:
- Two equations describe the divergence of electric and magnetic fields.
- Two equations describe the curl of electric and magnetic fields.
The divergence equations describe whether a field begins or ends at a point. The curl equations describe whether a field circulates around a point or changes in time.
Maxwell’s equations explain the relationship between electric charge, electric current, electric fields, magnetic fields, and changing fields.
The Mathematical Quantities Involved
Before studying the equations, several quantities must be identified.
- E is the electric field.
- B is the magnetic flux density.
- ρ is the volumetric charge density.
- J is the current density.
- ϵ0 is the permittivity of free space.
- μ0 is the permeability of free space.
- c is the speed of light.
- Q is the total electric charge.
- ΦE is electric flux.
- ΦB is magnetic flux.
The relationships between some constants are
μ0ϵ0=c21and therefore
μ0=ϵ0c21.The differential form of an equation describes what happens at each point in space. The integral form describes the total effect over a surface, volume, or closed path. The integral form is often easier to interpret physically.
1. Gauss’s Law for the Electric Field
The first Maxwell equation is
∇⋅E=ϵ0ρ.This is the differential form of Gauss’s law for electricity.
The divergence operator, written as ∇⋅, measures how much a field spreads outward from a point. If electric field lines spread outward from a region, that region contains positive charge. If the field lines point inward, the region contains negative charge.
The integral form is
∮SE⋅dA=ϵ0Qinside.The left side represents the total electric flux through a closed surface. The right side depends only on the total charge enclosed by that surface.
Understanding electric flux
Electric flux measures how much electric field passes through a surface. The quantity dA is a small area vector pointing perpendicular to the surface.
If the electric field passes directly through the surface, the flux is large. If the field runs parallel to the surface, the flux is zero.
The important physical conclusion is that only enclosed charge determines the net flux through a closed surface.
Charges outside the surface may alter the direction and strength of the electric field at different points on the surface, but their total contribution to the net flux is zero.
If no charge exists inside a closed surface, then
Qinside=0and therefore
∮SE⋅dA=0.This does not necessarily mean that the electric field is zero everywhere on the surface. It means that the outward and inward contributions cancel overall.
From differential form to integral form
The connection between the two forms comes from the divergence theorem, also called Gauss’s theorem:
∮SE⋅dA=∫V(∇⋅E)dV.Substituting Gauss’s differential law gives
∮SE⋅dA=∫Vϵ0ρdV.Since the volume integral of charge density is total charge,
∫VρdV=Qinside,the integral form follows:
∮SE⋅dA=ϵ0Qinside.Application: The Parallel-Plate Capacitor
A parallel-plate capacitor consists of two conducting plates separated by a distance d. When a voltage is applied, one plate becomes positively charged and the other becomes negatively charged.
If the plates are large and close together, the electric field between them is approximately uniform. Let:
- A be the plate area.
- Q be the magnitude of the charge on either plate.
- E be the electric field between the plates.
A closed Gaussian surface can be drawn around one plate. The electric field passes significantly through only one side of this surface. Therefore, the flux is approximately
ΦE=EA.Gauss’s law gives
EA=ϵ0Q.Solving for the electric field gives
E=ϵ0AQ.The voltage between the plates is related to the electric field by
V=Ed.The reason is that voltage represents work per unit charge, and the electric field represents force per unit charge. Moving a unit charge through distance d in a uniform field requires work proportional to Ed.
Substituting the expression for E gives
V=ϵ0AQd.Rearranging,
Q=dϵ0AV.The factor multiplying voltage is the capacitance:
C=dϵ0A.Thus,
Q=CV.This equation shows why a capacitor stores more charge when:
- The plate area A is larger.
- The plate separation d is smaller.
- The applied voltage V is larger.
Capacitor current
Current is the rate of change of charge:
i=dtdQ.Since Q=CV, and assuming constant capacitance,
i=CdtdV.This is the familiar capacitor equation.
There is no physical movement of charge directly across the insulating gap between the plates. Instead, charge is redistributed onto and away from the plates through the connecting wires. The circuit current reflects this changing charge distribution.
A capacitor resists sudden changes in voltage because changing its voltage requires changing the stored charge.
Think About It
If the capacitor voltage is constant, then dtdV=0. What does the equation i=CdtdV predict about the current after the capacitor has finished charging?
2. Gauss’s Law for Magnetism
The second Maxwell equation is
∇⋅B=0.Its integral form is
∮SB⋅dA=0.This means that the net magnetic flux through any closed surface is always zero.
The equation differs fundamentally from Gauss’s law for electricity. Electric field lines can begin on positive charges and end on negative charges. Magnetic field lines do not appear to begin or end at isolated magnetic charges.
In other words, no isolated magnetic monopoles have been observed. Magnetic field lines form continuous closed paths. Outside a magnet, they may appear to go from a north pole to a south pole, but inside the magnet they continue from south to north, completing the loop.
The magnetic field therefore has no known sources or sinks analogous to electric charge.
Magnetic flux through a closed surface
Applying the divergence theorem gives
∮SB⋅dA=∫V(∇⋅B)dV.Because ∇⋅B=0,
∮SB⋅dA=0.A closed surface may contain magnetic field, but the amount of magnetic flux entering the surface must equal the amount leaving it.
Application: Magnetic Fields in an Inductor with an Air Gap
Consider an inductor consisting of a winding around a magnetic core with an air gap. Current in the winding creates a magnetic field.
A small closed surface can be drawn around the boundary between the core and the air gap. Suppose the top part of the surface lies in the core and the bottom part lies in the air gap. If both parts have the same area A, the net magnetic flux is
BairA−BcoreA.Gauss’s law for magnetism requires this to equal zero:
BairA−BcoreA=0.Therefore,
Bair=Bcore.The physical meaning is that the normal component of magnetic flux density remains continuous as the field crosses from one material into another. In this simplified geometry, the magnetic field is normal to the boundary, so the magnetic flux density has the same value in the core and in the air gap.
This result is useful when analyzing magnetic components because the magnetic field must pass continuously through the core and its gap.
Think About It
Why can an electric field have a net outward flux from a closed surface, while a magnetic field cannot? The answer lies in the presence of electric charges and the absence of observed isolated magnetic charges.
3. Faraday’s Law of Electromagnetic Induction
The third Maxwell equation is
∇×E=−∂t∂B.This equation states that a changing magnetic field produces a circulating electric field.
The curl operator, written as ∇×, measures the tendency of a field to circulate around a point. Unlike the electric field produced by static charges, this induced electric field can form closed loops.
The integral form is
∮CE⋅dl=−dtd∫SB⋅dA.Using magnetic flux,
ΦB=∫SB⋅dA,the law becomes
∮CE⋅dl=−dtdΦB.The line integral of the electric field around a closed loop is the induced electromotive force, or induced voltage.
The meaning of the negative sign
The negative sign expresses Lenz’s law. The induced voltage acts in a direction that opposes the change in magnetic flux that produced it.
For example, if magnetic flux through a loop is increasing, the induced current produces its own magnetic field opposing that increase. This opposition is a consequence of energy conservation.
From differential form to integral form
The connection follows from Stokes’s theorem:
∮CE⋅dl=∫S(∇×E)⋅dA.Substituting Faraday’s differential law gives
∮CE⋅dl=−∫S∂t∂B⋅dA.When the surface is fixed in space, the time derivative can be taken outside the integral:
∮CE⋅dl=−dtd∫SB⋅dA.Application: The Capacitor and Its Electric Field
Consider a battery connected to a capacitor. A closed path can be drawn through:
- One connecting wire.
- The space between the capacitor plates.
- The second wire.
- The battery.
Assume that the magnetic field in the region is negligible. Faraday’s law then gives
∮CE⋅dl=0.Inside good conducting wires, the electric field is approximately zero, so the line-integral contributions from the wires are negligible.
The significant electric-field contribution occurs between the capacitor plates. If the plate separation is d, its magnitude is approximately
Ed.The battery contributes a voltage V around the remainder of the loop. Therefore, the total loop relation gives
Ed=V.Thus,
E=dV.This confirms the electric-field expression used in the capacitor analysis. The voltage across the capacitor equals the voltage supplied by the battery because the electric field inside the connecting wires is negligible.
Application: The Inductor
Faraday’s law also explains the voltage across an inductor.
Suppose an inductor has N turns. If the magnetic flux through one turn is Φ, the total flux linkage is approximately
NΦ.Faraday’s law gives the induced voltage as
V=NdtdΦ,with the sign determined by the chosen voltage and flux directions.
For a linear inductor, magnetic flux is proportional to current. The inductance L is defined so that
NΦ=Li.Differentiating with respect to time gives
V=Ldtdi.This is the familiar lumped-circuit equation for an inductor.
An inductor resists sudden changes in current because changing current changes the magnetic flux, and changing magnetic flux produces an opposing voltage.
The connection between the field equation and the circuit equation depends on the fact that the electric field inside the conducting wires is usually very small. This allows the distributed electromagnetic system to be represented approximately as a lumped component with a voltage and current.
Think About It
A capacitor relates current to the rate of change of voltage, while an inductor relates voltage to the rate of change of current. How do these relationships reflect the different forms of energy stored by the two components?
4. Ampère–Maxwell Law
The fourth Maxwell equation is
∇×B=μ0J+μ0ϵ0∂t∂E.Using μ0ϵ0=c21, it can also be written as
∇×B=μ0J+c21∂t∂E.This equation says that magnetic fields circulate around two possible causes:
- Electric current density J.
- A changing electric field ∂t∂E.
The second term is called the displacement-current contribution. It does not represent charges physically crossing an insulating region. Instead, it represents the magnetic effect of a changing electric field.
The integral form is
∮CB⋅dl=μ0Ithrough+μ0ϵ0dtdΦE.Equivalently,
∮CB⋅dl=μ0Ithrough+c21dtdΦE.Here, Ithrough is the net conduction current passing through the surface bounded by the loop, and
ΦE=∫SE⋅dAis the electric flux through that surface.
Why the displacement-current term matters
The permeability of free space is
μ0=4π×10−7 H/m.The factor
c21is extremely small because the speed of light is very large. Consequently, in many low-frequency electrical engineering applications, the changing-electric-field term is much smaller than the conduction-current term and can be neglected.
At sufficiently high frequencies, including frequencies in the hundreds of megahertz or gigahertz range, the displacement-current contribution can become important. It is essential in the analysis of electromagnetic waves, capacitors at high frequency, antennas, and other high-frequency systems.
The displacement-current term is also conceptually important because it makes the laws of electricity and magnetism mutually consistent. A changing electric field can produce a magnetic field just as an electric current can.
Application: Magnetic Field Inside a Solenoid
Consider a long solenoid with:
- N turns.
- Length ℓ.
- Current I.
- Cross-sectional area A.
A rectangular closed contour can be chosen so that one side lies inside the solenoid and the other side lies outside it.
For a sufficiently long solenoid, the magnetic field outside is approximately zero. Therefore, the line integral around the contour is mainly the contribution from the interior side:
∮CB⋅dl≈Bℓ.The selected surface is crossed once by each turn of the winding. Thus, the total current passing through the surface is
Ithrough=NI.At low frequencies, the displacement-current term can be neglected. Ampère’s law becomes
Bℓ=μ0NI.Solving for the magnetic field inside the solenoid gives
B=μ0ℓNI.The quantity ℓN is the number of turns per unit length. Therefore, the magnetic field increases when:
- The number of turns increases.
- The current increases.
- The solenoid length decreases while the number of turns remains fixed.
Flux, Reluctance, and Inductance
The magnetic flux through one turn is approximately
Φ=BA.Substituting the solenoid field gives
Φ=(μ0ℓNI)A.Rearranging,
Φ=ℓ/(μ0A)NI.The quantity
R=μ0Aℓis called the magnetic reluctance of the air-core magnetic path.
Reluctance plays a role in magnetic circuits similar to the role resistance plays in electrical circuits. The relationship can be written as
Φ=RNI.The quantity NI is the magnetomotive force, and it is analogous to voltage in an electrical circuit.
The inductance is determined by flux linkage per unit current:
L=INΦ.Using Φ=RNI gives
L=RN2.For the air-core solenoid,
L=ℓμ0N2A.This expression shows that inductance increases with:
- The square of the number of turns.
- The cross-sectional area.
- The magnetic permeability.
- A shorter magnetic path.
Because the number of turns is squared, doubling the number of turns ideally increases the inductance by a factor of four.
Accuracy of the long-solenoid approximation
The equation
B=μ0ℓNIand the associated inductance formula are approximations. They work well when the inductor is slender, meaning that its diameter is small compared with its length.
If the diameter becomes comparable to the length, the magnetic field is no longer uniform, especially near the ends. More advanced methods, such as finite-element analysis or specialized magnetic-field equations, are then needed.
For a slender air-core inductor, however, the simple formulas provide magnetic-field and inductance values close to those obtained using more sophisticated calculations.
Think About It
Why does increasing the number of turns increase inductance approximately as N2 rather than merely as N? One factor of N comes from the magnetic field produced by the turns, and the second factor comes from the number of turns through which the resulting flux links.
How the Four Equations Fit Together
The four Maxwell equations are not isolated formulas. Together, they describe a complete chain of electromagnetic cause and effect.
Electric charge produces electric-field divergence
Gauss’s law for electricity states
∇⋅E=ϵ0ρ.Electric charges act as sources or sinks of electric field.
Magnetic field has no known isolated sources
Gauss’s law for magnetism states
∇⋅B=0.Magnetic field lines form continuous loops rather than beginning or ending on isolated magnetic charges.
Changing magnetic fields produce circulating electric fields
Faraday’s law states
∇×E=−∂t∂B.This is the principle behind electromagnetic induction, generators, transformers, and inductor voltage.
Currents and changing electric fields produce circulating magnetic fields
The Ampère–Maxwell law states
∇×B=μ0J+μ0ϵ0∂t∂E.This explains the magnetic field around conductors and the magnetic effect of changing electric fields.
The last two equations create a particularly important relationship. A changing magnetic field produces an electric field, and a changing electric field produces a magnetic field. Under appropriate conditions, these mutually generating fields can travel through space as an electromagnetic wave.
Additional Equations Needed for Electromagnetic Problems
Maxwell’s equations describe the fields, but several additional relationships are needed to determine how charges and matter respond.
Conservation of charge
Electric charge cannot simply appear or disappear. Charge conservation is expressed by the continuity equation:
∂t∂ρ+∇⋅J=0.If charge density in a region decreases, current must be flowing out of that region. If current flows into a region, the charge density can increase.
Lorentz force
The force on a charge moving in electric and magnetic fields is described by the Lorentz force:
F=q(E+v×B).The electric field contributes a force directly along or opposite to the field, depending on the sign of the charge. The magnetic force depends on the charge velocity and acts perpendicular to both v and B.
This equation connects the electromagnetic fields to the actual motion of charged particles.
Equation of motion
The motion of a particle follows the relationship
dtdp=F,where p is momentum and F is force. In relativistic situations, momentum must include the appropriate Einstein correction rather than being approximated simply as mass times velocity.
Together with gravitation and the other laws of classical physics, these relationships provide a broader framework for analyzing physical systems.
Comprehensive Review
Maxwell’s equations can be remembered by separating them into divergence and curl equations.
The two divergence equations
Electric field
∇⋅E=ϵ0ρElectric charge produces electric-field divergence. In integral form,
∮SE⋅dA=ϵ0Qinside.This law explains the electric field between capacitor plates and leads to
C=dϵ0A.Magnetic field
∇⋅B=0Magnetic flux through a closed surface is always zero:
∮SB⋅dA=0.This expresses the absence of observed isolated magnetic monopoles and explains the continuity of magnetic flux through a core and air gap.
The two curl equations
Electric-field curl
∇×E=−∂t∂BA changing magnetic field produces a circulating electric field. In integral form,
∮CE⋅dl=−dtdΦB.This produces induced voltage and leads to the inductor relationship
V=Ldtdi.Magnetic-field curl
∇×B=μ0J+μ0ϵ0∂t∂EElectric current and changing electric fields produce circulating magnetic fields. For a long air-core solenoid at low frequency,
B=μ0ℓNI.The corresponding magnetic-circuit relationships are
R=μ0Aℓ, Φ=RNI,and
L=RN2.The central lesson is that capacitors and inductors are not merely abstract circuit components. Their familiar equations arise from Maxwell’s field laws: electric charge and electric flux explain capacitance, while magnetic flux and electromagnetic induction explain inductance.

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