Skip to content

Magnetostatics and Maxwell’s Equations

I=dqdt.I=\frac{dq}{dt}. I=∫SJ⋅dS.I=\int_S\mathbf{J}\cdot d\mathbf{S}.

Current continuity in a tapered conducting tube.

Current continuity in a tapered conducting tube.

J=σE.\mathbf{J}=\sigma\mathbf{E}.

In a dielectric, charges do not cross the material in the same way, but a time-varying electric flux density can still act as a current term in Maxwell’s equations.

B=μH.\mathbf{B}=\mu\mathbf{H}.

μ\mu is the absolute permeability of the medium. B\mathbf{B} is measured in tesla, and H\mathbf{H} is measured in amperes per metre.

For a steady current element,

dH=I dl×aR4πR2.d\mathbf{H}=\frac{I\,d\mathbf{l}\times\mathbf{a}_R}{4\pi R^2}.

The field H\mathbf{H} is determined by current geometry; the material response enters later through B=μH\mathbf{B}=\mu\mathbf{H}.

For a complete current path,

H=∫CI dl×aR4πR2.\mathbf{H}=\int_C\frac{I\,d\mathbf{l}\times\mathbf{a}_R}{4\pi R^2}.

Source-to-observation geometry for the Biot-Savart law.

Source-to-observation geometry for the Biot-Savart law.

Applying this geometry to a finite straight segment converts the path integral into angular end limits.

Field geometry of a finite straight current segment.

Field geometry of a finite straight current segment.

Closing the current path into a circular loop makes all transverse field contributions cancel on the axis.

Biot-Savart construction for the field on a circular loop axis.

Biot-Savart construction for the field on a circular loop axis.

Let a current II flow in the +z+z-direction. At radial distance ρ\rho,

dl=dz′az,R=ρaρ−z′az,dl×R=ρ dz′aϕ.d\mathbf l=dz'\mathbf a_z, \qquad \mathbf R=\rho\mathbf a_\rho-z'\mathbf a_z, \qquad d\mathbf l\times\mathbf R=\rho\,dz'\mathbf a_\phi.

The Biot-Savart integral becomes

H=Iρ4πaϕ∫−∞∞dz′(ρ2+z′2)3/2=I2πρaϕ.\begin{aligned} \mathbf H & =\frac{I\rho}{4\pi}\mathbf a_\phi \int_{-\infty}^{\infty}\frac{dz'}{(\rho^2+z'^2)^{3/2}} \\ & =\boxed{\frac{I}{2\pi\rho}\mathbf a_\phi}. \end{aligned}

Thus B=μIaϕ/(2πρ)\mathbf B=\mu I\mathbf a_\phi/(2\pi\rho). The field forms concentric circles whose direction follows the right-hand grip rule.

For a circular loop of radius aa, every current element is perpendicular to its displacement vector toward the centre, is the same distance aa away, and produces a field in the same axial direction. Therefore

H=∮CI dl4πa2=I4πa2(2πa)=I2a.H=\oint_C\frac{I\,dl}{4\pi a^2} =\frac{I}{4\pi a^2}(2\pi a) =\boxed{\frac{I}{2a}}.

For a closely wound NN-turn coil,

H=NI2aan,B=μNI2aan,\boxed{\mathbf H=\frac{NI}{2a}\mathbf a_n}, \qquad \boxed{\mathbf B=\frac{\mu NI}{2a}\mathbf a_n},

where an\mathbf a_n is set by the current direction and the right-hand rule.

Standard results:

Current geometryMagnetic field
Infinite straight wireHϕ=I2πρH_\phi=\dfrac{I}{2\pi\rho}
Circular loop, centreH=I2aH=\dfrac{I}{2a}
Long solenoidH=nIH=nI
ToroidHϕ=NI2πρH_\phi=\dfrac{NI}{2\pi\rho}

Integral form for steady current:

∮CH⋅dl=Ienc.\oint_C\mathbf{H}\cdot d\mathbf{l}=I_{\text{enc}}.

The left side measures circulation of magnetic field intensity around the closed contour CC. The right side is the current passing through any surface bounded by that contour.

Differential form:

∇×H=J.\nabla\times\mathbf{H}=\mathbf{J}.

This steady-current form is exact for magnetostatics. Time-varying fields require an additional displacement-current term, introduced below, so that current remains continuous through regions such as capacitor gaps.

Amperian paths for a long solenoid and a toroid.

Amperian paths for a long solenoid and a toroid.

Within a uniformly current-filled conductor, the enclosed current grows with the area of the chosen Amperian circle.

Magnetic field intensity of a solid conductor with uniform current density.

Magnetic field intensity of a solid conductor with uniform current density.

For a solid conductor of radius aa carrying uniformly distributed current II, a circular path of radius ρ<a\rho<a encloses Iρ2/a2I\rho^2/a^2. Consequently,

H(ρ)={Iρ2πa2aϕ,0≤ρ<a,I2πρaϕ,ρ≥a.\mathbf H(\rho)= \begin{cases} \dfrac{I\rho}{2\pi a^2}\mathbf a_\phi, & 0\le\rho<a, \\[0.7em] \dfrac{I}{2\pi\rho}\mathbf a_\phi, & \rho\ge a. \end{cases}

For a long solenoid having NN turns over length ll, let n=N/ln=N/l. A rectangular Amperian path of axial length LL links nLnL turns. Neglecting the external and end fields gives

HL=nLI,H=nIaz,B=μnIaz.HL=nLI, \qquad \boxed{\mathbf H=nI\mathbf a_z}, \qquad \boxed{\mathbf B=\mu nI\mathbf a_z}.

For an ideal toroid with NN turns, a circular path inside the core links all turns:

Hϕ(2πρ)=NI,H=NI2πρaϕ.H_\phi(2\pi\rho)=NI, \qquad \boxed{\mathbf H=\frac{NI}{2\pi\rho}\mathbf a_\phi}.

The ideal external field is approximately zero because a path outside the toroid encloses zero net turn current.

Ampere’s law is most useful when symmetry makes H\mathbf{H} constant along an Amperian path.

FeatureBiot-Savart lawAmpere’s circuital law
Methodsums source-element fieldsrelates circulation to linked current
Required geometryarbitrary, if integrablehigh symmetry for direct solution
Field directionfrom the cross productinferred from symmetry
Best suited tofinite wires, arcs and loopsinfinite wires, solenoids and toroids
Time domainsteady-current formMaxwell form includes displacement current

Biot-Savart integration is the more general direct calculation. Ampere’s law is faster when a path can be chosen on which H\mathbf H is tangential and constant.

Thus,

J=∇×H.\mathbf{J}=\nabla\times\mathbf{H}.

Magnetic flux has no isolated source or sink:

∇⋅B=0.\nabla\cdot\mathbf{B}=0.

In a simply connected region with no free current,

∇×H=0.\nabla\times\mathbf{H}=0.

Hence H\mathbf{H} can be written as the negative gradient of a magnetic scalar potential VmV_m:

H=−∇Vm.\mathbf{H}=-\nabla V_m.

For a uniform medium with no current in the region, ∇⋅B=0\nabla\cdot\mathbf{B}=0 and B=μH\mathbf{B}=\mu\mathbf{H} give

∇2Vm=0.\nabla^2V_m=0.

The scalar magnetic potential is not generally single-valued around paths that enclose current.

Since the divergence of a curl is always zero and ∇⋅B=0\nabla\cdot\mathbf{B}=0, a magnetic vector potential A\mathbf{A} may always be defined by

B=∇×A.\mathbf{B}=\nabla\times\mathbf{A}.

For a linear medium,

H=1μ∇×A.\mathbf{H}=\frac{1}{\mu}\nabla\times\mathbf{A}.

The vector potential is not unique, because adding the gradient of any scalar function to A\mathbf{A} leaves ∇×A\nabla\times\mathbf{A} unchanged. With the common Coulomb gauge ∇⋅A=0\nabla\cdot\mathbf{A}=0 and uniform μ\mu, magnetostatics gives

∇2A=−μJ.\nabla^2\mathbf{A}=-\mu\mathbf{J}.

For a localized current distribution, the corresponding Green-function solution is

A(r)=μ4π∫VJ(r′)∣r−r′∣ dV′.\boxed{\mathbf A(\mathbf r)=\frac{\mu}{4\pi} \int_V\frac{\mathbf J(\mathbf r')}{\lvert\mathbf r-\mathbf r'\rvert}\,dV'}.

For a thin filament carrying current II, this reduces to

A(r)=μI4π∫Cdl′∣r−r′∣.\boxed{\mathbf A(\mathbf r)=\frac{\mu I}{4\pi} \int_C\frac{d\mathbf l'}{\lvert\mathbf r-\mathbf r'\rvert}}.

The two potential descriptions have different domains of usefulness:

FeatureScalar potential VmV_mVector potential A\mathbf A
Field relationH=−∇Vm\mathbf H=-\nabla V_mB=∇×A\mathbf B=\nabla\times\mathbf A
Valid regioncurrent-free and simply connectedgeneral magnetostatic field
Uniform-medium equation∇2Vm=0\nabla^2V_m=0∇2A=−μJ\nabla^2\mathbf A=-\mu\mathbf J
Typical usegaps and magnetic circuitscurrent distributions, flux and inductance
Nonuniquenessmay be multivalued around currenthas gauge freedom
Φ=∫SB⋅dS=∮CA⋅dl.\Phi=\int_S\mathbf{B}\cdot d\mathbf{S} =\oint_C\mathbf{A}\cdot d\mathbf{l}.

Magnetic vector potential around a line current.

Magnetic vector potential around a line current.

For a single-turn stationary loop,

e=−dΦdt,Φ=∫SB⋅dS.e=-\frac{d\Phi}{dt}, \qquad \Phi=\int_S\mathbf{B}\cdot d\mathbf{S}.

For an NN-turn coil with the same flux linking each turn,

e=−NdΦdt.e=-N\frac{d\Phi}{dt}.

For a fixed loop, the induced emf is also the circulation of electric field intensity around the boundary curve CC:

∮CE⋅dl=−ddt∫SB⋅dS=−∫S∂B∂t⋅dS.\oint_C\mathbf{E}\cdot d\mathbf{l} =-\frac{d}{dt}\int_S\mathbf{B}\cdot d\mathbf{S} =-\int_S\frac{\partial\mathbf{B}}{\partial t}\cdot d\mathbf{S}.

Using Stokes’ theorem gives the local differential form

∇×E=−∂B∂t.\nabla\times\mathbf{E}=-\frac{\partial\mathbf{B}}{\partial t}.

Thus a time-varying magnetic field produces a circulating electric field, even when no conducting wire is present.

Maxwell’s equations are fundamental laws based on experiment; they are not derived from one another. The following steps derive the differential form of each law from its corresponding integral form.

Start with the integral law over a closed surface ∂V\partial V:

∮∂VD⋅dS=Qenc=∫Vρv dV.\oint_{\partial V}\mathbf{D}\cdot d\mathbf{S} =Q_{\text{enc}} =\int_V\rho_v\,dV.

Apply the divergence theorem to the flux integral:

∮∂VD⋅dS=∫V∇⋅D dV.\oint_{\partial V}\mathbf{D}\cdot d\mathbf{S} =\int_V\nabla\cdot\mathbf{D}\,dV.

Equating the two volume integrals gives

∫V(∇⋅D−ρv)dV=0.\int_V\left(\nabla\cdot\mathbf{D}-\rho_v\right)dV=0.

Because this is true for every arbitrary volume VV, the integrand must vanish at every point. Therefore,

∇⋅D=ρv.\boxed{\nabla\cdot\mathbf{D}=\rho_v}.

There are no observed isolated magnetic charges, so the net magnetic flux through any closed surface is zero:

∮∂VB⋅dS=0.\oint_{\partial V}\mathbf{B}\cdot d\mathbf{S}=0.

Apply the divergence theorem:

∫V∇⋅B dV=0.\int_V\nabla\cdot\mathbf{B}\,dV=0.

Since this holds for every arbitrary volume VV,

∇⋅B=0.\boxed{\nabla\cdot\mathbf{B}=0}.

This means magnetic field lines form closed loops rather than beginning or ending at magnetic monopoles.

Faraday’s Law of Electromagnetic Induction

Section titled “Faraday’s Law of Electromagnetic Induction”

For a fixed contour C=∂SC=\partial S, Faraday’s integral law is

∮CE⋅dl=−ddt∫SB⋅dS.\oint_C\mathbf{E}\cdot d\mathbf{l} =-\frac{d}{dt}\int_S\mathbf{B}\cdot d\mathbf{S}.

Because the surface is fixed, move the time derivative inside the integral:

−ddt∫SB⋅dS=−∫S∂B∂t⋅dS.-\frac{d}{dt}\int_S\mathbf{B}\cdot d\mathbf{S} =-\int_S\frac{\partial\mathbf{B}}{\partial t}\cdot d\mathbf{S}.

Apply Stokes’ theorem to the line integral:

∮CE⋅dl=∫S(∇×E)⋅dS.\oint_C\mathbf{E}\cdot d\mathbf{l} =\int_S(\nabla\times\mathbf{E})\cdot d\mathbf{S}.

Equating the surface integrals gives

∫S(∇×E+∂B∂t)⋅dS=0.\int_S\left( \nabla\times\mathbf{E}+\frac{\partial\mathbf{B}}{\partial t} \right)\cdot d\mathbf{S}=0.

Since this is true for every arbitrary surface SS,

∇×E=−∂B∂t.\boxed{ \nabla\times\mathbf{E}=-\frac{\partial\mathbf{B}}{\partial t} }.

The magnetostatic equation ∇×H=J\nabla\times\mathbf{H}=\mathbf{J} cannot by itself describe time-varying charge. Taking its divergence would give

∇⋅(∇×H)=∇⋅J⟹0=∇⋅J.\nabla\cdot(\nabla\times\mathbf{H}) =\nabla\cdot\mathbf{J} \quad\Longrightarrow\quad 0=\nabla\cdot\mathbf{J}.

However, conservation of charge requires

∇⋅J=−∂ρv∂t.\nabla\cdot\mathbf{J}=-\frac{\partial\rho_v}{\partial t}.

Differentiate Gauss’s law ∇⋅D=ρv\nabla\cdot\mathbf{D}=\rho_v with respect to time:

∇⋅∂D∂t=∂ρv∂t.\nabla\cdot\frac{\partial\mathbf{D}}{\partial t} =\frac{\partial\rho_v}{\partial t}.

Adding this relation to the continuity equation gives

∇⋅(J+∂D∂t)=0.\nabla\cdot\left( \mathbf{J}+\frac{\partial\mathbf{D}}{\partial t} \right)=0.

Thus the displacement-current density Jd=∂D/∂t\mathbf{J}_d=\partial\mathbf{D}/\partial t completes the current source in time-varying fields. The corrected integral law is

∮CH⋅dl=∫S(J+∂D∂t)⋅dS.\oint_C\mathbf{H}\cdot d\mathbf{l} =\int_S\left( \mathbf{J}+\frac{\partial\mathbf{D}}{\partial t} \right)\cdot d\mathbf{S}.

Apply Stokes’ theorem to the left-hand side:

∫S(∇×H)⋅dS=∫S(J+∂D∂t)⋅dS.\int_S(\nabla\times\mathbf{H})\cdot d\mathbf{S} =\int_S\left( \mathbf{J}+\frac{\partial\mathbf{D}}{\partial t} \right)\cdot d\mathbf{S}.

Because this holds for every arbitrary surface SS,

∇×H=J+∂D∂t.\boxed{ \nabla\times\mathbf{H} =\mathbf{J}+\frac{\partial\mathbf{D}}{\partial t} }.
LawDifferential formIntegral form
Gauss law for electricity∇⋅D=ρv\nabla\cdot\mathbf{D}=\rho_v∮SD⋅dS=Qenc\oint_S\mathbf{D}\cdot d\mathbf{S}=Q_{\text{enc}}
Gauss law for magnetism∇⋅B=0\nabla\cdot\mathbf{B}=0∮SB⋅dS=0\oint_S\mathbf{B}\cdot d\mathbf{S}=0
Faraday law∇×E=−∂B∂t\nabla\times\mathbf{E}=-\dfrac{\partial\mathbf{B}}{\partial t}∮CE⋅dl=−ddt∫SB⋅dS\oint_C\mathbf{E}\cdot d\mathbf{l}=-\dfrac{d}{dt}\int_S\mathbf{B}\cdot d\mathbf{S}
Ampere-Maxwell law∇×H=J+∂D∂t\nabla\times\mathbf{H}=\mathbf{J}+\dfrac{\partial\mathbf{D}}{\partial t}∮CH⋅dl=Ic+ddt∫SD⋅dS\oint_C\mathbf{H}\cdot d\mathbf{l}=I_c+\dfrac{d}{dt}\int_S\mathbf{D}\cdot d\mathbf{S}

Interpretation of each equation:

EquationPhysical meaning
Gauss law for electricityElectric flux leaving a closed surface equals the charge enclosed by that surface.
Gauss law for magnetismNet magnetic flux through any closed surface is zero; magnetic field lines do not begin or end on isolated magnetic charges.
Faraday lawChanging magnetic flux produces circulating electric field.
Ampere-Maxwell lawConduction current and changing electric flux both produce circulating magnetic field.

Capacitor surfaces for Maxwell equation integral forms.

Capacitor surfaces for Maxwell equation integral forms.

Thus,

Jd=∂D∂t\mathbf{J}_d=\frac{\partial\mathbf{D}}{\partial t}

A charging capacitor is the standard example. In the wires, current is conduction current. Across the dielectric gap, charge does not physically cross from plate to plate, but D=εE\mathbf{D}=\varepsilon\mathbf{E} changes with time as the plate charge and voltage change. The term ∂D/∂t\partial\mathbf{D}/\partial t completes Ampere’s law through the capacitor gap and makes the same enclosed-current result independent of which surface spans the loop.

The total current density used in the Ampere-Maxwell law is therefore

Jtotal=J+Jd=σE+∂D∂t.\mathbf{J}_{\text{total}}=\mathbf{J}+\mathbf{J}_d =\sigma\mathbf{E}+\frac{\partial\mathbf{D}}{\partial t}.

Its differential form is

∇⋅J=−∂ρv∂t.\nabla\cdot\mathbf{J}=-\frac{\partial\rho_v}{\partial t}.

This relation is consistent with the Ampere-Maxwell law and Gauss’s law.

Consider two materials separated by an interface. Let an12\mathbf a_{n12} be the unit normal directed from medium 1 to medium 2. The boundary conditions describe the behavior of the four principal static field vectors E\mathbf E, D\mathbf D, H\mathbf H and B\mathbf B across that interface.

Boundary Conditions for E\mathbf E and D\mathbf D

Section titled “Boundary Conditions for E\mathbf EE and D\mathbf DD”

Two independent conditions apply at a dielectric interface.

First, the tangential component of electric field intensity is continuous:

an12×(E2−E1)=0,Et1=Et2.\mathbf a_{n12}\times(\mathbf E_2-\mathbf E_1)=0, \qquad E_{t1}=E_{t2}.

Since D=ε0εrE\mathbf D=\varepsilon_0\varepsilon_r\mathbf E, the corresponding tangential flux-density components satisfy

Dt1εr1=Dt2εr2.\frac{D_{t1}}{\varepsilon_{r1}} =\frac{D_{t2}}{\varepsilon_{r2}}.

Second, the normal component of electric flux density has a discontinuity equal to the free surface charge density ρs\rho_s (also written σs\sigma_s):

an12⋅(D2−D1)=ρs,\mathbf a_{n12}\cdot(\mathbf D_2-\mathbf D_1)=\rho_s,

or, in scalar normal components,

Dn2−Dn1=ρs,εr2En2−εr1En1=ρsε0.D_{n2}-D_{n1}=\rho_s, \qquad \varepsilon_{r2}E_{n2}-\varepsilon_{r1}E_{n1} =\frac{\rho_s}{\varepsilon_0}.

Equivalently, Dn1−Dn2=−ρsD_{n1}-D_{n2}=-\rho_s. Reversing the chosen unit normal reverses the signs in the scalar jump equation, but not the physical boundary condition.

For the usual charge-free dielectric interface, ρs=0\rho_s=0, so

Dn1=Dn2,εr1En1=εr2En2.D_{n1}=D_{n2}, \qquad \varepsilon_{r1}E_{n1}=\varepsilon_{r2}E_{n2}.

If θ1\theta_1 and θ2\theta_2 are the angles made by E1\mathbf E_1 and E2\mathbf E_2 with the interface itself, then tan⁡θi=Eni/Eti\tan\theta_i=E_{ni}/E_{ti}. Combining normal-D\mathbf D continuity with tangential-E\mathbf E continuity gives the electric-field refraction law

tan⁡θ1tan⁡θ2=εr2εr1(ρs=0).\boxed{\frac{\tan\theta_1}{\tan\theta_2} =\frac{\varepsilon_{r2}}{\varepsilon_{r1}}} \qquad (\rho_s=0).

Electric-field refraction at a charge-free dielectric interface.

Electric-field refraction at a charge-free dielectric interface.

Boundary Conditions for H\mathbf H and B\mathbf B

Section titled “Boundary Conditions for H\mathbf HH and B\mathbf BB”

Let the two materials have conductivities σ1\sigma_1, σ2\sigma_2 and relative permeabilities μr1\mu_{r1}, μr2\mu_{r2}.

Because magnetic monopoles do not exist, the normal component of magnetic flux density is continuous:

an12⋅(B2−B1)=0,Bn1=Bn2.\mathbf a_{n12}\cdot(\mathbf B_2-\mathbf B_1)=0, \qquad B_{n1}=B_{n2}.

Either orientation may be chosen for the unit normal; the same scalar equality results.

A Gaussian pillbox across a magnetic interface.

A Gaussian pillbox across a magnetic interface.

At a current-free interface, the tangential component of magnetic field strength is continuous:

an12×(H2−H1)=0,Ht1=Ht2.\mathbf a_{n12}\times(\mathbf H_2-\mathbf H_1)=0, \qquad H_{t1}=H_{t2}.

For angles θ1\theta_1 and θ2\theta_2 measured from the interface, continuity of BnB_n gives μr1Hn1=μr2Hn2\mu_{r1}H_{n1}=\mu_{r2}H_{n2}. Together with Ht1=Ht2H_{t1}=H_{t2}, this gives the magnetic-field refraction law

tan⁡θ1tan⁡θ2=μr2μr1(Ks=0).\boxed{\frac{\tan\theta_1}{\tan\theta_2} =\frac{\mu_{r2}}{\mu_{r1}}} \qquad (\mathbf K_s=0).

Magnetic-field refraction at a current-free interface.

Magnetic-field refraction at a current-free interface.

If a free surface-current sheet exists at the interface, the tangential component of H\mathbf H is discontinuous. Its vector boundary condition is

an12×(H2−H1)=Ks,\boxed{\mathbf a_{n12}\times(\mathbf H_2-\mathbf H_1)=\mathbf K_s},

which can equivalently be written in the form

(H1−H2)×an12=Ks.(\mathbf H_1-\mathbf H_2)\times\mathbf a_{n12}=\mathbf K_s.

Here Ks\mathbf K_s (also written K\mathbf K or K0\mathbf K_0) is the free surface-current density in A/m\mathrm{A/m}, and the magnitude of the tangential jump is ∣Ks∣\lvert\mathbf K_s\rvert. Conducting materials can support such a sheet current, but nonzero bulk conductivity alone does not determine Ks\mathbf K_s; the jump is produced by the actual surface current.

The four general boundary conditions are therefore

an12⋅(D2−D1)=ρs,an12⋅(B2−B1)=0,\mathbf a_{n12}\cdot(\mathbf D_2-\mathbf D_1)=\rho_s, \qquad \mathbf a_{n12}\cdot(\mathbf B_2-\mathbf B_1)=0, an12×(E2−E1)=0,an12×(H2−H1)=Ks.\mathbf a_{n12}\times(\mathbf E_2-\mathbf E_1)=0, \qquad \mathbf a_{n12}\times(\mathbf H_2-\mathbf H_1)=\mathbf K_s.

Pillbox and loop constructions at a magnetic boundary.

Pillbox and loop constructions at a magnetic boundary.

The same pillbox and loop constructions yield the general normal and tangential electromagnetic boundary conditions.

Interface constructions for electromagnetic boundary conditions.

Interface constructions for electromagnetic boundary conditions.

At a perfect electric conductor, those general conditions reduce to zero tangential electric field at the surface.

Perfect electric conductor boundary conditions.

Perfect electric conductor boundary conditions.