Maxwell's Equations in Integral and Differential Form
Four equations hold everything this course has built so far. Gauss's law came from Coulomb's experiments, the absence of magnetic charge from the fact that magnets always have two poles, Faraday's law from induction, and Ampère's law with Maxwell's correction from forces between currents plus charge conservation. Written together, they describe every classical electromagnetic phenomenon: the capacitor, the transformer, the antenna, the optical fibre. This lesson collects them in both forms, says what each term means physically, adds the constitutive relations and the boundary conditions that make them solvable, and checks with SymPy that a travelling wave satisfies all four.
The four laws
| Law | Integral form | Differential (point) form | Says |
|---|---|---|---|
| Gauss (electric) | charge is the source of electric flux | ||
| Gauss (magnetic) | magnetic flux lines close; no magnetic charge | ||
| Faraday | a changing makes a circulating | ||
| Ampère–Maxwell | currents and a changing make a circulating |
The integral forms (with a fixed surface and its boundary ) are the ones to use with symmetry, as in Gauss's law and Ampère's law. The point forms follow from the divergence and Stokes theorems (the integral theorems) and are the ones to use for waves and numerical solvers. The two forms say the same thing, except that the integral forms still make sense across surfaces where fields jump, which is where the boundary conditions below come from.
Signs and handedness. In Faraday's law the circulation of runs opposite to the right-hand sense of a growing (Lenz); in Ampère's law circulates with the right-hand sense of the current. That one sign difference is what lets the two curl equations sustain a wave instead of a runaway.
Constitutive relations: what the material adds
The four equations have more unknowns (, , , , and in conductors) than equations. The material closes the system:
for linear, isotropic, non-dispersive media. Real materials can be anisotropic ( a matrix: crystals, some PCB laminates), nonlinear (iron near saturation, Magnetic Materials) or dispersive ( depends on frequency: every material, eventually; Time-Harmonic Fields handles that with complex permittivity).
Charge conservation is built in. Take the divergence of the Ampère–Maxwell law and use Gauss's law: , the continuity equation (Displacement Current). Likewise, the divergence of Faraday's law shows that cannot change in time. So for time-varying fields the two divergence equations act as initial conditions; the two curl equations carry the dynamics.
Boundary conditions
Applying the integral forms to a thin pillbox and a thin rectangular loop that straddle an interface (normal pointing from medium 2 into medium 1) gives four conditions valid for any time dependence:
| Quantity | Condition | From |
|---|---|---|
| tangential | Faraday (the loop's area, and so its flux, shrinks to zero) | |
| tangential | Ampère–Maxwell | |
| normal | Gauss (electric) | |
| normal | Gauss (magnetic) |
These generalise the static conditions of Electrostatic Boundary Conditions and Magnetic Boundary Conditions. At a perfect electric conductor (no fields inside): and at the surface, while the surface charge and surface current carry whatever and the outside field has. Surface currents exist only on perfect conductors; at an interface between real materials is continuous. These four lines are what Reflection at Normal Incidence and Rectangular Waveguides use.
Worked example: does this field obey Maxwell's equations?
Given: in free space, , no charges or currents.
Find: the that goes with it, and the value of that makes all four equations hold.
Solve: , as required. Faraday's law:
Now Ampère–Maxwell must also hold: . Working it through gives , so
Check: and the field pattern moves at . , and the direction of travel form a right-handed set (). Not every field is allowed: pick any other and Faraday's and Ampère's laws contradict each other. The two curl equations together demand waves at speed , Maxwell's prediction (his paper read in 1864, published in 1865) and Hertz's experiments of 1887.
In Python: SymPy does the vector calculus
import sympy as sp
from sympy.vector import CoordSys3D, curl, divergence
R = CoordSys3D("R")
t, w, k, E0, mu, eps = sp.symbols("t omega k E_0 mu epsilon", positive=True)
x, y, z = R.x, R.y, R.z
# trial fields: E along x, H along y, both travelling in +z
H0 = sp.Symbol("H_0", positive=True)
E = E0 * sp.cos(w * t - k * z) * R.i
H = H0 * sp.cos(w * t - k * z) * R.j
gauss_e = sp.simplify(divergence(eps * E))
gauss_m = sp.simplify(divergence(mu * H))
faraday = (curl(E) + mu * sp.diff(H, t)).to_matrix(R).applyfunc(sp.simplify)
ampere = (curl(H) - eps * sp.diff(E, t)).to_matrix(R).applyfunc(sp.simplify)
print("div D =", gauss_e, " div B =", gauss_m)
print("Faraday residual:", list(faraday))
print("Ampere residual: ", list(ampere))
# where sin(kz - wt) = 1 the residuals are just their amplitudes
amps = [r.subs({t: 0, z: sp.pi / (2 * k)}) for r in (faraday[1], ampere[0])]
print("amplitude conditions:", amps)
sol = [s for s in sp.solve(amps, [H0, k], dict=True) if s[k].is_positive]
print("solution:", sol)
# numbers: 100 MHz in free space, E0 = 10 V/m
num = {w: 2 * sp.pi * 1e8, mu: 4e-7 * sp.pi, eps: 8.854e-12, E0: 10}
s = sol[0]
print(f"k = {float(s[k].subs(num)):.4f} rad/m, lambda = {float(2*sp.pi/s[k].subs(num)):.4f} m")
print(f"H0 = {float(s[H0].subs(num))*1e3:.3f} mA/m, E0/H0 = {float((E0/s[H0]).subs(num)):.2f} Ohm")div D = 0 div B = 0
Faraday residual: [0, (-E_0*k + H_0*mu*omega)*sin(R.z*k - omega*t), 0]
Ampere residual: [(-E_0*epsilon*omega + H_0*k)*sin(R.z*k - omega*t), 0, 0]
amplitude conditions: [-E_0*k + H_0*mu*omega, -E_0*epsilon*omega + H_0*k]
solution: [{H_0: E_0*sqrt(epsilon)/sqrt(mu), k: sqrt(epsilon)*sqrt(mu)*omega}]
k = 2.0958 rad/m, lambda = 2.9980 m
H0 = 26.544 mA/m, E0/H0 = 376.73 Ohm
The two amplitude conditions are exactly Faraday's and Ampère's laws for this field; their only positive solution is and , the plane wave of the next section.
Interactive: the solution you just found
The ee-em-wave lab draws this field: at . Its readouts give , and , the numbers of the worked example. and peak together and are perpendicular to each other and to the direction of travel.
Quasi-statics: when can a term be dropped?
Circuit theory is Maxwell's equations with the coupling terms neglected where they are small. Over a region of size at frequency :
- Electroquasistatic (capacitors, high-impedance circuits): neglect in Faraday's law, so again.
- Magnetoquasistatic (inductors, transformers, machines, eddy currents): neglect in Ampère's law (but keep it where it charges a capacitor).
- Both are good when , the lumped condition of the introduction. When approaches , keep everything: transmission lines and radiation.
Guided lab: measure the speed Maxwell predicted
Hand calculation. In a coaxial cable filled with solid polyethylene (), Maxwell's equations give a speed , so a length delays a signal by .
Simulation. The SymPy script with eps set to .
What you would measure. Connect a function generator's fast-edge pulse output (or a square wave with rise time under ) through a BNC T-piece at the scope's channel 1 to of RG-58 (solid PE dielectric) whose far end goes to channel 2 with a feed-through terminator. Measure the delay between the points of the two edges: expect about (RG-58's velocity factor is , giving ). With a scope, the edge timing is good to about and the cable length to , so the velocity factor comes out to within about . Use equal-length short leads for both channels, or measure the instrument skew first with the cable removed.
Hazards and safe setup. Signal-generator levels only; no hazards beyond tripping over the cable.
Pitfalls
- Mixing and in the boundary conditions. Normal and tangential (without surface current) are continuous, not normal .
- Taking the divergence equations as independent of the curl equations. For time-varying fields they follow from them plus charge conservation.
- Forgetting the material is in the constants. In a dielectric , and grows by .
- Applying the point forms across an interface. Derivatives do not exist where fields jump; use the boundary conditions there.
Practice
- Show that cannot be a wave in free space.
- At a boundary with , medium 1 above, with ; medium 2 has and no surface current. Find .
- Repeat the worked example for a dielectric with : find and .
Answer
- in a charge-free region, violating Gauss's law; a plane wave's field must be transverse to its direction of travel.
- Tangential continuous: . Normal continuous: , so . .
- ; , .
Test yourself
Which of Maxwell's equations says that magnetic flux lines have no beginning or end?
At the surface of a perfect electric conductor, which field component must be zero?
- normal
- tangential
- tangential
- all of them
Taking the divergence of the Ampère–Maxwell law and using Gauss's law gives…
- Faraday's law
- the continuity equation
- the wave equation
- Ohm's law
For a , wave in free space, Maxwell's curl equations require $H_0 = $…