Choose a quantity you could measure
Begin with the field on the line between two large parallel plates. Take the left plate at \(+20\) V and the right at zero, separated by \(2.0\) cm. A positive test charge released between them accelerates to the right. Work per charge is \(20\,\mathrm{J/C}\); divided by \(0.020\,\mathrm m\) this gives
On a \(+3.0\,\mathrm{nC}\) bead the force is \(3.0\,\mu\mathrm N\). A voltmeter attached to the two plates still reads 20 V if their separation doubles at fixed potentials, even though the field halves.
This book uses SI. Magnetic flux density \(B\) is in tesla, magnetic field strength \(H\) in A/m, electric displacement \(D\) in C/m², and electric field \(E\) in V/m. In vacuum \(D=\epsilon_0E,\ B=\mu_0H\). For calculations here \(\epsilon_0\simeq8.8542\times10^{-12}\,\mathrm{F/m}\), \(\mu_0\simeq1.2566\times10^{-6}\,\mathrm{H/m}\) and \(c=(\epsilon_0\mu_0)^{-1/2}\). If this is your first encounter with field theory, work the plate example, then the gradient and flux examples immediately below, before starting the charge chapter. Start with charge and potential.
Take a directional derivative before assigning a force
For a smooth scalar potential \(\phi\), a small displacement produces
Work done by a static field on charge \(q\) is \(q\boldsymbol E\cdot d\boldsymbol\ell=-q\,d\phi\). Equality for every displacement gives
The minus sign follows from the decrease in potential energy \(q\phi\) when the field does positive work.
In a patch with \(\phi=(3\,\mathrm{V/m^2})xy\), at \((x,y)=(2,1)\,\mathrm m\) the field is \((-3,-6,0)\,\mathrm{V/m}\). A \(1\,\mathrm{cm}\) displacement in \(+x\) raises the potential by \(0.030\) V; the field does negative work on a positive bead moving that way. Following any curve between two points in this static patch gives the same integral \(-\Delta\phi\). A time-varying magnetic flux changes that last measurement.
Attach the right area and volume to a coordinate
A radial increment is not itself a spherical volume. At radius \(r\), angular increments sweep arc lengths \(r\,d\theta\) and \(r\sin\theta\,d\varphi\), where \(\theta\) is the polar angle. Their product gives
Integrating over the sphere gives \(4\pi r^2\), so \(dV=r^2dr\,d\Omega\). In cylindrical coordinates the analogous azimuthal arc is \(s\,d\varphi\), giving \(dV=s\,ds\,d\varphi\,dz\).
A uniformly charged sphere of radius \(3\,\mathrm{cm}\) contains only \(1/27\) of its charge inside \(1\,\mathrm{cm}\), since the volume integral scales as \(r^3\). A detector viewing a source through a polar cap of half-angle \(60^\circ\) subtends \(2\pi(1-\cos60^\circ)=\pi\) steradians. It collects one quarter of an isotropic source's total power. A dipole weights the same solid-angle elements unequally. Integrate the dipole radiation pattern.
Infer a local divergence from flux
Across the two opposite \(x\)-faces of a small rectangular box, the net outward flux of \(\boldsymbol F\) is approximately \([F_x(x+dx)-F_x(x)]\,dy\,dz\). Dividing by the volume and adding the other face pairs gives \(\nabla\cdot\boldsymbol F\). Internal faces cancel when boxes are joined. The resulting identity is \(\int_V\nabla\cdot\boldsymbol F\,dV=\oint_{\partial V}\boldsymbol F\cdot\boldsymbol n\,dA\) with outward normal. Applied to \(\boldsymbol D\), the flux counts free charge.
In a cube of side \(0.10\,\mathrm m\) let \(D_x=(2.0\,\mu\mathrm{C/m^3})x\) and other components vanish. The divergence is \(2.0\,\mu\mathrm{C/m^3}\), so the cube contains \(2.0\) nC of free charge. Directly, the \(x\)-faces differ by \(0.20\,\mu\mathrm{C/m^2}\) over \(0.010\,\mathrm{m^2}\), giving the same result. Moving the cube does not change the difference here. A single point's field magnitude alone would not give the enclosed charge.
Follow a loop with an oriented normal
A small loop in the \(xy\)-plane, traversed counterclockwise as seen from \(+z\), has circulation per area \(\partial_xF_y-\partial_yF_x=(\nabla\times\boldsymbol F)_z\). Summing loops that tile a surface cancels interior edges, leaving \(\oint_{\partial S}\boldsymbol F\cdot d\boldsymbol\ell=\int_S(\nabla\times\boldsymbol F)\cdot\boldsymbol n\,dA\). Curl measures circulation density. A field can have a large magnitude parallel to a straight wire while having zero circulation around a distant closed loop.
Take a stationary loop of area \(0.020\,\mathrm{m^2}\), with uniform normal field \(B_z\) growing at \(0.30\,\mathrm{T/s}\). Faraday's law gives \(\oint\boldsymbol E\cdot d\boldsymbol\ell=-6.0\,\mathrm{mV}\) in the stated counterclockwise orientation. Reverse the normal and path together; the reported circulation changes sign. A moving conducting loop also requires the magnetic force per charge \(\boldsymbol v\times\boldsymbol B\) in its measured emf. Work through a moving bar.
Keep point and sheet sources when differentiating
For \(r>0\),
But every sphere enclosing the origin has outward flux \(4\pi\). A volume source must preserve that finite integral even as the sphere shrinks. Distributionally,
The delta has units \(\mathrm{m^{-3}}\) and obeys \(\int f(\boldsymbol r)\delta^3(\boldsymbol r-\boldsymbol a)dV=f(\boldsymbol a)\) for smooth test functions.
A sheet at \(z=0\) with density \(\sigma=2.0\,\mathrm{nC/m^2}\) instead has volume density \(\rho=\sigma\delta(z)\); integrating through the sheet over \(0.40\,\mathrm{m^2}\) gives \(0.80\) nC. A finite-volume model that smears the sheet over thickness \(h\) needs \(\rho\simeq\sigma/h\). Refining \(h\) doubles the peak if the thickness halves, while its integral stays fixed. Derive the source term from a test function.
Choose the boundary condition that matches the apparatus
Gauss's law and electrostatics give \(-\nabla\cdot(\epsilon\nabla\phi)=\rho_{\rm free}\) in a linear dielectric. If \(\epsilon\) varies, leaving it inside the divergence keeps the correct flux. A voltage source supplies Dirichlet data \(\phi=g\). Specified normal electric displacement supplies Neumann data \(-\epsilon\partial_n\phi=D_n\) for scalar \(\epsilon\). Prescribing normal flux everywhere requires
A compatible pure Neumann problem fixes the potential up to a constant in a connected region. An isolated neutral conductor is equipotential at an unknown voltage, with its total charge constrained; a grounded conductor instead has a specified voltage and can exchange charge.
To test uniqueness with fixed electrode voltages, subtract two candidate solutions for the same source. Their difference \(u\) satisfies \(\nabla\cdot(\epsilon\nabla u)=0\) and vanishes on the electrodes. Integrating \(u\nabla\cdot(\epsilon\nabla u)\) by parts gives \(\int\epsilon|\nabla u|^2dV=0\) if the boundary term vanishes everywhere. For positive \(\epsilon\) the difference is constant and at a fixed electrode it is zero. Test a grounded-domain solution on a grid. Compare a floating electrode with ground.
Turn a point response into an extended-source solution
Let \(G\) solve \(-\nabla^2G(\boldsymbol r,\boldsymbol r')=\delta^3(\boldsymbol r-\boldsymbol r')\) with homogeneous boundary conditions. In vacuum, integrating weighted responses gives
Applying \(-\nabla^2\) under the integral recovers \(\rho/\epsilon_0\). Nonzero prescribed boundary voltages supply an additional source-free solution. In free space \(G=1/(4\pi|\boldsymbol r-\boldsymbol r'|)\), with units of inverse length.
Put a point charge at \(z=a>0\) above a grounded infinite plane. Subtract the free-space response of a reflected charge at \(-a\). On the plane both distances agree, so the potential vanishes there; in the accessible half-space only the actual charge supplies a delta source. Uniqueness justifies the image construction. For \(q=1.0\,\mathrm{nC}\) and \(a=1.0\,\mathrm{cm}\), the force from the image has magnitude \(q^2/[4\pi\epsilon_0(2a)^2]=22.5\,\mu\mathrm N\), directed towards the plane. Construct the bounded Green function and its reciprocity.
Apply a pillbox and a ribbon at a material interface
Point a unit normal \(\boldsymbol n\) from medium 1 into medium 2. A shrinking Gaussian pillbox leaves its two faces and gives
A narrow rectangular integration ribbon leaves the two tangential segments, giving \(\boldsymbol n\times(\boldsymbol E_2-\boldsymbol E_1)=0\) for finite magnetic fields and \(\boldsymbol n\times(\boldsymbol H_2-\boldsymbol H_1)=\boldsymbol K_f\) for a free sheet current and finite displacement field.
At a charge-free interface from vacuum to a linear dielectric with \(\epsilon_r=4\), suppose the normal and tangential components of \(\boldsymbol E_1\) are 800 and 300 V/m. Then \(E_{2n}=200\,\mathrm{V/m}\), while \(E_{2t}=300\,\mathrm{V/m}\). The normal displacement is \(7.08\,\mathrm{nC/m^2}\) on both sides; the total field angle changes. A sheet of bound charge is consistent with these conditions because the pillbox for \(\boldsymbol D\) counts only free charge. Work through polarisation and free charge.
Use a conservation law to identify a missing current
If charge leaves a fixed region through its surface at a positive rate, the charge inside must decrease. This gives \(\partial_t\rho+\nabla\cdot\boldsymbol J=0\) after applying the divergence theorem. Taking the divergence of \(\nabla\times\boldsymbol H=\boldsymbol J_f+\partial_t\boldsymbol D\) recovers the same statement: the divergence of a curl vanishes and \(\nabla\cdot\boldsymbol D=\rho_f\). The displacement-current term makes the field equation compatible with charging an insulator-bounded region.
A current of \(2.0\,\mathrm{mA}\) charges large capacitor plates of area \(5.0\times10^{-3}\,\mathrm{m^2}\). With negligible fringing, \(A\,\partial_t D_n=I\), hence \(\partial_tD_n=0.40\,\mathrm{A/m^2}\). In a vacuum gap this means \(\partial_tE_n=4.52\times10^{10}\,\mathrm{V/(m\,s)}\). The conduction current crosses a wire section and the displacement current crosses a surface through the gap. Either spanning surface predicts the same magnetic circulation around its common rim. Follow the charging capacitor through space and time.
Reconstruct fields from potentials and test a gauge change
Locally, \(\nabla\cdot\boldsymbol B=0\) allows \(\boldsymbol B=\nabla\times\boldsymbol A\). Faraday's law then makes \(\boldsymbol E+\partial_t\boldsymbol A\) curl free and locally expressible as \(-\nabla\phi\). In simply connected regions the scalar potential for this combination is single-valued. Under \(\boldsymbol A'=\boldsymbol A+\nabla\chi,\ \phi'=\phi-\partial_t\chi\), the added terms in \(\boldsymbol E\) cancel by equality of mixed derivatives; the curl of the added gradient in \(\boldsymbol B\) is zero.
For a static uniform \(B_0\hat{\boldsymbol z}\), use either \(\boldsymbol A_1=B_0x\hat{\boldsymbol y}\) or \(\boldsymbol A_2=B_0(-y\hat{\boldsymbol x}+x\hat{\boldsymbol y})/2\). Their difference is the gradient of \(\chi=-B_0xy/2\). A rectangular loop of area \(0.050\,\mathrm{m^2}\) normal to \(B_0=0.20\,\mathrm T\) has \(\oint\boldsymbol A\cdot d\boldsymbol\ell=0.010\,\mathrm{Wb}\) in either gauge. Follow the gauge choice into time-dependent fields.
Use the double curl to choose between waves and diffusion
The identity \(\nabla\times(\nabla\times\boldsymbol E)=\nabla(\nabla\cdot\boldsymbol E)-\nabla^2\boldsymbol E\) connects curl measurements to a spatial operator acting on each Cartesian component. In a uniform source-free dielectric with \(\boldsymbol J=\sigma\boldsymbol E\) and \(\nabla\cdot\boldsymbol E=0\), combine Faraday and Ampère–Maxwell to obtain
Setting \(\sigma=0\) gives wave speed \(1/\sqrt{\mu\epsilon}\). For harmonic fields the ratio of displacement to conduction currents is \(\omega\epsilon/\sigma\); when small, dropping the second time derivative gives magnetic diffusivity \(1/(\mu\sigma)\).
At \(1.0\,\mathrm{kHz}\), a vacuum wavelength is roughly 300 km. In a good conductor with \(\mu\simeq\mu_0\) and \(\sigma=5.8\times10^7\,\mathrm{S/m}\), the harmonic skin depth is only \(\sqrt{2/(\omega\mu\sigma)}=2.09\,\mathrm{mm}\). Inserting the vacuum wavelength as a penetration length in the conductor would miss the dominant term in its field equation. Compare a field step with a harmonic field.
Close an energy balance over a chosen volume
Dot the Ampère–Maxwell equation with \(\boldsymbol E\), dot Faraday's law with \(\boldsymbol H\), and use \(\nabla\cdot(\boldsymbol E\times\boldsymbol H)=\boldsymbol H\cdot\nabla\times\boldsymbol E-\boldsymbol E\cdot\nabla\times\boldsymbol H\). For linear, time-independent, nondispersive media with symmetric constitutive tensors this gives
with \(u=(\boldsymbol E\cdot\boldsymbol D+\boldsymbol B\cdot\boldsymbol H)/2\) and \(\boldsymbol S=\boldsymbol E\times\boldsymbol H\). In vacuum the same formula holds directly. In dispersive matter the energy stored in the material's dynamical response must also be accounted for.
Suppose 3.0 W flows into a stationary resistor enclosure and 0.20 W leaves by other electromagnetic paths. During a transient the field energy inside rises at \(0.30\,\mathrm{J/s}\). The remaining \(2.50\,\mathrm W\) is delivered to matter. With a uniform Ohmic field \(E=10\,\mathrm{V/m}\), conductivity \(5\,\mathrm{S/m}\) and resistor volume \(0.005\,\mathrm{m^3}\), the independent volume integral \(\sigma E^2V\) gives that same 2.50 W. Derive energy transport from the fields.
Average a real product before interpreting a complex power
Choose peak phasors and write \(\boldsymbol E(t)=\operatorname{Re}[\widetilde{\boldsymbol E}e^{-i\omega t}]\), so \(\partial_t\) acts as \(-i\omega\). A forward attenuating wave can then be written \(e^{ikz-i\omega t}\) with positive \(\operatorname{Im}k\). Some chapters instead state \(e^{+i\omega t}\); conjugate the phasors and the spatial exponential consistently when switching conventions. Time-averaged physical powers have the same sign. Multiplying the two real fields produces constant and double-frequency terms; averaging removes the latter, giving \(\langle\boldsymbol S\rangle=\tfrac12\operatorname{Re}(\widetilde{\boldsymbol E}\times\widetilde{\boldsymbol H}^*)\). Using rms phasors absorbs the factor one half.
With orthogonal transverse peak amplitudes \(E=10\,\mathrm{V/m}\), \(H=0.040\,\mathrm{A/m}\) and a relative temporal phase of \(60^\circ\), the mean flux magnitude along their cross product is \(0.5(10)(0.040)\cos60^\circ=0.100\,\mathrm{W/m^2}\). A phase difference of \(90^\circ\) gives zero mean power even when both local amplitudes are large. Compare average and reactive power in a conductor.
Check two observers' fields without transforming every component
Fix SI components and the metric \((+,-,-,-)\), with \(x^0=ct\). The field combinations \(I_1=B^2-E^2/c^2\) and \(I_2=\boldsymbol E\cdot\boldsymbol B\) have the same values under proper Lorentz transformations. The first follows from the tensor contraction \(F_{\mu\nu}F^{\mu\nu}=2I_1\); the second is proportional to the contraction with the dual tensor and changes sign under a spatial reflection. The factor \(1/c^2\) converts squared electric-field units into squared tesla. A plane wave has \(E=cB\) and perpendicular fields, giving two zero invariants even though it carries energy.
Take \(\boldsymbol E=(3.0\times10^5,0,0)\,\mathrm{V/m}\) and \(\boldsymbol B=(0,0,2.0\times10^{-3})\,\mathrm T\). Then \(I_1\simeq3.0\times10^{-6}\,\mathrm{T^2}>0,\ I_2=0\). For an observer moving at \(\boldsymbol v=\boldsymbol E\times\boldsymbol B/B^2\), the perpendicular transformation gives \(\boldsymbol E'=\gamma(\boldsymbol E+\boldsymbol v\times\boldsymbol B)=0\). The required speed is \(1.5\times10^8\,\mathrm{m/s}<c\), along \(-y\). From the invariant, \(B'=\sqrt{I_1}\simeq1.73\,\mathrm{mT}\). Both observers can therefore check the same physical example with different field readings. Compare measurements at one event. Derive the tensor contractions.
Turn a derivation into a solver check
Choose a case with an exact result and use the same units, geometry, source and boundary data in the numerical problem. For a grounded square of side \(L\), choose \(\rho=\rho_0\sin(\pi x/L)\sin(\pi y/L)\). Applying \(-\nabla^2\) to the same sine product multiplies it by \(2\pi^2/L^2\). Therefore \(\phi_{\rm centre}=\rho_0L^2/(2\pi^2\epsilon_0)\). With \(L=1\,\mathrm m,\ \rho_0=2.0\,\mathrm{nC/m^3}\), the centre voltage is \(11.4433\,\mathrm V\).
A square mesh with \(N\) intervals per side has \(h=L/N\). The five-point negative Laplacian acting on that sampled sine has eigenvalue \(8\sin^2[\pi/(2N)]/h^2\). For \(N=12\) it predicts \(11.5089\,\mathrm V\); the discrete equations can be solved to roundoff and still differ from the continuum by \(0.0656\,\mathrm V\). Doubling \(N\) should reduce this nodal error by close to four because \(\sin x=x-x^3/6+\cdots\). Compare the calculated value, the source scaling and the refinement rate. These three observations distinguish a wrong sign or unit from a converged solution on a coarse mesh. Run the square-domain experiment and its OneSimulation example.