Fundamentals / Physics / Electrodynamics / Electrostatic field theory and measurement

Vector calculus through flux, circulation and singular sources

A closed-surface flux and a closed-path circulation answer different experimental questions. Starting from small physical collecting surfaces shows why the associated differential operators look different in Cartesian, cylindrical and spherical coordinates.

How a short displacement detects a derivative

A voltmeter measures a difference between endpoints. If a small displacement \(d\boldsymbol\ell\) changes a smooth potential by \(dV\), the gradient is the unique vector satisfying \(dV=\nabla V\cdot d\boldsymbol\ell\) for every displacement. Its component along an arbitrary unit vector is the slope in that direction. Its largest rate of increase occurs when the displacement is parallel to the gradient. A unit step in a coordinate label does not necessarily mean a unit physical displacement. This distinction is the source of the metric factors in curvilinear coordinates.

At position \((s,\phi,z)\) in cylindrical coordinates, the three physical components of displacement are \(ds,s\,d\phi,dz\). Equating the general dot product to \(\partial_s V\,ds+\partial_\phi V\,d\phi+\partial_z V\,dz\) gives

\[\nabla V=\hat{\mathbf s}\partial_sV+\hat{\boldsymbol\phi}s^{-1}\partial_\phi V+\hat{\mathbf z}\partial_zV .\]

The azimuthal factor converts a voltage change per radian into a voltage change per metre around a circle. For \(V=V_0(s/a)\cos\phi\) the radial and azimuthal components of \(-\nabla V\) are \(-V_0\cos\phi/a\) and \(+V_0\sin\phi/a\). Together they equal the constant Cartesian field \(-V_0\hat{\mathbf x}/a\), since \(s\cos\phi=x\). The apparent angular variation comes only from the rotating local unit vectors. Leaving out \(1/s\) would predict a nonuniform field and components with incompatible dimensions.

Count what leaves the sides of a shrinking cell

Consider a vector \(\mathbf F\), perhaps electric displacement measured in C/m². Define its divergence at a smooth point as the limiting outward flux per cell volume. In a Cartesian box \(\Delta x\Delta y\Delta z\), the opposing \(x\) faces give \([F_x(x+\Delta x)-F_x(x)]\Delta y\Delta z\). Dividing by volume and adding the other pairs gives \(\partial_xF_x+\partial_yF_y+\partial_zF_z\). The signed flux measures the local excess of outflow over inflow. A field can be large and uniform while its divergence is zero.

Repeat the count in a thin cylindrical wedge between \(s\) and \(s+ds\), angular width \(d\phi\), height \(dz\). The outer curved face has larger area than the inner one. Their net flux is \(\partial_s(sF_s)ds\,d\phi\,dz\). The two cuts at fixed angle each have physical area \(ds\,dz\) and differ by \(\partial_\phi F_\phi d\phi\). The axial faces contribute \(\partial_zF_z\,s\,ds\,d\phi\,dz\). Division by the wedge volume gives

\[\nabla\cdot\mathbf F=\frac1s\partial_s(sF_s)+\frac1s\partial_\phi F_\phi+\partial_z F_z .\]

A radial flow \(F_s=A/s\) has zero divergence at positive \(s\) because the same flux crosses every cylindrical side of fixed height. A constant radial magnitude instead has divergence \(A/s\): larger cylinders carry greater total flux and therefore enclose additional source. Specifying that a magnitude is constant says nothing about the divergence of its direction field.

In a spherical sector the radial areas grow as \(r^2\). For a spherically symmetric radial field \(F_r(r)\), the same count gives \(r^{-2}d(r^2F_r)/dr\). A sphere of radius \(r\) then has flux \(4\pi r^2F_r(r)\). Choosing \(F_r=Ar\) produces \(3A\) everywhere instead of \(A\); the two missing contributions in a one-dimensional derivative account for growth of transverse area. For a uniform charge density \(\rho\), setting \(3A=\rho/\epsilon_0\) immediately reconstructs the interior electrostatic field of a sphere.

Inspect a small loop before asserting that a potential exists

The component of curl normal to a surface is the limiting circulation of \(\mathbf F\) around an oriented small loop divided by its area. In an \(xy\) rectangle the upper side is traversed oppositely to the lower one. Opposite \(x\)-directed sides leave \(-\partial_yF_x\); opposite \(y\)-directed sides leave \(+\partial_xF_y\). Thus

\[(\nabla\times\mathbf F)_z=\partial_xF_y-\partial_yF_x.\]

For a planar polar loop the curved segments have different lengths, giving \((\nabla\times\mathbf F)_z=s^{-1}[\partial_s(sF_\phi)-\partial_\phi F_s]\). Curl and divergence use different faces and signs even when their cylindrical formulas share a factor \(1/s\).

Join many neighboring loops. Circulations on common edges cancel in pairs, leaving only the outer boundary; the summed area integrals of the curl give Stokes's theorem. A similar cancellation of internal face fluxes gives the divergence theorem. These are physical bookkeeping identities, and they motivate discretisations that attach oriented fluxes to shared faces and voltages to shared edges. Assigning two independent approximations to one shared face can spoil exact cancellation in a computed conservation budget.

Take \(\mathbf F=A\hat{\boldsymbol\phi}/s\) outside a thin excluded cylinder. Its ordinary curl is zero there. Any circle about the cylinder has circulation \(2\pi A\). A disk spanning this circle would pass through the excluded region, so a surface lying entirely inside the stated domain cannot supply the usual zero-curl conclusion. Locally \(\mathbf F=\nabla(A\phi)\) on any small patch avoiding a branch cut, while the putative potential changes by \(2\pi A\) after a full turn. This example explains the role of domain topology. A genuine static electrostatic source in ordinary free space has a globally consistent potential; a changing flux through an excluded region can instead generate precisely such an exterior circulation.

Measure curvature through neighboring voltages

Taking the divergence of a gradient defines \(\nabla^2V\). A Taylor expansion at a point gives

\[[V(x+h)-2V(x)+V(x-h)]/h^2=\partial_x^2V+O(h^2).\]

Adding the three Cartesian expressions relates the six neighbouring voltage readings to the local charge density. Equivalently, averaging a potential over directions at radius \(h\) removes all terms odd in the displacement. The angular mean of \(n_i n_j\) is \(\delta_{ij}/3\), so for smooth \(V\)

\[\langle V(\mathbf x+h\mathbf n)\rangle_\Omega=V(\mathbf x)+\frac{h^2}{6}\nabla^2V(\mathbf x)+O(h^4).\]

In a region with positive charge, Poisson's equation makes the spherical average smaller than the centre value. An uncharged saddle can have strong curvature along each of two axes that cancels in the sum. A local maximum along a single measurement line therefore does not prove that an interior source exists. To make such an inference one needs curvature in every independent spatial direction or independent symmetry information.

Near a boundary or dielectric interface this smooth Taylor analysis may break down. Enforce the integral flux balance on a cell straddling the interface instead. In media of different permittivity the normal derivative of \(V\) can jump even where there is no free charge. The physical differential operator is then \(\nabla\cdot(\epsilon\nabla V)\); simply inserting a pointwise averaged permittivity in front of a smooth Laplacian may erase the correct jump condition.

Use a test volume to give singular expressions meaning

Outside the origin the divergence of \(\hat{\mathbf r}/r^2\) is zero, yet every sphere centred there has flux \(4\pi\). To characterize its source measure the field against a smooth test function \(f\) of compact support. Excise a ball of radius \(\eta\), integrate by parts in the remaining exterior and note that its inward-facing inner boundary normal is \(-\hat{\mathbf r}\). The zero bulk divergence eliminates the interior term, leaving \(-\int(\hat{\mathbf r}/r^2)\cdot\nabla f\,dV\to4\pi f(0)\) as the ball shrinks. This is the defining action of the three-dimensional delta distribution:

\[\nabla\cdot(\hat{\mathbf r}/r^2)=4\pi\delta^3(\mathbf r),\]
\[\nabla^2(1/r)=-4\pi\delta^3(\mathbf r).\]

The factors and signs follow from an ordinary finite flux calculation. A delta distribution has no finite peak height to compare with a mesh value. A convergent field computation should reproduce its integral and its action on smooth functions. In spherical coordinates a radially concentrated charge can be represented with a radial delta only when the \(4\pi r^2\) integration weight and the convention for the endpoint are treated consistently. It is often safer to specify the enclosed charge directly.

For a finite regularisation take \(V_a=q/(4\pi\epsilon_0\sqrt{r^2+a^2})\). Differentiation gives

\[E_r=q r/[4\pi\epsilon_0(r^2+a^2)^{3/2}].\]

A spherical flux measurement encloses \(Q/q=r^3/(r^2+a^2)^{3/2}\). Its derivative divided by \(4\pi r^2\) gives

\[\rho_a=3qa^2/[4\pi(r^2+a^2)^{5/2}].\]

For every \(a>0\) the density is smooth; its peak scales as \(a^{-3}\), preserving a finite total charge. For fixed \(r>0\), \(Q/q\to1\) as \(a\to0\). Shrinking the collecting radius and the source core simultaneously at fixed \(r/a\) instead retains a nontrivial fraction. The resolution of the probe is part of the limiting experiment.

A sheet of dipoles produces a voltage jump without a net sheet charge

Replace an ideal neutral polarised layer by two parallel charge sheets, one at \(z=-d/2\) with density \(-\sigma\), another at \(z=+d/2\) with density \(+\sigma\). Assume both planes extend far beyond the detectors so their fields can be treated as infinite-plane fields. The field outside cancels. Between them it points from positive to negative,

\[E_z=-\sigma/\epsilon_0.\]

A voltmeter moved from below to above the pair rises by \(+\sigma d/\epsilon_0\). The result can stay finite when \(d\) shrinks provided that the dipole moment per area \(p_s=\sigma d\) is fixed. The fields away from the layer then converge to zero on both sides while the voltage difference persists. This model is useful for a surface dipole layer, for example when positive and negative charge distributions are displaced by molecular-scale distances.

It is essential not to infer the voltage jump from the net charge enclosed in a pillbox, since the net is zero for every \(d\). Write the signed density as \(\rho_d=\sigma[\delta(z-d/2)-\delta(z+d/2)]\). For any smooth test voltage \(f(z)\), integration gives \(\sigma[f(d/2)-f(-d/2)]\to p_sf'(0)\). The distribution with action \(f\mapsto p_s f'(0)\) is \(-p_s\delta'(z)\). In one dimension Poisson's equation is \(-\epsilon_0 V''=\rho\), so a solution is

\[V=(p_s/\epsilon_0)H(z)+{\rm constant},\]

where \(H\) is a step. Its derivative is a delta, its second derivative a delta derivative. Reversing the layer orientation reverses both the jump and the sign of this source distribution.

A conventional monopole sheet instead has \(\rho=\sigma_f\delta(z)\). Its potential is continuous and its normal derivative jumps. The two types of ideal source thus leave different signatures in electrode boundary models. For a voltage jump of 20 mV, the required \(p_s=\epsilon_0(0.020)=1.77\times10^{-13}\) C/m in vacuum. Spreading it across 1.0 nm requires \(\sigma=1.77\times10^{-4}\) C/m² and an internal field of 20 MV/m in that thin-layer model. The large internal field is consistent with a small voltage step because it acts only over one nanometre. At fixed \(p_s\) the field energy per area grows as \(p_s^2/(2\epsilon_0d)\). Thus taking a perfect zero-thickness dipole layer gives useful exterior fields and voltage jumps but not a finite internal energy. A physical model of finite layer thickness is necessary for that observable.

Moving a numerical grid across the sheet illustrates how to recognise the two cases. If its potential samples resolve a continuous cusp, integrating the inferred charge across one symmetric layer gives finite sheet charge. If instead the voltage contains a step, two neighbouring density bins can acquire large opposite entries whose sum tends to zero. Their first moment stays finite. A useful verification uses both \(\int \rho\,dz\) and \(\int z\rho\,dz\) and compares potential readings on each side. A code that preserves charge but smooths a dipole step into an incorrect zero voltage would pass the first test but fail the others.

An explicit flux audit on a nonuniform mesh

To separate geometrical signs from a particular physical equation, take a rectangular box \(0<x<L_x,\ 0<y<L_y,\ 0<z<L_z\) and an exactly known displacement \(\mathbf D=Axy\,\hat{\mathbf x}+B y^2\,\hat{\mathbf y}+Cz\,\hat{\mathbf z}\). The constants have units making each term C/m². Its divergence is \((A+2B)y+C\). Integrating over the volume gives total free charge \(L_x L_z[(A+2B)L_y^2/2+C L_y]\). At \(x=0,y=0,z=0\) the relevant normal components vanish. At \(x=L_x\), integrating over the face gives \(A L_x L_z L_y^2/2\). The \(y=L_y\) face gives \(B L_x L_zL_y^2\), and the top gives \(C L_xL_yL_z\). Addition reproduces the volume calculation, including its factors of two.

Choose numerical constants by specifying \(L_x=L_y=L_z=1\) m, \(A=2\) nC/m⁴, \(B=3\) nC/m⁴ and \(C=4\) nC/m³. The three positive-face contributions are 1, 3 and 4 nC, for total 8 nC. Split the volume at \(y=0.30\) m. The bottom subvolume has volume charge \(\int_0^{0.3}(8y+4)\,dy=1.56\) nC. Its new upper face carries \(B(0.30)^2=0.27\) nC. The bottom section of the \(x=L_x\) face carries \(0.090\) nC and that of the top carries \(1.20\) nC. Their sum is 1.56 nC. For the upper subvolume the same internal face must be counted with the opposite sign. Physical flux is single-valued on that shared face even if the cells on its sides have very different thicknesses.

Suppose a program evaluates the shared face once using a derivative from the lower cell and independently using another from the upper cell. A mismatch of 0.03 nC in those estimates generates a global charge defect when summing cells, although each side may display a locally plausible gradient. A conservative scheme stores one oriented face flux and uses the same number with opposite signs in both cells. Flux conservation can then hold to floating-point accuracy on any partition, without guaranteeing the shared flux is physically accurate. In our manufactured example a shared wrong value would move the two cell errors in opposite directions and leave the total exact. Compare the two individual subvolume charges as well as the global one.

Is this manufactured \(\mathbf D\) an electrostatic vacuum solution? In a homogeneous scalar dielectric, \(\nabla\times\mathbf D\) would have to vanish for a purely electrostatic field. Its \(z\) component here is \(-Ax\). Thus the displacement tests the divergence theorem and a face-flux data structure perfectly, but it does not simultaneously test a potential-gradient solver with constant permittivity. For the latter choose \(\mathbf D=-\epsilon\nabla V\) from an explicit potential before manufacturing the charge. This example separates validation of a mathematical operation from validation of a whole physical model, an important distinction when a beautifully closed flux budget is the only available diagnostic.

Reconstruct a field from its divergence and curl in a periodic measurement cell

Suppose a three-dimensional field map is tabulated on a periodic cube and you know two derived maps: its divergence \(d\) and its curl \(\mathbf w\). Can these determine the original field? Fourier analysis gives a practical construction and reveals the missing information. For a nonzero spatial wavevector \(\mathbf k\), use the convention \(\mathbf F(\mathbf x)=\sum_{\mathbf k}\mathbf F_{\mathbf k}e^{i\mathbf k\cdot\mathbf x}\). Then \(d_{\mathbf k}=i\mathbf k\cdot\mathbf F_{\mathbf k}\) and \(\mathbf w_{\mathbf k}=i\mathbf k\times\mathbf F_{\mathbf k}\). Decompose \(\mathbf F_{\mathbf k}\) into its component parallel to \(\mathbf k\) and the remaining transverse component. Elementary vector identities give

\[\mathbf F_{\mathbf k}=-\frac{i\mathbf k}{k^2}d_{\mathbf k}+\frac{i}{k^2}\mathbf k\times\mathbf w_{\mathbf k}\qquad(\mathbf k\ne0).\]

The first term supplies the requested divergence and zero curl. The second supplies the requested curl when \(\mathbf k\cdot\mathbf w_{\mathbf k}=0\), a compatibility requirement because the divergence of a curl vanishes. At \(\mathbf k=0\) both operations annihilate the constant field. Its mean must be measured independently. In a nonperiodic region suitable boundary data enter as well. This is a constructive version of the statement that divergence and curl determine a field only after specifying its domain, boundary information and any harmonic freedom.

For a concrete field take \(\mathbf F=(A\cos kx,B\sin kx,C)\). Its divergence is \(-kA\sin kx\), its only curl component is \(w_z=kB\cos kx\), and the constant offset \(C\hat{\mathbf z}\) drops out of both maps. The first input alone reconstructs the \(x\) component and the second the \(y\) component. A purely electrostatic solver may legitimately require \(B=0\) but will not recover \(C\) from the local charge distribution alone. A uniform applied field can be imposed by suitable distant electrodes. A strictly periodic scalar potential cannot represent a nonzero mean field without separately adding a linear background.

A grid-based reconstruction needs its own consistency check. A centred difference on a periodic grid maps \(e^{ikx}\) to \(i\sin(kh)e^{ikx}/h\), not exactly \(ik e^{ikx}\). A source plane wave at the highest alternating grid mode \(k=\pi/h\) has zero centred derivative at every node despite alternating sign. Treating discrete divergence measurements as exact continuum coefficients near that grid scale would infer falsely that an oscillatory field has vanished. Use a consistent discrete operator, stagger quantities if appropriate, and restrict quantitative interpretation to adequately sampled modes. The continuous Helmholtz identity is exact; the data acquisition and differentiation scheme decides which components of that identity are actually observable.

Enclose different amounts of a regularised source

Predict how the flux of a small sphere changes as it crosses the charge cloud. Compare the enclosed fraction with the local source density.

Tutorial · turn field values into reliable local measurements

Reconstruct a sheet from a voltage cusp

Two electrodes at \(z=\pm L\) are grounded. Inside the gap a measured potential is \(V_0(1-|z|/L)\). Find both fields and reconstruct the source, then explain what a centred finite difference reports at the cusp.

Work through the solution

For \(z<0\), \(E_z=-V_0/L\); for \(z>0\), \(E_z=+V_0/L\). The jump gives a sheet \(\sigma=2\epsilon_0V_0/L\) at zero. A centred estimate of the first derivative there returns zero by symmetry, reflecting the arithmetic mean of the two one-sided fields. It cannot be interpreted as either physical one-sided limit. The centred second difference is \(-2V_0/(Lh)\), so the inferred cell density grows as \(1/h\). Multiplying by a cell width \(h\) returns the finite sheet charge. This is the correct quantity to compare when refining the grid.

With \(V_0=2\) V and \(L=2\) mm the fields have magnitudes 1000 V/m and the sheet charge is \(17.7\) nC/m². Reversing \(V_0\) reverses both field vectors and the sheet sign without moving the cusp.

Can a voltage map distinguish a saddle from a charge?

Near the origin a section shows \(V(x,0,0)=V_c-Ax^2\), \(A>0\). Give a source-free three-dimensional extension and a second extension consistent with uniform positive charge. Propose a minimum additional measurement given no prior symmetry.

Work through the solution

The first is \(V_c-Ax^2+Ay^2\), independent of \(z\). Its Laplacian vanishes. The second is \(V_c-A(x^2+y^2+z^2)\), whose Laplacian is \(-6A\), giving \(\rho=6\epsilon_0A\). Both match the entire original line. Curvatures along \(y,z\) together with the given \(x\)-curvature determine the Laplacian. A small enclosing surface measuring normal electric flux provides the same information integrated over a volume and does not require numerical second differentiation. Neither a second derivative along one line nor a visibly crowded pair of voltage contours is a universal charge detector.

Further reading