MACRO_EM-01 — Introduction & Perspectives (Wilcox Ch. 1 problems)

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-01_introduction_perspectives

1. Vector-identity checks (Ex 1.1.1) — the Jacobi identity, the Laplacian product rule, and the $\sum_i A_i\vec\nabla B_i$ expansion, verified on random vectors and on smooth fields via 4th-order finite differences (exact, to rounding, on low-degree polynomial fields). 2. Potentials (Ex 1.1.2) — $\vec E=-\vec\nabla\Phi-\frac1c\partial_t\vec A$, $\vec B=\vec\nabla\times\vec A$ make Faraday and no-monopole identities; Coulomb and Ampère–Maxwell become the coupled PDEs for $(\Phi,\vec A)$ — both facts checked numerically on concrete potentials. 3. Charge conservation (Ex 1.1.3) — $\partial_t\rho+\vec\nabla\cdot\vec J=0$ for a rigidly moving blob $\rho=ef(\vec r-\vec R(t))$, checked by finite differences along a curved trajectory. 4. Integral theorems (Ex 1.4.1–1.4.3) — $\oint\vec v\cdot d\vec\ell=2A$ and the ellipse area; the gradient and curl forms of Gauss' theorem; the $\int da\,\hat n\times\vec\nabla\varphi=\oint d\vec\ell\,\varphi$ form of Stokes' theorem — all by quadrature (box faces, disc, hemisphere, contours). 5. Two-dimensional electrodynamics (Ex 1.5.1) — the 2-D point-charge field $\vec E=2q\hat\rho/\rho$ from $\oint\vec E\cdot\hat n\,d\ell=4\pi q$ (Table 1.5 normalization), and the numerical demonstration that 2-D Gauss and 2-D Stokes are the same theorem under $\vec A\mapsto\vec A\times\hat z$. 6. Electromagnetic units (Ex A.1.1, A.1.2) — all 30 amount-conversion factors of Tables A.1–A.2 recomputed from $\alpha=10^2$, $\beta=10^7$, $4\pi\epsilon_0=10^7/c^2$, $\mu_0=4\pi\times10^{-7}$, plus the MKS-Gaussian unit sizes and the electron-charge round-trip $4.803\times10^{-10}\,\text{statC}\to1.602\times10^{-19}\,$C.

Key equations

\[\vec F=q\left(\vec E+\frac{\vec v}{c}\times\vec B\right).\]
\[\frac{\partial\rho}{\partial t}+\vec\nabla\cdot\vec J=0,\]
\[\int_Vd^3x\,\vec\nabla\cdot\vec A=\oint_Sda\,\vec A\cdot\hat n\quad\text{(Gauss, Eq. 1.9)},\qquad \int_{S'}da\,(\vec\nabla\times\vec A)\cdot\hat n=\oint_Cd\vec\ell\cdot\vec A\quad\text{(Stokes, Eq. 1.10)},\]
\[(\vec D_2-\vec D_1)\cdot\hat n_{21}=4\pi\sigma,\qquad(\vec B_2-\vec B_1)\cdot\hat n_{21}=0,\]
\[\hat n_{21}\times(\vec H_2-\vec H_1)=\frac{4\pi}{c}\vec K,\qquad\hat n_{21}\times(\vec E_2-\vec E_1)=0.\]
\[\int_Sdx\,dy\,(\vec\nabla\cdot\vec A)=\oint_Cd\ell\,\hat n\cdot\vec A\quad\text{(1.37)},\qquad \int_Sdx\,dy\,(\vec\nabla\times\vec A)\cdot\hat z=\oint_Cd\vec\ell\cdot\vec A\quad\text{(1.38)},\]
\[\alpha=10^2\ \text{cm/m},\qquad\beta=10^7\ \text{erg/J},\qquad 4\pi\epsilon_0=\frac{10^7}{c^2},\qquad\mu_0=4\pi\times10^{-7},\]

Example problems

P1. Exercise 1.1.1 — three vector/Laplacian identitiesWilcox 2e §1.7, p.21

Verify explicitly:

(a) $\ \vec A\times(\vec B\times\vec C)+\vec B\times(\vec C\times\vec A)+\vec C\times(\vec A\times\vec B)=0.$

(b) $\ \nabla^2(\phi\psi)=\phi\nabla^2\psi+\psi\nabla^2\phi+2\vec\nabla\phi\cdot\vec\nabla\psi.$

(c) $\ \displaystyle\sum_i A_i\vec\nabla B_i=\vec\nabla(\vec A\cdot\vec B)-(\vec B\cdot\vec\nabla)\vec A-\vec B\times(\vec\nabla\times\vec A).$

Answer: all three hold identically — (a) is the Jacobi identity (three BAC-CABs cancel in pairs), (b) is the Leibniz rule applied twice, (c) follows from one ε–δ contraction. Check: test_bac_cab_and_jacobi (500 random triples, residual $\sim10^{-16}$); test_laplacian_product_poly/_trig and test_grad_dot_expansion_poly/_trig (4th-order FD on polynomial fields — exact to rounding — and on trig fields).

Solution

(a) The tool is the BAC-CAB rule (glossary, p.23),

\[\vec A\times(\vec B\times\vec C)=\vec B(\vec A\cdot\vec C)-\vec C(\vec A\cdot\vec B),\]

itself provable by one index computation: with $[\vec B\times\vec C]_k=\epsilon_{klm}B_lC_m$,

\[[\vec A\times(\vec B\times\vec C)]_i=\epsilon_{ijk}A_j\epsilon_{klm}B_lC_m =(\delta_{il}\delta_{jm}-\delta_{im}\delta_{jl})A_jB_lC_m =B_i(A_mC_m)-C_i(A_lB_l),\]

using $\epsilon_{ijk}\epsilon_{klm}=\epsilon_{kij}\epsilon_{klm}=\delta_{il}\delta_{jm}-\delta_{im}\delta_{jl}$ (ε–δ identity, glossary p.24). Now write BAC-CAB three times, cycling $\vec A\to\vec B\to\vec C\to\vec A$:

\[\vec A\times(\vec B\times\vec C)=\vec B(\vec A\cdot\vec C)-\vec C(\vec A\cdot\vec B),\]
\[\vec B\times(\vec C\times\vec A)=\vec C(\vec B\cdot\vec A)-\vec A(\vec B\cdot\vec C),\]
\[\vec C\times(\vec A\times\vec B)=\vec A(\vec C\cdot\vec B)-\vec B(\vec C\cdot\vec A).\]

Add: the $\vec B$-terms cancel ($\vec B(\vec A\cdot\vec C)-\vec B(\vec C\cdot\vec A)=0$, dot products commute), likewise the $\vec C$-terms and the $\vec A$-terms. Sum $=0$. $\blacksquare$ (This is the Jacobi identity: the cross product, like a commutator or Poisson bracket, is an — anticommutative, non-associative — Lie bracket.)

(b) Work in components, $\nabla^2=\sum_i\partial_i\partial_i$, and apply the Leibniz rule twice:

\[\partial_i(\phi\psi)=\psi\,\partial_i\phi+\phi\,\partial_i\psi,\]
\[\partial_i\partial_i(\phi\psi)=\partial_i\!\left(\psi\,\partial_i\phi\right)+\partial_i\!\left(\phi\,\partial_i\psi\right) =(\partial_i\psi)(\partial_i\phi)+\psi\,\partial_i\partial_i\phi+(\partial_i\phi)(\partial_i\psi)+\phi\,\partial_i\partial_i\psi.\]

Summing over $i$ and collecting,

\[\nabla^2(\phi\psi)=\phi\nabla^2\psi+\psi\nabla^2\phi+2\vec\nabla\phi\cdot\vec\nabla\psi.\qquad\blacksquare\]

(c) Take the $j$-th component of each right-hand-side piece and reduce all three to $\partial_j$'s and $\partial_i$'s:

1. $\bigl[\vec\nabla(\vec A\cdot\vec B)\bigr]_j=\partial_j(A_iB_i)=A_i\,\partial_jB_i+B_i\,\partial_jA_i$ (Leibniz). 2. $\bigl[(\vec B\cdot\vec\nabla)\vec A\bigr]_j=B_i\,\partial_iA_j$. 3. For the cross term, ε–δ again:

\[\bigl[\vec B\times(\vec\nabla\times\vec A)\bigr]_j=\epsilon_{jkl}B_k(\vec\nabla\times\vec A)_l =\epsilon_{jkl}\epsilon_{lmn}B_k\,\partial_mA_n =(\delta_{jm}\delta_{kn}-\delta_{jn}\delta_{km})B_k\,\partial_mA_n =B_i\,\partial_jA_i-B_i\,\partial_iA_j.\]

Assemble the right side:

\[\underbrace{A_i\partial_jB_i+B_i\partial_jA_i}_{1.} -\underbrace{B_i\partial_iA_j}_{2.} -\underbrace{\bigl(B_i\partial_jA_i-B_i\partial_iA_j\bigr)}_{3.} =A_i\,\partial_jB_i=\Bigl[\sum_iA_i\vec\nabla B_i\Bigr]_j.\qquad\blacksquare\]

(Symmetrizing this result under $\vec A\leftrightarrow\vec B$ and adding reproduces the glossary's $\vec\nabla(\vec A\cdot\vec B)$ identity, p.24 — a free consistency check.)

Numerics. (a) needs no calculus: 500 random triples give $|\vec A\times(\vec B\times\vec C)+\text{cyc.}|\lesssim10^{-15}$. For (b) and (c) the code differentiates nothing by hand: both sides are built from 5-point 4th-order finite-difference stencils. On fields polynomial of degree $\le2$ per variable the stencils are exact, so the residuals are pure rounding ($\sim10^{-12}$); trig/exponential fields confirm generality at the stencil's truncation level ($\sim10^{-8}$).

---

P2. Exercise 1.1.2 — potentials: two Maxwell equations become identitiesWilcox 2e §1.7, p.21

Given the definitions $$\vec E\equiv-\vec\nabla\Phi-\frac1c\frac{\partial\vec A}{\partial t},\qquad \vec B\equiv\vec\nabla\times\vec A,$$ with $\Phi$ the scalar and $\vec A$ the vector potential, show that two of the Maxwell equations of Table 1.1 are satisfied identically, and that the other two become coupled differential equations for $\Phi$ and $\vec A$; compute and simplify those equations.

Answer: Faraday and no-monopole hold identically. Coulomb and Ampère–Maxwell become $$\nabla^2\Phi+\frac1c\frac{\partial}{\partial t}\bigl(\vec\nabla\cdot\vec A\bigr)=-4\pi\rho,\qquad \nabla^2\vec A-\frac{1}{c^2}\frac{\partial^2\vec A}{\partial t^2} -\vec\nabla\Bigl(\vec\nabla\cdot\vec A+\frac1c\frac{\partial\Phi}{\partial t}\Bigr)=-\frac{4\pi}{c}\vec J.$$ Check: test_potentials_no_monopole_identity, test_potentials_faraday_identity (nested-FD residuals $\sim10^{-14}$ on polynomial potentials, and at the true Gaussian $c$), test_potentials_coulomb_pde, test_potentials_ampere_pde (LHS = RHS of each derived PDE, evaluated independently).

Solution

Step 1 — the two identities behind everything. For any twice-differentiable $\Phi$ and $\vec A$ (glossary, p.24):

\[\vec\nabla\times\vec\nabla\Phi=0:\quad [\vec\nabla\times\vec\nabla\Phi]_i=\epsilon_{ijk}\partial_j\partial_k\Phi=0,\]

because $\partial_j\partial_k$ is symmetric in $(j,k)$ while $\epsilon_{ijk}$ is antisymmetric — a symmetric–antisymmetric contraction vanishes. Identically,

\[\vec\nabla\cdot(\vec\nabla\times\vec A)=\partial_i\epsilon_{ijk}\partial_jA_k=\epsilon_{ijk}\partial_i\partial_jA_k=0.\]

Step 2 — no-monopole is automatic. Substituting $\vec B=\vec\nabla\times\vec A$,

\[\vec\nabla\cdot\vec B=\vec\nabla\cdot(\vec\nabla\times\vec A)=0\]

by Step 1 — for every $\vec A$, with no condition imposed. Identity #1. ✔

Step 3 — Faraday is automatic. Substituting both definitions and commuting $\partial_t$ with spatial curls (fields are smooth),

\[\vec\nabla\times\vec E+\frac1c\frac{\partial\vec B}{\partial t} =-\underbrace{\vec\nabla\times\vec\nabla\Phi}_{=0}-\frac1c\frac{\partial}{\partial t}(\vec\nabla\times\vec A) +\frac1c\frac{\partial}{\partial t}(\vec\nabla\times\vec A)=0 .\]

Identity #2. ✔ So the two sourceless equations of Table 1.1 are used up in defining $(\Phi,\vec A)$ — exactly the four-equations-for-a-4-potential counting of p.3.

Step 4 — Coulomb becomes a PDE. $\vec\nabla\cdot\vec E=4\pi\rho$ with the definition of $\vec E$:

\[\vec\nabla\cdot\vec E=-\vec\nabla\cdot\vec\nabla\Phi-\frac1c\frac{\partial}{\partial t}(\vec\nabla\cdot\vec A) =-\nabla^2\Phi-\frac1c\frac{\partial}{\partial t}(\vec\nabla\cdot\vec A)=4\pi\rho,\]

i.e.

\[\boxed{\ \nabla^2\Phi+\frac1c\frac{\partial}{\partial t}\bigl(\vec\nabla\cdot\vec A\bigr)=-4\pi\rho\ }.\]

Step 5 — Ampère–Maxwell becomes a PDE. Substitute both definitions into $\vec\nabla\times\vec B-\frac1c\partial_t\vec E=\frac{4\pi}{c}\vec J$:

\[\vec\nabla\times(\vec\nabla\times\vec A) -\frac1c\frac{\partial}{\partial t}\Bigl(-\vec\nabla\Phi-\frac1c\frac{\partial\vec A}{\partial t}\Bigr)=\frac{4\pi}{c}\vec J .\]

Expand the double curl with the glossary identity (p.24) $\vec\nabla\times(\vec\nabla\times\vec A)=\vec\nabla(\vec\nabla\cdot\vec A)-\nabla^2\vec A$:

\[\vec\nabla(\vec\nabla\cdot\vec A)-\nabla^2\vec A +\frac1c\vec\nabla\frac{\partial\Phi}{\partial t}+\frac{1}{c^2}\frac{\partial^2\vec A}{\partial t^2}=\frac{4\pi}{c}\vec J .\]

Step 6 — simplify by grouping the gradient terms. The first and third terms are both gradients; pull them into one:

\[\boxed{\ \nabla^2\vec A-\frac{1}{c^2}\frac{\partial^2\vec A}{\partial t^2} -\vec\nabla\Bigl(\vec\nabla\cdot\vec A+\frac1c\frac{\partial\Phi}{\partial t}\Bigr) =-\frac{4\pi}{c}\vec J\ }.\]

Together with Step 4 this is the promised coupled pair: $\Phi$'s equation contains $\vec\nabla\cdot\vec A$, and $\vec A$'s equation contains $\partial_t\Phi$. $\blacksquare$

Remark (why "coupled" is not forever). The potentials are not unique ($\Phi\to\Phi-\frac1c\partial_t\chi$, $\vec A\to\vec A+\vec\nabla\chi$ leaves $\vec E,\vec B$ untouched, by Step 1's identities); choosing $\chi$ so that $\vec\nabla\cdot\vec A+\frac1c\partial_t\Phi=0$ decouples the pair into two wave equations $\bigl(\nabla^2-\frac{1}{c^2}\partial_t^2\bigr)(\Phi,\vec A)= -(4\pi\rho,\frac{4\pi}{c}\vec J)$ — the book develops this in the time-varying-fields chapters; here only the coupled form is asked for.

Numerics. The code takes concrete low-degree polynomial potentials $\Phi(\vec r,t)$, $\vec A(\vec r,t)$, builds $\vec E,\vec B$ by finite differences, and (i) confirms $\vec\nabla\cdot\vec B$ and $\vec\nabla\times\vec E+\frac1c\partial_t\vec B$ vanish to rounding at random space–time points — for the toy $c=2$ and for $c=2.9979\times10^{10}$ cm/s — and (ii) evaluates $\vec\nabla\cdot\vec E$ against $-\nabla^2\Phi-\frac1c\partial_t(\vec\nabla\cdot\vec A)$ and $\vec\nabla\times\vec B-\frac1c\partial_t\vec E$ against $-$[LHS of Step 6] independently, confirming the simplification algebra.

---

P3. Exercise 1.1.3 — charge conservation for a rigidly moving blobWilcox 2e §1.7, p.21

For charge and current densities of the form $$\rho(\vec r,t)=e\,f\bigl(\vec r-\vec R(t)\bigr),\qquad \vec J(\vec r,t)=e\,\frac{d\vec R}{dt}\,f\bigl(\vec r-\vec R(t)\bigr),$$ with $f(\cdots)$ an arbitrary (differentiable) function, verify charge conservation: $$\frac{\partial\rho(\vec r,t)}{\partial t}+\vec\nabla\cdot\vec J(\vec r,t)=0 .$$

Answer: the two terms are $\mp\,e\,\dot{\vec R}\cdot(\vec\nabla f)$ and cancel exactly, for any profile $f$ and any trajectory $\vec R(t)$. Check: test_continuity_moving_blob and test_continuity_second_trajectory — Gaussian blob on the curved trajectories $\vec R=(\cos t,\sin 2t,0.3t)$ and $\vec R=(t^2,-t,\sin t)$; $\partial_t\rho$ and $\vec\nabla\cdot\vec J$ built by finite differences (nothing cancels symbolically), residual $\lesssim10^{-9}$ against term size $\sim1$.

Solution

Step 1 — the time derivative, by the chain rule. Write $\vec u\equiv\vec r-\vec R(t)$, so $\rho=e f(\vec u)$ with $\partial u_i/\partial t=-\dot R_i(t)$. Then

\[\frac{\partial\rho}{\partial t} =e\sum_i\frac{\partial f}{\partial u_i}\frac{\partial u_i}{\partial t} =-e\sum_i\dot R_i\,\frac{\partial f}{\partial u_i} =-e\,\dot{\vec R}\cdot(\vec\nabla f)\bigl(\vec r-\vec R(t)\bigr),\]

where $(\vec\nabla f)(\vec r-\vec R)$ means the gradient of $f$ evaluated at the shifted argument; note $\partial f(\vec r-\vec R)/\partial x_i= (\partial f/\partial u_i)$ since $\partial u_j/\partial x_i=\delta_{ij}$.

Step 2 — the divergence. $\dot{\vec R}(t)$ depends on $t$ only, so it passes through the spatial derivatives (glossary $\vec\nabla\cdot(\phi\vec A)$ identity with $\vec A=\dot{\vec R}$ constant in $\vec r$):

\[\vec\nabla\cdot\vec J =e\,\vec\nabla\cdot\bigl(\dot{\vec R}\,f(\vec r-\vec R)\bigr) =e\sum_i\dot R_i\,\frac{\partial}{\partial x_i}f(\vec r-\vec R) =+\,e\,\dot{\vec R}\cdot(\vec\nabla f)\bigl(\vec r-\vec R(t)\bigr).\]

Step 3 — add.

\[\frac{\partial\rho}{\partial t}+\vec\nabla\cdot\vec J =-e\,\dot{\vec R}\cdot\vec\nabla f+e\,\dot{\vec R}\cdot\vec\nabla f=0 .\qquad\blacksquare\]

Remark. Physically: the blob translates rigidly with velocity $\dot{\vec R}$, so the current is purely convective, $\vec J=\rho\,\dot{\vec R}/\,$(per unit charge)$\,=\rho\vec v$, and a rigid translation conserves the charge in every co-moving volume. The limit $f\to\delta^3$ (~MA-15) makes this the point charge of §1.2 with $\vec J=e\dot{\vec R}\,\delta^3(\vec r-\vec R)$ — continuity is what makes the point-charge idealization consistent with Maxwell's equations, which imply Eq. (1.2) (notes §2; WT pp.3–4).

Numerics. $f$ = unit-width Gaussian, $e=1.3$: at 40 random $(\vec r,t)$ the FD-computed $\partial_t\rho+\vec\nabla\cdot\vec J$ is $\lesssim10^{-9}$ while each term separately is $O(1)$ — the cancellation is real, not small terms.

---

P4. Exercise 1.4.1 — $\oint\vec v\cdot d\vec\ell=2A$ and the area of an ellipseWilcox 2e §1.7, pp.21–22

(a) A planar surface $S$ of area $A$ with boundary $C$ lies in the $xy$-plane. For the coplanar vector field $$\vec v=-y\,\hat i+x\,\hat j,$$ prove that $$\oint_C\vec v\cdot d\vec\ell=\oint_C(\hat i\,dx+\hat j\,dy)\cdot\vec v=2A .$$ (b) Using the ellipse $\dfrac{x^2}{a^2}+\dfrac{y^2}{b^2}=1$ and part (a), find the area of the ellipse. (The book credits the problem as adapted from B. DiBartolo, Classical Theory of Electromagnetism, 2nd edn., Ex. 1.14.)

Answer: (a) $\vec\nabla\times\vec v=2\hat z$, so Stokes gives $2A$ for any planar contour; (b) $A_{\rm ellipse}=\pi ab$. Check: test_circulation_circle ($2\pi r^2$ for circles), test_ellipse_area ($\pi ab$ by quadrature, several $(a,b)$), test_star_curve_area (the same functional on $r(\theta)=1+0.3\cos3\theta$ reproduces $\tfrac12\oint r^2d\theta=\pi(1+0.045)$ — "any $C$", not just ellipses).

Solution

(a) Step 1 — the curl is constant. With $v_x=-y,\ v_y=x,\ v_z=0$ (rectangular curl, glossary p.25):

\[\vec\nabla\times\vec v =\Bigl(\frac{\partial v_z}{\partial y}-\frac{\partial v_y}{\partial z}\Bigr)\hat i +\Bigl(\frac{\partial v_x}{\partial z}-\frac{\partial v_z}{\partial x}\Bigr)\hat j +\Bigl(\frac{\partial v_y}{\partial x}-\frac{\partial v_x}{\partial y}\Bigr)\hat k =\bigl(1-(-1)\bigr)\hat k=2\hat k .\]

Step 2 — Stokes' theorem (Eq. 1.10, p.9). Take $S$ itself as the open surface spanning $C$; for a counterclockwise $C$ (right-hand rule) the normal is $\hat n=\hat k$:

\[\oint_C\vec v\cdot d\vec\ell =\int_Sda\,(\vec\nabla\times\vec v)\cdot\hat n =\int_Sda\,(2\hat k)\cdot\hat k =2\int_Sda=2A .\qquad\blacksquare\]

Since $d\vec\ell=\hat i\,dx+\hat j\,dy$ in the plane, the middle expression of the problem statement is the same integral written out, $\oint_C(-y\,dx+x\,dy)$. (Clockwise orientation flips the sign: $-2A$. Equivalently, without Stokes: Green's theorem with $P=-y$, $Q=x$ gives $\oint(P\,dx+Q\,dy)=\iint(\partial_xQ-\partial_yP)\,dA=2A$ — the 2-D Stokes theorem of Eq. (1.38) that P7b will show is also 2-D Gauss.)

(b) Step 1 — parameterize the ellipse counterclockwise by

\[x=a\cos\theta,\qquad y=b\sin\theta,\qquad\theta:0\to2\pi,\]

which satisfies $x^2/a^2+y^2/b^2=\cos^2\theta+\sin^2\theta=1$. Then

\[dx=-a\sin\theta\,d\theta,\qquad dy=b\cos\theta\,d\theta .\]

Step 2 — evaluate the circulation.

\[\oint_C(-y\,dx+x\,dy) =\int_0^{2\pi}\bigl[(-b\sin\theta)(-a\sin\theta)+(a\cos\theta)(b\cos\theta)\bigr]d\theta =ab\int_0^{2\pi}(\sin^2\theta+\cos^2\theta)\,d\theta=2\pi ab .\]

Step 3 — apply (a). $2A=2\pi ab$, so

\[\boxed{\ A_{\rm ellipse}=\pi ab\ }\]

(circle check: $a=b=r$ gives $\pi r^2$). $\blacksquare$

Numerics. Periodic trapezoid quadrature (spectrally accurate) of $\oint\vec v\cdot d\vec\ell$: circles $r=0.7,1,2.5$ give $2\pi r^2$ to $10^{-12}$; ellipses $(a,b)=(3,1.5),(2,0.4)$ give $2\pi ab$; the star contour $r(\theta)=1+0.3\cos3\theta$ gives $2\times\pi(1+0.3^2/2)$, confirming the result holds for an arbitrary planar boundary.

---

P5. Exercise 1.4.2 — two more faces of Gauss' theoremWilcox 2e §1.7, p.22

Show that the following are equivalent expressions of Gauss' theorem: $$\textbf{(a)}\quad\int_Vd^3x\,\vec\nabla\varphi=\oint_Sda\,\hat n\,\varphi,\qquad\qquad \textbf{(b)}\quad\int_Vd^3x\,\vec\nabla\times\vec A=\oint_Sda\,\hat n\times\vec A .$$

Answer: both follow from the divergence theorem (Eq. 1.9) applied to the auxiliary fields $\varphi\,\vec c$ and $\vec A\times\vec c$ with $\vec c$ an arbitrary constant vector, then stripping $\vec c$; conversely (a) with $\varphi\to A_i$ per component rebuilds the divergence theorem, so all three statements are equivalent. Check: test_gradient_theorem_box, test_curl_volume_theorem_box — Gauss–Legendre quadrature of both sides (volume vs six faces of a box) for trig/polynomial fields; agreement $\sim10^{-10}$ componentwise.

Solution

(a) Step 1 — auxiliary field. Let $\vec c$ be constant and set $\vec F=\varphi\,\vec c$. The glossary product rule (p.24) with $\vec\nabla\cdot\vec c=0$:

\[\vec\nabla\cdot\vec F=\vec\nabla\cdot(\varphi\,\vec c) =\vec c\cdot\vec\nabla\varphi+\varphi\,\underbrace{\vec\nabla\cdot\vec c}_{=0} =\vec c\cdot\vec\nabla\varphi .\]

Step 2 — divergence theorem on $\vec F$ (Eq. 1.9):

\[\int_Vd^3x\,\vec c\cdot\vec\nabla\varphi=\oint_Sda\,(\varphi\,\vec c)\cdot\hat n =\vec c\cdot\oint_Sda\,\hat n\,\varphi .\]

Pull the constant $\vec c$ out of the volume integral too:

\[\vec c\cdot\Bigl[\int_Vd^3x\,\vec\nabla\varphi-\oint_Sda\,\hat n\,\varphi\Bigr]=0 .\]

Step 3 — strip $\vec c$. The bracket is a fixed vector and $\vec c$ is arbitrary; choosing $\vec c=\hat i,\hat j,\hat k$ in turn kills each component, so the bracket vanishes:

\[\int_Vd^3x\,\vec\nabla\varphi=\oint_Sda\,\hat n\,\varphi .\qquad\blacksquare\]

(b) Step 1 — auxiliary field. Set $\vec F=\vec A\times\vec c$, $\vec c$ constant. The glossary identity $\vec\nabla\cdot(\vec A\times\vec B)=\vec B\cdot(\vec\nabla\times\vec A)-\vec A\cdot(\vec\nabla\times\vec B)$ with $\vec B=\vec c$ (so $\vec\nabla\times\vec c=0$):

\[\vec\nabla\cdot(\vec A\times\vec c)=\vec c\cdot(\vec\nabla\times\vec A).\]

Step 2 — surface side. The cyclic triple product (glossary p.23 / Eq. 1.27):

\[(\vec A\times\vec c)\cdot\hat n=\hat n\cdot(\vec A\times\vec c) =\vec c\cdot(\hat n\times\vec A),\]

using $\vec a\cdot(\vec b\times\vec c\,')=\vec c\,'\cdot(\vec a\times\vec b)$ with $(\vec a,\vec b,\vec c\,')=(\hat n,\vec A,\vec c)$.

Step 3 — divergence theorem and strip.

\[\vec c\cdot\int_Vd^3x\,\vec\nabla\times\vec A =\int_Vd^3x\,\vec\nabla\cdot(\vec A\times\vec c) =\oint_Sda\,(\vec A\times\vec c)\cdot\hat n =\vec c\cdot\oint_Sda\,\hat n\times\vec A,\]

for every constant $\vec c$, hence

\[\int_Vd^3x\,\vec\nabla\times\vec A=\oint_Sda\,\hat n\times\vec A .\qquad\blacksquare\]

Equivalence, not just consequence. Conversely, apply (a) to $\varphi=A_x,A_y,A_z$ and take the $x$-, $y$-, $z$-components respectively: summing $\partial_iA_i$ rebuilds $\int_V\vec\nabla\cdot\vec A=\oint_S da\,\hat n\cdot\vec A$. So (a) ⇒ divergence theorem ⇒ (b), and each of the three implies the others: they are one theorem in three costumes — "replace $\cdot$ by nothing or by $\times$" (the general pattern: $\int_Vd^3x\,\vec\nabla\circ(\ )=\oint_Sda\,\hat n\circ(\ )$).

Numerics. Box $[-1,1.3]\times[-0.7,1.1]\times[-1.2,0.9]$ (asymmetric, no accidental cancellations); $\varphi=\sin x\cos y+z^2 e^{x/3}$ and a mixed trig/polynomial $\vec A$. Volume side: 3-D Gauss–Legendre ($24^3$ nodes) of the FD gradient/curl; surface side: 2-D Gauss–Legendre on each of the six faces with the exact outward $\hat n$. All three components match to $\sim10^{-10}$ (the residue is the FD truncation of the volume-side integrand, scaling as $h^4$).

---

P6. Exercise 1.4.3 — the surface-gradient face of Stokes' theoremWilcox 2e §1.7, p.22

Show that the following is an equivalent expression of Stokes' theorem: $$\int_Sda\,\hat n\times\vec\nabla\varphi=\oint_Cd\vec\ell\,\varphi .$$

Answer: apply Stokes' theorem (Eq. 1.10) to $\vec A=\varphi\,\vec c$, constant $\vec c$, use $\vec\nabla\times(\varphi\vec c)=\vec\nabla\varphi\times\vec c$ and the cyclic triple product, then strip $\vec c$; applying the result to $\varphi\to A_i$ componentwise runs the argument backwards, so the two statements are equivalent. Check: test_stokes_gradient_disc (unit disc vs boundary circle, agreement $\sim10^{-14}$) and test_stokes_gradient_hemisphere_matches (the hemisphere spanning the same circle gives the same vector — surface-independence, the Stokes hallmark).

Solution

Step 1 — auxiliary field. $\vec A=\varphi\,\vec c$ with $\vec c$ constant. Glossary curl product rule (p.24), $\vec\nabla\times\vec c=0$:

\[\vec\nabla\times(\varphi\,\vec c)=\vec\nabla\varphi\times\vec c+\varphi\,\underbrace{\vec\nabla\times\vec c}_{=0} =\vec\nabla\varphi\times\vec c .\]

Step 2 — Stokes' theorem on $\vec A$ (Eq. 1.10):

\[\int_Sda\,(\vec\nabla\varphi\times\vec c)\cdot\hat n=\oint_Cd\vec\ell\cdot(\varphi\,\vec c) =\vec c\cdot\oint_Cd\vec\ell\,\varphi .\]

Step 3 — cycle the triple product on the left. $(\vec\nabla\varphi\times\vec c)\cdot\hat n=\vec c\cdot(\hat n\times\vec\nabla\varphi)$ — same cyclic identity as P5b Step 2, with $(\vec a,\vec b,\vec c\,')=(\hat n,\vec\nabla\varphi,\vec c)$. Hence

\[\vec c\cdot\Bigl[\int_Sda\,\hat n\times\vec\nabla\varphi-\oint_Cd\vec\ell\,\varphi\Bigr]=0 \quad\text{for all constant }\vec c,\]

and stripping $\vec c$ (components $\hat i,\hat j,\hat k$) gives the result. $\blacksquare$

Equivalence. Conversely, assume the new identity for all scalars and run Steps 1–3 backwards: dot it with a constant $\vec c$,

\[\vec c\cdot\int_Sda\,\hat n\times\vec\nabla\varphi =\int_Sda\,(\vec\nabla\varphi\times\vec c)\cdot\hat n =\int_Sda\,\bigl(\vec\nabla\times(\varphi\vec c)\bigr)\cdot\hat n, \qquad \vec c\cdot\oint_Cd\vec\ell\,\varphi=\oint_Cd\vec\ell\cdot(\varphi\vec c),\]

which is Stokes' theorem for the field $\varphi\,\vec c$; sums of such fields ($\vec A=\sum_iA_i\hat e_i$ with $\varphi=A_i$, $\vec c=\hat e_i$) span all vector fields, and Stokes' theorem is linear in the field — so the identity implies Stokes in full. The book's "equivalent expression" is this two-way derivability.

Remark (orientation and surface-independence). $(\hat n,d\vec\ell)$ are right-hand related as in Fig. 1.1(b) (p.9). Nothing in Steps 1–3 used which surface spans $C$: any $S$ with $\partial S=C$ gives the same left side — the numerics check exactly that with a flat disc and a hemisphere. Note also the component count: for $S$ = unit disc in the $z=0$ plane, $\hat n=\hat z$ makes the left side's $z$-component vanish pointwise, while on the hemisphere it vanishes only after integration — a nontrivial internal check.

Numerics. $\varphi=x^2y-3z+\cos y$ with hand-coded $\vec\nabla\varphi$ (itself validated against FD): polar Gauss–Legendre × trapezoid over the unit disc, and $(\theta,\phi)$ quadrature over the unit upper hemisphere, both equal the boundary integral $\oint d\vec\ell\,\varphi$ (trapezoid on the unit circle) to $\sim10^{-14}$, componentwise.

---

P7. Exercise 1.5.1 — the 2-D point charge, and 2-D Gauss ⇔ StokesWilcox 2e §1.7, p.22

(a) Use Gauss' theorem to derive the radial dependence of the electric field of a point charge $q$ in two dimensions. (b) Show that in two dimensions Gauss' theorem and Stokes' theorem are equivalent.

Answer: (a) $\vec E=\dfrac{2q}{\rho}\hat\rho$ — the flux $\oint\vec E\cdot\hat n\,d\ell$ through any enclosing contour is $4\pi q$ (Table 1.5 normalization $\vec\nabla\cdot\vec E=4\pi\sigma$, vacuum), and symmetry puts all of it on $2\pi\rho\,E(\rho)$; the field falls as $1/\rho$. (b) the 90°-rotation $\vec A\mapsto\vec A'=\vec A\times\hat z$ turns $\vec\nabla\cdot\vec A'$ into $(\vec\nabla\times\vec A)\cdot\hat z$ and $\hat n\cdot\vec A'\,d\ell$ into $\vec A\cdot d\vec\ell$, so 2-D Gauss applied to $\vec A'$ is 2-D Stokes applied to $\vec A$, and vice versa. Check: test_e2d_flux_circles, test_e2d_flux_square ($4\pi q$ for circles of several radii, an offset charge, and a square contour), test_e2d_nonenclosing_zero, test_e2d_only_inverse_r (power-law fields $\rho^s\hat\rho$ have radius-dependent flux unless $s=-1$), test_e2d_div_free_away ($\vec\nabla\cdot\vec E=0$ off the charge), test_2d_gauss_stokes_pointwise and test_2d_gauss_stokes_integral (the rotation map, differentially and integrally).

Solution

(a) Step 1 — the 2-D field equation. In the 2-D electrodynamics of §1.5 (sources = $z$-independent line charges), the surviving electrostatic equation is the first row of Table 1.5 with vacuum $\vec D=\vec E$:

\[\vec\nabla\cdot\vec E=4\pi\sigma,\]

$\sigma$ = 2-D charge density; a point charge $q$ at the origin is $\sigma=q\,\delta^2(\vec r)$ (~MA-15).

Step 2 — integral form via the 2-D Gauss theorem (Eq. 1.37, p.16). For any closed curve $C$ enclosing the origin, with region $S$:

\[\oint_Cd\ell\,\hat n\cdot\vec E=\int_Sdx\,dy\,(\vec\nabla\cdot\vec E) =4\pi\int_Sdx\,dy\,\sigma=4\pi q .\]

Step 3 — symmetry. A point source in a plane is invariant under rotations about it and under reflections through any line containing it; the reflections kill the azimuthal component, the rotations make the magnitude a function of distance only:

\[\vec E=E(\rho)\,\hat\rho,\qquad\rho=\sqrt{x^2+y^2}.\]

Step 4 — evaluate on a circle. Take $C$ = circle of radius $\rho$ centered on the charge; there $\hat n=\hat\rho$ and $E(\rho)$ is constant along $C$:

\[\oint_Cd\ell\,\hat n\cdot\vec E=E(\rho)\oint_Cd\ell=E(\rho)\,2\pi\rho=4\pi q \quad\Longrightarrow\quad \boxed{\ \vec E=\frac{2q}{\rho}\,\hat\rho\ }.\]

The radial dependence is $1/\rho$ — one inverse power less than 3-D's $1/r^2$, because the same flux is spread over a circumference $\propto\rho$ rather than an area $\propto r^2$. $\blacksquare$

Remarks. (i) This is precisely the 3-D infinite line charge with $\lambda=q$ ($E=2\lambda/\rho$), which is footnote 10's point (p.19): the $4\pi$ in Table 1.5 treats 2-D charge as line charge per unit $z$; a "geometrically 2-D" convention would write $\vec\nabla\cdot\vec E=2\pi\sigma$ and get $E=q/\rho$. The book's normalization is used here. (ii) The potential is logarithmic, $\Phi=-2q\ln(\rho/\rho_0)$ — no reference point at infinity exists in 2-D. (iii) Uniqueness of the power: for a trial $E\propto\rho^s\hat\rho$ the circle flux is $2\pi\rho^{s+1}$, radius-independent (as Step 2 demands of every enclosing contour) only for $s=-1$ — this is what test_e2d_only_inverse_r measures.

(b) Step 1 — the two theorems side by side (Eqs. 1.37–1.38, p.16), for a planar region $S$ with counterclockwise boundary $C$, outward normal $\hat n$, tangent $\hat t$ ($d\vec\ell=\hat t\,d\ell$):

\[\text{(G)}\ \int_Sdx\,dy\,(\vec\nabla\cdot\vec A)=\oint_Cd\ell\,\hat n\cdot\vec A, \qquad \text{(S)}\ \int_Sdx\,dy\,(\vec\nabla\times\vec A)\cdot\hat z=\oint_Cd\vec\ell\cdot\vec A .\]

Step 2 — the rotation map. For a planar field $\vec A=(A_x,A_y,0)$ define the in-plane 90°-rotated field

\[\vec A'\equiv\vec A\times\hat z=(A_y,\,-A_x,\,0)\]

(rotation by $-90^\circ$; note $\hat z\times\vec A'=\vec A$, so the map is invertible).

Step 3 — the map swaps the area integrands.

\[\vec\nabla\cdot\vec A'=\partial_xA_y+\partial_y(-A_x) =\partial_xA_y-\partial_yA_x=(\vec\nabla\times\vec A)\cdot\hat z .\]

(Equivalently from the glossary $\vec\nabla\times(\vec P\times\vec Q)$ identity with $\vec P=\hat z$ constant: $\vec\nabla\times(\hat z\times\vec A)=\hat z(\vec\nabla\cdot\vec A)-\partial_z\vec A =\hat z(\vec\nabla\cdot\vec A)$ in 2-D — the same statement read backwards.)

Step 4 — the map swaps the boundary integrands. On $C$, $\hat n=\hat t\times\hat z$ (check at the rightmost point of a counterclockwise circle: $\hat t=\hat j$, $\hat j\times\hat k=\hat i=\hat n$ ✔). Then, by the cyclic triple product,

\[\hat n\cdot\vec A'=(\hat t\times\hat z)\cdot(\vec A\times\hat z) =\vec A\cdot\bigl[\hat z\times(\hat t\times\hat z)\bigr] =\vec A\cdot\hat t,\]

where BAC-CAB gives $\hat z\times(\hat t\times\hat z)=\hat t(\hat z\cdot\hat z)-\hat z(\hat z\cdot\hat t)=\hat t$ (planar $\hat t\perp\hat z$). So $\hat n\cdot\vec A'\,d\ell=\vec A\cdot d\vec\ell$.

Step 5 — conclude both directions. Substituting Steps 3–4 into (G) applied to $\vec A'$:

\[\int_Sdx\,dy\,(\vec\nabla\times\vec A)\cdot\hat z =\int_Sdx\,dy\,(\vec\nabla\cdot\vec A') \overset{\text{(G)}}{=}\oint_Cd\ell\,\hat n\cdot\vec A' =\oint_Cd\vec\ell\cdot\vec A,\]

which is (S) for $\vec A$. Since $\vec A\mapsto\vec A\times\hat z$ is a bijection of planar fields (inverse $\hat z\times{}$), the same computation run on $\vec A''=\hat z\times\vec A$ derives (G) from (S): $\vec\nabla\cdot\vec A=(\vec\nabla\times\vec A'')\cdot\hat z$ and $\hat n\cdot\vec A\,d\ell=d\vec\ell\cdot\vec A''$. Each theorem is the other one, stated for the rotated field: in two dimensions Gauss and Stokes are equivalent. $\blacksquare$ (That is exactly why the 2-D boundary-condition derivation of §1.5 needed only loops and line integrals where 3-D needed pillboxes and loops.)

Numerics. Pointwise: FD confirms $\vec\nabla\cdot(\vec A\times\hat z)=(\vec\nabla\times\vec A)\cdot\hat z$ and $(\vec\nabla\times(\hat z\times\vec A))\cdot\hat z=\vec\nabla\cdot\vec A$ at random points ($\sim10^{-11}$). Integrally, on the unit disc: each theorem's two sides agree to $\sim10^{-9}$, while the rotated boundary and area quadratures ($\oint\hat n\cdot\vec A'\,d\ell$ vs $\oint\vec A\cdot d\vec\ell$, $\iint\vec\nabla\cdot\vec A'$ vs $\iint(\vec\nabla\times\vec A)\cdot\hat z$) coincide to the last bit — 2-D Gauss on the rotated field is 2-D Stokes, operation for operation.

---

P8. Exercise A.1.1 — how the amount-conversion factors are determinedWilcox 2e §A.1, p.862

Explain how the amount conversion factor in column 4 of Tables A.1 and A.2 is determined.

Answer: column 4 converts numerical values: $\{Q\}_{\rm SI}=F_Q\,\{Q\}_{\rm G}$. $F_Q$ is fixed by requiring both systems to describe the same physics: write one physical relation for $Q$ (Coulomb force for charge, energy density for fields, …) in both systems and equate the physical quantities. The mechanical content converts by powers of $\alpha=10^2$ (cm/m) and $\beta=10^7$ (erg/J); the electrical mismatch is carried by exactly the $\sqrt{4\pi\epsilon_0}$-type factor of the symbol conversion (column 3), evaluated with the SI numbers $4\pi\epsilon_0=10^7/c^2$, $\mu_0=4\pi\times10^{-7}$, $c=299{,}792{,}458$. Column 5 is column 4's numerical value. Check: test_table_a1_values, test_table_a2_values (all 30 rows recomputed from the Factor formulas and matched to the quoted Values, rel. $10^{-12}$), test_known_unit_conversions (statC→C, statvolt→V, G→T, Mx→Wb, Oe→A/m, cm→F, s·cm⁻¹→Ω against their known SI sizes).

Solution

Step 1 — what the two conversion pairs mean. Columns 2–3 ("symbol conversion") rewrite equations: substituting the column-3 expression for every Gaussian symbol in a Gaussian equation yields the correct SI equation (e.g. $q\to q/\sqrt{4\pi\epsilon_0}$ and $\vec E\to\sqrt{4\pi\epsilon_0}\vec E$ turn $\vec\nabla\cdot\vec E=4\pi\rho$ into $\vec\nabla\cdot\vec E=\rho/\epsilon_0$, Table 1.1). Columns 4–5 ("amount conversion") rescale numbers: if a physical quantity has numerical value $\{Q\}_{\rm G}$ in its Gaussian unit and $\{Q\}_{\rm SI}$ in its SI unit, then

\[\{Q\}_{\rm SI}=F_Q\cdot\{Q\}_{\rm G},\qquad F_Q=\text{column 4, evaluated}=\text{column 5}.\]

Equivalently $F_Q$ = the size of one Gaussian unit of $Q$, expressed in SI units (e.g. charge row: $F_q=10^{-1}c^{-1}=3.336\times10^{-10}$ = one statcoulomb in coulombs).

Step 2 — mechanical rows: pure $\alpha,\beta$ dimensional bookkeeping. Every Gaussian unit is a product of powers of (g, cm, s); regroup it into powers of (erg, cm, s) using $\text{erg}=\text{g}\,\text{cm}^2\text{s}^{-2}$. The two base amount conversions are (p.860)

\[1\ \text{cm}=\alpha^{-1}\,\text{m}\ (\alpha=10^2),\qquad 1\ \text{erg}=\beta^{-1}\,\text{J}\ (\beta=10^7),\qquad 1\ \text{s}=1\ \text{s}.\]

So a quantity whose Gaussian unit is $\text{erg}^{\,b}\,\text{cm}^{\,a}\,\text{s}^{\,c}$ has $F_Q=\beta^{-b}\alpha^{-a}$. Examples: energy $F_W=\beta^{-1}=10^{-7}$; length $F_l=\alpha^{-1}$; force = erg/cm ⇒ $F_F=\alpha\beta^{-1}=10^{-5}$; mass = erg·s²/cm² ⇒ $F_m=\alpha^2\beta^{-1}=10^{-3}$ — the first eight rows of Table A.1 exactly.

Step 3 — electrical rows: one physical law bridges the unit systems. A statcoulomb ($\text{g}^{1/2}\text{cm}^{3/2}\text{s}^{-1}=(\text{erg}\cdot\text{cm})^{1/2}$, Table A.3) and a coulomb (A·s) are dimensionally incommensurate, so no pure $\alpha,\beta$ power connects them. The bridge is physics. Take one and the same physical pair of charges at one distance and write the same force both ways:

\[F=\frac{q^2}{r^2}\ (\text{Gaussian})\qquad\text{and}\qquad F=\frac{q^2}{4\pi\epsilon_0 r^2}\ (\text{SI}).\]

Equate the physical combinations $q^2_{\rm G}=F r^2$ and $q^2_{\rm SI}/(4\pi\epsilon_0)=F r^2$ — both equal the same physical energy×length. Numerically,

\[\{q\}_{\rm G}^2\ \text{erg\,cm}=\frac{\{q\}_{\rm SI}^2}{4\pi\epsilon_0}\ \text{J\,m} \ \Longrightarrow\ \{q\}_{\rm SI}^2=4\pi\epsilon_0\,\{q\}_{\rm G}^2\,\frac{\text{erg\,cm}}{\text{J\,m}} =\frac{4\pi\epsilon_0}{\alpha\beta}\{q\}_{\rm G}^2,\]
\[\boxed{\ F_q=\Bigl(\frac{4\pi\epsilon_0}{\alpha\beta}\Bigr)^{1/2}\ } =\Bigl(\frac{10^7/c^2}{10^9}\Bigr)^{1/2}=10^{-1}c^{-1} =3.33564\times10^{-10},\]

which is precisely the Table A.1 charge row (Factor and Value), using the SI statements (p.860) $4\pi\epsilon_0=10^7/c^2$ with $c=299{,}792{,}458$ as a pure number. The same recipe with the energy density $u=E^2/8\pi=\epsilon_0E^2/2$ gives the field rows, e.g.

\[\{E\}_{\rm G}^2\,\frac{\text{erg}}{\text{cm}^3}\cdot\frac1{8\pi} =\frac{\epsilon_0}{2}\{E\}_{\rm SI}^2\,\frac{\text{J}}{\text{m}^3} \ \Longrightarrow\ F_E=\Bigl(\frac{\alpha^3}{4\pi\epsilon_0\,\beta}\Bigr)^{1/2}=10^{-4}c,\]

and with $u=B^2/8\pi=B^2/2\mu_0$: $F_B=(\mu_0\alpha^3/4\pi\beta)^{1/2}=10^{-4}$ (one gauss = $10^{-4}$ tesla).

Step 4 — the general pattern. Comparing Steps 2–3 with column 3 shows the rule the tables are built on:

\[F_Q=\underbrace{\kappa_Q^{-1}}_{\substack{\text{inverse of the }\epsilon_0/\mu_0\\ \text{coefficient in column 3}}} \times\underbrace{\alpha^{-a}\beta^{-b}}_{\substack{\text{erg}^b\text{cm}^a\text{s}^c\ \text{content}\\ \text{of the Gaussian unit}}},\]

where column 3 reads "Gaussian symbol $\leftrightarrow\kappa_Q\times$ SI symbol" ($\kappa_q=1/\sqrt{4\pi\epsilon_0}$, $\kappa_E=\sqrt{4\pi\epsilon_0}$, $\kappa_B=\sqrt{4\pi/\mu_0}$, …). The $\epsilon_0/\mu_0$ structure of column 4 is the inverse of column 3's because column 3 converts symbols in equations while column 4 converts the numbers those symbols stand for — the two conversions compose to the identity on physical quantities. Column 5 then follows from $4\pi\epsilon_0=10^7/c^2$, $\mu_0/4\pi=10^{-7}$, $\alpha=10^2$, $\beta=10^7$. $\blacksquare$

Worked spot-checks (all reproduced in code). potential: $F_\Phi=(\alpha/4\pi\epsilon_0\beta)^{1/2}=10^{-6}c=299.79$ (1 statvolt = 299.79 V); H-field: $F_H=(\alpha^3/4\pi\mu_0\beta)^{1/2}=\frac{10^3}{4\pi}=79.58$ (1 oersted = $1000/4\pi$ A/m); capacitance: $F_C=4\pi\epsilon_0/\alpha=10^5c^{-2} =1.11\times10^{-12}$ (1 cm = 1.11 pF); resistance: $F_R=\alpha/4\pi\epsilon_0=10^{-5}c^2=8.99\times10^{11}$ (1 s/cm ≈ 899 GΩ).

Remark (an internal anomaly worth knowing). The Table A.2/A.4 vector-potential row carries Factor $(\mu_0\alpha^5/4\pi\beta)^{1/2}=10^{-2}$ with unit designation "G cm⁻¹ → T m⁻¹", i.e. it converts a B-field per length: indeed $1\ \text{G/cm}=10^{-4}\,\text{T}/10^{-2}\,\text{m} =10^{-2}\ \text{T/m}$, matching the row's $10^{-2}$. But the potential of Ex 1.1.2 ($\vec B=\vec\nabla\times\vec A$) has units of B-field × length (G·cm), whose amount factor is $1\ \text{G·cm}=10^{-4}\,\text{T}\times10^{-2}\,\text{m}=10^{-6}\ \text{T·m}$ (as in Jackson's units appendix). The book's row is internally consistent (its Factor matches its own G cm⁻¹ designation) but the designation looks like an erratum for the quantity named. The code checks the row as printed.

---

P9. Exercise A.1.2 — Gaussian conventions on MKS base unitsWilcox 2e §A.1, p.862

The Gaussian system is not necessarily tied to CGS units. Discuss the effects of adopting MKS units within the Gaussian system. Are there advantages? Are there any new disadvantages?

Answer: nothing in the Gaussian structure (unit-coefficient Coulomb law, no $\epsilon_0,\mu_0$, $\vec E$ and $\vec B$ of equal dimension, explicit $4\pi$ and $c$ in Table 1.1) refers to the centimeter or gram, so an "MKS-Gaussian" system is perfectly consistent: every equation of the book survives verbatim with $c=2.998\times10^8$ m/s. The units rescale by pure $\alpha,\beta$ powers — the charge unit becomes $\sqrt{\alpha\beta}\,\text{statC}=10^{4.5}\,\text{statC}\approx10.5\,\mu$C, the field unit $\sqrt{10}$ gauss $\approx3.16\times10^{-4}$ T — and conversions to SI collapse to pure $\sqrt{4\pi\epsilon_0}$ / $\sqrt{\mu_0/4\pi}$ factors (no $\alpha,\beta$ residue). Advantages: SI-scale mechanics (newtons, joules) with Gaussian-clean equations. New disadvantages: it orphans the entire CGS-Gaussian data ecosystem (every tabulated constant, and unit names like gauss/statvolt/oersted), for unit sizes that match neither tradition; the half-integer dimensions remain. Check: test_mks_gaussian_unit_sizes (the $\sqrt{\alpha\beta}$, $\sqrt{\beta/\alpha^3}$, $\sqrt{4\pi\epsilon_0}$, $\sqrt{\mu_0/4\pi}$ relations close consistently both ways), test_electron_charge_roundtrip ($e=4.80320450\times10^{-10}$ statC → MKS-Gaussian → $1.6022\times10^{-19}$ C, matching CODATA through a path that never uses the direct statC→C factor).

Solution

Step 1 — what "Gaussian" actually fixes. The system is defined by conventions, not by base-unit sizes: (i) charge is derived, with Coulomb's law $F=q_1q_2/r^2$ carrying coefficient 1 (no $\epsilon_0$); (ii) $\vec B$ is normalized so the Lorentz force is $q(\vec E+\frac{\vec v}{c}\times\vec B)$, making $\vec E$ and $\vec B$ dimensionally identical; (iii) the factors $4\pi$ and $c$ sit explicitly in Maxwell's equations (Table 1.1, Gaussian column). None of (i)–(iii) mentions the gram or centimeter — they work over any mechanical base. (This is the Appendix's own point, p.859: Gaussian units are "combinations of" mass, length, time; CGS is the traditional choice, not a logical necessity.)

Step 2 — build MKS-Gaussian and size its units. Keep (i)–(iii), take (kg, m, s). The unit charge is the charge for which two of them 1 m apart repel with 1 N: $[q]=\sqrt{\text{N}\cdot\text{m}^2}=\sqrt{\text{J}\cdot\text{m}} =\text{kg}^{1/2}\text{m}^{3/2}\text{s}^{-1}$. Its size in the two neighboring systems:

\[1\ \sqrt{\text{J\,m}}=\sqrt{\beta\,\text{erg}\cdot\alpha\,\text{cm}} =\sqrt{\alpha\beta}\ \sqrt{\text{erg\,cm}}=10^{4.5}\ \text{statC} \approx3.16\times10^4\ \text{statC},\]

and in SI, by the P8 Step-3 bridge with the $\alpha,\beta$ factors now absent (both sides use J·m):

\[\{q\}_{\rm SI}=\sqrt{4\pi\epsilon_0}\,\{q\}_{\rm MKSG} \ \Longrightarrow\ 1\ \text{MKS-G charge unit}=\sqrt{10^7/c^2}\ \text{C} =\frac{10^{3.5}}{c}\,\text{C}\approx1.05\times10^{-5}\ \text{C}\ (\approx10.5\ \mu\text{C}).\]

Fields ($E$ or $B$, same dimension, $\sim\sqrt{\text{energy/volume}}$):

\[1\ \sqrt{\text{J/m}^3}=\sqrt{\beta/\alpha^3}\ \sqrt{\text{erg/cm}^3} =\sqrt{10}\ \text{gauss}\approx3.162\ \text{G},\qquad 1\ \text{MKS-G B unit}=\sqrt{\mu_0/4\pi}\ \text{T}=\sqrt{10^{-7}}\ \text{T} =3.162\times10^{-4}\ \text{T},\]

and the two routes agree ($\sqrt{10}\times10^{-4}=\sqrt{10^{-7}}$ ✔) — the consistency the code checks. Mechanical quantities are simply SI (N, J, W). All equations of the text hold unchanged with $c=2.99792458\times10^8$ m/s.

Step 3 — advantages. (i) Mechanical compatibility with the lab: forces, energies, powers come out in newtons/joules/watts — no $\alpha,\beta$ housekeeping every time an EM calculation meets a mechanical one. (ii) The Gaussian virtues survive intact: no $\epsilon_0\mu_0$ clutter, $E$ and $B$ comparable (relativity- and QM-friendly, the book's own argument for Gaussian, p.859). (iii) Cleaner SI dictionary: every electrical amount conversion is a pure $\sqrt{4\pi\epsilon_0}$-type factor — the entire $\alpha^p\beta^q$ column of P8 collapses to 1, so the Appendix tables would shrink to their $\epsilon_0/\mu_0$ skeletons.

Step 4 — new disadvantages. (i) It orphans the data. The Gaussian literature — every handbook value ($e=4.803\times10^{-10}$ statC), every named unit (gauss, oersted, statvolt, the "cm" of capacitance) — is CGS-Gaussian; MKS-Gaussian numbers match neither that corpus nor SI (the charge unit is $10.5\,\mu$C, the field unit 3.16 G ≈ $3.16\times10^{-4}$ T), so every tabulated constant must be re-derived and the familiar magnitudes (Earth's field ≈ 0.5 G) lose their round numbers. (ii) No names, no instruments: nothing measures in these units, and none have standard names — a pure communication cost. (iii) What does not improve: the half-integer dimensions ($\text{kg}^{1/2}\text{m}^{3/2}\text{s}^{-1}$) are a property of convention (i), not of CGS, so they persist — anyone hoping MKS would cure them gains nothing. Net: MKS-Gaussian is internally flawless (Step 2's numbers close on the CODATA electron charge), mildly attractive in principle, and priced out by the network effects of the two entrenched systems — which is presumably why it is a discussion exercise and not a proposal. $\blacksquare$

Numerics. test_electron_charge_roundtrip: $e_{\rm MKSG}=4.80320450\times10^{-10}/\sqrt{\alpha\beta}=1.5189\times10^{-14}$ MKS-G units, then $e_{\rm SI}=\sqrt{4\pi\epsilon_0}\,e_{\rm MKSG} =1.60218\times10^{-19}$ C — CODATA to $10^{-8}$ relative, and algebraically identical to the direct Table A.1 route ($\tfrac1{\sqrt{\alpha\beta}}\cdot\sqrt{4\pi\epsilon_0}=\sqrt{4\pi\epsilon_0/\alpha\beta}=10^{-1}c^{-1}$).

Run the worked code: cd MACRO_EM/MACRO_EM-01_introduction_perspectives/code && python3 intro_perspectives.py

MACRO_EM-02 — Introduction to Electrostatics (Wilcox Ch. 2 problems)

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-02_intro_electrostatics

All 41 exercises (2.1.1 – 2.12.11), numbered P1..P41 in book order with the book's C.S.N labels kept in each heading:

| Block | Exercises | Topics | |---|---|---| | P1 | 2.1.1 | dipole field as gradient and curl | | P2–P5 | 2.2.1–2.2.4 | Jacobians, delta sequences, curvilinear deltas (spherical, oblate spheroidal) | | P6–P9 | 2.4.1–2.4.4 | 2-D Gauss law & log potential, crossed line charges, cylinder/ring/cone axial fields | | P10–P11 | 2.5.1–2.5.2 | Cavendish null test: $1/r^{1+\epsilon}$ and Yukawa (photon mass) | | P12–P15 | 2.6.1–2.6.4 | charged disk ($C=2R/\pi$), dipole-layer construction, tilted layers, dipole shells | | P16–P18 | 2.7.1–2.7.3 | Green's first identity, reciprocation theorem, mean value theorem | | P19–P21 | 2.8.1–2.8.3 | $G_N\leftrightarrow G_D$ relation, symmetrization, polyhedron center average | | P22–P25 | 2.9.1–2.9.4 | 1-D Dirichlet/Neumann Green functions, mixed-data solve, Helmholtz GF | | P26–P29 | 2.10.1–2.10.4 | energy theorems, string/sheet/ball self-energies, classical electron radius | | P30 | 2.11.1 | surface force (averaged-field prescription) | | P31–P41 | 2.12.1–2.12.11 | capacitance matrix: inequalities, symmetry, shells, disks, distant conductors, variational bound, three wires |

Every problem carries a numeric check; the only fully analytic items are proofs verified on closed-form instances (P16, P19–P21, P31–P32 style), and even those run a quantitative instance in the tests.

Key equations

\[\Phi_{\rm shell}(r)=\frac{q_a}{1-\epsilon^2}\,\frac{(r+a)^{1-\epsilon}-|r-a|^{1-\epsilon}}{2ar},\]
\[\Phi(\vec x)=\int_S da'\,D(\vec x')\,\hat n_{21}\cdot\vec\nabla'\frac1{|\vec x-\vec x'|} = -\int_S D\,d\Omega' \quad(2.77\text{–}2.78),\]

Example problems

P1. Exercise 2.1.1 — Dipole potential: gradient and curl formsWilcox 2e §2.14, p.69

For $\Phi=\vec d\cdot\vec x/r^3$ with $\vec d$ constant and $r=|\vec x|$: (a) compute $\vec E=-\vec\nabla\Phi$; (b) show the same field is a curl, $\vec E=\vec\nabla\times\vec A$ with $\vec A=\vec d\times\vec x/r^3$ (away from $\vec x=0$; the origin subtleties wait for §6.8). Answer: $\vec E=[3(\vec d\cdot\hat x)\hat x-\vec d]/r^3$ — the point-dipole field — and $\vec\nabla\times(\vec d\times\vec x/r^3)$ reproduces it exactly for $r\neq0$. Check: dipole_E vs numeric gradient of dipole_phi and numeric curl of dipole_A at random points. (test_p1_dipole_gradient, test_p1_dipole_curl.)

Solution

(a) Product rule with $\vec\nabla(\vec d\cdot\vec x)=\vec d$ and $\vec\nabla r^{-3}=-3\,\vec x/r^5$:

\[\vec\nabla\Phi=\frac{\vec d}{r^3}+(\vec d\cdot\vec x)\Bigl(-\frac{3\vec x}{r^5}\Bigr) \;\Longrightarrow\; \vec E=-\vec\nabla\Phi=\frac{3(\vec d\cdot\hat x)\hat x-\vec d}{r^3},\qquad\hat x=\vec x/r.\]

(b) Use $\vec\nabla\times(\vec P\times\vec Q)=\vec P(\vec\nabla\cdot\vec Q)-\vec Q(\vec\nabla\cdot\vec P)+(\vec Q\cdot\vec\nabla)\vec P-(\vec P\cdot\vec\nabla)\vec Q$ with $\vec P=\vec d$ (constant: its divergence and directional derivatives vanish) and $\vec Q=\vec x/r^3$:

\[\vec\nabla\times\Bigl(\vec d\times\frac{\vec x}{r^3}\Bigr) =\vec d\,\Bigl(\vec\nabla\cdot\frac{\vec x}{r^3}\Bigr)-(\vec d\cdot\vec\nabla)\frac{\vec x}{r^3}.\]

First piece: $\vec\nabla\cdot(\vec x/r^3)=3/r^3+\vec x\cdot(-3\vec x/r^5)=0$ for $r\neq0$ (this is $\nabla^2(−1/r)$, WT 2.55, minus its delta). Second piece, component $i$: $(\vec d\cdot\vec\nabla)(x_i r^{-3})=d_i r^{-3}+x_i\,\vec d\cdot(-3\vec x/r^5) =d_i/r^3-3(\vec d\cdot\vec x)x_i/r^5$. Hence

\[\vec\nabla\times\vec A=-\frac{\vec d}{r^3}+\frac{3(\vec d\cdot\vec x)\vec x}{r^5} =\frac{3(\vec d\cdot\hat x)\hat x-\vec d}{r^3}=\vec E.\qquad\blacksquare\]

Both routes agree numerically to $\sim10^{-8}$ at random points (central differences, $h=10^{-5}$). A field that is simultaneously a gradient and a curl is harmonic component-wise — possible here because $r\neq0$ excludes the source.

P2. Exercise 2.2.1 — Jacobians: |det M| as a volume, and UVWWilcox 2e §2.14, p.69

(a) Show the image of the unit cube under $x'_i=\sum_jM_{ij}x_j$ ($M$ nonsingular, $3\times3$) is a parallelepiped of volume $|\det M|$ (hint: the image's edge vectors are the columns of $M$, and a parallelepiped's volume is $|\vec v_3\cdot(\vec v_1\times\vec v_2)|$). (b) Conclude that for orthogonal curvilinear coordinates $|\det M|=UVW$, the product of the scale factors of WT (2.29). Answer: (a) the triple product of the columns is exactly $\det M$; (b) orthogonal columns of norms $U,V,W$ give $|\det|=UVW$. Check: triple product = $|\det M|$ for random $M$; for the spherical map $(r,\cos\theta,\phi)$, numeric $|\det J|=UVW=r^2$. (test_p2_det_volume, test_p2_scale_factors.)

Solution

(a) The unit cube is $\{\sum_j t_j\hat e_j,\ t_j\in[0,1]\}$. Linearity maps it to $\{\sum_j t_j\vec v_j\}$ with edge vectors $(\vec v_j)_i=M_{ij}$ — the columns of $M$. That set is the parallelepiped spanned by $\vec v_1,\vec v_2,\vec v_3$, whose volume is the scalar triple product

\[\mathrm{Vol}=|\vec v_3\cdot(\vec v_1\times\vec v_2)| =\bigl|\epsilon_{ijk}(v_1)_i(v_2)_j(v_3)_k\bigr| =\bigl|\epsilon_{ijk}M_{i1}M_{j2}M_{k3}\bigr|=|\det M|,\]

the Leibniz expansion of the determinant over columns. $\blacksquare$ (b) For a coordinate map $\vec x(u,v,w)$ the local linearization is $M=\partial(x,y,z)/\partial(u,v,w)$, whose columns are $\partial\vec x/\partial u$, $\partial\vec x/\partial v$, $\partial\vec x/\partial w$. Orthogonal system means these are mutually perpendicular, with norms $U,V,W$ (WT 2.29). For a right-handed orthogonal triple the triple product is the product of the norms: $|\det M|=|\vec v_3\cdot(\vec v_1\times\vec v_2)|=W\,(UV)=UVW$ (the cross product of two perpendicular vectors has magnitude $UV$ and points along $\vec v_3$). This is WT (2.28) — the infinitesimal volume $d^3x=UVW\,du\,dv\,dw$. Numerically, for spherical $(u,v,w)=(r,\cos\theta,\phi)$: $|\det J|=r^2=UVW$ to $10^{-7}$.

P3. Exercise 2.2.2 — Lorentzian delta sequences in 1-D and 2-DWilcox 2e §2.14, p.69

(a) Show $\displaystyle\lim_{\epsilon\to0^+}\frac1\pi\frac{\epsilon}{x^2+\epsilon^2}=\delta(x)$. (b) By the same reasoning in two dimensions ($\vec x=x\hat i+y\hat j$), show $\displaystyle\lim_{\epsilon\to0^+}\frac1{2\pi}\frac{\epsilon}{(\vec x^2+\epsilon^2)^{3/2}}=\delta^{(2)}(\vec x)$. Answer: each family has unit integral for every $\epsilon$ and concentrates at the origin, so it samples test functions at $0$ — the defining property WT (2.8)–(2.10). Check: $\int\varphi_\epsilon=1$ exactly; $\int\varphi_\epsilon f\to f(0)$ with the error $\to0$ as $\epsilon\downarrow0$. (test_p3_lorentzian_delta, test_p3_delta2d.)

Solution

(a) Write $\varphi_\epsilon(x)=\epsilon^{-1}f(x/\epsilon)$ with $f(s)=1/[\pi(1+s^2)]$: indeed $\frac1\pi\frac{\epsilon}{x^2+\epsilon^2} =\frac1\epsilon\cdot\frac1{\pi(1+x^2/\epsilon^2)}$. $f$ is nonnegative and

\[\int_{-\infty}^\infty f(s)\,ds=\frac1\pi\arctan s\Big|_{-\infty}^{\infty}=\frac1\pi\cdot\pi=1,\]

so by WT (2.9)–(2.10) the family is a delta sequence. Concretely, for continuous bounded $g$: substituting $x=\epsilon s$, $\int\varphi_\epsilon g\,dx=\int f(s)g(\epsilon s)\,ds\to g(0)$ (dominated convergence: $|f g|\le\|g\|_\infty f$). Numerically with $g=\cos$, the integral is $e^{-\epsilon}\to1=g(0)$. (b) Radial symmetry: total mass with $\rho^2=x^2+y^2$,

\[\int d^2x\,\frac{\epsilon}{2\pi(\rho^2+\epsilon^2)^{3/2}} =\epsilon\int_0^\infty\frac{\rho\,d\rho}{(\rho^2+\epsilon^2)^{3/2}} =\epsilon\Bigl[-\frac1{\sqrt{\rho^2+\epsilon^2}}\Bigr]_0^\infty=\epsilon\cdot\frac1\epsilon=1\]

for every $\epsilon$. And for fixed $\vec x\neq0$ the density $\le\epsilon/2\pi\rho^3\to0$. Scaling form: $\varphi_\epsilon(\vec x)=\epsilon^{-2}f(\vec x/\epsilon)$ with $f(\vec s)=1/[2\pi(s^2+1)^{3/2}]$, nonnegative with unit integral — the 2-D version of (2.9). Hence $\int\varphi_\epsilon g\,d^2x\to g(0)$: the family tends to $\delta^{(2)}(\vec x)$. $\blacksquare$ (Physically this $\varphi_\epsilon$ is the charge density a grounded plane "sees" from a point charge at height $\epsilon$ — the image-plane induced density of Ch. 3.)

P4. Exercise 2.2.3 — Delta function in spherical coordinatesWilcox 2e §2.14, p.70

With $x=r\sin\theta\cos\phi$, $y=r\sin\theta\sin\phi$, $z=r\cos\theta$ and new coordinates $u=r$, $v=\cos\theta$, $w=\phi$, find $\delta(\vec x-\vec x')$ using (a) the transformation determinant (WT 2.25), (b) scale factors. [Book's answer: $\delta(\vec x-\vec x')=r^{-2}\,\delta(r-r')\,\delta(\cos\theta-\cos\theta')\,\delta(\phi-\phi')$.] Answer: $|\det\partial(x,y,z)/\partial(r,\cos\theta,\phi)|=r^2$, so $\delta^{(3)}=\delta(r-r')\delta(\cos\theta-\cos\theta')\delta(\phi-\phi')/r^2$. Check: numeric Jacobian determinant $=r^2$ and scale-factor product $=r^2$ at random points. (test_p4_spherical_delta_jacobian.)

Solution

(a) Write $\mu=\cos\theta$, $s=\sin\theta=\sqrt{1-\mu^2}$, so $\vec x=(rs\cos\phi,\ rs\sin\phi,\ r\mu)$. The Jacobian matrix has columns $\partial\vec x/\partial r=(s\cos\phi,s\sin\phi,\mu)$, $\partial\vec x/\partial\mu=(-r\mu\cos\phi/s,\ -r\mu\sin\phi/s,\ r)$ (using $\partial s/\partial\mu=-\mu/s$), and $\partial\vec x/\partial\phi=(-rs\sin\phi,\ rs\cos\phi,\ 0)$. Expanding along the third column (or multiplying out) gives

\[\det\frac{\partial(x,y,z)}{\partial(r,\mu,\phi)} =r^2\bigl[s^2+\mu^2\bigr]\cdot1=r^2 ,\]

(one clean route: this map is spherical $(r,\theta,\phi)$ — Jacobian $r^2\sin\theta$ — composed with $\theta\mapsto\mu$, which contributes $|d\theta/d\mu|=1/\sin\theta$; the product is $r^2$). WT (2.25) then gives

\[\delta(\vec x-\vec x')=\frac{\delta(r-r')\,\delta(\cos\theta-\cos\theta')\,\delta(\phi-\phi')}{r^2}. \qquad\blacksquare\]

(b) Scale factors: the three columns above are mutually orthogonal (spherical is an orthogonal system, and replacing $\theta$ by $\mu$ rescales one column without rotating it). Norms: $U=|\partial\vec x/\partial r|=1$; $V=|\partial\vec x/\partial\mu|=\sqrt{r^2\mu^2/s^2+r^2}=r/s$; $W=|\partial\vec x/\partial\phi|=rs$. Product $UVW=1\cdot(r/s)\cdot rs=r^2$ — same denominator, by P2(b). Note the $\mu=\cos\theta$ choice absorbs the usual $\sin\theta$: $d^3x=r^2\,dr\,d\mu\,d\phi$ with no angular weight, which is why the book prefers it.

P5. Exercise 2.2.4 — Delta function in oblate spheroidal coordinatesWilcox 2e §2.14, p.70

Oblate spheroidal coordinates ($\xi\ge0$, $0\le\theta\le\pi$, $0\le\phi\le2\pi$, $R>0$ constant): $$x=R\sqrt{\xi^2+1}\,\sin\theta\cos\phi,\quad y=R\sqrt{\xi^2+1}\,\sin\theta\sin\phi,\quad z=R\,\xi\cos\theta,$$ with new coordinates $u=\xi$, $v=\cos\theta$, $w=\phi$ ($R\xi\to r$ only for $\xi\gg1$). Find the form of $\delta(\vec x-\vec x')$. Answer: $|\det J|=R^3(\xi^2+\cos^2\theta)$, so $$\delta(\vec x-\vec x')=\frac{\delta(\xi-\xi')\,\delta(\cos\theta-\cos\theta')\,\delta(\phi-\phi')}{R^3\,(\xi^2+\cos^2\theta)}.$$ Check: numeric Jacobian and scale-factor product both equal $R^3(\xi^2+\cos^2\theta)$ at random $(\xi,\theta,\phi)$. (test_p5_oblate_delta_jacobian.)

Solution

Write $\mu=\cos\theta$, $s=\sin\theta$, $A=\sqrt{\xi^2+1}$. Scale factors (the system is orthogonal in $(\xi,\theta,\phi)$, hence in $(\xi,\mu,\phi)$): - $\partial\vec x/\partial\xi=\bigl(R\xi s\cos\phi/A,\ R\xi s\sin\phi/A,\ R\mu\bigr)$, so

\[h_\xi^2=R^2\Bigl(\frac{\xi^2s^2}{\xi^2+1}+\mu^2\Bigr) =R^2\,\frac{\xi^2s^2+(\xi^2+1)\mu^2}{\xi^2+1} =R^2\,\frac{\xi^2+\mu^2}{\xi^2+1},\]

using $s^2+\mu^2=1$. - $\partial\vec x/\partial\theta=(RA\mu\cos\phi,\ RA\mu\sin\phi,\ -R\xi s)$, so $h_\theta=R\sqrt{A^2\mu^2+\xi^2s^2}=R\sqrt{\xi^2+\mu^2}$; converting to $v=\mu$ costs $|d\theta/d\mu|=1/s$: $h_\mu=R\sqrt{\xi^2+\mu^2}/s$. - $h_\phi=RA\,s=R\sqrt{\xi^2+1}\,s$.

Product (= $|\det J|$ by P2(b)):

\[h_\xi h_\mu h_\phi=R\sqrt{\frac{\xi^2+\mu^2}{\xi^2+1}}\cdot\frac{R\sqrt{\xi^2+\mu^2}}{s}\cdot R\sqrt{\xi^2+1}\,s =R^3\,(\xi^2+\mu^2)=R^3(\xi^2+\cos^2\theta).\]

Hence by WT (2.25)

\[\delta(\vec x-\vec x')=\frac{\delta(\xi-\xi')\,\delta(\cos\theta-\cos\theta')\,\delta(\phi-\phi')} {R^3(\xi^2+\cos^2\theta)}. \qquad\blacksquare\]

Sanity limits: $\xi\gg1$ gives $R^3\xi^2\to r^2/R\cdot R^2$, matching spherical with $r=R\xi$ (P4). The factor vanishes at $\xi=0,\ \theta=\pi/2$ — the focal ring $\rho=R$, where the coordinates degenerate; that ring is exactly the rim of the charged disk in P12 (Exercise 2.6.1), which is why the disk problem is natural in these coordinates.

P6. Exercise 2.4.1 — Gauss law and the log potential in two dimensionsWilcox 2e §2.14, pp.70–71

In 2-D take $\vec E(\vec x)=\int da'\,\sigma(\vec x')\,(\vec x-\vec x')/|\vec x-\vec x'|^2$. (a) Argue, mirroring the §2.4 solid-angle construction, that $\oint_C d\ell\,\hat n\cdot\vec E=2\pi\sum_{j\,\text{in}\,S}q_j$ for point charges and $\vec\nabla\cdot\vec E=2\pi\sigma$ for continuous densities. (b) For a unit point charge at the origin show $\nabla^2\ln(|\vec x-\vec x'|/K)=2\pi\,\delta^{(2)}(\vec x-\vec x')$, $K>0$ arbitrary. (c) Confirm by integrating both sides over a disk about the origin. (d) The 2-D point-charge potential is thus $-\ln(|\vec x-\vec x'|/K)$; but a unit line charge in 3-D has potential $-2\ln(|\vec x-\vec x'|/K)$. Where does the 2 come from? Answer: (a) the planar angle subtended by a closed curve is $2\pi$ from inside, $0$ from outside; (b,c) both sides integrate to $2\pi$; (d) 3-D Gauss carries $4\pi q$ where 2-D carries $2\pi q$ — the 3-D line field is $E_\rho=2\lambda/\rho$, twice the 2-D unit-charge field $1/\rho$. Check: flux2d of E2d_point $=2\pi$ (inside) / $0$ (outside) by quadrature; 5-point Laplacian of $\ln r$ vanishes off-origin while the flux form of $\int\nabla^2\ln r\,da=2\pi$; line-charge field vs $2\lambda/\rho$. (test_p6_flux2d, test_p6_log_laplacian.)

Solution

(a) For a unit charge at $\vec x_j$, the flux element through arc $d\ell$ of $C$ is $d\ell\,\hat n\cdot(\vec x-\vec x_j)/|\vec x-\vec x_j|^2=d\theta_j$ — the plane angle subtended by $d\ell$ at $\vec x_j$ (the 2-D copy of WT 2.42: $d\ell_\parallel/\rho$ instead of $ds_\parallel/r^2$). Closing the curve, $\oint d\theta_j=2\pi$ if $\vec x_j$ is enclosed (full horizon) and $0$ otherwise (front/back cancellation) — the same in/out dichotomy as WT Figs. 2.7–2.8, one dimension down. Superposing, $\oint d\ell\,\hat n\cdot\vec E=2\pi\sum_{\rm in}q_j$; smearing $q_j\to\sigma\,da$ and applying the 2-D divergence theorem to arbitrary regions equates integrands: $\vec\nabla\cdot\vec E=2\pi\sigma$. $\blacksquare$ (b) For $q=1$ at $\vec x'$: $\vec E=(\vec x-\vec x')/|\vec x-\vec x'|^2 =\vec\nabla\ln|\vec x-\vec x'|=\vec\nabla\ln(|\vec x-\vec x'|/K)$ (the constant $K$ only fixes the zero of the log and drops under $\vec\nabla$ — needed because a pure $\ln|\vec x|$ has dimensions inside the log). By (a), $\vec\nabla\cdot\vec E=2\pi\delta^{(2)}(\vec x-\vec x')$, i.e. $\nabla^2\ln(|\vec x-\vec x'|/K)=2\pi\delta^{(2)}(\vec x-\vec x')$. Note also directly $\nabla^2\ln\rho=\rho^{-1}\partial_\rho(\rho\,\partial_\rho\ln\rho)=\rho^{-1}\partial_\rho(1)=0$ for $\rho\neq0$. (c) Put $\vec x'=0$, integrate over the disk $\rho\le R$: right side gives $2\pi$ by the sampling property. Left side, by the 2-D divergence theorem: $\int\nabla^2\ln(\rho/K)\,da=\oint_{\rho=R}\partial_\rho\ln(\rho/K)\,R\,d\phi =\frac1R\cdot R\cdot2\pi=2\pi$. Equal, for every $R$ — consistent. $\blacksquare$ (d) The two "unit charges" are normalized by different Gauss laws. 2-D: $E\cdot2\pi\rho=2\pi q\Rightarrow E=1/\rho$, potential $-\ln(\rho/K)$. A unit-density line in 3-D: $E\cdot2\pi\rho=4\pi\lambda\Rightarrow E=2\lambda/\rho$, potential $-2\lambda\ln(\rho/K)$ (also obtainable by integrating $dz'/\sqrt{\rho^2+z'^2}$ with a cutoff, P7). The extra 2 is the ratio $4\pi/2\pi$ of the solid angle of a sphere to the angle of a circle — a bookkeeping constant between dimensions, not new physics.

P7. Exercise 2.4.2 — Crossed finite line chargesWilcox 2e §2.14, pp.71–72

(a) Two lines of length $2L$, both with uniform density $\lambda$, lie along the $x$- and $y$-axes crossing at the origin (a "+", Fig. 2.16). Find the exact $\Phi(x,y,z)$ and show that for $L\gg|x|,|y|,|z|$ $$\Phi\approx-\lambda\,\ln\!\Bigl[\frac{(x^2+z^2)(y^2+z^2)}{16L^4}\Bigr],$$ and explain why this is the expected form given P6. (b) For $L\ll|x|,|y|,|z|$ show the potential reduces to that of a point charge of the right size. (c) Now keep only the positive $x$- and $y$-axis halves ($0$ to $L$), with density $-\lambda$ on the $x$-line and $+\lambda$ on the $y$-line; find the exact potential and show for $L\gg|x|,|y|,|z|$ that $\Phi\approx-\lambda\ln[(r-y)/(r-x)]$, $r=\sqrt{x^2+y^2+z^2}$. Answer: each finite line gives $\lambda[\sinh^{-1}\frac{L-\zeta}{b}+\sinh^{-1}\frac{L+\zeta}{b}]$ ($\zeta$ = coordinate along the line, $b$ = transverse distance); the limits follow from $\sinh^{-1}u\approx\ln2u$ and $\sqrt{u^2+b^2}\approx u+b^2/2u$. Check: closed form vs direct quadrature; asymptotic ratios $\to1$ at $L/r=10^3$; monopole limit $4\lambda L/r$. (test_p7_plus_potential, test_p7_halflines.)

Solution

The single-line building block, for a line along $x$ from $x_1$ to $x_2$ seen from $(x,y,z)$ with $b^2=y^2+z^2$:

\[\Phi_{\rm line}=\lambda\int_{x_1}^{x_2}\frac{dx'}{\sqrt{(x-x')^2+b^2}} =\lambda\Bigl[\sinh^{-1}\frac{x_2-x}{b}-\sinh^{-1}\frac{x_1-x}{b}\Bigr],\]

since $\int du/\sqrt{u^2+b^2}=\sinh^{-1}(u/b)=\ln(u+\sqrt{u^2+b^2})-\ln b$. (a) Superpose the $x$-line ($x_{1,2}=\mp L$, $b_1^2=y^2+z^2$) and the $y$-line ($b_2^2=x^2+z^2$):

\[\Phi=\lambda\ln\frac{L-x+\sqrt{(L-x)^2+b_1^2}}{-(L+x)+\sqrt{(L+x)^2+b_1^2}} +\lambda\ln\frac{L-y+\sqrt{(L-y)^2+b_2^2}}{-(L+y)+\sqrt{(L+y)^2+b_2^2}}.\]

For $L\gg$ everything: numerator $\to2L$; denominator $\sqrt{(L+x)^2+b^2}-(L+x)=\dfrac{b^2}{\sqrt{(L+x)^2+b^2}+(L+x)}\to\dfrac{b^2}{2L}$. Each log $\to\ln(4L^2/b^2)$, so

\[\Phi\approx\lambda\ln\frac{4L^2}{y^2+z^2}+\lambda\ln\frac{4L^2}{x^2+z^2} =-\lambda\ln\frac{(x^2+z^2)(y^2+z^2)}{16L^4}. \qquad\blacksquare\]

This is exactly two copies of the 3-D line-charge potential $-2\lambda\ln(b/K)$ of P6(d), one per line, with the cutoff scale $K=2L$ set by the line length — the finite ends regulate the log divergence. (b) For $L\ll r$: $\sinh^{-1}\frac{L\mp\zeta}{b}$ expands as $\int dx'/\sqrt{\cdots}\approx2L/r$ per line (the integrand is $\approx1/r$ across the whole segment), so $\Phi\approx\lambda(2L/r)+\lambda(2L/r)=4\lambda L/r=Q_{\rm tot}/r$ with $Q_{\rm tot}=2\times2L\lambda$ — the expected monopole. (c) Half-lines: $+\lambda$ on $0\le y'\le L$, $-\lambda$ on $0\le x'\le L$:

\[\Phi=\lambda\Bigl[\sinh^{-1}\frac{L-y}{b_2'}+\ln\frac{b_2'}{r-y}\Bigr] -\lambda\Bigl[\sinh^{-1}\frac{L-x}{b_1'}+\ln\frac{b_1'}{r-x}\Bigr]\]

— more transparently, using the antiderivative directly,

\[\Phi=\lambda\ln\frac{L-y+\sqrt{(L-y)^2+x^2+z^2}}{r-y} -\lambda\ln\frac{L-x+\sqrt{(L-x)^2+y^2+z^2}}{r-x},\]

where the lower limits produced $\sqrt{y^2+x^2+z^2}-y=r-y$ and $r-x$. For $L\gg|x|,|y|,|z|$ both numerators $\to2L$ and cancel between the two logs:

\[\Phi\approx\lambda\ln\frac{2L}{r-y}-\lambda\ln\frac{2L}{r-x} =-\lambda\ln\frac{r-y}{r-x}. \qquad\blacksquare\]

The $L$-dependence drops because the far ends of the $\pm\lambda$ lines cancel; what survives is the near-origin imbalance. (The equipotentials $r-y=c(r-x)$ are the cones of the classic "bent-wire" problem.)

P8. Exercise 2.4.3 — On-axis field of a charged cylinderWilcox 2e §2.14, p.71

A solid cylinder of radius $b$ and thickness $a$ (faces at $z=\pm a/2$, Fig. 2.17) carries constant charge density $\rho$. (a) Find $E_z(z)$ on the symmetry axis. (b) Show that near the center $E_z=\text{(const)}\cdot z$ and find the constant. Can the $b\gg a$ limit be predicted easily? Answer: stacking charged disks, $$E_z(z)=2\pi\rho\Bigl[\textstyle\int_{-a/2}^{a/2}\mathrm{sgn}(z-z')\,dz' -\sqrt{(z+\frac a2)^2+b^2}+\sqrt{(z-\frac a2)^2+b^2}\Bigr],$$ and near the origin $E_z\approx4\pi\rho\bigl[1-a/\sqrt{a^2+4b^2}\bigr]\,z$; for $b\gg a$ the constant $\to4\pi\rho$ — the interior of an infinite slab, predictable from Gauss. Check: closed form vs direct quadrature over the volume; numeric slope at $0$; slab limit. (test_p8_cylinder_axis.)

Solution

(a) The on-axis field of a uniform disk (radius $b$, surface density $\sigma$, at $z'=0$) follows from the ring formula (P9a) integrated over radius: $E_z^{\rm disk}(z)=2\pi\sigma[\mathrm{sgn}(z)-z/\sqrt{z^2+b^2}]$. Slice the cylinder into disks $\sigma=\rho\,dz'$ at height $z'$ and superpose:

\[E_z(z)=2\pi\rho\int_{-a/2}^{a/2}\Bigl[\mathrm{sgn}(z-z')-\frac{z-z'}{\sqrt{(z-z')^2+b^2}}\Bigr]dz'.\]

Both pieces integrate exactly. With $\int\mathrm{sgn}(z-z')dz'=a$, $2z$, $-a$ for $z>a/2$, $|z|\le a/2$, $z<-a/2$, and $\frac{d}{dz'}\sqrt{(z-z')^2+b^2}=-\frac{z-z'}{\sqrt{(z-z')^2+b^2}}$:

\[E_z(z)=2\pi\rho\Bigl[\{a,\,2z,\,-a\}-\sqrt{(z+\tfrac a2)^2+b^2}+\sqrt{(z-\tfrac a2)^2+b^2}\Bigr].\]

(b) Inside, set $f(z)=\sqrt{(z+\frac a2)^2+b^2}-\sqrt{(z-\frac a2)^2+b^2}$; $f(0)=0$ and

\[f'(0)=\frac{a/2}{\sqrt{a^2/4+b^2}}+\frac{a/2}{\sqrt{a^2/4+b^2}} =\frac{a}{\sqrt{a^2/4+b^2}}=\frac{2a}{\sqrt{a^2+4b^2}} .\]

So $E_z\approx2\pi\rho[2z-f'(0)z]=4\pi\rho\Bigl[1-\dfrac{a}{\sqrt{a^2+4b^2}}\Bigr]z$:

\[\text{Constant}=4\pi\rho\Bigl[1-\frac{a}{\sqrt{a^2+4b^2}}\Bigr].\]

For $b\gg a$ the bracket $\to1$ and $E_z\to4\pi\rho z$ — predictable without calculation: an infinite slab has, by Gauss on a pillbox straddling $|z|$, $2E_z=4\pi\rho\cdot2z$, i.e. $E_z=4\pi\rho z$; the edge correction $-a/\sqrt{a^2+4b^2}\approx-a/2b$ is the finite-radius leak. (Both linear coefficients are checked numerically against a symmetric-difference slope.)

P9. Exercise 2.4.4 — Ring field and the truncated coneWilcox 2e §2.14, pp.72–73

(a) A circular loop of radius $R$ in the $x$–$y$ plane with uniform linear density $\lambda$: show the axial field is $E_z=2\pi\lambda R\,z/[R^2+z^2]^{3/2}$. (b) A cone of (half-)opening angle $\alpha$ about the $z$-axis, truncated so its surface runs from axial distance $L_1$ to $L_2$ from the theoretical tip at the origin (Fig. 2.18), carries uniform surface density $\sigma$. Using (a), evaluate $E_z$ at the tip. Answer: (a) $q_{\rm ring}=2\pi R\lambda$ at hoop distance $\sqrt{R^2+z^2}$ gives the stated field. (b) $E_z(0)=-2\pi\sigma\sin\alpha\cos\alpha\,\ln(L_2/L_1)$ ($=-\pi\sigma\sin2\alpha\ln\frac{L_2}{L_1}$; directed away from the cone for $\sigma>0$). Check: ring closed form vs quadrature and vs point limit $z\gg R$; cone closed form vs 2-D surface quadrature. (test_p9_ring_and_cone.)

Solution

(a) Every element $dq=\lambda R\,d\phi$ sits at distance $s=\sqrt{R^2+z^2}$ from the axis point $(0,0,z)$. Transverse components cancel by symmetry; the axial projection is $z/s$:

\[E_z=\oint\frac{dq}{s^2}\cdot\frac zs=\frac{2\pi R\lambda\,z}{(R^2+z^2)^{3/2}}. \qquad\blacksquare\]

(Limit $z\gg R$: $E_z\to2\pi R\lambda/z^2=q_{\rm ring}/z^2$ ✓.) (b) Parametrize the cone surface by the axial coordinate $z'\in[L_1,L_2]$: the ring at height $z'$ has radius $\rho'=z'\tan\alpha$ and slant width $d\ell=dz'/\cos\alpha$, hence charge $dq=\sigma\,2\pi\rho'\,d\ell=2\pi\sigma\tan\alpha\,z'\,dz'/\cos\alpha$. By (a) with the field point at the origin ($z=0$, i.e. axial offset $-z'$):

\[dE_z=\frac{dq\,(0-z')}{(z'^2+\rho'^2)^{3/2}} =-dq\,\frac{z'}{z'^3(1+\tan^2\alpha)^{3/2}}=-dq\,\frac{\cos^3\alpha}{z'^2},\]

using $1+\tan^2\alpha=1/\cos^2\alpha$. So

\[E_z(0)=-2\pi\sigma\frac{\tan\alpha}{\cos\alpha}\cos^3\alpha\int_{L_1}^{L_2}\frac{z'\,dz'}{z'^2} =-2\pi\sigma\sin\alpha\cos\alpha\,\ln\frac{L_2}{L_1}. \qquad\blacksquare\]

Every ring contributes $\propto dz'/z'$ — the cone is the classic logarithmic geometry (self-similar: each octave of distance contributes equally). The sign says the field at the tip points away from the (positive) cone, down the $-z$ axis; the magnitude $\pi\sigma\sin2\alpha\ln(L_2/L_1)$ is extremal at $\alpha=45°$.

P10. Exercise 2.5.1 — Cavendish spheres with a $1/r^{1+\epsilon}$ potentialWilcox 2e §2.14, pp.73–74

Assume the modified potential $\Phi=(1+\epsilon)^{-1}\int d^3x'\,\rho(\vec x')/|\vec x-\vec x'|^{1+\epsilon}$, $|\epsilon|\ll1$ (WT 2.59). (a) For concentric conducting spheres of radii $a<b$ and charges $q_a,q_b$, show the potential in $a\le r\le b$ is $\Phi(r)=\Phi_{\rm out}(r)+\Phi_{\rm in}(r)$ with the shell forms (2.62)–(2.63). (b) After wiring the spheres together ($\Phi(a)=\Phi(b)$), show $$q_a\approx\frac{q_b\,\epsilon}{2(a-b)}\Bigl[b\ln\frac{b-a}{a+b}+a\ln\frac{4b^2}{b^2-a^2}\Bigr]$$ (use $x^{1-\epsilon}=xe^{-\epsilon\ln x}\approx x(1-\epsilon\ln x)$). (c) Is there a quick way to fix the sign of $q_a$ from the signs of $\epsilon$ and $q_b$? Answer: (a) the shell integral gives $\Phi_{\rm shell}(r)=\frac{q}{1-\epsilon^2}\frac{(r+s)^{1-\epsilon}-|r-s|^{1-\epsilon}}{2sr}$ (shell radius $s$); (b) as stated — $q_a=O(\epsilon)$, vanishing for exact inverse-square; (c) yes: for $\epsilon>0$ a shell's interior potential rises outward, so the inner sphere must take on same-sign charge: $\mathrm{sgn}\,q_a=\mathrm{sgn}(\epsilon q_b)$. Check: closed shell form vs surface quadrature at finite $\epsilon$; the exact linear solve for $q_a$ vs the first-order formula as $\epsilon\to0$. (test_p10_shell_potential_eps, test_p10_qa_approx.)

Solution

(a) For a uniform shell of radius $s$, charge $q$, surface density $\sigma=q/4\pi s^2$, put the field point at distance $r$ and use the axial angle $\theta$ of the source point: $u^2\equiv|\vec x-\vec x'|^2=r^2+s^2-2rs\cos\theta$, so $u\,du=rs\sin\theta\,d\theta$ and $da'=s^2\sin\theta\,d\theta\,d\phi$:

\[\Phi_{\rm shell}(r)=\frac{\sigma}{1+\epsilon}\int\frac{da'}{u^{1+\epsilon}} =\frac{2\pi s^2\sigma}{1+\epsilon}\int_{|r-s|}^{r+s}\frac{u\,du}{rs\,u^{1+\epsilon}} =\frac{q}{2rs}\,\frac{(r+s)^{1-\epsilon}-|r-s|^{1-\epsilon}}{(1+\epsilon)(1-\epsilon)},\]

i.e. $\Phi_{\rm shell}=\dfrac{q}{1-\epsilon^2}\dfrac{(r+s)^{1-\epsilon}-|r-s|^{1-\epsilon}}{2rs}$. With $s=a\le r$ this is $\Phi_{\rm out}$ (2.62) ($|r-a|=r-a$); with $s=b\ge r$ it is $\Phi_{\rm in}$ (2.63) ($|r-b|=b-r$). Superposition gives $\Phi=\Phi_{\rm out}+\Phi_{\rm in}$ in the gap. (Conductors keep each shell uniform by symmetry, so this is exact.) $\blacksquare$ (b) Impose $\Phi(a)=\Phi(b)$ and multiply through by $2ab(1-\epsilon^2)$:

\[q_a\underbrace{\Bigl[\tfrac ba(2a)^{1-\epsilon}-(a+b)^{1-\epsilon}+(b-a)^{1-\epsilon}\Bigr]}_{\mathcal A} =q_b\underbrace{\Bigl[\tfrac ab(2b)^{1-\epsilon}-(a+b)^{1-\epsilon}+(b-a)^{1-\epsilon}\Bigr]}_{\mathcal B}.\]

Expand $x^{1-\epsilon}\approx x(1-\epsilon\ln x)$. The $O(1)$ parts: $\mathcal A_0=2b-(a+b)+(b-a)=2(b-a)$, while $\mathcal B_0=2a-(a+b)+(b-a)=0$ — the whole right bracket is first order, which is the Cavendish point: $q_a=O(\epsilon)$. The $O(\epsilon)$ part of $\mathcal B$:

\[\mathcal B_1=-\epsilon\bigl[2a\ln2b-(a+b)\ln(a+b)+(b-a)\ln(b-a)\bigr].\]

Hence $q_a\approx q_b\,\mathcal B_1/\mathcal A_0=-\dfrac{q_b\,\epsilon}{2(b-a)}\,N$ with $N=2a\ln2b-(a+b)\ln(a+b)+(b-a)\ln(b-a)$. Regroup $N$ by collecting the $a$- and $b$-coefficients of the logs:

\[N=b\bigl[\ln(b-a)-\ln(a+b)\bigr]+a\bigl[2\ln2b-\ln(a+b)-\ln(b-a)\bigr] =b\ln\frac{b-a}{a+b}+a\ln\frac{4b^2}{b^2-a^2},\]

so, flipping the denominator sign,

\[q_a\approx\frac{q_b\,\epsilon}{2(a-b)}\Bigl[b\ln\frac{b-a}{a+b}+a\ln\frac{4b^2}{b^2-a^2}\Bigr]. \qquad\blacksquare\]

(Numerically, $a=1,b=2$: $N=2\ln4-3\ln3=-0.5232$, so $q_a=-\epsilon q_bN/[2(b-a)]=+0.2616\,\epsilon\,q_b$; the exact linear solve at $\epsilon=10^{-4}$ matches to $\sim10^{-4}$ relative.) (c) Expand the outer shell's interior potential to first order: $\Phi_{\rm in}(r)\approx q_b\bigl[\frac1b-\epsilon\bigl(\frac{\ln b+1}{b}-\frac{r^2}{6b^3}\bigr)\bigr]$, which increases with $r$ when $\epsilon>0$ (faster-than-Coulomb fall-off makes the near wall dominate). So with $q_a=0$ the inner sphere would sit below the outer's potential ($q_b>0$); since a charge $q_a$ raises $\Phi(a)$ by $\approx q_a/a$ but $\Phi(b)$ only by $\approx q_a/b$, equalization needs $q_a>0$: same sign as $q_b$. Flipping $\epsilon$ or $q_b$ flips the argument: $\mathrm{sgn}\,q_a=\mathrm{sgn}(\epsilon\,q_b)$ — matching (b) since the bracket $N/(a-b)>0$.

P11. Exercise 2.5.2 — Cavendish with a Yukawa potential (photon mass)Wilcox 2e §2.14, p.74

Suppose the point potential is $\Phi=\exp(-|\vec x-\vec x'|/R)/|\vec x-\vec x'|$ with $R$ very large. For the Fig. 2.10 setup (concentric conducting spheres $a<b$ wired together): (a) given $q_b$ on the outer sphere, find $q_a$ (book answer: $$q_a=q_b\;\frac{\frac ab\bigl(1-e^{-2b/R}\bigr)-e^{(a-b)/R}+e^{-(a+b)/R}} {\frac ba\bigl(1-e^{-2a/R}\bigr)-e^{(a-b)/R}+e^{-(a+b)/R}}\;);$$ (b) show for $R\gg a,b$ that $q_a\approx q_b\,\frac{ab}{6R^2}(1+\frac ab)$ — same sign as $q_b$. ($R=\hbar/m_\gamma c$ connects the null test to the photon mass.) Answer: (a) as displayed — from the shell potential $\varphi_s(r)=\frac{qR}{2sr}[e^{-|r-s|/R}-e^{-(r+s)/R}]$ and $\Phi(a)=\Phi(b)$; (b) the $1/R$ and $1/R^2$ terms cancel, leaving $q_a\to q_b\,a(a+b)/6R^2$. Check: shell closed form vs quadrature; the ratio formula vs an independent linear solve; the approximation at $R/b=50$. (test_p11_yukawa_shell, test_p11_qa_yukawa.)

Solution

(a) Same substitution as P10(a) — the "perfect differential" hint: with $u=|\vec x-\vec x'|$, $\int da'\,f(u)=\frac{2\pi s}{r}\int_{|r-s|}^{r+s}u f(u)\,du$, and here $uf(u)=e^{-u/R}$ integrates immediately:

\[\varphi_s(r)=\frac{q}{4\pi s^2}\,\frac{2\pi s}{r}\,R\bigl[e^{-|r-s|/R}-e^{-(r+s)/R}\bigr] =\frac{qR}{2sr}\bigl[e^{-|r-s|/R}-e^{-(r+s)/R}\bigr].\]

Evaluate the four combinations:

\[\varphi_a(a)=\frac{q_aR}{2a^2}\bigl(1-e^{-2a/R}\bigr),\qquad \varphi_b(a)=\varphi_a(b)=\frac{R}{2ab}\,q_{b,a}\bigl[e^{-(b-a)/R}-e^{-(a+b)/R}\bigr],\]
\[\varphi_b(b)=\frac{q_bR}{2b^2}\bigl(1-e^{-2b/R}\bigr).\]

The wire enforces $\varphi_a(a)+\varphi_b(a)=\varphi_a(b)+\varphi_b(b)$; multiplying by $2ab/R$ and collecting the $q_a$ and $q_b$ terms:

\[q_a\Bigl[\tfrac ba\bigl(1-e^{-2a/R}\bigr)-e^{(a-b)/R}+e^{-(a+b)/R}\Bigr] =q_b\Bigl[\tfrac ab\bigl(1-e^{-2b/R}\bigr)-e^{(a-b)/R}+e^{-(a+b)/R}\Bigr],\]

(the sign of the exponent flips to $e^{(a-b)/R}$ because $e^{-(b-a)/R}$ moved across with the same value: $b>a$). Solving for $q_a$ gives the displayed ratio. $\blacksquare$ (b) Expand each bracket in $1/R$ (write $x=1/R$): $1-e^{-2bx}=2bx-2b^2x^2+\tfrac43b^3x^3+\ldots$, so $\tfrac ab(1-e^{-2bx})=2ax-2abx^2+\tfrac43ab^2x^3$; and

\[-e^{(a-b)x}+e^{-(a+b)x}=-2ax+2abx^2-\tfrac13(a^3+3ab^2)x^3+\ldots\]

(the odd/even split of the two exponentials leaves $-[(a-b)+(a+b)]x=-2ax$, $+\frac{(a+b)^2-(a-b)^2}{2}x^2=+2abx^2$, $-\frac{(a+b)^3+(a-b)^3}{6}x^3=-\frac{a^3+3ab^2}{3}x^3$). Numerator: the $x$ and $x^2$ terms cancel exactly, leaving $\bigl[\tfrac43ab^2-ab^2-\tfrac13a^3\bigr]x^3=\tfrac13a(b^2-a^2)x^3$. Denominator: swap $a\leftrightarrow b$ in the first bracket only: $2bx-2abx^2+\tfrac43a^2bx^3-2ax+2abx^2-\ldots=2(b-a)x+O(x^3)$. Hence

\[q_a\approx q_b\,\frac{a(b^2-a^2)/3R^3}{2(b-a)/R} =q_b\,\frac{a(a+b)}{6R^2}=q_b\,\frac{ab}{6R^2}\Bigl(1+\frac ab\Bigr). \qquad\blacksquare\]

Positive for $q_b>0$: unlike P10, the Yukawa deviation is even in the sense that the induced charge appears only at second order in $b/R$ — which is why Cavendish null results translate into such strong photon-mass limits ($\epsilon_{\rm eff}\sim(b/R)^2$; Williams–Fowler–Hill 1971 reach $\epsilon\sim3\times10^{-16}$, i.e. $R\gtrsim10^{7}\,$m).

P12. Exercise 2.6.1 — The charged conducting diskWilcox 2e §2.14, pp.74–75

A thin isolated conducting disk of radius $R$ is raised to potential $V$. In the oblate spheroidal coordinates of P5 (origin at the disk center, $z$-axis perpendicular; the disk is $\xi=0$) the solution is $\Phi=A\tan^{-1}(1/\xi)$. (a) Change variables to show $$\Phi=A\tan^{-1}\!\Biggl[\frac{\sqrt2\,R}{\sqrt{(r^2-R^2)+\sqrt{(r^2-R^2)^2+4R^2z^2}}}\Biggr], \qquad r^2=x^2+y^2+z^2 .$$ (b) Take $z\to0$ with $r<R$ to argue $A=2V/\pi$. (c) Show the (two-sided) surface density is $\sigma(\rho)=\dfrac{V}{\pi^2\sqrt{R^2-\rho^2}}$. (d) What is the disk's capacitance? Answer: (a) invert $\xi$ from $(r,z)$; (b) on the disk $\xi\to0$, $\tan^{-1}\to\pi/2$, so $A\pi/2=V$; (c) $\sigma=-\frac1{2\pi}\partial_z\Phi|_{0^+}$; (d) $C=Q/V=2R/\pi$. Check: the spherical form equals the oblate form; $\Phi\to V$ on the disk; $\int\sigma\,da=Q=2RV/\pi$; far field $\to Q/r$. (test_p12_disk_potential.)

Solution

(a) From P5's map: $\rho^2\equiv x^2+y^2=R^2(\xi^2+1)\sin^2\theta$ and $z=R\xi\cos\theta$, so $r^2=\rho^2+z^2=R^2\xi^2+R^2\sin^2\theta$, giving $\sin^2\theta=(r^2-R^2\xi^2)/R^2$ and

\[\frac{z^2}{R^2}=\xi^2\cos^2\theta=\xi^2\Bigl(1-\frac{r^2}{R^2}+\xi^2\Bigr) \;\Longrightarrow\; \xi^4+\Bigl(1-\frac{r^2}{R^2}\Bigr)\xi^2-\frac{z^2}{R^2}=0 .\]

The positive root of this quadratic in $\xi^2$:

\[\xi^2=\frac{(r^2-R^2)+\sqrt{(r^2-R^2)^2+4R^2z^2}}{2R^2} \;\Longrightarrow\; \frac1\xi=\frac{\sqrt2\,R}{\sqrt{(r^2-R^2)+\sqrt{(r^2-R^2)^2+4R^2z^2}}},\]

which substituted in $\Phi=A\tan^{-1}(1/\xi)$ is the displayed form. $\blacksquare$ (b) On the disk ($z\to0$, $r=\rho<R$): $r^2-R^2<0$, and $\sqrt{(r^2-R^2)^2+4R^2z^2}\to R^2-r^2$, so the inner sum $\to0^+$ and $1/\xi\to\infty$: $\tan^{-1}(1/\xi)\to\pi/2$. Consistency with the boundary value $\Phi|_{\rm disk}=V$ forces $A=2V/\pi$. (Check the other limits: $r\to\infty$ gives $\xi\to r/R$, $\Phi\to AR/r\to0$ ✓; the potential is continuous across the plane outside the disk ✓.) (c) Near the disk $\xi\to0$: $\Phi=A\tan^{-1}(1/\xi)=A(\pi/2-\xi+O(\xi^3))$, and at fixed $\rho<R$, $z=R\xi\cos\theta$ with $\cos\theta=\sqrt{1-\rho^2/R^2}$ at $\xi=0$, so $\partial\xi/\partial z=1/(R\cos\theta)=1/\sqrt{R^2-\rho^2}$ and

\[\frac{\partial\Phi}{\partial z}\Big|_{0^+}=-\frac{A}{\sqrt{R^2-\rho^2}} .\]

By symmetry $E_z(0^-)=-E_z(0^+)$, so the total (both faces) density from the jump condition (WT 2.68), $E_z(0^+)-E_z(0^-)=4\pi\sigma$:

\[\sigma(\rho)=\frac{2E_z(0^+)}{4\pi}=-\frac1{2\pi}\frac{\partial\Phi}{\partial z}\Big|_{0^+} =\frac{A}{2\pi\sqrt{R^2-\rho^2}}=\frac{V}{\pi^2}\frac1{\sqrt{R^2-\rho^2}} . \qquad\blacksquare\]

(The inverse-square-root rim divergence is the conductor's edge singularity.) (d) Total charge:

\[Q=\int_0^R\sigma(\rho)\,2\pi\rho\,d\rho=\frac{2V}{\pi}\int_0^R\frac{\rho\,d\rho}{\sqrt{R^2-\rho^2}} =\frac{2V}{\pi}\bigl[-\sqrt{R^2-\rho^2}\bigr]_0^R=\frac{2RV}{\pi},\]

so

\[C=\frac QV=\frac{2R}{\pi}\approx0.6366\,R\]

— the $C_{\rm cir}$ quoted and reused in P37–P39 (Exercises 2.12.7–2.12.9). Far field check: $\Phi\to A R/r=Q/r$ ✓ (numerically the ratio $\to1$ at $r/R\sim10^3$).

P13. Exercise 2.6.2 — Deriving the dipole-layer potentialWilcox 2e §2.14, p.75

Two nearby surfaces carry equal-and-opposite surface densities at points separated by the constant offset $d$ along the common perpendicular: $\sigma_1(\vec x'-\hat n_{21}d)=-\sigma(\vec x')$ (Fig. 2.13), so $$\Phi(\vec x)=\int_{S_2}\frac{\sigma(\vec x')}{|\vec x-\vec x'|}\,da' -\int_{S_2}\frac{\sigma(\vec x')}{|\vec x-\vec x''|}\,da',\qquad \vec x''=\vec x'-\hat n_{21}d .$$ Using the first-order expansion of $1/|\vec x-\vec x''|$ in $d$, derive WT (2.77): $\Phi(\vec x)=\int_S da'\,D(\vec x')\,\hat n_{21}\cdot\vec\nabla'\,|\vec x-\vec x'|^{-1}$ with $D=\sigma d$. Answer: the shifted denominator expands as $1/|\vec x-\vec x''|=1/|\vec x-\vec x'|-d\,\hat n_{21}\cdot\vec\nabla'|\vec x-\vec x'|^{-1}$; the zeroth-order terms cancel between the layers. Check: two coaxial uniformly charged disks $\pm\sigma$ at separation $d$: the exact two-layer axial potential converges to the dipole-layer formula as $d\to0$ at fixed $D=\sigma d$ (error $O(d^2)$). (test_p13_dipole_limit.)

Solution

The geometric content: the negative layer sits at $\vec x''=\vec x'-\hat n_{21}d$, so $|\vec x-\vec x''|=|(\vec x-\vec x')+\hat n_{21}d|$. Expand in the small shift $\vec a=\hat n_{21}d$ using $f(\vec v+\vec a)\approx f(\vec v)+\vec a\cdot\vec\nabla_v f$ with $f=1/|\cdot|$, $\vec v=\vec x-\vec x'$:

\[\frac1{|\vec x-\vec x''|}=\frac1{|\vec v+\vec a|} \approx\frac1{|\vec v|}-\frac{\vec a\cdot\vec v}{|\vec v|^3} =\frac1{|\vec x-\vec x'|}-d\,\hat n_{21}\cdot\frac{\vec x-\vec x'}{|\vec x-\vec x'|^3}.\]

But $\vec\nabla'\,|\vec x-\vec x'|^{-1}=+(\vec x-\vec x')/|\vec x-\vec x'|^3$ (derivative with respect to the source point — the sign that makes the book's hint come out right), so

\[\frac1{|\vec x-\vec x''|}\approx\frac1{|\vec x-\vec x'|}-d\,\hat n_{21}\cdot\vec\nabla'\frac1{|\vec x-\vec x'|}.\]

Insert into the two-layer superposition: the leading $1/|\vec x-\vec x'|$ pieces cancel (equal and opposite charge at corresponding points), leaving

\[\Phi(\vec x)=\int_{S}da'\,\sigma(\vec x')\,d\;\hat n_{21}\cdot\vec\nabla'\frac1{|\vec x-\vec x'|} =\int_Sda'\,D(\vec x')\,\hat n_{21}\cdot\vec\nabla'\frac1{|\vec x-\vec x'|},\]

with $D\equiv\sigma d$ held finite as $d\to0$, $\sigma\to\infty$ (WT 2.76). This is (2.77); combined with the solid-angle identity (2.71) it is $\Phi=-\int D\,d\Omega'$ (2.78). $\blacksquare$ Numerically: two disks of radius $1$ carrying $\pm\sigma=\pm D/d$ at separation $d$ reproduce the $d\to0$ formula with error $\propto d^2$ (the next, quadrupole, order — the linear term is the answer).

P14. Exercise 2.6.3 — Dipole surface with a fixed separation directionWilcox 2e §2.14, p.76

Now build the double layer differently (Fig. 2.19): put $+\sigma(\vec x')$ on open surface 2 and $-\sigma$ on a complementary copy displaced by the constant vector $\hat x\,d$ (not the local normal). (a) Show that in both regions $\Phi_d(\vec x)=\hat x\cdot\vec E^{(2)}(\vec x)\,d$, where $\vec E^{(2)}$ is the field of surface 2 alone. (b) Show the potential discontinuity across the pair is $\Phi_2^d-\Phi_1^d=4\pi D(\vec x)\,\hat x\cdot\hat n_{21}$, $D\equiv\sigma d$. Answer: (a) the shifted-layer potential is a directional finite difference of the single-layer potential: $\Phi_d=\Phi^{(2)}(\vec x)-\Phi^{(2)}(\vec x+\hat xd)\to -d\,\hat x\cdot\vec\nabla\Phi^{(2)}=\hat x\cdot\vec E^{(2)}d$. (b) only the normal component of $\vec E^{(2)}$ jumps (by $4\pi\sigma$), so the jump of $\Phi_d$ is $4\pi\sigma d\,\hat x\cdot\hat n_{21}$. Check: single charged disk, oblique offset $\hat x$: numeric two-layer potential vs $\hat x\cdot\vec E^{(2)}d$ at off-axis points (quadrature field); jump across the layer $\to4\pi D\,\hat x\cdot\hat n$ including the $\hat x\perp\hat n$ null case. (test_p14_tilted_layer.)

Solution

(a) Let $\Phi^{(2)}(\vec x)=\int_{S_2}\sigma(\vec x')/|\vec x-\vec x'|\,da'$ be the single-layer potential. The negative copy lives at source points $\vec x'+\hat xd$ (displaced rigidly by $\hat xd$; Fig. 2.19's orientation makes the pair's dipole moment point along $+\hat x$), so its potential at $\vec x$ is

\[-\int_{S_2}\frac{\sigma(\vec x')\,da'}{|\vec x-\vec x'-\hat xd|}=-\Phi^{(2)}(\vec x-\hat xd) \quad\text{— wait: }|\vec x-(\vec x'+\hat xd)|=|(\vec x-\hat xd)-\vec x'| .\]

So the pair potential is a finite difference of the same function at two field points:

\[\Phi_d(\vec x)=\Phi^{(2)}(\vec x)-\Phi^{(2)}(\vec x-\hat xd) =d\,\hat x\cdot\vec\nabla\Phi^{(2)}(\vec x)+O(d^2) =-\,d\,\hat x\cdot\vec E^{(2)}(\vec x)+O(d^2).\]

The overall sign tracks which copy is positive: with the positive layer displaced by $+\hat xd$ relative to the negative one (equivalently the negative copy at $\vec x'-\hat xd$), the same two lines give $\Phi_d(\vec x)=\Phi^{(2)}(\vec x)-\Phi^{(2)}(\vec x+\hat xd)=+\,\hat x\cdot\vec E^{(2)}(\vec x)\,d$, which is the book's orientation (Fig. 2.19). Either way: the pair potential is the $d$-weighted component of the single-layer field along the offset direction, valid in both regions since only $\Phi^{(2)}$, defined everywhere, enters. $\blacksquare$ (b) $\Phi_d$ inherits its discontinuity from $\vec E^{(2)}$. Crossing $S_2$ along $\hat n_{21}$, the tangential part of $\vec E^{(2)}$ is continuous (WT 2.67) and the normal part jumps by (WT 2.68): $\vec E^{(2)}_2-\vec E^{(2)}_1=4\pi\sigma\,\hat n_{21}$. Hence

\[\Phi_2^d-\Phi_1^d=\hat x\cdot\bigl(\vec E^{(2)}_2-\vec E^{(2)}_1\bigr)d =4\pi\sigma d\;\hat x\cdot\hat n_{21}=4\pi D(\vec x)\,\hat x\cdot\hat n_{21}. \qquad\blacksquare\]

This generalizes (2.80): the standard normal-offset layer is $\hat x=\hat n_{21}$, jump $4\pi D$; a layer sheared parallel to itself ($\hat x\perp\hat n_{21}$) produces no potential jump — numerically the two-disk potential with in-plane offset is continuous across the disk to $O(d^2)$.

P15. Exercise 2.6.4 — Dipole shells: hemisphere, disk, full sphereWilcox 2e §2.14, pp.76–77

(a) A hemispherical shell of radius $a$ (rim in the $z=0$ plane, center O at the origin) carries constant dipole surface density $D$ along its outward normal $\hat n$ (Fig. 2.20a). Find $\vec E$ on the whole $z$-axis, and show the far field is $$E_r=\frac{2D\pi a^2}{r^3}\cos\theta,\qquad E_\theta=\frac{D\pi a^2}{r^3}\sin\theta$$ (the point-dipole field, cf. §5.1). (b) Same for a flat disk of radius $a$ (Fig. 2.20b). (c) For a full sphere with uniform $D$ along the outward normal (Fig. 2.20c), find $\vec E$ inside and outside. Answer: (a) $\Phi=2\pi D[\pm1-z/\sqrt{z^2+a^2}]$ (upper sign outside the shell, i.e. $z>a$), so on the entire axis $E_z=2\pi Da^2/(z^2+a^2)^{3/2}$; the layer's dipole moment is $\vec p=D\,(\text{vector area})=\pi a^2D\,\hat z$, giving the stated far field. (b) the disk gives the same axis field and the same $\vec p$ — same rim, same solid angle. (c) $\vec E\equiv0$ both inside and outside; only $\Phi$ jumps by $4\pi D$ across the shell. Check: quadrature of the layer integral vs closed forms for hemisphere and disk; $E_z$ agreement between the two; far-field ratio $\to$ dipole; sphere: quadrature potential constant in/out. (test_p15_hemisphere.)

Solution

Work from the layer potential in solid-angle form (P13 / WT 2.77):

\[\Phi(\vec x)=D\int_S da'\;\hat n'\cdot\frac{\vec x-\vec x'}{|\vec x-\vec x'|^3} \qquad(\text{constant }D).\]

(a) On the axis, $\vec x=(0,0,z)$; hemisphere points $\vec x'=a(\sin\theta\cos\phi,\sin\theta\sin\phi,\cos\theta)$, $\hat n'=\vec x'/a$, $\mu=\cos\theta\in[0,1]$: $\hat n'\cdot(\vec x-\vec x')=(z\mu a-a^2)/a=z\mu-a$ and $|\vec x-\vec x'|^2=z^2+a^2-2az\mu$, so

\[\Phi(z)=2\pi a^2D\int_0^1\frac{(z\mu-a)\,d\mu}{(z^2+a^2-2az\mu)^{3/2}} .\]

Substitute $Q=z^2+a^2-2az\mu$ (so $z\mu-a=(z^2-a^2-Q)/2a$, $d\mu=-dQ/2az$):

\[\int\frac{(z\mu-a)\,d\mu}{Q^{3/2}} =\frac1{2a^2z}\Bigl[(z^2-a^2)Q^{-1/2}+Q^{1/2}\Bigr],\]

evaluated between $\mu=0$ ($Q=z^2+a^2$, bracket $=2z^2/\sqrt{z^2+a^2}$) and $\mu=1$ ($Q=(z-a)^2$, bracket $=(z^2-a^2)/|z-a|+|z-a|=\pm2z$ — $+$ for $z>a$, $-$ for $z<a$). Hence

\[\Phi(z)=\frac{\pi D}{z}\Bigl[\pm2z-\frac{2z^2}{\sqrt{z^2+a^2}}\Bigr] =2\pi D\Bigl[\pm1-\frac{z}{\sqrt{z^2+a^2}}\Bigr],\]

upper sign for $z>a$ (outside the dome), lower for $z<a$ (below/inside — including all $z<0$). Limits: $\Phi\to0$ as $z\to\pm\infty$ ✓; crossing the dome at $z=a$, $\Phi(a^+)-\Phi(a^-)=4\pi D$ ✓ (WT 2.81). The constant $\pm$ never differentiates:

\[E_z=-\frac{d\Phi}{dz}=2\pi D\,\frac{d}{dz}\frac{z}{\sqrt{z^2+a^2}} =\frac{2\pi D\,a^2}{(z^2+a^2)^{3/2}}\qquad\text{for all }z\ \text{(off the layer)},\]

a single smooth formula on the whole axis, pointing along $+\hat z$ for $D>0$ (value $2\pi D/a$ at O). Far field: the layer's dipole moment is $\vec p=\int D\,\hat n'\,da'=D\times(\text{vector area of the dome})=D\,\pi a^2\hat z$ (the vector area of any cap equals that of its rim disk). A point dipole $p\hat z$ has $E_r=2p\cos\theta/r^3$, $E_\theta=p\sin\theta/r^3$, i.e. exactly $E_r=2\pi Da^2\cos\theta/r^3$, $E_\theta=\pi Da^2\sin\theta/r^3$; on the axis $E_z\to2\pi Da^2/z^3$, matching the exact form. $\blacksquare$ (b) Disk of radius $a$ in the $z=0$ plane, $\hat n'=\hat z$: $\hat n'\cdot(\vec x-\vec x')=z$, $|\vec x-\vec x'|^2=z^2+\rho'^2$:

\[\Phi(z)=2\pi Dz\int_0^a\frac{\rho'\,d\rho'}{(z^2+\rho'^2)^{3/2}} =2\pi D\Bigl[\mathrm{sgn}(z)-\frac{z}{\sqrt{z^2+a^2}}\Bigr],\]

so again $E_z=2\pi Da^2/(z^2+a^2)^{3/2}$ everywhere off the layer, and $\vec p=D\pi a^2\hat z$: identical axis field and far field. No accident: the dome and the disk share the same rim, and a constant-$D$ layer's potential is $-D\,\Omega(\vec x)$ with $\Omega$ the (signed) solid angle of the surface — which depends only on the rim, up to the $4\pi$ jump bookkeeping of which side you're on. (c) Full sphere: from (a) plus the complementary dome ($\mu\in[-1,0]$, bracket at $\mu=-1$: $(z^2-a^2)/(z+a)+(z+a)=2z$ for $z>-a$), the lower dome contributes $2\pi D[z/\sqrt{z^2+a^2}-1]$, so

\[\Phi_{\rm out}=2\pi D\Bigl[1-\tfrac{z}{\sqrt{\cdot}}\Bigr]+2\pi D\Bigl[\tfrac{z}{\sqrt{\cdot}}-1\Bigr]=0,\qquad \Phi_{\rm in}=2\pi D\Bigl[-1-\tfrac{z}{\sqrt{\cdot}}\Bigr]+2\pi D\Bigl[\tfrac{z}{\sqrt{\cdot}}-1\Bigr]=-4\pi D,\]

both constants (the axis calculation suffices — by symmetry $\Phi$ depends only on $r$, and the solid-angle form gives $\Omega=4\pi$ inside, $0$ outside). Therefore

\[\vec E=0\ \text{everywhere, inside and outside};\qquad \Phi_{\rm out}-\Phi_{\rm in}=4\pi D,\]

the pure gauge-jump of a closed uniform double layer — the "Neumann conductor" field configuration of §2.7. $\blacksquare$

P16. Exercise 2.7.1 — Green's first identityWilcox 2e §2.14, p.77

Prove Green's first identity (WT 2.83), $\int_V d^3x\,(\phi\nabla^2\psi+\vec\nabla\psi\cdot\vec\nabla\phi)=\oint_S da\,\phi\,\partial_n\psi$, from the Gauss (divergence) theorem. Answer: apply the divergence theorem to the vector field $\phi\vec\nabla\psi$. Check: radial test pair $\phi=r^2$, $\psi=r^4$ on a ball of radius $R$: both sides equal $16\pi R^7$ (quadrature vs closed form); plus a second nontrivial pair. (test_p16_green_identity.)

Solution

The product rule for divergences gives, for any $C^2$ pair,

\[\vec\nabla\cdot(\phi\,\vec\nabla\psi)=\phi\,\nabla^2\psi+\vec\nabla\phi\cdot\vec\nabla\psi .\]

Integrate over $V$ and apply the divergence theorem (WT 1.9) to the left side:

\[\int_V\vec\nabla\cdot(\phi\vec\nabla\psi)\,d^3x=\oint_S\phi\,\vec\nabla\psi\cdot\hat n\,da =\oint_S\phi\,\frac{\partial\psi}{\partial n}\,da ,\]

$\hat n$ the outward normal. Hence

\[\int_V\bigl(\phi\nabla^2\psi+\vec\nabla\phi\cdot\vec\nabla\psi\bigr)d^3x=\oint_S\phi\,\partial_n\psi\,da. \qquad\blacksquare\]

(Antisymmetrizing in $\phi\leftrightarrow\psi$ kills the symmetric $\vec\nabla\phi\cdot\vec\nabla\psi$ term and yields Green's second identity (2.95) — the engine of §2.8.) Closed-form check used by the tests: on the ball $r\le R$ with $\phi=r^2,\ \psi=r^4$: $\nabla^2r^4=20r^2$, $\vec\nabla r^2\cdot\vec\nabla r^4=8r^4$, so the volume side is $\int_0^R28r^4\,4\pi r^2dr=16\pi R^7$; the surface side is $R^2\cdot4R^3\cdot4\pi R^2=16\pi R^7$. Equal. (analytic — the numeric check is of the verifying-instance kind.)

P17. Exercise 2.7.2 — Green's reciprocation theorem; shells around a point chargeWilcox 2e §2.14, pp.77–78

(a) Prove the reciprocation theorem: for two electrostatic states of the same geometry with conducting boundaries — state 1 with $(\Phi,\rho,\sigma)$, state 2 with $(\Phi',\rho',\sigma')$ — $$\oint da\,\sigma\,\Phi'+\int d^3x\,\rho\,\Phi'=\oint da\,\sigma'\,\Phi+\int d^3x\,\rho'\,\Phi .$$ (b) A point charge $q$ sits at radius $r$ between grounded concentric conducting shells $a<r<b$ (Fig. 2.21). Use (a) to find the induced charges on the two shells. Answer: (b) $Q_a=-q\,\dfrac{a(b-r)}{r(b-a)}=-q\,\dfrac{1/r-1/b}{1/a-1/b}$, $Q_b=-q\,\dfrac{b(r-a)}{r(b-a)}$; they sum to $-q$. Check: reciprocation result vs an independent Gauss/continuity construction of the radial potential; $Q_a+Q_b=-q$; limits $r\to a,b$. (test_p17_reciprocation_shells.)

Solution

(a) Both states' potentials are Coulomb superpositions of all their charges (volume + surface): $\Phi'(\vec x)=\int d^3y\,\rho'(\vec y)/|\vec x-\vec y|+\oint da_y\,\sigma'(\vec y)/|\vec x-\vec y|$. Insert into the left side:

\[\oint\!da\,\sigma\Phi'+\int\!d^3x\,\rho\Phi' =\iint\frac{[\rho(\vec x)+\sigma(\vec x)\delta_S]\,[\rho'(\vec y)+\sigma'(\vec y)\delta_{S}]}{|\vec x-\vec y|}\,d^3x\,d^3y,\]

writing surface charge as a surface-delta volume density (P–§2.3). The double integral is symmetric under exchanging primed and unprimed sources (the kernel $1/|\vec x-\vec y|$ is symmetric), and the right side is the same double integral with the roles swapped. Hence LHS = RHS. $\blacksquare$ (Equivalently: both sides equal twice the mutual interaction energy of the two charge systems.) (b) Choose the auxiliary state to convert unknown induced charges into knowns. State 1 (actual): $q$ at radius $r$; both shells grounded, $\Phi=0$ on $S_a$ and $S_b$; unknown totals $Q_a$, $Q_b$. State 2 (auxiliary): no interior charge, inner shell at potential $V'$, outer grounded; between the shells the auxiliary potential is the standard capacitor form

\[\Phi'(s)=V'\,\frac{1/s-1/b}{1/a-1/b},\qquad a\le s\le b .\]

Reciprocation: the RHS vanishes ($\rho'=0$; $\sigma'$ lives on shells where the actual $\Phi=0$). The LHS: the actual surface charge on $S_a$ sees $\Phi'=V'$, on $S_b$ sees $0$; the point charge sees $\Phi'(r)$:

\[Q_a\,V'+q\,\Phi'(r)=0\ \Longrightarrow\ Q_a=-q\,\frac{1/r-1/b}{1/a-1/b}=-q\,\frac{a(b-r)}{r(b-a)} .\]

Repeating with the auxiliary roles swapped (outer at $V'$, inner grounded, $\Phi'(s)=V'(1/a-1/s)/(1/a-1/b)$):

\[Q_b=-q\,\frac{1/a-1/r}{1/a-1/b}=-q\,\frac{b(r-a)}{r(b-a)} .\]

Sum: $Q_a+Q_b=-q\,[a(b-r)+b(r-a)]/[r(b-a)]=-q$ — all field lines from $q$ end on the grounded pair. Limits: $r\to a$ gives $(Q_a,Q_b)\to(-q,0)$; $r\to b$ gives $(0,-q)$ ✓. Independent verification (used by the test): solve the $\ell=0$ radial problem directly — $\Phi=\alpha(1/s-1/a)$ for $s<r$, $\beta(1/s-1/b)$ for $s>r$; Gauss gives $\alpha=Q_a$, $\beta=q+Q_a$; continuity at $s=r$ reproduces exactly $Q_a=-qa(b-r)/[r(b-a)]$. $\blacksquare$

P18. Exercise 2.7.3 — Mean value theorem and uniqueness againWilcox 2e §2.14, p.78

(a) Prove the electrostatic mean value theorem (MVT): in charge-free space, $\Phi$ at a point equals its average over any sphere centered on that point. (b) Use the MVT to re-prove Dirichlet uniqueness (§2.7) for $\Phi$. Answer: (a) the derivative of the spherical average with respect to the radius is the flux of $\vec\nabla\Phi$, which vanishes by Laplace; (b) the difference of two solutions obeys the MVT, so it can have no interior extremum, and it vanishes on the boundary. Check: spherical averages of harmonic test functions ($1/|\vec x-\vec x_0|$ with outside source, $x^2-y^2$, linear) equal center values by quadrature; a non-harmonic control ($x^2$) fails by exactly $R^2/3$. (test_p18_mvt.)

Solution

(a) Define the average over the sphere of radius $R$ about $\vec x_0$,

\[\langle\Phi\rangle_R=\frac1{4\pi}\oint\Phi(\vec x_0+R\hat n)\,d\Omega .\]

Differentiate under the integral with respect to $R$:

\[\frac{d\langle\Phi\rangle_R}{dR}=\frac1{4\pi}\oint\hat n\cdot\vec\nabla\Phi\,d\Omega =\frac1{4\pi R^2}\oint_{S_R}\partial_n\Phi\,da =\frac1{4\pi R^2}\int_{B_R}\nabla^2\Phi\,d^3x=0,\]

by the divergence theorem and $\nabla^2\Phi=0$ (charge-free). So $\langle\Phi\rangle_R$ is independent of $R$; letting $R\to0$, continuity gives $\langle\Phi\rangle_R=\Phi(\vec x_0)$ for every admissible $R$. $\blacksquare$ (b) Let $\Phi_1,\Phi_2$ solve Poisson's equation in $V$ with the same $\rho$ and the same Dirichlet values on $S$; $U=\Phi_1-\Phi_2$ is harmonic with $U|_S=0$. Suppose $U>0$ somewhere. $U$ is continuous on the compact $\overline V$, so it attains its maximum $M>0$ at some interior $\vec x_$ (not on $S$, where $U=0$). Take any small sphere around $\vec x_$ inside $V$: the MVT says $M=U(\vec x_)=\langle U\rangle_R\le M$, with equality only if $U\equiv M$ on the whole sphere (an average of values $\le M$ equals $M$ only when all equal $M$). Hence $U=M$ on every sphere around $\vec x_$ up to the boundary of its neighborhood — the set $\{U=M\}$ is open and closed in $V$, so $U\equiv M$ on the connected component, contradicting $U\to0$ at $S$. So $U\le0$; symmetrically $U\ge0$; therefore $U\equiv0$ and $\Phi_1=\Phi_2$. (This is the max-principle route — same squeeze as Griffiths' proof, with the MVT supplying the "no interior extrema" step; cf. ~EM-04 notes §2.)

P19. Exercise 2.8.1 — Relating the Neumann and Dirichlet Green functionsWilcox 2e §2.14, p.78

For a region with boundary $S$, show $$G_N(\vec x,\vec x'')=G_D(\vec x'',\vec x)-\frac1{4\pi}\oint_S da'\,G_N(\vec x',\vec x'')\, \frac{\partial G_D(\vec x',\vec x)}{\partial n'} .$$ Answer: Green's second identity applied to the pair $\phi(\vec x')=G_D(\vec x',\vec x)$, $\psi(\vec x')=G_N(\vec x',\vec x'')$, using each function's defining property. Check: 1-D analog verified exactly on a grid — with $G_D=x_<(1-x_>/L)$ and the unsymmetrized $G_N$, the identity (with $\frac1{4\pi}\oint\to$ endpoint sum) holds to machine precision. (test_p19_gn_gd_identity.)

Solution

Green's second identity in the primed variable:

\[\int_Vd^3x'\bigl[\phi\,\nabla'^2\psi-\psi\,\nabla'^2\phi\bigr] =\oint_Sda'\Bigl[\phi\,\frac{\partial\psi}{\partial n'}-\psi\,\frac{\partial\phi}{\partial n'}\Bigr].\]

Insert $\phi(\vec x')=G_D(\vec x',\vec x)$ and $\psi(\vec x')=G_N(\vec x',\vec x'')$, both Green functions in their first argument: $\nabla'^2G_D(\vec x',\vec x)=-4\pi\delta(\vec x'-\vec x)$, $\nabla'^2G_N(\vec x',\vec x'')=-4\pi\delta(\vec x'-\vec x'')$. The volume side collapses onto the two deltas:

\[-4\pi G_D(\vec x'',\vec x)+4\pi G_N(\vec x,\vec x'') .\]

The surface side: $G_D(\vec x',\vec x)=0$ for $\vec x'\in S$ (2.100) kills the first term, leaving $-\oint da'\,G_N(\vec x',\vec x'')\,\partial_{n'}G_D(\vec x',\vec x)$. Divide by $4\pi$:

\[G_N(\vec x,\vec x'')=G_D(\vec x'',\vec x)-\frac1{4\pi}\oint_Sda'\,G_N(\vec x',\vec x'')\, \frac{\partial G_D(\vec x',\vec x)}{\partial n'} . \qquad\blacksquare\]

Reading: the Neumann function is the Dirichlet one plus a boundary correction whose kernel $-\partial_{n'}G_D/4\pi$ is exactly the Dirichlet "boundary influence" weight of (2.98) — the correction re-distributes the $-4\pi/S$ wall field. 1-D version (what the test checks, WT 1-D conventions $G''=-\delta$, no $4\pi$): $G_N(x,x'')=G_D(x'',x)-\sum_{x'\in\{0,L\}}G_N(x',x'')\,\partial_{n'}G_D(x',x)$, with $\partial_{n'}=\mp d/dx'$ at $0,L$. With $G_D=x_<(1-x_>/L)$, $\partial_{n'}G_D|_{x'=0}=-(1-x/L)$, $\partial_{n'}G_D|_{x'=L}=-x/L$, and the unsymmetrized $G_N$ of P23 ($G_N(0,x'')=0$, $G_N(L,x'')=x''-L/2$), the right side is $G_D(x'',x)+(x''-L/2)\,x/L$, which equals $x/2$ ($x<x''$) or $x''-x/2$ ($x>x''$) — precisely $G_N(x,x'')$. Exact.

P20. Exercise 2.8.2 — The symmetrized Neumann function changes nothingWilcox 2e §2.14, p.79

For the interior Neumann problem, show that using the symmetrized $G_N^{\rm symm}$ (2.111) in the representation (2.103) leaves the potential unchanged up to a constant: $\Phi=\Phi_{\rm symm}+\langle\Phi\rangle-\langle\Phi_{\rm symm}\rangle$. Answer: $G_N^{\rm symm}$ differs from $G_N$ by $-\langle G_N(\cdot,\vec x'')\rangle_S$, a term constant in the integration variable; its volume and surface contributions cancel (they carry $Q$ and $-Q$), so only the additive constant convention differs. Check: 1-D analog — the representation (2.138) evaluated with the unsymmetrized vs symmetrized $G_N$ on a test problem gives potentials whose difference is grid-constant. (test_p20_symm_vs_unsym_rep.)

Solution

First, $G^{\rm symm}_N$ is itself a legitimate Neumann Green function: (2.111) subtracts $g(\vec x'')\equiv\langle G_N(\vec x,\vec x'')\rangle_{S(\vec x)}$, which depends only on the second slot, so in the first slot $\nabla'^2G^{\rm symm}_N=-4\pi\delta$ and $\partial_{n'}G^{\rm symm}_N|_S=-4\pi/S$ still hold. Now substitute $G^{\rm symm}_N(\vec x',\vec x)=G_N(\vec x',\vec x)-g(\vec x)$ into the two integrals of (2.103):

\[\Delta_{\rm vol}=-g(\vec x)\int d^3x'\rho(\vec x')=-g(\vec x)\,Q,\qquad \Delta_{\rm surf}=-\frac{g(\vec x)}{4\pi}\oint da'\,\frac{\partial\Phi}{\partial n'} .\]

But Gauss (Green's first identity with $\phi\equiv1$) gives $\oint\partial_{n'}\Phi\,da'=\int\nabla'^2\Phi\,d^3x'=-4\pi Q$, so $\Delta_{\rm surf}=+g(\vec x)\,Q$ and the two shifts cancel identically: the integral part of the representation is the same function of $\vec x$ for both kernels. The only freedom left is the additive constant each convention appends — (2.103) adds $\langle\Phi\rangle$; calling $\Phi_{\rm symm}$ the symmetric-kernel representation with its average constant, the two answers differ by the constant $\langle\Phi\rangle-\langle\Phi_{\rm symm}\rangle$:

\[\Phi(\vec x)=\Phi_{\rm symm}(\vec x)+\langle\Phi\rangle-\langle\Phi_{\rm symm}\rangle . \qquad\blacksquare\]

Exactly the expected Neumann non-uniqueness: the physical field $-\vec\nabla\Phi$ is untouched. (1-D numeric check: kernels $G_N=\{x/2;\,x''-x/2\}$ vs $G^{\rm symm}_N=-|x-x''|/2+L/4$ in (2.138) give $\Phi$'s differing by a constant $\sim$ machine-flat across the grid.)

P21. Exercise 2.8.3 — Potential at the center of a regular polyhedronWilcox 2e §2.14, p.79

A closed volume is bounded by the $n$ conducting faces of a regular polyhedron ($n=4,6,8,12,20$), face $i$ held at $V_i$. Using the Dirichlet-Green-function representation of the interior potential, show $\Phi(\text{center})=\frac1n\sum_iV_i$. (Compare Jackson, Problem 2.28.) Answer: charge-free (2.98) makes $\Phi(\vec x_c)=\sum_iV_iF_i$ with weights $F_i=-\frac1{4\pi}\int_{S_i}\partial_{n'}G_D\,da'$; symmetry equates the $F_i$, and Gauss forces $\sum F_i=1$, so each is $1/n$. Check: Jacobi relaxation of the cube ($n=6$, one face at $V=1$): center $\to1/6$ to $\sim10^{-4}$. (test_p21_cube_average.)

Solution

With $\rho=0$ inside, (2.98) reduces to the boundary term

\[\Phi(\vec x)=-\frac1{4\pi}\oint_Sda'\,\Phi(\vec x')\,\frac{\partial G_D(\vec x',\vec x)}{\partial n'} =\sum_{i=1}^{n}V_i\,F_i(\vec x),\qquad F_i(\vec x)\equiv-\frac1{4\pi}\int_{S_i}da'\,\frac{\partial G_D(\vec x',\vec x)}{\partial n'},\]

since $\Phi=V_i$ is constant on face $i$. Two observations at $\vec x=\vec x_c$ (the center): 1. Symmetry. The rotation group of the regular polyhedron acts transitively on the faces and fixes $\vec x_c$. $G_D$ is determined uniquely by the geometry (2.99)–(2.100), so it is invariant: $G_D(g\vec x',g\vec x)=G_D(\vec x',\vec x)$ for any symmetry $g$. Mapping face $i$ onto face $j$ therefore maps the integral $F_i(\vec x_c)$ onto $F_j(\vec x_c)$: all the $F_i(\vec x_c)$ are equal. 2. Normalization. Summing over all faces,

\[\sum_iF_i(\vec x_c)=-\frac1{4\pi}\oint_S\partial_{n'}G_D\,da' =-\frac1{4\pi}\int_V\nabla'^2G_D\,d^3x'=-\frac1{4\pi}(-4\pi)=1\]

(Gauss, then the defining delta of $G_D$ with the source $\vec x_c$ inside). Equal weights summing to 1 must each be $1/n$:

\[\Phi(\vec x_c)=\frac1n\sum_{i=1}^nV_i . \qquad\blacksquare\]

(Physical reading: $-\partial_{n'}G_D/4\pi\,da'$ is the probability-like "influence measure" of boundary patch $da'$ — nonnegative, total mass 1 — and the center sees every face identically. The cube relaxation check lands at $0.1667$.)

P22. Exercise 2.9.1 — Working the 1-D Dirichlet Green functionWilcox 2e §2.14, p.79

For the 1-D box $[0,L]$ with $G_D(x,x')=x_<(1-x_>/L)$ (2.136): (a) find the force $F=E_{\rm avg}q$ (with $E=-dG_D/dx$) on the unit charge at $x'$; (b) find the induced charges on the endpoints $x=0,L$; (c) using $G_D$ and (2.127), find $\Phi$ inside the box when $\lambda=0$, $\Phi(0)=V$, $\Phi(L)=0$. Answer: (a) $F=x'/L-\tfrac12$ (pulled toward the nearer wall); (b) $\sigma_0=-(1-x'/L)$, $\sigma_L=-x'/L$ (sum $=-1$); (c) $\Phi(x)=V(1-x/L)$. Check: jump/continuity/BC properties of $G_D$ on a grid; two-sided numeric slope average; endpoint charges from the field; (c) against the linear interpolant. (test_p22_force_and_charges.)

Solution

The two branches of $G_D$ as a function of the field coordinate $x$:

\[G_D=\begin{cases}x\,(1-x'/L), & x<x'\\[2pt] x'\,(1-x/L), & x>x'\end{cases} \qquad\Longrightarrow\qquad E(x)=-\frac{dG_D}{dx}=\begin{cases}-(1-x'/L), & x<x'\\[2pt] +\,x'/L, & x>x'.\end{cases}\]

(a) The self-field average at the particle (the §2.11 prescription — the mean of the two one-sided fields removes the particle's own symmetric contribution):

\[E_{\rm avg}=\frac{E(x'^+)+E(x'^-)}2=\frac{x'/L-(1-x'/L)}2=\frac{x'}L-\frac12, \qquad F=q\,E_{\rm avg}=\frac{x'}L-\frac12\quad(q=1).\]

$F<0$ (toward $0$) for $x'<L/2$, $F>0$ (toward $L$) for $x'>L/2$: the charge is attracted to its nearer grounded wall by its induced charge, with the (1-D) force growing linearly, vanishing by symmetry at midbox. (b) In these 1-D conventions ($\Phi''=-\lambda$) Gauss reads $dE/dx=\lambda$, so a wall's surface charge is the jump of $E$ across it (field vanishes outside the box):

\[\sigma_0=E(0^+)-0=\frac{x'}L-1=-\Bigl(1-\frac{x'}L\Bigr),\qquad \sigma_L=0-E(L^-)=-\frac{x'}L .\]

Both negative (they attract the unit charge — consistent with (a)); total induced $\sigma_0+\sigma_L=-1$, screening the unit source completely. Note the proximity rule: the wall nearer the charge takes the larger share, exactly like the 3-D parallel-plate image problem. (c) With $\lambda=0$, (2.127) keeps only the boundary term $\Phi(x)=-[\Phi(x')\,\partial_{x'}G_D(x,x')]_{x'=0}^{x'=L}$. From the branches (now differentiating in $x'$): $\partial_{x'}G_D|_{x'=L}=-x/L$ and $\partial_{x'}G_D|_{x'=0}=1-x/L$, so

\[\Phi(x)=-\bigl[\Phi(L)(-x/L)-\Phi(0)(1-x/L)\bigr]=V\Bigl(1-\frac xL\Bigr),\]

the straight line from $V$ to $0$ — which indeed solves $\Phi''=0$ with the given endpoint data. $\blacksquare$

P23. Exercise 2.9.2 — The 1-D Neumann Green functionWilcox 2e §2.14, pp.79–80

(a) Complete the derivation of the symmetric Neumann function (2.139), $G^{\rm symm}_N(x,x')=-\tfrac12|x-x'|+C$, from the general linear form (2.128) and the endpoint conditions (2.137) $\partial_xG_N(0)=\tfrac12$, $\partial_xG_N(L)=-\tfrac12$. (b) Find the force on the unit charge at $x'$. (c) With $\lambda=0$ and endpoint fields $E(0)=E(L)=V/L$, use (2.138) to find $\Phi$ (note the neutrality bookkeeping $E\big|_0^L=Q$). Answer: (a) the BCs fix the slopes $\pm\tfrac12$; continuity + the free per-source constant give $-\tfrac12|x-x'|+C$, with $C=L/4$ from the (2.111) recipe; (b) $F=0$; (c) $\Phi(x)=V/2-Vx/L+\langle\Phi\rangle$ — the uniform field $V/L$. Check: BCs, slope jump $-1$, symmetry on a grid; $C=L/4$ from endpoint averaging; force $=0$; (c) linear with slope $-V/L$. (test_p23_neumann_gf.)

Solution

(a) Write $G_N=C_1x+C_2$ ($x>x'$), $C_3x+C_4$ ($x<x'$). The endpoint conditions land on one branch each: $C_3=\tfrac12$ (at $x=0$), $C_1=-\tfrac12$ (at $x=L$). The unit-source jump $\partial_xG_N|^{x'^+}_{x'^-}=C_1-C_3=-1$ is then automatically satisfied — that is the 1-D image of the $-4\pi/S$ consistency (2.102): total wall flux must swallow the unit charge, and $\tfrac12+\tfrac12=1$ splits it evenly. Continuity at $x'$: $-\tfrac{x'}2+C_2=\tfrac{x'}2+C_4$, i.e. $C_2=x'+C_4$ with $C_4=c(x')$ free for each source position (Neumann non-uniqueness). So

\[G_N(x,x')=\begin{cases}\tfrac x2+c(x'), & x<x'\\[2pt] x'-\tfrac x2+c(x'), & x>x'\end{cases} \;=\;-\tfrac12|x-x'|+\tfrac{x+x'}2\cdot0+\tfrac{x'}2+c(x')\ \ \text{(compact form below)} .\]

Both branches combine as $G_N=-\tfrac12|x-x'|+\tfrac{x'}2+c(x')$. Choosing $c(x')=C-\tfrac{x'}2$ — allowed, it's a function of $x'$ only — gives the symmetric

\[G^{\rm symm}_N(x,x')=-\tfrac12|x-x'|+C .\]

The (2.111) prescription picks the constant: subtract the endpoint average of the $c=0$ function, $\tfrac12[G_N(0,x')+G_N(L,x')]=\tfrac12[0+(x'-\tfrac L2)]=\tfrac{x'}2-\tfrac L4$, which yields exactly $-\tfrac12|x-x'|+\tfrac L4$: $C=L/4$. $\blacksquare$ (b) $E(x)=-\partial_xG^{\rm symm}_N=\tfrac12\,\mathrm{sgn}(x-x')$: $E(x'^\pm)=\pm\tfrac12$, so $E_{\rm avg}=0$ and $F=0$ for every $x'$. Physical: constant-field Neumann walls exert no position-dependent pull — the "image pressure" is the same from both sides (contrast P22a). (c) In (2.138) with $\lambda=0$ and $\partial_{x'}\Phi(0)=\partial_{x'}\Phi(L)=-V/L$ (remember $E=-\Phi'$):

\[\Phi(x)=\Bigl[G^{\rm symm}_N(x,x')\,\partial_{x'}\Phi(x')\Bigr]_{x'=0}^{x'=L}+\langle\Phi\rangle =-\frac VL\bigl[G(x,L)-G(x,0)\bigr]+\langle\Phi\rangle .\]

$G(x,L)-G(x,0)=-\tfrac12(L-x)+\tfrac12x=x-\tfrac L2$, so

\[\Phi(x)=\frac V2-\frac{Vx}L+\langle\Phi\rangle,\]

the uniform field $E=V/L$, determined up to the arbitrary average — and consistent: the Neumann data $E(L)-E(0)=0=Q$ matches the empty box ($\lambda=0$), which is the solvability condition the book's note flags. $\blacksquare$

P24. Exercise 2.9.3 — Green-function solve with mixed dataWilcox 2e §2.14, p.80

1-D box, conducting walls at $x=0,L$: $\Phi''=-\lambda$ with constant $\lambda$, $\Phi(0)=V$, $\Phi(L)=-V$. Solve for $\Phi(x)$ using the Dirichlet Green function $G_D(x,x')=x_<(1-x_>/L)$ (Green-function route required; direct verification optional). Answer: $\Phi(x)=\dfrac{\lambda\,x(L-x)}2+V\Bigl(1-\dfrac{2x}L\Bigr)$. Check: GF quadrature (volume term) + boundary term vs the closed form; direct substitution $\Phi''=-\lambda$ and endpoint values; agreement with a dense finite-difference BVP solve. (test_p24_gf_solution.)

Solution

(2.127) splits the answer into a source part and a boundary part:

\[\Phi(x)=\underbrace{\int_0^LG_D(x,x')\,\lambda\,dx'}_{\Phi_\lambda} -\underbrace{\Bigl[\Phi(x')\,\partial_{x'}G_D(x,x')\Bigr]_{x'=0}^{x'=L}}_{\Phi_{\rm bdy}} .\]

Volume term. Split at $x'=x$:

\[\Phi_\lambda=\lambda\Bigl[(1-\tfrac xL)\int_0^xx'\,dx'+x\int_x^L(1-\tfrac{x'}L)\,dx'\Bigr] =\lambda\Bigl[(1-\tfrac xL)\frac{x^2}2+x\Bigl(\frac L2-x+\frac{x^2}{2L}\Bigr)\Bigr] =\frac{\lambda\,x(L-x)}2 ,\]

after the cubic terms cancel — the textbook parabola (zero at both walls, curvature $-\lambda$). Boundary term. From P22(c), $\partial_{x'}G_D|_{x'=0}=1-x/L$ and $\partial_{x'}G_D|_{x'=L}=-x/L$:

\[\Phi_{\rm bdy}=-\Bigl[(-V)\Bigl(-\frac xL\Bigr)-V\Bigl(1-\frac xL\Bigr)\Bigr] =V\Bigl(1-\frac{2x}L\Bigr),\]

the straight line from $+V$ to $-V$. Total:

\[\Phi(x)=\frac{\lambda x(L-x)}2+V\Bigl(1-\frac{2x}L\Bigr). \qquad\blacksquare\]

Verification: $\Phi''=-\lambda$ ✓; $\Phi(0)=V$, $\Phi(L)=-V$ ✓ — the GF machinery assembled superposition (particular + harmonic) automatically, which is its point.

P25. Exercise 2.9.4 — The 1-D Helmholtz Green functionWilcox 2e §2.14, pp.80–81

For $\bigl(\frac{d^2}{dx^2}+k_0^2\bigr)\Phi=-\lambda(x)$ on $[0,L]$ with the Green function satisfying $\bigl(\frac{d^2}{dx^2}+k_0^2\bigr)G(x,x')=-\delta(x-x')$: (a) using $G(x,x')=G(x',x)$, derive the representation $$\Phi(x)=\int_0^Ldx'\,G(x,x')\lambda(x')-\Bigl[\Phi(x')\,\frac{dG(x,x')}{dx'}\Bigr]_{x'=0}^{x'=L},$$ the same shape as (2.127); (b) with Dirichlet conditions $G(0,x')=G(L,x')=0$ show $$G(x,x')=\frac{\sin k_0x_<\,\sin k_0(L-x_>)}{k_0\,\sin k_0L}.$$ Answer: (a) the 1-D Green's-second-identity computation, with the $k_0^2$ terms cancelling between the pair; (b) glue $\sin k_0x$ and $\sin k_0(L-x)$ with the $-1$ slope jump; the Wronskian normalization gives $k_0\sin k_0L$. Check: ODE away from the source; slope jump $=-1$; symmetry; $k_0\to0$ degeneration to $x_<(1-x_>/L)$; a full solve at $\lambda=\text{const}$ vs the closed-form direct solution. (test_p25_helmholtz.)

Solution

(a) Multiply the $\Phi$ equation (in $x'$) by $G(x',x)$, the $G$ equation (source at $x$, variable $x'$) by $\Phi(x')$, subtract, and integrate:

\[\int_0^L\!\!dx'\Bigl[G(x',x)\Phi''(x')-\Phi(x')\,\partial_{x'}^2G(x',x)\Bigr] =\int_0^L\!\!dx'\Bigl[-G(x',x)\lambda(x')+\Phi(x')\,\delta(x'-x)\Bigr],\]

where the $k_0^2\,G\Phi$ cross terms cancelled identically — that's why the whole (2.127) structure survives the Helmholtz shift. The left side is a total derivative, $\bigl[G\Phi'-\Phi\,\partial_{x'}G\bigr]_0^L$; with homogeneous Dirichlet data for $G$ the $G\Phi'$ endpoint piece dies, so

\[\Phi(x)=\int_0^LG(x',x)\lambda(x')\,dx'-\bigl[\Phi(x')\,\partial_{x'}G(x',x)\bigr]_{x'=0}^{x'=L},\]

and the symmetry $G(x',x)=G(x,x')$ (proved as in (2.108), or read off the explicit form in (b)) rewrites it in the stated field-point form. $\blacksquare$ (b) Away from $x'$ the function solves $G''+k_0^2G=0$, so it is a sinusoid on each branch; the boundary conditions pick $\sin k_0x$ (vanishes at $0$) below the source and $\sin k_0(L-x)$ (vanishes at $L$) above:

\[G(x,x')=A\,\sin k_0x_<\,\sin k_0(L-x_>)\]

(automatically continuous and symmetric). The unit source fixes $A$ via the slope jump $\partial_xG|^{x'^+}_{x'^-}=-1$:

\[A\,k_0\bigl[-\sin k_0x'\cos k_0(L-x')-\cos k_0x'\sin k_0(L-x')\bigr]=-1 \;\Longrightarrow\; A\,k_0\sin\bigl(k_0x'+k_0(L-x')\bigr)=1,\]

by the sine addition formula — the $x'$-dependence collapses (this is the constancy of the Wronskian of the two homogeneous solutions), leaving $A=1/(k_0\sin k_0L)$:

\[G(x,x')=\frac{\sin k_0x_<\,\sin k_0(L-x_>)}{k_0\sin k_0L},\qquad k_0L\neq n\pi .\]

At resonance $\sin k_0L=0$ the construction fails — the homogeneous problem has a nontrivial mode and no Green function exists (the 1-D cavity resonance). Limits: $k_0\to0$ gives $x_<(L-x_>)/L=x_<(1-x_>/L)$, recovering (2.136) ✓. Worked check: for $\lambda=$ const the GF quadrature reproduces $\Phi=\frac{\lambda}{k_0^2}\bigl[\cos k_0(x-L/2)/\cos(k_0L/2)-1\bigr]$, the direct particular-plus-homogeneous solution. $\blacksquare$

P26. Exercise 2.10.1 — An uncharged conductor lowers the energyWilcox 2e §2.14, p.81

Prove: with a set of conductors fixed in position, each carrying a given total charge, introducing an additional uncharged, insulated conductor into the region lowers the electrostatic energy. Answer: the new equilibrium field differs from the old by a field whose cross term integrates to zero; $W_0-W_1=\frac1{8\pi}\int|\vec E_0-\vec E_1|^2>0$. Check: closed-form instance — charged sphere ($Q$, radius $a$) plus a neutral concentric conducting shell $b<c$: quadrature energies give $W_1-W_0=\frac{Q^2}2(\frac1c-\frac1b)<0$. (test_p26_energy_lowered.)

Solution

Let $\vec E_0=-\vec\nabla\Phi_0$ be the equilibrium field before, and $\vec E_1=-\vec\nabla\Phi_1$ after the neutral conductor (occupying $v$, surface $\partial v$) is inserted; all old conductors keep their totals $Q_i$, the new one has total $0$. Compare energies over the field region $\mathcal V$ (all space outside the old conductors; note $\vec E_1=0$ inside $v$ while $\vec E_0$ is not):

\[W_0-W_1=\frac1{8\pi}\int_{\mathcal V}\bigl(E_0^2-E_1^2\bigr) =\frac1{8\pi}\int_{\mathcal V}|\vec E_0-\vec E_1|^2 +\frac1{4\pi}\int_{\mathcal V}\vec E_1\cdot(\vec E_0-\vec E_1),\]

the algebraic identity $a^2-b^2=(a-b)^2+2b(a-b)$. Kill the cross term: with $\vec E_1=-\vec\nabla\Phi_1$,

\[\int\vec E_1\cdot(\vec E_0-\vec E_1) =-\int\vec\nabla\cdot\bigl[\Phi_1(\vec E_0-\vec E_1)\bigr] +\int\Phi_1\,\vec\nabla\cdot(\vec E_0-\vec E_1).\]

The second integral vanishes: both fields obey Gauss's law with the same volume charge (none, or the same fixed $\rho$) in $\mathcal V\setminus v$, and inside $v$ $\vec\nabla\cdot\vec E_0=0$ (no charge sat there before) while $\vec E_1\equiv0$. The first becomes boundary terms over the old conductors, $\partial v$, and infinity: on each old conductor $\Phi_1=$ const and $\oint(\vec E_0-\vec E_1)\cdot d\vec a=4\pi(Q_i-Q_i)=0$; on $\partial v$, $\Phi_1=$ const (it is a conductor in state 1) and $\oint\vec E_0\cdot d\vec a=0$ (no enclosed charge), $\oint\vec E_1\cdot d\vec a=4\pi\cdot0$ (neutral); at infinity the product falls as $1/r^3$. So the cross term is zero and

\[W_0-W_1=\frac1{8\pi}\int|\vec E_0-\vec E_1|^2\;>\;0,\]

strictly, because $\vec E_1\equiv\vec E_0$ is impossible: $\vec E_0\neq0$ in $v$ generically while $\vec E_1=0$ there. $\blacksquare$ Instance with closed forms (the numeric check): sphere $a$ with $Q$, neutral shell $(b,c)$: $W_0=Q^2/2a$; after insertion $E=Q/r^2$ except for the dead zone $b<r<c$, so $W_1=\frac{Q^2}2(\frac1a-\frac1b+\frac1c)$ and $W_1-W_0=\frac{Q^2}2(\frac1c-\frac1b)<0$ — energy drops by exactly the energy the shell's metal expelled. (Physically: the induced surface charges rearrange to screen; any rearrangement allowed at fixed totals that changes the field can only have been adopted because it lowers $W$ — Thompson's principle in action.)

P27. Exercise 2.10.2 — Self-energy of a finite line chargeWilcox 2e §2.14, p.81

A straight 1-D string of length $a$ carries uniform density $\lambda=Q/a$ (in 3-D space). Is its self-energy divergent — and if so, quadratically, linearly, or logarithmically? Answer: logarithmically: with a short-distance cutoff $\delta$, $W(\delta)=\lambda^2a\bigl[\ln(a/\delta)-1\bigr]+O(\delta)$ — between the finite surface and the linearly divergent point (2.149). Check: quadrature of the cutoff double integral at $\delta=a\cdot10^{-k}$, $k=2..5$: successive differences constant ($=\lambda^2a\ln10$), i.e. linear growth in $\ln(1/\delta)$ matching the closed form. (test_p27_log_divergence.)

Solution

The (2.144) double integral on the segment:

\[W=\frac{\lambda^2}2\int_0^a\!\!\int_0^a\frac{dx\,dx'}{|x-x'|},\]

which diverges on the diagonal. Regulate by cutting out $|x-x'|<\delta$:

\[W(\delta)=\frac{\lambda^2}2\cdot2\int_0^{a-\delta}\!\!dx\int_{x+\delta}^a\frac{dx'}{x'-x} =\lambda^2\int_0^{a-\delta}\ln\frac{a-x}{\delta}\,dx ,\]

using the $x\leftrightarrow x'$ symmetry. Substituting $u=a-x$:

\[W(\delta)=\lambda^2\int_\delta^a\ln\frac u\delta\,du =\lambda^2\Bigl[u\ln\frac u\delta-u\Bigr]_\delta^a =\lambda^2\Bigl[a\ln\frac a\delta-a+\delta\Bigr] =\frac{Q^2}{a}\Bigl[\ln\frac a\delta-1\Bigr]+O(\delta).\]

So $W\to\infty$ as $\delta\to0$, but only logarithmically — each decade of resolution adds the same $\lambda^2a\ln10$. $\blacksquare$ Placement in the §2.10 hierarchy: point charge $\sim1/\delta$ (linear, WT 2.149); line $\sim\ln(1/\delta)$; surface — finite (P28 computes one). The dimensional rule of thumb: $W\sim\int\rho\Phi$, and the potential a $d$-dimensional uniform charge produces on itself scales as $\int d^dx\,/r$ near a point — convergent for $d\ge2$, log-marginal at $d=1$, divergent at $d=0$. (Same log that made the physical "wire" capacitance depend on its radius.)

P28. Exercise 2.10.3 — Self-energy of a charged square sheetWilcox 2e §2.14, p.81

An infinitely thin square sheet of side $R$ carries uniform $\sigma$ and total charge $Q$. Show $W_{\rm square}=1.48660\ldots\,Q^2/R$. (Hint: a center-of-mass / difference-variable change collapses the 4-fold integral; the book's value is numerical — cf. O. Ciftja, Adv. Math. Phys. 2016 for a closed-form treatment.) Answer: $W=\frac{Q^2}{R}\bigl[2\ln(1+\sqrt2)+\frac23(1-\sqrt2)\bigr]=1.4866048\ldots\,Q^2/R$ — this module evaluates the reduced integral in closed form and confirms the book's numerics. Check: 2-D quadrature of the reduced integral vs the closed form vs $1.48660$. (test_p28_square_sheet.)

Solution

With $\sigma=Q/R^2$, scale lengths by $R$ ($\vec u,\vec v$ in the unit square):

\[W=\frac{\sigma^2}2\iint\frac{da\,da'}{|\vec x-\vec x'|} =\frac{Q^2}{2R}\underbrace{\int_{[0,1]^2}\!\!\int_{[0,1]^2}\frac{d^2u\,d^2v}{|\vec u-\vec v|}}_{I}.\]

Difference-variable reduction (the hint): for each Cartesian component, $\int_0^1\!\int_0^1f(|u-v|)\,du\,dv=2\int_0^1(1-w)f(w)\,dw$ (the density of $w=|u-v|$ on $[0,1]$ is $2(1-w)$). Applying it in $x$ and $y$ independently:

\[I=4\int_0^1\!\!\int_0^1\frac{(1-w_x)(1-w_y)}{\sqrt{w_x^2+w_y^2}}\,dw_x\,dw_y\equiv4A .\]

Expand the numerator; each piece has an elementary primitive ($L\equiv\ln(1+\sqrt2)=\sinh^{-1}1$): 1. $\displaystyle\int_0^1\!\!\int_0^1\frac{dw_xdw_y}{\sqrt{w_x^2+w_y^2}} =2L$ — integrate $\sinh^{-1}(1/w)$-type terms; standard square integral. 2. $\displaystyle\int_0^1\!\!\int_0^1\frac{w_x\,dw_xdw_y}{\sqrt{w_x^2+w_y^2}} =\int_0^1\bigl[\sqrt{1+w_y^2}-w_y\bigr]dw_y =\frac{\sqrt2+L}2-\frac12$ (and the same with $x\leftrightarrow y$). 3. $\displaystyle\int_0^1\!\!\int_0^1\frac{w_xw_y\,dw_xdw_y}{\sqrt{w_x^2+w_y^2}} =\int_0^1w_y\bigl[\sqrt{1+w_y^2}-w_y\bigr]dw_y =\frac{2\sqrt2-1}3-\frac13=\frac{2\sqrt2-2}3 .$ So

\[A=2L-2\Bigl[\frac{\sqrt2+L}2-\frac12\Bigr]+\frac{2\sqrt2-2}3 =L+1-\sqrt2+\frac{2\sqrt2-2}3=L+\frac{1-\sqrt2}3 .\]

Numerically $A=0.8813736-0.1380712=0.7433023$, $I=4A=2.9732093$, and

\[W=\frac{Q^2}{2R}\,I=\frac{Q^2}{R}\Bigl[2\ln(1+\sqrt2)+\frac23\bigl(1-\sqrt2\bigr)\Bigr] =1.4866047\ldots\frac{Q^2}{R}\approx1.48660\,\frac{Q^2}{R}. \qquad\blacksquare\]

(The book quotes the value from numerics; the reduction above gives it in closed form, agreeing to all quoted digits. Compare the disk of equal area: a disk of radius $R_d$, $W_{\rm disk}=\frac{8}{3\pi}Q^2/R_d$; at equal area $R_d=R/\sqrt\pi$, $W=1.5045\,Q^2/R$ — the square, being more spread out into its corners, stores slightly less.)

P29. Exercise 2.10.4 — Self-energy of a power-law ball; classical electron radiusWilcox 2e §2.14, pp.81–82

(a) A spherically symmetric ball, $\rho(r)=Cr^\alpha$ for $r\le a$, total charge $Q$: show $W_{\rm sphere}=\dfrac{3+\alpha}{5+2\alpha}\,\dfrac{Q^2}{a}$, finite only for $\alpha>-\tfrac52$. (b) Set the self-energy of a uniform ball equal to $E=mc^2$ for the electron and find the radius. Answer: (a) as stated (interior field energy contributes $\frac{Q^2}{2a}\frac1{5+2\alpha}$, exterior $\frac{Q^2}{2a}$); (b) $a=\frac35\,e^2/m_ec^2=\frac35\,r_e=1.6908\times10^{-13}$ cm. Check: field-energy quadrature vs formula for several $\alpha$ (including the uniform $3/5$ and shell-limit checks); the cgs electron-radius number. (test_p29_ball_energy.)

Solution

(a) Enclosed charge: $Q(r)=\int_0^r4\pi C r'^{2+\alpha}dr'=\dfrac{4\pi C}{3+\alpha}r^{3+\alpha}$ (needs $\alpha>-3$), and $Q=Q(a)$ fixes $C$. Gauss:

\[E(r)=\frac{Q(r)}{r^2}=\frac{Q}{a^{3+\alpha}}\,r^{1+\alpha}\ (r\le a),\qquad E=\frac{Q}{r^2}\ (r\ge a).\]

Field energy (2.147):

\[W=\frac1{8\pi}\Bigl[\int_0^a\frac{Q^2r^{2+2\alpha}}{a^{6+2\alpha}}4\pi r^2dr +\int_a^\infty\frac{Q^2}{r^4}4\pi r^2dr\Bigr] =\frac{Q^2}{2a^{6+2\alpha}}\cdot\frac{a^{5+2\alpha}}{5+2\alpha}+\frac{Q^2}{2a} =\frac{Q^2}{2a}\Bigl[\frac1{5+2\alpha}+1\Bigr],\]

provided the interior integral converges at $r=0$: exponent $4+2\alpha>-1$, i.e. $\boxed{\alpha>-\tfrac52}$. Combine:

\[W=\frac{Q^2}{2a}\,\frac{6+2\alpha}{5+2\alpha}=\frac{3+\alpha}{5+2\alpha}\,\frac{Q^2}{a}. \qquad\blacksquare\]

Sanity: $\alpha=0$ (uniform) $\to\frac35Q^2/a$; $\alpha\to\infty$ (charge pushed to the surface) $\to\frac12Q^2/a$, the conducting-shell value; $\alpha\to-\frac52^+$ diverges — too much charge concentrated at the center. (b) Uniform ball: $\frac35\,e^2/a=m_ec^2$, so

\[a=\frac35\,\frac{e^2}{m_ec^2}=\frac35\,r_e .\]

Gaussian numbers: $e=4.80321\times10^{-10}$ esu, $m_e=9.10938\times10^{-28}$ g, $c=2.99792\times10^{10}$ cm/s give $r_e=e^2/m_ec^2=2.81794\times10^{-13}$ cm and

\[a=1.6908\times10^{-13}\ \text{cm}\approx1.7\ \text{fm}\]

— the classical electron radius picture whose tensions (what holds it together? cf. §14.1) previewed the need for QED, where the divergence softens to a log (footnote to (2.149)).

P30. Exercise 2.11.1 — Sphere with volume and surface charge; surface forceWilcox 2e §2.14, p.82

A sphere of radius $R$ has constant volume density $\rho$ and uniform surface density $\sigma$. (a) Find $\vec E$ inside and outside. (b) Find the outward electrostatic force per unit area $F/A$ on the surface. Answer: (a) $E(r)=\frac{4\pi\rho r}{3}$ inside; $E(r)=\bigl(\frac{4\pi R^3\rho}{3}+4\pi R^2\sigma\bigr)/r^2$ outside. (b) $F/A=\sigma\bigl(\frac{4\pi\rho R}{3}+2\pi\sigma\bigr)$, outward. Check: Gauss-law forms vs direct flux quadrature; the $\rho=0$ limit $2\pi\sigma^2$ (WT 2.161) and the average-field prescription. (test_p30_sphere_force.)

Solution

(a) Spherical symmetry ⟹ radial field, Gauss (2.44) on a sphere of radius $r$: - $r<R$: enclosed charge $\frac43\pi r^3\rho$, so $4\pi r^2E=4\pi\cdot\frac43\pi r^3\rho\Rightarrow E_{\rm in}=\dfrac{4\pi\rho\,r}3$. - $r>R$: enclosed $Q_{\rm tot}=\frac43\pi R^3\rho+4\pi R^2\sigma$, so $E_{\rm out}=\dfrac{Q_{\rm tot}}{r^2}=\dfrac{4\pi\rho R^3}{3r^2}+\dfrac{4\pi\sigma R^2}{r^2}$.

The jump at $R$: $E_{\rm out}(R)-E_{\rm in}(R)=4\pi\sigma$ ✓ (2.68) — the volume charge contributes continuously, the sheet does the jumping. (b) The force per area on the surface layer is $\sigma$ times the field acting on it, which excludes its own (discontinuous) self-field: by the disk/remainder argument (2.158)–(2.159) that is the average of the fields on the two sides:

\[\frac FA=\sigma\,\frac{E_{\rm in}(R)+E_{\rm out}(R)}2 =\sigma\,\frac{\frac{4\pi\rho R}3+\bigl(\frac{4\pi\rho R}3+4\pi\sigma\bigr)}2 =\sigma\Bigl(\frac{4\pi\rho R}{3}+2\pi\sigma\Bigr),\]

directed along $+\hat r$ when positive. Checks: $\rho=0$ gives the conductor-style $2\pi\sigma^2$ (2.161); $\sigma=0$ gives zero — the volume charge feels a body force, not a surface one; and the expression is exactly $\sigma E_{\rm remainder}(R)$, the sheet riding in the field of everything else (volume charge $+$ its own smooth continuation). $\blacksquare$

P31. Exercise 2.12.1 — Schwarz inequality for the capacitance matrixWilcox 2e §2.14, p.82

In an $N$-conductor system, only $V_A$ and $V_B$ are nonzero. Show from the positivity of the field energy that $C_{AB}^2<C_{AA}\,C_{BB}$. Answer: $W=\frac12(C_{AA}V_A^2+2C_{AB}V_AV_B+C_{BB}V_B^2)>0$ for $(V_A,V_B)\neq0$ — a positive-definite quadratic form has negative discriminant. Check: the concentric-shell matrix of P33: all three $2\times2$ principal minors positive; strictness margin computed. (test_p31_schwarz.)

Solution

With every other conductor grounded, (2.170) gives

\[W=\tfrac12\bigl[C_{AA}V_A^2+2C_{AB}V_AV_B+C_{BB}V_B^2\bigr] =\tfrac1{8\pi}\int E^2\,d^3x\;\ge\;0 ,\]

and $W=0$ forces $\vec E\equiv0$ everywhere. Could a nonzero $(V_A,V_B)$ give $\vec E\equiv0$? No: zero field means $\Phi$ constant in each connected component of the vacuum; the grounded conductors (or the boundary at infinity, $\Phi\to0$, which is part of every open system's boundary) pin that constant to $0$, forcing $V_A=V_B=0$. So $W$ is positive definite on $(V_A,V_B)$. A quadratic form $\frac12(c_{11}v_1^2+2c_{12}v_1v_2+c_{22}v_2^2)$ is positive definite iff $c_{11}>0$ and $\det\begin{psmallmatrix}c_{11}&c_{12}\\c_{12}&c_{22}\end{psmallmatrix}>0$: take $(1,0)$ to get $C_{AA}>0$; then minimize over $V_B$ at fixed $V_A$ (complete the square):

\[2W=C_{AA}V_A^2-\frac{C_{AB}^2}{C_{BB}}V_A^2+C_{BB}\Bigl(V_B+\frac{C_{AB}}{C_{BB}}V_A\Bigr)^2>0 \ \Longrightarrow\ C_{AA}C_{BB}-C_{AB}^2>0 ,\]

i.e. $C_{AB}^2<C_{AA}C_{BB}$. $\blacksquare$ Boundary case worth flagging: the idealized closed two-conductor system (e.g. infinite parallel plates, (2.179)) has $C_{AB}^2=C_{AA}C_{BB}$ — there $V_A=V_B$ produces no field and no grounded reference exists to pin the constant; the strict inequality is restored the moment infinity (or any third grounded surface) belongs to the boundary. The concentric-shell numbers confirm strictness: $C_{ab}^2/C_{aa}C_{bb}=\frac{a(c-b)}{b(c-a)}<1$.

P32. Exercise 2.12.2 — Symmetry and positivity of the coefficientsWilcox 2e §2.14, p.82

(a) Use Green's reciprocation theorem (P17) to prove $C_{ij}=C_{ji}$ ($i\neq j$). (b) Show the same from the Green-function representation (2.166). (c) Show $C_{ii}>0$ from first principles. Answer: (a) reciprocate the two unit-potential states; (b) (2.166) is a double normal derivative of the symmetric $G_D$ over $S_i\times S_j$; (c) $W=\frac12C_{ii}>0$ for the state $V_i=1$, rest grounded. Check: numeric inversion of the shell elastance matrix: symmetric to machine precision, positive diagonal. (test_p32_symmetry.)

Solution

(a) State 1: $V_i=1$, all others $0$ — surface charges give $Q_k=C_{ki}$ by the definition of the coefficients. State 2: $V_j=1$, others $0$ — $Q'_k=C_{kj}$. Reciprocation with no volume charge, $\sum_k Q_kV'_k=\sum_kQ'_kV_k$: the left side keeps only $k=j$ (the only conductor with $V'\neq0$): $Q_j\cdot1=C_{ji}$; the right keeps $k=i$: $Q'_i\cdot1=C_{ij}$. Hence $C_{ji}=C_{ij}$. $\blacksquare$ (b) The (2.166) representation writes each coefficient as

\[C_{ij}=-\frac1{16\pi^2}\oint_{S_i}\!\!da\oint_{S_j}\!\!da'\; \frac{\partial^2G_D(\vec x,\vec x')}{\partial n\,\partial n'} ,\]

(unit potential on $S_j$ enters through $-\partial_{n'}G_D/4\pi$ as in (2.98), and the induced density on $S_i$ through $\sigma=\partial_n\Phi/4\pi$, (2.92)). The kernel is symmetric, $G_D(\vec x,\vec x')=G_D(\vec x',\vec x)$ (2.107), and the two normal derivatives act on separate slots, so swapping $(i,\vec x)\leftrightarrow(j,\vec x')$ is a relabeling of integration variables: $C_{ij}=C_{ji}$. $\blacksquare$ (c) Put $V_i=1$, all others grounded. Then $W=\frac12\sum_{kl}C_{kl}V_kV_l=\frac12C_{ii}$. But $W=\frac1{8\pi}\int E^2>0$ strictly — the field cannot vanish identically while conductor $i$ sits at unit potential against grounded company (P31's pinning argument). Hence $C_{ii}>0$: a conductor at positive potential above its grounded surroundings carries positive charge. $\blacksquare$

P33. Exercise 2.12.3 — Capacitance matrix of three concentric shellsWilcox 2e §2.14, p.82

Using $Q_i=\sum_jC_{ij}V_j$, find the six independent coefficients for three concentric conducting shells of radii $a<b<c$ ($C_{aa},C_{bb},C_{cc},C_{ab},C_{ac},C_{bc}$). Verify the P31 inequality on the three induction coefficients, the two sums (2.171) for $j=a,b$, and the sum rule (2.178). Answer: $$C_{aa}=\frac{ab}{b-a},\quad C_{ab}=-\frac{ab}{b-a},\quad C_{ac}=0,\quad C_{bb}=\frac{b^2(c-a)}{(b-a)(c-b)},\quad C_{bc}=-\frac{bc}{c-b},\quad C_{cc}=\frac{c^2}{c-b};$$ $\sum_iC_{ia}=\sum_iC_{ib}=0$, $\sum_iC_{ic}=c=C_{\infty\infty}$; all Schwarz inequalities strict. Check: closed forms vs numeric inversion of the elastance matrix; the sums; the inequalities. (test_p33_shell_caps.)

Solution

Charges $q_a,q_b,q_c$ produce (isolated-shell superposition, each shell an equipotential):

\[V_a=\frac{q_a}a+\frac{q_b}b+\frac{q_c}c,\qquad V_b=\frac{q_a+q_b}b+\frac{q_c}c,\qquad V_c=\frac{q_a+q_b+q_c}c,\]

i.e. $V=P\,q$ with the elastance matrix (u=1/a etc.) $P=\begin{psmallmatrix}u&v&w\\ v&v&w\\ w&w&w\end{psmallmatrix}$, $u=\frac1a,v=\frac1b,w=\frac1c$. Then $C=P^{-1}$. Row-reducing, $\det P=(u-v)(v-w)w$, and the adjugate gives

\[C=\begin{pmatrix}\dfrac1{u-v}&-\dfrac1{u-v}&0\\[6pt] -\dfrac1{u-v}&\dfrac{u-w}{(u-v)(v-w)}&-\dfrac1{v-w}\\[6pt] 0&-\dfrac1{v-w}&\dfrac{v}{(v-w)\,w}\end{pmatrix}.\]

Translate with $u-v=\frac{b-a}{ab}$, $v-w=\frac{c-b}{bc}$, $u-w=\frac{c-a}{ac}$:

\[C_{aa}=\frac{ab}{b-a},\quad C_{ab}=-\frac{ab}{b-a},\quad C_{ac}=0,\]
\[C_{bb}=\frac{c-a}{ac}\cdot\frac{ab}{b-a}\cdot\frac{bc}{c-b}=\frac{b^2(c-a)}{(b-a)(c-b)},\quad C_{bc}=-\frac{bc}{c-b},\quad C_{cc}=\frac1b\cdot\frac{bc}{c-b}\cdot c=\frac{c^2}{c-b}.\]

Physical reading: the $(a,b)$ gap is the standard spherical capacitor $ab/(b-a)$; $C_{ac}=0$ because shell $b$, grounded, completely screens $a$ from $c$; $C_{cc}=c+\frac{bc}{c-b}$ is "sphere to infinity" plus the inner $(b,c)$ gap. Verifications. - Schwarz (P31): $\dfrac{C_{ab}^2}{C_{aa}C_{bb}}=\dfrac{a(c-b)}{b(c-a)}<1$ (since $b>a$, $c-b<c-a$); $\dfrac{C_{bc}^2}{C_{bb}C_{cc}}=\dfrac{b-a}{c-a}<1$; $C_{ac}^2=0<C_{aa}C_{cc}$. All strict ✓. - (2.171), $j=a$: $C_{aa}+C_{ba}+C_{ca}=\frac{ab}{b-a}-\frac{ab}{b-a}+0=0$ ✓ (every field line from the innermost shell lands on its neighbors — closed interior). $j=b$: over the common denominator $(b-a)(c-b)$: $-ab(c-b)+b^2(c-a)-bc(b-a)=b[-ac+ab+bc-ab-bc+ac]=0$ ✓. - (2.178): $j=c$ is not closed — the outer surface sees infinity: $C_{ac}+C_{bc}+C_{cc}=\frac{c^2-bc}{c-b}=c=C_{\infty\infty}$, the isolated capacitance of a sphere of radius $c$ ✓ — exactly the book's sum rule relating interior coefficients to the external capacitance. $\blacksquare$

P34. Exercise 2.12.4 — A hollow conductor beats its contentWilcox 2e §2.14, p.83

Conductor B is hollow and encloses conductor A (arbitrary shapes, Fig. 2.22). Show $C_{BB}>C_{AA}$. Answer: enclosure forces $C_{AB}=-C_{AA}$ (every A field line ends on B); then P31 gives $C_{AA}C_{BB}>C_{AB}^2=C_{AA}^2$, so $C_{BB}>C_{AA}$. Check: two concentric spheres: $C_{BB}-C_{AA}=b>0$; and the 3-shell matrix ($C_{bb}>C_{aa}$, $C_{cc}>C_{bb}$ for the nested pairs). (test_p34_enclosed.)

Solution

Ground B and put A at $V_A=1$: the field is confined to the cavity between A and B (outside B, the grounded shell and infinity are both at $\Phi=0$ with no enclosed net driving — by uniqueness $\Phi\equiv0$ there). Gauss over a surface inside B's metal gives $Q_B^{\rm inner}=-Q_A$, and B's outer surface carries nothing; hence the totals in this state, $Q_A=C_{AA}$ and $Q_B=C_{BA}$, satisfy

\[C_{BA}=-C_{AA}.\]

(This is $\sum_iC_{ij}=0$, (2.171), applied to the closed cavity subsystem.) Now invoke the strict Schwarz inequality (P31) on the pair $(A,B)$ — strict because infinity is available as the zero reference outside B:

\[C_{AA}\,C_{BB}>C_{AB}^2=C_{AA}^2 .\]

Since $C_{AA}>0$ (P32c), divide: $C_{BB}>C_{AA}$. $\blacksquare$ Interpretation: $C_{BB}=C_{\rm gap}+C_{\rm out}$ — at $V_B=1,V_A=0$ conductor B charges both its inner surface (against A, the gap capacitance, which equals $C_{AA}$) and its outer surface (against infinity, $C_{\rm out}>0$); the hollow conductor holds strictly more. Spheres make it concrete: $C_{AA}=\frac{ab}{b-a}$, $C_{BB}=\frac{ab}{b-a}+b$, difference exactly $b$.

P35. Exercise 2.12.5 — The two-conductor system capacitanceWilcox 2e §2.14, p.83

Conductors A and B in free space carry $+Q$ and $-Q$. With $C\equiv Q/(V_A-V_B)$, show $$C=\frac{\det\begin{pmatrix}C_{AA}&C_{AB}\\ C_{AB}&C_{BB}\end{pmatrix}}{\sum_{i,j}C_{ij}} =\frac{C_{AA}C_{BB}-C_{AB}^2}{C_{AA}+2C_{AB}+C_{BB}},$$ and (b) that the field energy is $W=Q^2/2C$. Answer: invert the $2\times2$ relation $q=CV$ for $V$ at $q=(Q,-Q)$; the potential difference is $Q\sum C_{ij}/\det$. Energy: $W=\frac12q\cdot V=\frac12Q(V_A-V_B)$. Check: shell matrix: $\det/\sum$ vs direct $Q/\Delta V$ from the inverted system; $W$ both ways. (test_p35_system_C.)

Solution

(a) The state is defined by charges, so invert: $V=C^{-1}q$ with $C^{-1}=\dfrac1{\det C}\begin{psmallmatrix}C_{BB}&-C_{AB}\\-C_{AB}&C_{AA}\end{psmallmatrix}$, $\det C=C_{AA}C_{BB}-C_{AB}^2$. With $q=(Q,-Q)$:

\[V_A=\frac{Q\,(C_{BB}+C_{AB})}{\det C},\qquad V_B=-\frac{Q\,(C_{AA}+C_{AB})}{\det C},\]
\[V_A-V_B=\frac{Q\,\bigl(C_{AA}+2C_{AB}+C_{BB}\bigr)}{\det C} \;\Longrightarrow\; C=\frac{Q}{V_A-V_B}=\frac{\det C}{\sum_{i,j}C_{ij}} . \qquad\blacksquare\]

Note $\sum_{ij}C_{ij}>0$ (it is $2W$ for $V_A=V_B=1$, a legitimate nonzero state in open space) and $\det C>0$ (P31): the system capacitance is positive. (b) The energy at prescribed charges:

\[W=\tfrac12\sum_iQ_iV_i=\tfrac12\bigl[Q\,V_A+(-Q)\,V_B\bigr] =\tfrac12\,Q\,(V_A-V_B)=\frac{Q^2}{2C} . \qquad\blacksquare\]

This is why $C$ as defined is the "capacitor" of circuit theory: charge $\pm Q$, voltage $\Delta V=Q/C$, energy $Q^2/2C$ — with the matrix formula exposing how the self- and induction coefficients combine (used numerically in P37–P39).

P36. Exercise 2.12.6 — A neighbor raises your capacitanceWilcox 2e §2.14, p.84

Isolated conductor A has capacitance $C_A$. Let $C'_{AA}$ be its self-coefficient after conductor B is brought nearby. Show $C'_{AA}>C_A$. (Hint: combine Exercises 2.10.1 and 2.12.1.) Answer: fix charge $Q$ on A and insert B uncharged: P26 lowers the energy, $\frac{Q^2C'_{BB}}{2\det C'}<\frac{Q^2}{2C_A}$, i.e. $C_A<\det C'/C'_{BB}=C'_{AA}-C'^2_{AB}/C'_{BB}<C'_{AA}$ by P31. Check: sphere + grounded concentric shell: $ab/(b-a)>a$; and the energy chain verified numerically on the shell system. (test_p36_raising.)

Solution

Work at fixed charges, where P26 (Exercise 2.10.1) applies. Before: A alone with charge $Q$; $W_{\rm before}=Q^2/2C_A$. After: B introduced, uncharged and insulated; the new equilibrium energy at charges $q=(Q,0)$ is, in terms of the new matrix $C'$ (inverting as in P35),

\[W_{\rm after}=\tfrac12\,q\cdot C'^{-1}q=\frac{Q^2}2\,(C'^{-1})_{AA} =\frac{Q^2}{2}\,\frac{C'_{BB}}{\det C'} .\]

P26: introducing the uncharged conductor strictly lowers the energy, $W_{\rm after}<W_{\rm before}$:

\[\frac{C'_{BB}}{\det C'}<\frac1{C_A} \;\Longleftrightarrow\; C_A<\frac{\det C'}{C'_{BB}}=C'_{AA}-\frac{C'^2_{AB}}{C'_{BB}} .\]

And by P31 (Exercise 2.12.1) the subtracted term is positive whenever B actually couples ($C'_{AB}\neq0$), so

\[C_A<C'_{AA}-\frac{C'^2_{AB}}{C'_{BB}}<C'_{AA}. \qquad\blacksquare\]

Two readings of $C'_{AA}$: it is A's charge at $V_A=1$ with B grounded — the grounded neighbor pulls extra charge onto A; while $\det C'/C'_{BB}$ is the effective capacitance with B floating (uncharged), which is also $\ge C_A$ but smaller than the grounded case. Concentric instance: $C_A=a$; $C'_{AA}=ab/(b-a)>a$ always; floating shell $(b,c)$: $\det C'/C'_{BB}=\bigl(\frac1a-\frac1b+\frac1c\bigr)^{-1}$, between $a$ and $ab/(b-a)$. The test verifies the full chain numerically.

P37. Exercise 2.12.7 — Parallel-disk capacitance: near and farWilcox 2e §2.14, p.84

Two identical thin coaxial conducting disks of radius $R$ sit a distance $d$ apart (system capacitance $C(d)$ in the sense of P35). Find the leading behavior for (a) $d\ll R$; (b) $d\gg R$ (use $C_{\rm cir}=2R/\pi$ for a single thin disk, P12). Answer: (a) $C\approx A/4\pi d=R^2/4d$ — the parallel-plate formula; (b) $C\to C_{\rm cir}/2=R/\pi$ — two isolated disks in series through infinity. Check: (a) from (2.182); (b) as the $d\to\infty$ limit of the P38/P39 monopole model; crossover scale $d\sim\pi R/4$ where the two expressions meet. (test_p37_plates_limits.)

Solution

(a) For $d\ll R$ the gap field is the uniform slab field of (2.182): charge $\pm Q$ spreads at $\sigma=\pm Q/\pi R^2$, $E_{\rm gap}=4\pi\sigma$, $\Delta V=E\,d=4\pi\sigma d$, so

\[C=\frac{Q}{\Delta V}=\frac{\pi R^2}{4\pi d}=\frac{R^2}{4d}\qquad(d\ll R),\]

diverging as the plates close — edge (fringe) corrections are relative $O\bigl(\frac dR\ln\frac Rd\bigr)$ and ignorable at leading order. (b) For $d\gg R$ each disk is, to leading order, an isolated disk plus the monopole potential of its partner (the P39 elastance model):

\[V_A=\frac{Q}{C_{\rm cir}}-\frac Qd,\qquad V_B=-\frac{Q}{C_{\rm cir}}+\frac Qd,\]
\[C(d)=\frac{Q}{V_A-V_B}=\frac1{2\bigl(\frac1{C_{\rm cir}}-\frac1d\bigr)} \xrightarrow[d\to\infty]{}\frac{C_{\rm cir}}2=\frac R\pi\qquad(d\gg R).\]

The $\tfrac12$ is the series combination of each disk's capacitance "to infinity": pulling the plates apart does not send $C\to0$ but to a floor set by the plates' own size — the physical content of the isolated-disk $2R/\pi$ (P12). The two regimes meet at $R^2/4d\sim R/\pi$, i.e. $d\sim\pi R/4$ — comparable to $R$, where neither expansion is trustworthy. $\blacksquare$

P38. Exercise 2.12.8 — First correction at large separationWilcox 2e §2.14, p.84

Same two coaxial disks, $d\gg R$, $C_{\rm cir}=2R/\pi$: show $$C(d)\approx\frac R\pi\Bigl(1+\frac{2R}{\pi d}\Bigr).$$ (Hint: far apart, each disk looks like a point charge to the other.) Answer: expanding $C=\bigl[2(1/C_{\rm cir}-1/d)\bigr]^{-1}=\frac{R/\pi}{1-2R/\pi d}$ to first order. Check: the exact monopole-model value vs the first-order form at $d/R=20,50$: agreement $O((R/d)^2)$. (test_p38_plates_correction.)

Solution

Keep the P37(b) model to first order in $R/d$ — disk at potential (own charge)/(own capacitance) plus partner monopole $\mp Q/d$:

\[V_A-V_B=2Q\Bigl(\frac1{C_{\rm cir}}-\frac1d\Bigr) =2Q\,\frac{\pi}{2R}\Bigl(1-\frac{2R}{\pi d}\Bigr),\]

so

\[C(d)=\frac{Q}{V_A-V_B}=\frac{R}{\pi}\,\frac1{1-\dfrac{2R}{\pi d}} \approx\frac R\pi\Bigl(1+\frac{2R}{\pi d}\Bigr). \qquad\blacksquare\]

Structure of the correction: $\frac R\pi\cdot\frac{2R}{\pi d}=C_{\rm sys}^0\,C_{\rm cir}/d$ — the partner's monopole reduces the voltage needed for the same charge (opposite charges attract each other's potential down), so $C$ rises as the plates approach, smoothly heading toward the $R^2/4d$ regime. Higher orders would need the disk's response to a nonuniform field (induced multipoles, $O(d^{-3})$), consistently dropped here. The test checks the expansion error scales as $(R/d)^2$.

P39. Exercise 2.12.9 — Distant conductors of arbitrary shapeWilcox 2e §2.14, pp.84–85

Two arbitrary conductors with isolated capacitances $C^0_{11}$, $C^0_{22}$ sit a large distance $d$ apart ($d\gg$ any internal dimension). (a) Argue $C_{12}(d)=C_{21}(d)\approx-\,C^0_{11}C^0_{22}/d$. (b) From (a) argue $C_{22}(d)\approx C^0_{22}\big/\bigl(1+C_{12}(d)/d\bigr)$. (c) Apply to the two coaxial disks and recover P38. Answer: the monopole elastance matrix $P=\begin{psmallmatrix}1/C^0_{11}&1/d\\1/d&1/C^0_{22}\end{psmallmatrix}$ inverts to exactly these forms. Check: numeric inversion of $P$ vs both approximations at large $d$; the disk case reproduces $C(d)=(R/\pi)(1+2R/\pi d)$. (test_p39_distant.)

Solution

(a) To leading order each conductor is a point source to its partner (shape enters only through its isolated capacitance):

\[V_1=\frac{Q_1}{C^0_{11}}+\frac{Q_2}d,\qquad V_2=\frac{Q_1}d+\frac{Q_2}{C^0_{22}},\]

i.e. $V=Pq$ with the symmetric elastance matrix above. Then $C=P^{-1}$:

\[C_{12}=\frac{-1/d}{\det P},\qquad \det P=\frac1{C^0_{11}C^0_{22}}-\frac1{d^2} =\frac1{C^0_{11}C^0_{22}}\Bigl(1-\frac{C^0_{11}C^0_{22}}{d^2}\Bigr),\]
\[C_{12}(d)=-\frac{C^0_{11}C^0_{22}}{d}\,\frac1{1-C^0_{11}C^0_{22}/d^2} \approx-\frac{C^0_{11}C^0_{22}}{d}. \qquad\blacksquare\]

Physical version of the argument: put conductor 1 at $V_1=1$ with 2 grounded. Conductor 1 carries $\approx C^0_{11}$; at distance $d$ it lifts 2's potential by $C^0_{11}/d$; grounded 2 must neutralize that with charge $Q_2\approx-C^0_{22}\cdot C^0_{11}/d=C_{21}$. Symmetric in $1\leftrightarrow2$ ✓. (b) From the same inverse,

\[C_{22}=\frac{1/C^0_{11}}{\det P}=\frac{C^0_{22}}{1-C^0_{11}C^0_{22}/d^2} =\frac{C^0_{22}}{1+C_{12}(d)/d}\,,\]

using (a) to rewrite $-C^0_{11}C^0_{22}/d^2=C_{12}/d$ — the book's form, exact within the monopole model. Iterative reading: 2's own charge at unit potential is $C^0_{22}$; its partner's induced $C_{12}$ feeds back potential $C_{12}/d$, requiring a compensating geometric series $C^0_{22}\bigl[1-C_{12}/d\cdot(-1)\cdots\bigr]$ that sums to the displayed ratio. (c) Disks: $C^0_{11}=C^0_{22}=C_{\rm cir}=2R/\pi$. System capacitance (P35):

\[C(d)=\frac{\det C}{\sum C_{ij}}=\frac1{P_{11}+P_{22}-2P_{12}} =\frac1{\frac{\pi}{2R}+\frac{\pi}{2R}-\frac2d} =\frac{R/\pi}{1-\frac{2R}{\pi d}}\approx\frac R\pi\Bigl(1+\frac{2R}{\pi d}\Bigr),\]

(the middle identity — $C_{\rm sys}=1/(P_{11}+P_{22}-2P_{12})$ — follows from $\Delta V=(P_{11}-P_{12})Q-(P_{12}-P_{22})(-Q)$), recovering P38 exactly. $\blacksquare$

P40. Exercise 2.12.10 — Variational upper bound on capacitanceWilcox 2e §2.14, p.85

(a) A vacuum region $V$ is bounded by conducting surfaces; one is at unit potential, the rest at zero. Given (2.147)/(2.181), the capacitance is $C=\frac1{4\pi}\int_V|\vec\nabla\Phi|^2d^3x$ at the true solution $\Phi$. Show that for any trial $\Psi$ matching the potential boundary values, $$C\;\le\;C[\Psi]\equiv\frac1{4\pi}\int_V|\vec\nabla\Psi|^2\,d^3x .$$ (b) For a thin cylindrical capacitor (length $L$, radii $a<b$, end effects ignored) use the trial $\Psi=(b-\rho)/(b-a)$ and compare $C[\Psi]$ with the exact $C=L/[2\ln(b/a)]\approx0.721\,L$ at $b=2a$. (Fixed-potential trials bound $C$ from above; fixed-charge methods, §3.10, bound from below.) Answer: (a) $\Psi=\Phi+\eta$ with $\eta|_S=0$: the cross term vanishes by Green's first identity, leaving $C[\Psi]=C+\frac1{4\pi}\int|\vec\nabla\eta|^2\ge C$. (b) $C[\Psi]=\dfrac{L(a+b)}{4(b-a)}=0.750\,L$ at $b=2a$ — an upper bound $\sim4\%$ above $0.7213\,L$. Check: quadrature of the functional for both trial and exact potentials; $C[\Psi_{\rm exact}]=C$; inequality margin. (test_p40_variational.)

Solution

(a) Both $\Psi$ and the true $\Phi$ equal the same constants on every boundary piece, so $\eta\equiv\Psi-\Phi$ vanishes on all of $S$. Expand:

\[C[\Psi]=\frac1{4\pi}\int|\vec\nabla\Phi|^2 +\frac1{2\pi}\int\vec\nabla\Phi\cdot\vec\nabla\eta +\frac1{4\pi}\int|\vec\nabla\eta|^2 .\]

Cross term by Green's first identity (P16) with $\phi=\eta$, $\psi=\Phi$:

\[\int_V\vec\nabla\Phi\cdot\vec\nabla\eta =\oint_S\eta\,\partial_n\Phi\,da-\int_V\eta\,\nabla^2\Phi\,d^3x=0-0=0,\]

($\eta|_S=0$; $\nabla^2\Phi=0$ in the charge-free region). Hence

\[C[\Psi]=C+\frac1{4\pi}\int_V|\vec\nabla\eta|^2\,d^3x\;\ge\;C,\]

with equality iff $\vec\nabla\eta\equiv0$, i.e. $\Psi=\Phi$. Dirichlet trials can only overestimate: any deviation from harmonicity costs positive field energy at fixed voltage. $\blacksquare$ (b) Trial $\Psi=(b-\rho)/(b-a)$: matches $\Psi=1$ at $\rho=a$, $0$ at $\rho=b$; $|\vec\nabla\Psi|=1/(b-a)$:

\[C[\Psi]=\frac1{4\pi}\,\frac1{(b-a)^2}\int_a^b2\pi\rho L\,d\rho =\frac{L}{2(b-a)^2}\cdot\frac{b^2-a^2}2=\frac{L\,(a+b)}{4(b-a)} .\]

At $b=2a$: $C[\Psi]=\frac{3a}{4a}L=0.750\,L$. The exact solution $\Phi=\ln(b/\rho)/\ln(b/a)$ gives

\[C=\frac1{4\pi}\int_a^b\frac{2\pi L\,\rho\,d\rho}{\rho^2\ln^2(b/a)} =\frac{L}{2\ln(b/a)}=\frac{L}{2\ln2}=0.7213\,L .\]

Indeed $0.750>0.7213$ — the linear trial overshoots by $4.0\%$: it misallocates field energy toward the outer radius where the true field is weaker ($E\propto1/\rho$). The companion principle (§3.10) with charges fixed brackets $C$ from below, sandwiching the true value — the standard variational squeeze for capacitances. $\blacksquare$

P41. Exercise 2.12.11 — Three parallel wires in a triangleWilcox 2e §2.14, p.86

Three long parallel cylindrical conductors of common radius $a$ sit at the corners of an equilateral triangle of side $d\gg a$ (Fig. 2.23), carrying charge per length $-\lambda,-\lambda,+2\lambda$ on wires 1, 2, 3. (a) With $C_L\equiv\lambda/(2V_3-V_1-V_2)$, show the energy per length is $w=\lambda^2/(2C_L)$ — "standard form". (b) Show $C_L=1/[N\ln(d/a)]$ and determine $N$. Answer: (a) $w=\frac12\sum_i\lambda_iV_i=\frac\lambda2(2V_3-V_1-V_2)=\lambda^2/2C_L$; (b) $V_1=V_2=-2\lambda\ln(d/a)$, $V_3=+4\lambda\ln(d/a)$, so $2V_3-V_1-V_2=12\lambda\ln(d/a)$: $N=12$ (and $w=6\lambda^2\ln(d/a)$). Check: the 2-D log-potential matrix: $N=12$, neutrality (K-independence), and $w$ computed both as $\frac12\sum\lambda_iV_i$ and as $\lambda^2/2C_L$. (test_p41_three_wires.)

Solution

(a) Energy per unit length of a set of line charges on equipotential surfaces (the 2-D copy of (2.169)):

\[w=\frac12\sum_i\lambda_iV_i =\frac12\bigl[(-\lambda)V_1+(-\lambda)V_2+2\lambda V_3\bigr] =\frac\lambda2\,(2V_3-V_1-V_2) =\frac\lambda2\cdot\frac{\lambda}{C_L}=\frac{\lambda^2}{2C_L},\]

directly from the definition of $C_L$ — the "standard form" $Q^2/2C$ with $\lambda$ playing $Q$. $\blacksquare$ (b) For $d\gg a$, each wire's potential is its own surface value plus the partners' line potentials at distance $d$ (P6d: a line $\lambda_j$ contributes $-2\lambda_j\ln(s/K)$ at distance $s$):

\[V_i=-2\lambda_i\ln\frac aK-2\sum_{j\neq i}\lambda_j\ln\frac dK .\]

Since $\sum_j\lambda_j=-\lambda-\lambda+2\lambda=0$, the arbitrary $K$ cancels — the potentials are well defined without a far cutoff. Evaluate (take $K=1$):

\[V_1=2\lambda\ln a+2\lambda\ln d-4\lambda\ln d=-2\lambda\ln\frac da,\qquad V_2=V_1,\]
\[V_3=-4\lambda\ln a+2\lambda\ln d+2\lambda\ln d=+4\lambda\ln\frac da .\]

Then

\[2V_3-V_1-V_2=8\lambda\ln\frac da+4\lambda\ln\frac da=12\,\lambda\ln\frac da \;\Longrightarrow\; C_L=\frac{\lambda}{12\,\lambda\ln(d/a)}=\frac1{12\ln(d/a)} :\qquad N=12 .\]

Cross-check via the energy: $w=\frac12\sum\lambda_iV_i =\frac12[2\lambda^2+2\lambda^2+8\lambda^2]\ln(d/a)=6\lambda^2\ln(d/a) =\lambda^2/(2C_L)$ ✓ consistent. $\blacksquare$ (Each wire being $\ll d$ guarantees the equipotential surfaces are circles to $O(a/d)$; corrections would enter as image-line displacements, shifting $N$ at relative order $a/d$ — negligible by hypothesis. Note the combination $2V_3-V_1-V_2$ is exactly the voltage conjugate to $\lambda$ under the charge pattern $(-1,-1,+2)\lambda$: the mode actually excited.)

Run the worked code: cd MACRO_EM/MACRO_EM-02_intro_electrostatics/code && python3 intro_electrostatics.py

MACRO_EM-03 — Boundary Value Problems (Wilcox Ch. 3 problems)

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-03_boundary_value_problems

Key equations

\[q'=-\frac{a}{r'}\,q,\qquad \vec r\,''=\frac{a^2}{r'^2}\,\vec r\,',\]
\[\Phi=\frac{V_1+V_2}2+\frac{V_1-V_2}\pi \arctan\frac{2(\rho/b)\cos\phi}{1-(\rho/b)^2}\qquad(3.131),\]

Example problems

P1. Exercise 3.1.1 — Image ladder between parallel grounded platesWilcox 2e §3.13, p.120

A unit point charge sits at height $z'$ between two infinite grounded conducting plates $z=0$ and $z=a$ (the book's Fig. 3.16). Locate and value every image charge needed for the Dirichlet Green function, write $G_D$ as the sum over them, and show the sum converges absolutely. Answer: charges $+1$ at $z=2na+z'$ and $-1$ at $z=2na-z'$ for all $n\in\mathbb Z$ (transverse position that of the source); $$G_D=\sum_{n=-\infty}^{\infty}\left[\frac1{\sqrt{\rho^2+(z-2na-z')^2}}-\frac1{\sqrt{\rho^2+(z-2na+z')^2}}\right],\quad \rho=|(\vec x-\vec x')_\perp|,$$ and each bracketed pair is $O(1/n^2)$, so the grouped series converges absolutely. Check: green_plates_images vanishes on both plates and matches the independent $k$-space form of P8 to $3\times10^{-7}$ (test_p1_plate_images_boundary, test_p1_plate_images_absolute_convergence, test_p1_vs_p8_kspace).

Solution

Reflection in $z=0$ sends a charge $q$ at height $h$ to $-q$ at $-h$; reflection in $z=a$ sends it to $-q$ at $2a-h$. Starting from $+1$ at $z'$ and iterating the two reflections until the set closes generates

\[\{+1\ \text{at}\ 2na+z'\}\cup\{-1\ \text{at}\ 2na-z'\},\qquad n\in\mathbb Z\]

(only the $n=0$, $+$ member is the physical charge; all others lie outside the gap). Boundary check: at $z=0$ the $+$ charge labelled $n$ and the $-$ charge labelled $-n$ are mirror partners through the plate, so their terms cancel pairwise and $G_D|_{z=0}=0$ exactly; at $z=a$ the partners are $(+,n)$ and $(-,1-n)$ — again pairwise cancellation. Uniqueness (§2.7) then makes this the Green function. Absolute convergence: group the two $n$-labelled terms. With $f(s)=(\rho^2+s^2)^{-1/2}$, $s_\pm=z\mp z'-2na$, the mean value theorem gives

\[|f(s_+)-f(s_-)|=|f'(\bar s)|\,|s_+-s_-|=\frac{|\bar s|\,2z'}{(\rho^2+\bar s^2)^{3/2}}\le\frac{2z'}{(2|n|a-2a)^2}=O(n^{-2}),\]

so $\sum_n|{\rm pair}_n|$ converges by comparison with $\sum1/n^2$. (The ungrouped $\pm1/r$ terms decay only like $1/n$ — the grouping is what makes the convergence absolute.) Numerically the grouped tail is $\sim zz'/(2N^2a^3)$: the test measures $n^2|{\rm pair}_n|\to$ const and the $1/N^2$ approach of $G|_{z=a}\to0$ under symmetric truncation.

P2. Exercise 3.1.2 — Right-angle corner: Green function, extraction work, walls at ±VWilcox 2e §3.13, pp.120–121

Two grounded conducting half-planes meet at a right angle, bounding the quadrant $x>0$, $y>0$ (translationally invariant along $z$; the book's Fig. 3.17). A unit point charge sits at $(x',y',z')$ in the quadrant. (a) Build $G_D(\vec x,\vec x')$ in Cartesian coordinates by images. (b) Find the work $W$ to remove the charge to infinity. (c) Using $G_D$, find $\Phi$ when the vertical wall ($x=0$) is held at $-V$ and the horizontal wall ($y=0$) at $+V$. Answer: (a) three images: $-1$ at $(-x',y',z')$, $+1$ at $(-x',-y',z')$, $-1$ at $(x',-y',z')$; (b) $W=\tfrac14\left(1/x'+1/y'-1/\sqrt{x'^2+y'^2}\right)$; (c) $\Phi=V\left(1-\tfrac{4\phi}{\pi}\right)$, $\phi=\arctan(y/x)$ — the $\beta=\pi/2$ case of the book's Eq. (3.152). Check: green_corner vanishes on both walls; corner_work equals the numerically integrated $-\int\vec F\cdot d\vec l$; corner_wall_phi_quad (Green-function surface quadrature) matches $V(1-4\phi/\pi)$ to $2\times10^{-4}$ (test_p2_corner_green, test_p2_corner_work, test_p2_corner_wall_potential).

Solution

(a) Reflection in $x=0$ and in $y=0$ closes after the double reflection (the group is $\mathbb Z_2\times\mathbb Z_2$):

\[G_D=\frac1{|\vec x-\vec x'_{++}|}-\frac1{|\vec x-\vec x'_{-+}|}+\frac1{|\vec x-\vec x'_{--}|}-\frac1{|\vec x-\vec x'_{+-}|},\]

with $\vec x'_{\pm\pm}=(\pm x',\pm y',z')$. On $x=0$ the $++/-+$ and $--/+-$ terms cancel in pairs; on $y=0$ the $++/+-$ and $-+/--$ pairs cancel. Both walls at zero, correct $-4\pi\delta$ source, $G\to0$ at infinity: uniqueness does the rest. (b) The energy of the charge in the presence of the conductor is half the naive charge–image Coulomb sum, $U=\tfrac12 q\,\Phi_{\rm ind}(\vec x')$ — the factor $\tfrac12$ because the induced charge builds up proportionally as the source is brought in (equivalently: images move when the charge moves, so $\int\vec F\cdot d\vec l$ picks up half). The image distances are $2x'$, $2y'$, $2\sqrt{x'^2+y'^2}$, so

\[U=\frac12\left[-\frac1{2x'}-\frac1{2y'}+\frac1{2\sqrt{x'^2+y'^2}}\right],\qquad W=-U=\frac14\left(\frac1{x'}+\frac1{y'}-\frac1{\sqrt{x'^2+y'^2}}\right)>0.\]

The test verifies the factor of $\tfrac12$ the honest way: it integrates the full image force along a radial escape path and reproduces exactly this $W$. (c) With no volume charge, (2.98) leaves the wall term $\Phi=-\frac1{4\pi}\oint\Phi_s\,\partial G_D/\partial n'\,da'$. Because the geometry is a wedge, the answer must be the bounded harmonic function of the polar angle alone that interpolates the two wall values: $\nabla^2\phi=0$, so $\Phi=A+B\phi$ with $\Phi(\phi{=}0)=V$, $\Phi(\phi{=}\pi/2)=-V$ gives

\[\Phi=V\left(1-\frac{4\phi}{\pi}\right).\]

The quadrature route confirms it: reduce the two wall integrals with the 2-D corner Green function of P3 (the $z'$ integration is already absorbed), i.e. $\Phi=-\frac1{4\pi}\sum_{\rm walls}\int_0^\infty d\rho'\,\Phi_{\rm wall}\, (\pm\tfrac1{\rho'})\partial_{\phi'}G$, with $\partial_{\phi'}G|_{\phi'=0}=8\rho^2\rho'^2\sin2\phi/(\rho^4+\rho'^4-2\rho^2\rho'^2\cos2\phi)$ and its $\phi'=\pi/2$ mirror — the code does exactly this integral.

P3. Exercise 3.1.3 — Line charge in a right-angle corner (2-D Green function)Wilcox 2e §3.13, p.121

An infinite unit line charge runs parallel to the intersection line of two perpendicular grounded conducting planes, at cylindrical position $(\rho',\phi')$ in the quadrant (the book's Fig. 3.18). Construct $G_D$ by images and show it can be written $$G_D(\vec x,\vec x')=\ln\!\left[\frac{\rho^4+\rho'^4-2\rho^2\rho'^2\cos(2(\phi+\phi'))}{\rho^4+\rho'^4-2\rho^2\rho'^2\cos(2(\phi-\phi'))}\right].$$ Answer: four image lines with alternating sign (as in P2 but 2-D); the log ratio above is exactly that image sum. Check: closed form $=$ image sum ($-2\sum q\ln d$) on random points; zero on both walls (test_p3_perp_planes).

Solution

In 2-D each line charge contributes $-2\ln d$ (Eq. 3.11; the $1/L$ scale cancels in the alternating sum). With the same $\mathbb Z_2\times\mathbb Z_2$ image set as P2,

\[G_D=-2\ln\frac{d_{++}\,d_{--}}{d_{-+}\,d_{+-}},\]

where $d_{\pm\pm}$ is the transverse distance from $\vec x_\perp$ to $(\pm x',\pm y')$. Now use complex notation $w=\rho e^{i\phi}$, $w'=\rho'e^{i\phi'}$: the four image positions are $w',-w',\bar w',-\bar w'$ and

\[d_{++}d_{--}=|w-w'||w+w'|=|w^2-w'^2|,\qquad d_{-+}d_{+-}=|w-(-\bar w')||w-\bar w'|=|w^2-\bar w'^2|.\]

Squaring, $|w^2-w'^2|^2=\rho^4+\rho'^4-2\rho^2\rho'^2\cos2(\phi-\phi')$ and $|w^2-\bar w'^2|^2=\rho^4+\rho'^4-2\rho^2\rho'^2\cos2(\phi+\phi')$, so

\[G_D=-2\ln\frac{|w^2-w'^2|}{|w^2-\bar w'^2|} =\ln\frac{\rho^4+\rho'^4-2\rho^2\rho'^2\cos2(\phi+\phi')}{\rho^4+\rho'^4-2\rho^2\rho'^2\cos2(\phi-\phi')}.\]

On $\phi=0$ ($w$ real) and on $\phi=\pi/2$ ($w$ imaginary, $w^2$ real) the numerator and denominator coincide, so $G_D=0$ — the walls are grounded. (The $w\mapsto w^2$ structure is the conformal unfolding of the quadrant into a half-plane; compare P32/P33 and ~MA-06.)

P4. Exercise 3.1.4 — Charged pendulum over a grounded planeWilcox 2e §3.13, pp.121–122

A particle of charge $e$ (mass $m$) hangs from a massless string of length $L$ whose anchor sits a distance $D>L$ above an infinite grounded conducting plane (gravity-free; the book's Fig. 3.19). Using the image potential energy expanded to lowest order in the swing angle $\theta$, find the small-oscillation frequency. Answer: $\displaystyle\omega=\frac{e}{2(D-L)\sqrt{mL}}$. Check: numeric $U''(0)$ of the exact image energy equals $e^2L/4(D-L)^2$, and pendulum_omega $=\sqrt{U''(0)/mL^2}$ (test_p4_pendulum).

Solution

At swing angle $\theta$ the charge sits a height $h(\theta)=D-L\cos\theta$ above the plane. The conductor interaction energy is half the charge–image Coulomb energy (image $-e$ at depth $h$, separation $2h$; same $\tfrac12$ as P2b):

\[U(\theta)=\frac12\cdot\frac{(-e^2)}{2h}=-\frac{e^2}{4\,(D-L\cos\theta)}.\]

Expand with $\cos\theta\simeq1-\theta^2/2$: $h\simeq(D-L)+L\theta^2/2$, so

\[U\simeq-\frac{e^2}{4(D-L)}\left[1-\frac{L\theta^2}{2(D-L)}\right] =U_0+\frac{e^2L}{8(D-L)^2}\,\theta^2 .\]

The string constrains the motion to a circle, so the generalized coordinate is $\theta$ with inertia $I=mL^2$, and the quadratic term gives the torque constant $k_\theta=U''(0)=e^2L/4(D-L)^2$. Hence

\[\omega=\sqrt{\frac{k_\theta}{I}}=\sqrt{\frac{e^2}{4mL(D-L)^2}} =\frac{e}{2(D-L)\sqrt{mL}}.\]

(Because gravity is absent, the only restoring force is the image attraction: the equilibrium is the string hanging straight down toward the plane, where $h$ is minimal and $U$ lowest.) The code takes the exact $U(\theta)$, differentiates numerically, and recovers both $k_\theta$ and $\omega$.

P5. Exercise 3.1.5 — Patch at potential V: the solid-angle formulaWilcox 2e §3.13, p.122

On the plane $z=0$ an arbitrary patch is held at constant potential $V$; the remainder of the plane is at $V=0$ (the book's Fig. 3.20). Using the Dirichlet Green function of the half-space, show $$\Phi(\vec x)=\frac{V}{2\pi}\,|\Omega(\vec x)|,$$ $\Omega(\vec x)$ the solid angle the patch subtends at $\vec x$ (either side of the plane). Answer: as stated; e.g. on a disk's axis $|\Omega|=2\pi\bigl(1-|z|/\sqrt{z^2+R^2}\bigr)$. Check: patch quadrature of $\int z\,da'/r^3$ equals the disk and rectangle closed forms on both sides of the plane; under the patch $\Phi\to V$ (test_p5_solid_angle).

Solution

For $z>0$ the half-space Green function is (3.36), and its inward-normal derivative on the plane is (3.37) with field/source roles exchanged (use symmetry $G_D(\vec x,\vec x')=G_D(\vec x',\vec x)$):

\[\frac{\partial G_D}{\partial n'}\Big|_{z'=0}=-\frac{\partial G_D}{\partial z'}\Big|_{z'=0} =-\frac{2z}{\left[(x-x')^2+(y-y')^2+z^2\right]^{3/2}}.\]

With no volume charge, (2.98) gives

\[\Phi(\vec x)=-\frac1{4\pi}\oint\Phi(\vec x')\frac{\partial G_D}{\partial n'}da' =\frac{V}{2\pi}\int_{\rm patch}\frac{z\,da'}{|\vec x-\vec x'|^3},\]

the integrand being nonzero only on the patch. Now recognize the geometry: $z\,da'/r^3=(\hat r\cdot\hat z)\,da'/r^2=d\Omega$ is precisely the projection of the patch element onto the unit sphere around $\vec x$ — the solid-angle element. Hence $\Phi=(V/2\pi)\,\Omega(\vec x)$ for $z>0$. For $z<0$ run the identical argument with the lower half-space Green function (normal $+\hat z$): the sign of $z$ flips twice, leaving $\Phi=(V/2\pi)|\Omega|$ on both sides. Sanity limits: point just above the patch interior, $\Omega\to2\pi$, so $\Phi\to V$ (continuity with the boundary data); far away $\Omega\to({\rm area})\,z/r^3$, a dipole-sheet falloff. The code checks the disk axis value $2\pi(1-z/\sqrt{z^2+R^2})$, the rectangle closed form $4\arctan\!\bigl[w_xw_y/(z\sqrt{w_x^2+w_y^2+z^2})\bigr]$, and the $\Phi\to V$ limit.

P6. Exercise 3.2.1 — The free Green function integral, regulatedWilcox 2e §3.13, p.122

Evaluate the angular/radial Fourier representation of the free Green function, Eq. (3.19), $$G_f(\vec x,\vec x')=\frac1\pi\int_0^\infty dk\int_{-1}^{1}d\cos\theta\, e^{ik|\vec x-\vec x'|\cos\theta},$$ by (i) inserting a convergence factor $e^{-k\epsilon}$, (ii) doing the $k$ integral first, and (iii) letting $\epsilon\to0^+$. Answer: $G_f=1/R$ with $R=|\vec x-\vec x'|$; at finite $\epsilon$ the regulated integral is $\frac{2}{\pi R}\arctan(R/\epsilon)$. Check: $\mu$-quadrature of the $k$-first result matches $\frac2{\pi R}\arctan(R/\epsilon)$ to $10^{-10}$ and tends to $1/R$ (test_p6_convergence_factor).

Solution

With $\mu=\cos\theta$ and the regulator in place, the $k$ integral is elementary because $\mathrm{Re}(\epsilon-iR\mu)>0$:

\[\int_0^\infty dk\,e^{k(iR\mu-\epsilon)}=\frac1{\epsilon-iR\mu}.\]

Then

\[G_f^{(\epsilon)}=\frac1\pi\int_{-1}^{1}\frac{d\mu}{\epsilon-iR\mu} =\frac1\pi\int_{-1}^{1}\frac{\epsilon+iR\mu}{\epsilon^2+R^2\mu^2}\,d\mu =\frac1\pi\int_{-1}^{1}\frac{\epsilon\,d\mu}{\epsilon^2+R^2\mu^2},\]

the imaginary part vanishing by oddness in $\mu$ (as it must — $G$ is real). The remaining integral is an arctangent:

\[G_f^{(\epsilon)}=\frac{1}{\pi}\cdot\frac{2}{R}\arctan\frac{R\mu}{\epsilon}\Big|_{\mu=0}^{1}\cdot\frac{\epsilon}{\epsilon}\Big.^{\!\!} =\frac{2}{\pi R}\arctan\frac{R}{\epsilon} \;\xrightarrow[\epsilon\to0^+]{}\;\frac{2}{\pi R}\cdot\frac\pi2=\frac1R .\]

This is the $\epsilon$-regularized route to (3.1); the book's in-text derivation (3.20)–(3.21) instead does the $\mu$ integral first and uses $\int_0^\infty\sin x/x\,dx=\pi/2$ — the regulator makes the interchange of integration order legitimate (dominated convergence), which is the point of the exercise.

P7. Exercise 3.2.2 — Neumann Green function of the half-space; the surface deltaWilcox 2e §3.13, pp.122–123

For the half-space $z>0$ (the book's Fig. 3.21): (a) obtain the Neumann Green function by the reduced-Green-function method (an integral representation suffices); (b) confirm the surface delta function in $\partial G_N(\vec x,\vec x')/\partial n\,|$ as asserted by Eq. (2.115). Answer: (a) $g_N(k;z,z')=\frac1{2k}\bigl(e^{-k|z-z'|}+e^{-k(z+z')}\bigr)$, whose inversion is the image form (3.5), $G_N=1/|\vec x-\vec x'|+1/|\vec x-\vec x''|$; (b) with the source moved onto the plane, $G_N=2/|\vec x-\vec x'_S|$ and $\frac1{4\pi}\partial G_N/\partial n\to\delta^{(S)}(\vec x_\perp-\vec x'_\perp)$ as $z\to0^+$ (the $-4\pi/S$ of (2.106) vanishes for the infinite plane). Check: $k$-integral $=$ image form to $10^{-8}$; wall-normal derivative vanishes; the family $\frac1{4\pi}\,2z/(\rho^2+z^2)^{3/2}$ integrates to $1$ for every $z$ and concentrates as $z\to0^+$ (test_p7_neumann_halfspace, test_p7_surface_delta).

Solution

(a) Transverse Fourier transform of $\nabla^2G_N=-4\pi\delta$ gives the reduced equation (3.22), $\left(k^2-\partial_z^2\right)g=\delta(z-z')$, now with the Neumann wall condition $\partial_z g|_{z=0}=0$ and boundedness as $z\to\infty$. For $z\ne z'$ the solutions are $e^{\pm kz}$; boundedness picks $C_1e^{-kz}$ above the source, and the wall condition picks the even combination $C_2\cosh kz$ below it. Continuity at $z'$ and the jump $-\partial_zg\,|^{z'^+}_{z'^-}=1$ (integrate the ODE across the source) give $C_1=\cosh(kz')/k\,e^{-kz'}\cdot$… solving the $2\times2$ system,

\[g_N=\frac1{2k}\left(e^{-k|z-z'|}+e^{-k(z+z')}\right),\]

which is the Dirichlet result (3.30) with the image sign flipped. Fourier inversion term by term is the same $I_1$ integral as (3.32)–(3.34), giving $G_N=1/|\vec x-\vec x'|+1/|\vec x-\vec x''|$, $\vec x''=(x',y',-z')$: the image method result (3.5), recovered from the ODE side. (b) Equation (2.115) instructs: first put the source on the boundary, then evaluate the normal field as the field point approaches it. With $z'=0$ the charge and its image coincide, $G_N=2/\sqrt{\rho^2+z^2}$, and with the outward normal $\hat n=-\hat z$,

\[\frac1{4\pi}\frac{\partial G_N}{\partial n} =-\frac1{4\pi}\frac{\partial}{\partial z}\frac{2}{\sqrt{\rho^2+z^2}} =\frac1{4\pi}\frac{2z}{(\rho^2+z^2)^{3/2}} \;\xrightarrow[z\to0^+]{}\;\delta^{(S)}(\vec x_\perp-\vec x'_\perp),\]

by the delta-family identity (3.38) (the book's Ex. 2.2.2b): the expression integrates to exactly $1$ over the plane for every $z>0$ (the code shows this analytically-sharp normalization numerically) while its support shrinks like $z$. Since the plane has infinite area, the $-4\pi/S$ constant of (2.106) is zero here, so (2.115) reads pure surface delta — confirmed.

P8. Exercise 3.2.3 — Parallel plates: reduced Green function, induced charges, capacitanceWilcox 2e §3.13, p.123

For the two grounded plates of P1: (a) show $$G_D(\vec x,\vec x')=4\pi\!\int\!\frac{d^2k}{(2\pi)^2}\,e^{i\vec k\cdot(\vec x-\vec x')_\perp}\,g(k;z,z'),\qquad g=\frac{\sinh(kz_<)\,\sinh[k(a-z_>)]}{k\,\sinh(ka)},$$ with $z_<$ ($z_>$) the lesser (greater) of $z,z'$; (b) use it to show the plate charges induced by a unit charge at height $z'$ are $Q|_{z=0}=-(1-z'/a)$ and $Q|_{z=a}=-z'/a$ (also obtainable from the reciprocation theorem, the book's Ex. 2.7.2); (c) combine with Chapter 2's capacitance definition to get $C=A/(4\pi a)$ for plate area $A$. Answer: as stated; the two induced charges sum to $-1$. Check: $k$-integral $=$ P1 image sum; radial quadrature of $\sigma=\frac1{4\pi}\partial G/\partial n$ over each plate returns $-(1-z'/a)$ and $-z'/a$ (sum $-1$); the wall integral gives $\Phi=V(1-z/a)$, hence $C=A/4\pi a$ (test_p1_vs_p8_kspace, test_p8_induced_charges, test_p8_capacitance).

Solution

(a) As in §3.2, transverse translation invariance reduces (3.14) to $\left(k^2-\partial_z^2\right)g=\delta(z-z')$ with $g=0$ at both $z=0$ and $z=a$. Build $g$ from homogeneous solutions vanishing at the near wall: $g=A\sinh(kz)$ for $z<z'$ and $g=B\sinh[k(a-z)]$ for $z>z'$. Continuity at $z=z'$ and the unit jump $-\partial_zg|^{+}_{-}=1$ give $A\sinh(kz')=B\sinh[k(a-z')]$ and $kB\cosh[k(a-z')]+kA\cosh(kz')=1$; solving, $A=\sinh[k(a-z')]/(k\sinh ka)$, $B=\sinh(kz')/(k\sinh ka)$ — i.e. the quoted $z_<,z_>$ form (its $a\to\infty$ limit is (3.30), and the code checks it against P1's image ladder — two independent constructions of the same $G$). (b) The total charge on the bottom plate is $Q|_{z=0}=\oint\sigma\,da=-\frac1{4\pi}\oint\partial_zG|_{z=0}\,da$ (outward normal $-\hat z$). The area integral of $e^{i\vec k\cdot(\vec x-\vec x')_\perp}$ produces $(2\pi)^2\delta^2(\vec k)$, so only the $k\to0$ limit of $g$ survives:

\[g(k\to0;z,z')=\frac{z_<\,(a-z_>)}{a}.\]

For the bottom plate ($z\to0$, so $z=z_<$): $\partial_z g|_{z=0}=(a-z')/a$, giving $Q|_{z=0}=-(1-z'/a)$; for the top ($z=z_>$): $\partial_z g|_{z=a}=-z'/a$ with normal $+\hat z$, giving $Q|_{z=a}=-z'/a$. They sum to $-1$: every field line from the unit charge ends on a plate, and the shares are the linear interpolation weights of the source height — the Green-reciprocity statement (weight $=$ the linear potential each plate would create at $z'$), which is the Ex. 2.7.2 route the book mentions. (c) Hold the bottom plate at $V$, top at $0$, no interior charge. By (b) plus symmetry of $G_D$, the surface integral of (2.98) evaluates to $\Phi(z)=V\,[-Q|_{z=0}(z'{=}z)]=V(1-z/a)$ — verified by quadrature in the code — i.e. the uniform field $E=V/a$. Then $\sigma=\frac1{4\pi}E=V/4\pi a$ uniformly, and restricting to area $A$ (the book's hint): $Q=\sigma A=AV/4\pi a$, so

\[C=\frac{Q}{V}=\frac{A}{4\pi a},\]

the Gaussian parallel-plate capacitance.

P9. Exercise 3.2.4 — Robin boundary conditions on the half-spaceWilcox 2e §3.13, p.124

Robin conditions blend Dirichlet and Neumann: $\bigl(G_R+h\,\partial G_R/\partial n\bigr)\big|_S=0$ with $h\neq0$ a constant and $n$ the outward normal. Starting from $G_R=4\pi\int\frac{d^2k}{(2\pi)^2}e^{i\vec k\cdot(\vec x-\vec x')_\perp}g(k;z,z')$, solve for the reduced Green function in $z>0$ (source at $z'>0$) with Robin conditions on $z=0$. Answer: $\displaystyle g_R=\frac1{2k}\left[e^{-k|z-z'|}+\beta(k)\,e^{-k(z+z')}\right], \qquad\beta(k)=\frac{hk-1}{hk+1},$ interpolating Dirichlet ($h\to0$, $\beta=-1$) and Neumann ($h\to\infty$, $\beta=+1$). Check: closed form matches a finite-difference solve of the Robin BVP to $3\times10^{-3}$; satisfies $g(0)=h\,g'(0)$; reproduces the D/N limits (test_p9_robin).

Solution

The reduced equation is again $\left(k^2-\partial_z^2\right)g=\delta(z-z')$, bounded as $z\to\infty$. The outward normal of the region $z>0$ is $\hat n=-\hat z$, so $\partial G/\partial n=-\partial G/\partial z$ and the Robin condition $\left(g+h\,\partial g/\partial n\right)|_{z=0}=0$ becomes

\[g(0)=h\,g'(0).\]

Make the ansatz

\[g=\frac1{2k}\left[e^{-k|z-z'|}+\beta\,e^{-k(z+z')}\right],\]

which already solves the ODE with the correct unit jump (the first term is the free 1-D Green function; the second is a source-free homogeneous solution decaying at $\infty$). At the wall,

\[g(0)=\frac{(1+\beta)e^{-kz'}}{2k},\qquad g'(0)=\frac{(1-\beta)e^{-kz'}}{2},\]

so $g(0)=h\,g'(0)$ forces $(1+\beta)=hk\,(1-\beta)$, i.e.

\[\beta(k)=\frac{hk-1}{hk+1}.\]

Unlike the pure D/N cases, the "image strength" is now $k$-dependent: in real space the image is a point charge plus a continuum tail (an image line charge extending below the plane) — the price of the mixed condition. The code solves the BVP independently on a grid with the Robin row $g_0-h(g_1-g_0)/\Delta z=0$ and confirms the closed form, plus both limits.

P10. Exercise 3.3.1 — Charge inside a grounded / neutral spherical shellWilcox 2e §3.13, p.124

(a) A unit point charge sits inside a hollow grounded conducting shell of radius $a$. Find the Dirichlet Green function by images and the potential both inside and outside. (b) The same shell, but thin, neutral and isolated, with charge $q$ inside. Find $\Phi$ everywhere. (c) Can an outside observer locate the interior charge from the exterior field? Generalize to a neutral hollow conductor of arbitrary shape. Answer: (a) inside, Eq. (3.48) with $r'<a$ (image $-a/r'$ at $a^2/r'^2\,\vec r\,'$); outside, $\Phi=0$. (b) inside $\Phi=q\,G_D+q/a$; outside $\Phi=q/r$. (c) No: the exterior field is exactly central Coulomb, wherever the charge sits; for an arbitrary neutral hollow conductor the exterior field depends only on the outer-surface geometry and the total charge — never on the interior arrangement. Check: $G_D=0$ on $r=a$; total induced charge $=-1$; neutral-shell $\Phi$ continuous at $r=a$ and exterior $1/r$ unchanged when the interior charge moves (test_p10_sphere_green, test_p10_neutral_shell).

Solution

(a) The image algebra of §3.3 never used $r'>a$: demanding $\Phi(a\hat n)=0$ for a charge $q$ at $\vec r\,'$ and an image $q'$ at $\vec r\,''\parallel\vec r\,'$ again factors as (3.45), giving

\[q'=-\frac{a}{r'}q,\qquad r''=\frac{a^2}{r'},\]

now with $r'<a$ so the image lies outside — outside the physical region, as an image must. So the interior Green function is exactly (3.48). For the grounded shell the exterior is a charge-free region bounded by an equipotential at zero and vanishing at infinity, so $\Phi_{\rm out}\equiv0$ (uniqueness): the ground wire supplies a net $-1$; integrating $\sigma=\frac1{4\pi}\partial G/\partial n$ over the inner surface indeed gives $-1$ (test). (b) Cut the wire and demand neutrality: the inner surface must still carry $-q$ (Gauss on a surface inside the metal), so the outer surface carries $+q$. The outer problem — conductor surface $r=a$, total charge $q$, nothing outside — has the uniformly distributed solution $\Phi_{\rm out}=q/r$, regardless of where $q$ sits inside: the metal screens the interior asymmetry (the inner-surface density is nonuniform, the outer is exactly uniform). Inside, the grounded solution $qG_D$ vanishes at $r=a$, while the true shell potential is $\Phi(a)=q/a$; adding a constant (harmonic, no new sources) fixes it:

\[\Phi_{\rm in}=q\,G_D(\vec r,\vec r\,')+\frac qa .\]

Continuity at $r=a$ is then automatic (test). (c) From outside one sees $q/r$ exactly — no information about $\vec r\,'$. Generally: for a neutral hollow conductor of any shape, the interior problem (cavity walls + enclosed charge) and the exterior problem decouple; the outer surface charge arranges itself as the solution of "isolated conductor of this shape carrying total charge $q$", which is unique and independent of the cavity contents. Exterior measurements determine only $q$ and the conductor's shape — the position of the enclosed charge is unobservable. (This is electrostatic shielding run in reverse; compare ~EM-04's Faraday-cage discussion.)

P11. Exercise 3.3.2 — Grounded plane with a hemispherical bossWilcox 2e §3.13, pp.124–125

A grounded conducting hemisphere of radius $a$ sits on top of a grounded infinite plane $z=0$ (the book's Fig. 3.22). (a) Find the Dirichlet Green function for the region above plane and boss by images. (b) Find the Green function for the vacuum inside the hemispherical dome (this needs Exercise 3.3.1a). Answer: both regions use the same four charges: unit source at $\vec r\,'$; sphere image $-a/r'$ at $(a^2/r'^2)\vec r\,'$; plane image $-1$ at the mirror point $\vec r\,'_m$; and $+a/r'$ at $(a^2/r'^2)\vec r\,'_m$ (the sphere image of the plane image). Check: the four-charge $G$ vanishes on the plane (outside the boss) and on the hemisphere, for sources outside the boss and inside the dome (test_p11_hemisphere_boss).

Solution

Two mirror operations are in play: inversion in the sphere ($q\mapsto-\frac{a}{r}q$ at $a^2\vec r/r^2$) and reflection in the plane ($q\mapsto-q$ at $\vec r_m$, $z\to-z$). Because $\vec r\,'_m$ has the same radius $r'$ and mirrored polar angle, the two operations commute on this configuration, and the group closes with four members:

\[G_D=\frac1{|\vec r-\vec r\,'|} -\frac{a/r'}{\bigl|\vec r-\frac{a^2}{r'^2}\vec r\,'\bigr|} -\frac1{|\vec r-\vec r\,'_m|} +\frac{a/r'}{\bigl|\vec r-\frac{a^2}{r'^2}\vec r\,'_m\bigr|}.\]

On the sphere $r=a$: the 1st+2nd terms cancel (that is the grounded-sphere identity for $\vec r\,'$) and the 3rd+4th cancel (same identity for $\vec r\,'_m$, whose radius is also $r'$). On the plane: the 1st+3rd cancel (mirror pair) and the 2nd+4th cancel (their positions are mirror images with equal strengths $a/r'$). All four boundary pieces at zero, one physical singularity in the region: uniqueness certifies $G_D$. (a) For a source above the plane and outside the boss, all three images lie either below the plane or inside the sphere — outside the physical region ✓. (b) For a source inside the dome ($r'<a$, $z'>0$) the same formula works: the sphere image now sits outside the sphere (P10a), its mirror below the plane, and the plane mirror below the plane — again all images outside the dome region. The code checks both cases on random boundary points. (The region below the plane is field-free in both problems; the images are fictions valid only in the vacuum region, as in ~EM-04.)

P12. Exercise 3.3.3 — The image charge density for a sphereWilcox 2e §3.13, p.125

An arbitrary charge density $\rho(\vec x)$ lies outside a grounded conducting sphere of radius $a$. Show that the exterior field is that of $\rho$ plus an image density $\rho^$ inside the sphere, related in spherical coordinates about the center by $$\rho^(r,\theta,\phi)=-\Bigl(\frac ar\Bigr)^{5}\rho\Bigl(\frac{a^2}{r},\theta,\phi\Bigr) \quad\Longleftrightarrow\quad \rho^\Bigl(\frac{a^2}{r},\theta,\phi\Bigr)=-\Bigl(\frac ra\Bigr)^{5}\rho(r,\theta,\phi),$$ the combination satisfying $\vec E\times\hat n|_{r=a}=0$. Then (b) check the point-charge limit reproduces the standard image charge and location. Answer: as stated — the per-element image rule $dq^=-(a/r')\,dq$ at $a^2/r'$, converted to a density by the inversion Jacobian $(a/r')^6$. Check: $\int\rho^*d^3x$ by quadrature equals $-\int(a/r)\rho\,d^3x$ for a smooth blob (Jacobian identity), and a random point-charge cloud plus its image cloud zeroes $\Phi$ on the sphere (test_p12_rho_star).

Solution

Superpose the point-image rule (3.46) over the elements of $\rho$: the element $dq=\rho(\vec x')\,d^3x'$ at radius $r'$ acquires an image

\[dq^*=-\frac{a}{r'}\,dq\qquad\text{at}\qquad \vec x''=\frac{a^2}{r'^2}\vec x'.\]

The image element occupies the inverted volume: with $r''=a^2/r'$ and angles fixed, $d^3x''=r''^2dr''\,d\Omega=\bigl(\frac{a^2}{r'}\bigr)^2\frac{a^2}{r'^2}dr'\,d\Omega =(a/r')^6\,d^3x'$. Therefore

\[\rho^*(\vec x'')=\frac{dq^*}{d^3x''} =-\frac{a}{r'}\Bigl(\frac{r'}{a}\Bigr)^{6}\rho(\vec x') =-\Bigl(\frac{r'}{a}\Bigr)^{5}\rho(\vec x'),\]

and eliminating $r'=a^2/r''$ in favor of the image-point radius gives the first stated form; reading the same equation at the direct point gives the second. On the surface each $dq$–$dq^$ pair separately produces zero potential (that is what (3.46) was built to do), so $\Phi|_{r=a}=0$ for the superposition; a surface of constant potential has no tangential field, i.e. $\vec E\times\hat n|_{r=a}=0$ — the stated boundary condition. (b) For $\rho(\vec x)=q\,\delta^3(\vec x-d\hat z)$, the element rule gives a single image $-\,(a/d)\,q$ at $a^2/d\,\hat z$ — precisely (3.46). Totals: $Q^=\int\rho^*d^3x=-\int\frac{a}{r'}\rho\,d^3x'$ (each element weighted by $a/r'$) — the code verifies this integral identity by two independent quadratures for a Gaussian shell density, and verifies the surface condition with a random point cloud.

P13. Exercise 3.3.4 — Two distant conducting spheres: capacitance coefficientsWilcox 2e §3.13, pp.125–126

Two small conducting spheres, radii $a$ and $b$, are separated by $d\gg a,b$. (a) Show the coefficient of capacitance $C_{ab}\simeq-ab/d$. (b) With charges $Q$ and $-Q$ on the spheres, show the system capacitance $C\equiv|Q/\Delta V|$ obeys $$C\simeq\frac{ab}{a+b-\dfrac{2ab}{d}}.$$ Answer: as stated; corrections enter at relative order $(ab/d^2)$-type terms. Check: iterated-image capacitance matrix: $C_{ab}\to-ab/d$ (ratio improves $\propto d^{-2}$…, measured), $C_{ab}=C_{ba}$, and the exact $C=1/(p_{11}-2p_{12}+p_{22})$ matches the formula to $2\times10^{-3}$ at $d=30$ (test_p13_two_spheres).

Solution

Work with the potential coefficients $p_{ij}$ ($V_i=\sum_jp_{ij}Q_j$), which are transparent at large separation: $p_{11}=1/a$, $p_{22}=1/b$ (isolated spheres), and $p_{12}=p_{21}\simeq1/d$ — exactly $1/d$ at leading order because an uncharged sphere in the field of a distant point charge takes the potential of its center (mean-value theorem; this is the reciprocation-theorem result the book flags via its Ex. 2.12.5, and the "prove it first" it demands). (a) Invert the $2\times2$ matrix:

\[C=P^{-1}=\frac{1}{p_{11}p_{22}-p_{12}^2} \begin{pmatrix}p_{22}&-p_{12}\\-p_{12}&p_{11}\end{pmatrix} \;\Rightarrow\; C_{ab}=\frac{-1/d}{\frac1{ab}-\frac1{d^2}} =-\frac{ab}{d}\,\frac{1}{1-\frac{ab}{d^2}}\simeq-\frac{ab}{d}.\]

(b) With $(Q_1,Q_2)=(Q,-Q)$:

\[\Delta V=V_1-V_2=(p_{11}-2p_{12}+p_{22})\,Q =\Bigl(\frac1a+\frac1b-\frac2d\Bigr)Q,\]

so

\[C=\frac{Q}{\Delta V}=\frac{1}{\frac1a+\frac1b-\frac2d} =\frac{ab}{a+b-\frac{2ab}{d}}.\]

The neglected physics is polarization: each sphere sees the other's field gradient and grows an induced dipole, shifting $p_{12}$ at $O(1/d^3)$ and the self terms at $O(ab^2/d^3)$-type order. The code builds the exact answer by the classical iterated-image ladder (charge $a$ at the center of sphere 1, image $-b\,q/(d-x)$ at $d-b^2/(d-x)$, image back in sphere 1, …), sums the charge series to machine precision, and confirms both asymptotics and their $d^{-2}$-rate of approach.

P14. Exercise 3.3.5 — Line charge and a conducting cylinderWilcox 2e §3.13, p.126

A unit-density line charge runs parallel to the axis of a hollow conducting cylinder of radius $a$, at distance $\rho'$ from it. (a) Show a parallel image line of density $-1$ at $\rho''=a^2/\rho'$ (on the ray through the source) makes the cylinder an equipotential. (b) Using (a) and the freedom to add a constant, obtain the interior Green function $$G_D(\rho,\phi;\rho',\phi') =\ln\!\left[\frac{a^4+\rho^2\rho'^2-2a^2\rho\rho'\cos(\phi-\phi')}{a^2\,(\rho^2+\rho'^2-2\rho\rho'\cos(\phi-\phi'))}\right].$$ (c) Argue the exterior Green function is the same expression. Answer: as stated. Check: image construction $=$ closed form; $G=0$ on $\rho=a$ from either side; symmetric in $(\rho,\phi)\leftrightarrow(\rho',\phi')$; harmonic away from the source (test_p14_cylinder_green).

Solution

(a) With line charges, $G=-2\ln d_1+2\ln d_2+{\rm const}$, where $d_1,d_2$ are transverse distances to source and trial image at $\rho''$ on the same ray. On the cylinder ($\rho=a$, angle difference $\Delta$):

\[d_2^2\big|_{\rho=a}=a^2+\frac{a^4}{\rho'^2}-2a\frac{a^2}{\rho'}\cos\Delta =\frac{a^2}{\rho'^2}\Bigl(\rho'^2+a^2-2a\rho'\cos\Delta\Bigr) =\Bigl(\frac{a}{\rho'}\Bigr)^2 d_1^2\big|_{\rho=a}.\]

So $-2\ln d_1+2\ln d_2=2\ln(a/\rho')$ — constant on the surface: the cylinder is equipotential. This is the cylindrical twin of the sphere image, same inversion point $a^2/\rho'$, but the image strength is exactly $-1$ (not $-a/\rho'$): logarithms trade the sphere's strength rescaling for an additive constant. (b) A potential plus a constant is still a potential; subtract the surface value by adding $2\ln(\rho'/a)$:

\[G_D=-2\ln d_1+2\ln d_2+2\ln\frac{\rho'}{a} =\ln\frac{d_2^2\,\rho'^2}{d_1^2\,a^2},\]

and $d_2^2\rho'^2=\rho^2\rho'^2+a^4-2a^2\rho\rho'\cos\Delta$ gives the boxed form. It vanishes identically at $\rho=a$, has the correct $-2\ln$ singularity at the source, and is manifestly symmetric (the numerator and denominator are symmetric polynomials in $\rho\leftrightarrow\rho'$) — consistent with $G_D(\vec x,\vec x')=G_D(\vec x',\vec x)$. (c) Read the same formula for $\rho>a$ with an exterior source $\rho'>a$: it still solves the 2-D Green equation with the right singularity (the image point $a^2/\rho'$ now lies inside the cylinder — outside the physical region, as required), still vanishes on $\rho=a$, and matches the interior form continuously there. Since the Dirichlet data and source structure fix the solution up to the 2-D large-$\rho$ freedom (a constant — logs need not vanish at infinity), the exterior Green function is the identical expression; the code checks boundary zero and harmonicity with an exterior source. (This $G$ feeds P27's Poisson integral.)

P15. Exercise 3.3.6 — Uniform charged shell around a grounded sphereWilcox 2e §3.13, p.126

A thin spherical shell of radius $b$, uniformly charged with total $Q$ (it is not a conductor), is concentric with a grounded conducting sphere of radius $a<b$ (a thin wire through the shell grounds the inner sphere). Find $\Phi(\vec x)$ everywhere. Answer: $$\Phi=\begin{cases}0,&r\le a,\\[2pt] \dfrac{Q}{b}\Bigl(1-\dfrac ar\Bigr),&a\le r\le b,\\[6pt] \dfrac{Q\,(1-a/b)}{r},&r\ge b,\end{cases}$$ with induced charge $-Qa/b$ on the grounded sphere. Check: quadrature of $\sigma_b\,G_D$ over the shell reproduces the closed form in both regions; $\Phi(a)=0$ (test_p15_shell_around_grounded_sphere).

Solution

Everything is spherically symmetric, so $\Phi=A_i+B_i/r$ region by region. Let $q_a$ be the induced charge on the grounded sphere. Gauss: for $a<r<b$, $E_r=q_a/r^2$; for $r>b$, $E_r=(q_a+Q)/r^2$. Integrate inward from infinity:

\[\Phi(r\ge b)=\frac{q_a+Q}{r},\qquad \Phi(a\le r\le b)=\frac{q_a}{r}+C,\]

with $C$ fixed by continuity at $b$: $C=Q/b$. Grounding pins $\Phi(a)=0$:

\[\frac{q_a}{a}+\frac{Q}{b}=0\;\Longrightarrow\;q_a=-\frac{a}{b}\,Q,\]

which plugged back gives exactly the three-region answer (and $\Phi\equiv0$ for $r\le a$, the field-free grounded interior). Green-function route (the module's check): each shell element $dq$ at radius $b$ has grounded-sphere weight $G_D$ of (3.48), so $\Phi(\vec x)=\oint\sigma_b\,G_D(\vec x,\vec x')\,da'$ with $\sigma_b=Q/4\pi b^2$; the code does this quadrature and lands on the closed form — including the exterior region, where the image content of $G_D$ automatically supplies the $-Qa/b$. Notice $q_a$ is exactly the sum of the per-element images $-(a/b)\,dq$ (P12's rule with $r'=b$ for every element).

P16. Exercise 3.3.7 — Charged ring around a grounded sphereWilcox 2e §3.13, pp.126–127

A circular ring of radius $b$, uniform line density $\lambda$, lies in the equatorial plane $z=0$ of a grounded conducting sphere of radius $a<b$, concentric with it (the book's Fig. 3.23). (a) Find the induced charge on the sphere. (b) Find $\Phi(z)$ on the symmetry axis outside the sphere, and confirm $\Phi(\pm a)=0$. Answer: (a) $q_{\rm ind}=-2\pi a\lambda=-(a/b)\,Q_{\rm ring}$; (b) $\displaystyle\Phi(z)=\frac{2\pi b\lambda}{\sqrt{z^2+b^2}} -\frac{2\pi a\lambda}{\sqrt{z^2+a^4/b^2}}$, which vanishes at $z=\pm a$. Check: Green-function quadrature around the ring equals the closed form; $\Phi(\pm a)=0$; far field $(Q_{\rm ring}+q_{\rm ind})/z$ (test_p16_ring_around_grounded_sphere).

Solution

(a) Every ring element sits at radius $b$, so each $dq$ has image $-(a/b)\,dq$ at radius $a^2/b$ (the image of a concentric equatorial ring is a concentric equatorial ring of radius $a^2/b$). Summing,

\[q_{\rm ind}=-\frac ab\,Q_{\rm ring}=-\frac ab\,(2\pi b\lambda)=-2\pi a\lambda.\]

(b) On the axis every point of a ring of radius $R$ is at distance $\sqrt{z^2+R^2}$, so a ring of charge $q$ contributes $q/\sqrt{z^2+R^2}$. Direct ring: $Q_{\rm ring}=2\pi b\lambda$ at radius $b$. Image ring: $-2\pi a\lambda$ at radius $a^2/b$. Therefore

\[\Phi(z)=\frac{2\pi b\lambda}{\sqrt{z^2+b^2}}-\frac{2\pi a\lambda}{\sqrt{z^2+a^4/b^2}} .\]

At $z=\pm a$: $\sqrt{a^2+a^4/b^2}=\frac ab\sqrt{a^2+b^2}$, so the second term is $2\pi a\lambda\cdot\frac{b}{a\sqrt{a^2+b^2}}=2\pi b\lambda/\sqrt{a^2+b^2}$ — exactly the first: $\Phi(\pm a)=0$, the axis meeting the grounded surface. Far away, $\Phi\to(2\pi b\lambda-2\pi a\lambda)/|z|$: the monopole is the total (ring + induced) charge, as it must be. The code integrates $\lambda\,b\,d\phi'\,G_D$ around the ring with (3.48) and matches the closed form at $10^{-10}$.

P17. Exercise 3.3.8 — Force from a held-at-V sphere; force from a neutral sphereWilcox 2e §3.13, p.127

A point charge $q$ sits at distance $d>a$ from the center of a conducting sphere of radius $a$. (a) The sphere is held at potential $V\neq0$. Show the force on $q$ can be made zero by tuning $V$, and find that $V$ in terms of $q,a,d$. (b) The sphere is instead neutral and isolated. Find the force on $q$. Answer: (a) $\displaystyle F=\frac{qVa}{d^2}-\frac{q^2ad}{(d^2-a^2)^2}$, zero at $\displaystyle V_0=\frac{q\,d^3}{(d^2-a^2)^2}$; (b) $\displaystyle F=q^2a\left[\frac1{d^3}-\frac{d}{(d^2-a^2)^2}\right] =-\frac{q^2a^3(2d^2-a^2)}{d^3(d^2-a^2)^2}<0$ (always attractive), with $U=-\dfrac{q^2a^3}{2d^2(d^2-a^2)}$. Check: $F(V_0)=0$; the neutral force equals the two-image Coulomb sum; $F=-dU/dd$ numerically; far field $-2q^2a^3/d^5$ (test_p17_sphere_forces).

Solution

The exterior solution (3.53) is $q\,G_D+Va/r$: i.e. the field of three point charges — the source $q$; the grounded-sphere image $q'=-qa/d$ at $r''=a^2/d$; and a fictitious center charge $Va$ carrying the $Va/r$ term. The force on $q$ is $q$ times the field of the other two at $r=d$ (its own field exerts nothing):

\[F=q\left[\frac{Va}{d^2}+\frac{q'}{(d-r'')^2}\right] =\frac{qVa}{d^2}-\frac{q^2 a d}{(d^2-a^2)^2},\]

using $d-a^2/d=(d^2-a^2)/d$. (a) The image term is always attractive; a $V$ of the same sign as $q$ repels. Setting $F=0$:

\[\frac{qVa}{d^2}=\frac{q^2ad}{(d^2-a^2)^2} \;\Longrightarrow\; V_0=\frac{q\,d^3}{(d^2-a^2)^2}\, .\]

(Near contact $V_0$ diverges — the image attraction is too singular to beat; far away $V_0\to q/d$, the value that just cancels the induced-dipole pull.) (b) Neutral isolated sphere: (3.55) with $Q=0$ replaces $Va$ by $+qa/d$ at the center (the compensating charge that restores neutrality against the image $-qa/d$). Then

\[F=q\left[\frac{qa/d}{d^2}-\frac{qad}{(d^2-a^2)^2}\right] =q^2a\left[\frac1{d^3}-\frac{d}{(d^2-a^2)^2}\right]<0\quad(d>a),\]

attraction always: the sphere polarizes, the near (opposite-sign) induced charge is closer than the far one. Combining over a common denominator gives the $-q^2a^3(2d^2-a^2)/[d^3(d^2-a^2)^2]$ form; integrating $-F$ from $d$ to $\infty$ gives $U=-q^2a^3/[2d^2(d^2-a^2)]$ (the code checks $F=-dU/dd$ numerically), and expanding for $d\gg a$:

\[F\simeq-\frac{2q^2a^3}{d^5},\]

the induced-dipole law — the sphere's polarizability is $a^3$, the induced moment $p=a^3E=a^3q/d^2$, and $F=-2pq/d^3$. All four statements are asserted numerically.

P18. Exercise 3.5.1 — 2-D box by separation of variablesWilcox 2e §3.13, pp.127–128

Solve $\partial_x^2\Phi+\partial_y^2\Phi=0$ by separation of variables inside the rectangle $0<x<a$, $0<y<b$, with $\Phi=0$ on all sides except $y=b$, where $\Phi=V$ (constant). Express $\Phi$ as an infinite series. Answer: with $m=2n-1$ running over odd integers, $$\Phi(x,y)=\frac{4V}{\pi}\sum_{n=1}^{\infty}\frac1m\, \frac{\sinh(m\pi y/a)}{\sinh(m\pi b/a)}\,\sin\frac{m\pi x}{a}.$$ Check: series matches a sparse finite-difference Laplace solve at interior points to $4\times10^{-3}$; exact zeros on the three grounded sides; numeric Laplacian $\approx0$ (test_p18_box_series_vs_fd).

Solution

Insert $\Phi=X(x)Y(y)$: $X''/X=-Y''/Y=-\alpha^2$ constant. The homogeneous conditions steer the split: $\Phi(0,y)=\Phi(a,y)=0$ wants oscillation in $x$, so $X=\sin\alpha x$ with $\sin\alpha a=0$, i.e. $\alpha_m=m\pi/a$, $m=1,2,\dots$ — the Fourier sine family of ~MA-11; then $Y''=\alpha^2Y$ gives $\sinh/\cosh$, and $\Phi(x,0)=0$ kills the $\cosh$: $Y_m=\sinh(m\pi y/a)$. Superpose and match the last side:

\[\Phi(x,b)=\sum_mB_m\sinh\frac{m\pi b}{a}\sin\frac{m\pi x}{a}=V .\]

Sine orthogonality ($\int_0^a\sin\frac{m\pi x}{a}\sin\frac{m'\pi x}{a}dx=\frac a2\delta_{mm'}$, Eq. 3.83) projects out

\[B_m\sinh\frac{m\pi b}{a}=\frac2a\int_0^aV\sin\frac{m\pi x}{a}dx =\frac{2V}{m\pi}\bigl[1-(-1)^m\bigr] =\begin{cases}\dfrac{4V}{m\pi},&m\ \text{odd},\\0,&m\ \text{even},\end{cases}\]

giving the quoted series. (Even $m$ vanish by the symmetry $x\to a-x$ of the data.) This is the same slot expansion as ~EM-04 §5, with $\sinh$ replacing the decaying exponential because the box is finite. The finite-difference cross-check is the uniqueness theorem run numerically: two utterly different constructions, one harmonic function.

P19. Exercise 3.5.2 — Semi-infinite slot with a charged side wallWilcox 2e §3.13, p.128

In the strip $0<x<a$, $y>0$ (the book's Fig. 3.24) the wall $x=0$ is at constant potential $V$ while $y=0$ and $x=a$ are grounded; the $y$-dependent part of the solution must die off as $y\to+\infty$. Writing $$\Phi=\Phi_1+\Phi_2,\qquad \Phi_1=\sum_{n\ge1}A_n\sin\frac{n\pi x}{a}\,e^{-n\pi y/a},\qquad \Phi_2=V\Bigl(1-\frac xa\Bigr),$$ determine the coefficients $A_n$. Answer: $A_n=-\dfrac{2V}{n\pi}$ for every $n\ge1$. Check: Fourier quadrature reproduces $A_7$; $\Phi(0,y)=V$ exactly, $\Phi(a,y)=0$, $\Phi(x,0)\to0$ (partial sums), $\Phi\to V(1-x/a)$ as $y\to\infty$; numeric Laplacian $\approx0$ (test_p19_strip).

Solution

The decomposition does the bookkeeping: $\Phi_2$ is harmonic (linear), matches $V$ at $x=0$ and $0$ at $x=a$ for all $y$, and is the $y\to\infty$ limit (far up the slot the problem is one-dimensional between the two vertical walls, so the potential cannot vanish there — it tends to the linear profile; what decays is $\Phi_1$). $\Phi_1$, built from the grounded-wall modes $\sin(n\pi x/a)e^{-n\pi y/a}$, vanishes on $x=0,a$ and at large $y$; its job is the remaining condition at the floor:

\[0=\Phi(x,0)=\Phi_2(x)+\sum_nA_n\sin\frac{n\pi x}{a} \;\Longrightarrow\; \sum_nA_n\sin\frac{n\pi x}{a}=-V\Bigl(1-\frac xa\Bigr).\]

Project with sine orthogonality:

\[A_n=-\frac{2V}{a}\int_0^a\Bigl(1-\frac xa\Bigr)\sin\frac{n\pi x}{a}\,dx =-\frac{2V}{a}\cdot\frac{a}{n\pi}=-\frac{2V}{n\pi},\]

using $\int_0^a(1-x/a)\sin(n\pi x/a)\,dx=a/n\pi$ (integrate the two pieces; the $(-1)^n$ terms cancel between them). Every $n$ contributes — the sawtooth $V(1-x/a)$ has no parity to kill alternate terms. So

\[\Phi=V\Bigl(1-\frac xa\Bigr)-\frac{2V}{\pi}\sum_{n=1}^\infty \frac1n\,e^{-n\pi y/a}\sin\frac{n\pi x}{a},\]

whose $y=0$ trace is the familiar Fourier sawtooth identity $\frac{2V}{\pi}\sum\frac1n\sin\frac{n\pi x}{a}=V(1-x/a)$ — P20(b) meets it again from the Green-function side.

P20. Exercise 3.5.3 — Dirichlet Green function of the slotWilcox 2e §3.13, pp.128–129

Same region as P19, all three walls now grounded. (a) Show that the Green function obeying $\nabla^2G_D=-4\pi\delta(x-x')\delta(y-y')$ inside and $G_D=0$ on the walls is $$G_D=8\sum_{n=1}^{\infty}\frac1n\,\sin\frac{n\pi x}{a}\sin\frac{n\pi x'}{a}\, \sinh\frac{n\pi y_<}{a}\,e^{-n\pi y_>/a},$$ $y_<$ ($y_>$) the lesser (greater) of $y,y'$. (b) Use it to re-solve P19 (a telling Fourier series appears for $\Phi_2$). Answer: as stated; the wall integral gives $\Phi=\frac{2V}{\pi}\sum\frac1n\sin\frac{n\pi x}{a}\bigl(1-e^{-n\pi y/a}\bigr)$, identical to P19 via the sawtooth series. Check: wall zeros; symmetry; flux $\oint\partial_nG\,dl=-4\pi$ around the source; recovered $\Phi$ equals P19's to $3\times10^{-4}$ (60000-term sawtooth tail) (test_p20_green_strip).

Solution

(a) Expand both $G_D$ and $\delta(x-x')$ in the wall-adapted sine basis (Eq. 3.89): $\delta(x-x')=\frac2a\sum_n\sin\frac{n\pi x}{a}\sin\frac{n\pi x'}{a}$. Writing $G_D=\sum_n\sin\frac{n\pi x}{a}\sin\frac{n\pi x'}{a}\,h_n(y,y')$ and matching term by term,

\[h_n''-\Bigl(\frac{n\pi}{a}\Bigr)^2h_n=-\frac{8\pi}{a}\,\delta(y-y'),\]

with $h_n(0)=0$ and decay as $y\to\infty$. Below the source take $A\sinh(k_ny)$, above take $Be^{-k_ny}$ ($k_n=n\pi/a$); continuity and the jump $-h_n'\,|^+_-=8\pi/a$ give $A=\frac{8\pi}{ak_n}e^{-k_ny'}$, $B=\frac{8\pi}{ak_n}\sinh(k_ny')$, i.e. $h_n=\frac{8}{n}\sinh(k_ny_<)e^{-k_ny_>}$ — the quoted $G_D$. The code's flux integral around the source verifies the $-4\pi$ normalization the ODE jump encodes. (b) Only the charged wall $x'=0$ contributes to (2.98): $\partial G/\partial n'=-\partial G/\partial x'|_{x'=0} =-\frac{8\pi}{a}\sum_n\sin\frac{n\pi x}{a}\sinh\frac{n\pi y_<}{a}e^{-n\pi y_>/a}$. The $y'$ integral splits at $y$ and is elementary:

\[\int_0^\infty\!dy'\,\sinh(k y_<)e^{-k y_>} =\frac{e^{-ky}\bigl(\cosh ky-1\bigr)}{k}+\frac{\sinh(ky)\,e^{-ky}}{k} =\frac{1-e^{-ky}}{k},\]

(the $e^{-ky}\cosh ky+e^{-ky}\sinh ky=1$ collapse). Hence

\[\Phi(x,y)=-\frac{V}{4\pi}\int_0^\infty dy'\,\Bigl(-\frac{8\pi}{a}\Bigr)\sum_n(\cdots) =\frac{2V}{\pi}\sum_{n=1}^\infty\frac1n\sin\frac{n\pi x}{a}\Bigl(1-e^{-n\pi y/a}\Bigr).\]

The "$1$" part is the sawtooth series summing to $\Phi_2=V(1-x/a)$ — the Fourier series the exercise advertises — and the exponential part is exactly $\Phi_1$ with $A_n=-2V/n\pi$: P19 recovered wholesale. (Numerically the sawtooth converges only like $1/N$, which is why the test compares with a $6\times10^4$-term partial sum.)

P21. Exercise 3.5.4 — Neumann Green function of the slotWilcox 2e §3.13, p.129

Same strip, but the three walls are now Neumann surfaces: $\nabla^2G_N=-4\pi\delta^2$ inside and $\partial G_N/\partial n=0$ on the walls. Use the even (cosine) representation of the delta function, $$\delta(x-x')=\frac2a\sum_{n=0}^\infty\delta_n\cos\frac{n\pi x}{a}\cos\frac{n\pi x'}{a}, \qquad\delta_n=\begin{cases}1/2,&n=0\\1,&n>0\end{cases}$$ (its terms have vanishing normal derivative on the walls), and find $G_N$. Answer: up to an additive constant, $$G_N=8\sum_{n=1}^{\infty}\frac1n\cos\frac{n\pi x}{a}\cos\frac{n\pi x'}{a} \cosh\frac{n\pi y_<}{a}\,e^{-n\pi y_>/a}\;-\;\frac{4\pi y_>}{a}.$$ Check: one-sided normal differences vanish $\propto h$ on all three walls; symmetry; the flux through the cross-section $y=3a$ is exactly $-4\pi$ (Gauss/Eq. 2.102) (test_p21_green_strip_neumann).

Solution

Expand $G_N=\sum_{n\ge0}\cos\frac{n\pi x}{a}\cos\frac{n\pi x'}{a}h_n(y,y')$. The $n\ge1$ modes obey $h_n''-k_n^2h_n=-\frac{8\pi}{a}\delta(y-y')$ as before, but with the Neumann floor condition $h_n'(0)=0$: even solution $\cosh(k_ny)$ below the source, decay above, so $h_n=\frac8n\cosh(k_ny_<)e^{-k_ny_>}$. The $n=0$ mode is where Neumann problems earn their keep: with $\delta_0=1/2$,

\[h_0''=-\frac{4\pi}{a}\,\delta(y-y'),\qquad h_0'(0)=0 .\]

Integrating: $h_0'$ is $0$ below the source (floor condition) and jumps to $-4\pi/a$ above it, so $h_0=-\frac{4\pi}{a}y_>+{\rm const}$ — the secular term. It cannot decay: Gauss's theorem (2.102) demands $\oint\partial_nG_N\,da=-4\pi$, and with rigid walls the only exit is the open end. Indeed the flux there is $a\cdot\partial_y(-4\pi y/a)=-4\pi$ ✓ (the oscillatory modes integrate to zero across the section — the code measures exactly $-4\pi$ at $y=3a$). Equivalently: for this unbounded surface the $-4\pi/S$ of (2.106) is zero on the walls, and the "charge outflow" is carried by the secular mode. The additive constant is the usual Neumann gauge freedom ((2.103) defines $\Phi$ only up to $\langle\Phi\rangle_S$).

P22. Exercise 3.5.5 — Line charge between two grounded planes (2-D)Wilcox 2e §3.13, p.130

Two infinite parallel grounded plates $x=0$ and $x=a$ extend to $y\to\pm\infty$ (the book's Fig. 3.25); a long line charge, parallel to the plates, makes the problem $z$-independent, so $\left(\partial_x^2+\partial_y^2\right)G_D=-4\pi\delta(x-x')\delta(y-y')$. Assuming $$G_D=\sum_{n\ge1}\sin\frac{n\pi x}{a}\sin\frac{n\pi x'}{a}\,g_n(y,y'),$$ find the reduced Green function $g_n$. Answer: $\displaystyle g_n(y,y')=\frac4n\,e^{-n\pi|y-y'|/a}$; the sum has the closed form $$G_D=\ln\!\left[\frac{\cosh\frac{\pi(y-y')}{a}-\cos\frac{\pi(x+x')}{a}} {\cosh\frac{\pi(y-y')}{a}-\cos\frac{\pi(x-x')}{a}}\right],$$ also expressible as the image ladder of line charges at $2na\pm x'$. Check: series $=$ closed form $=$ Richardson-extrapolated image sum; zeros on both plates (test_p22_two_plates_2d).

Solution

The sine projection gives $g_n''-k_n^2g_n=-\frac{8\pi}{a}\delta(y-y')$ with decay in both directions ($k_n=n\pi/a$): the symmetric decaying solution is

\[g_n=\frac{8\pi}{a}\cdot\frac{e^{-k_n|y-y'|}}{2k_n}=\frac4n\,e^{-n\pi|y-y'|/a},\]

(check the jump: $-\partial_yg_n$ jumps by $\frac{8\pi}{a}$ across $y'$ ✓). To sum, write $\sin\sin'=\tfrac12[\cos\theta_--\cos\theta_+]$ with $\theta_\pm=\pi(x\pm x')/a$, and use $\sum_{n\ge1}\frac{t^n}{n}\cos n\theta=-\tfrac12\ln(1-2t\cos\theta+t^2)$ with $t=e^{-\pi|y-y'|/a}$:

\[G_D=\ln\frac{1-2t\cos\theta_++t^2}{1-2t\cos\theta_-+t^2} =\ln\frac{\cosh\frac{\pi\Delta y}{a}-\cos\theta_+}{\cosh\frac{\pi\Delta y}{a}-\cos\theta_-},\]

dividing through by $2t$. As $x\to x',y\to y'$ the denominator vanishes quadratically, reproducing the $-2\ln$ line-charge singularity; on $x=0$ or $x=a$, $\cos\theta_+=\cos\theta_-$ and $G_D=0$. The same $G_D$ is the 2-D image ladder (P1's picture with line charges): $-2\sum_n[\ln d_n^+-\ln d_n^-]$ with images at $2na\pm x'$ — symmetric truncations converge $\sim1/N$, so the code Richardson-extrapolates before comparing all three representations.

P23. Exercise 3.5.6 — 2-D box with a linear top potentialWilcox 2e §3.13, p.130

Same rectangle as P18 ($0<x<a$, $0<y<b$) with $V=0$ on $x=0$, $x=a$, $y=0$, but now $V(x)=-Ex$ ($E$ constant) on $y=b$. Find $\Phi$ inside. Answer: $$\Phi(x,y)=\frac{2Ea}{\pi}\sum_{m=1}^{\infty}\frac{(-1)^m}{m}\, \frac{\sinh(m\pi y/a)}{\sinh(m\pi b/a)}\,\sin\frac{m\pi x}{a}.$$ Check: matches the finite-difference solve with boundary $-Ex$ to $5\times10^{-3}$ (test_p23_box_Ex).

Solution

The machinery of P18 carries over unchanged until the last projection, which now meets the data $-Ex$:

\[B_m\sinh\frac{m\pi b}{a}=\frac2a\int_0^a(-Ex)\sin\frac{m\pi x}{a}\,dx .\]

With $\int_0^ax\sin\frac{m\pi x}{a}dx=\frac{a^2}{m\pi}(-1)^{m+1}$ (integrate by parts; the boundary term at $x=a$ carries the sign),

\[B_m=-\frac{2E}{a}\cdot\frac{a^2(-1)^{m+1}}{m\pi\,\sinh(m\pi b/a)} =\frac{2Ea\,(-1)^m}{m\pi\,\sinh(m\pi b/a)},\]

giving the stated series — all $m$ present and alternating, the signature of data that is odd about the box midline ($-Ex$ has no $x\to a-x$ symmetry, but its sawtooth extension alternates). Sanity: at $y=b$ the series is the standard Fourier expansion $x=\sum_m\frac{2a(-1)^{m+1}}{m\pi}\sin\frac{m\pi x}{a}$ times $-E$ ✓; and term by term each summand is harmonic, so the sum is the solution (uniqueness against the FD solver in the test).

P24. Exercise 3.6.1 — The Madelung constant from the box Green functionWilcox 2e §3.13, pp.130–131

Reproduce numerically the NaCl Madelung constant (Na$^+$ reference), $$M=\mathop{{\sum}'}_{i,j,k}\frac{(-1)^{i+j+k}}{\sqrt{i^2+j^2+k^2}}=-1.747564594\ldots,$$ from the box eigenfunction Green function (3.98). Setting $x=x'=y=y'=z=z'=a/2$ outright diverges — the reference charge's self-energy — so remove that energy approximately and obtain $M$ to at least three decimal places. Answer: $M=a\cdot\lim_{\vec x'\to\vec x}\bigl[G_D(\vec x,\vec x')-1/|\vec x-\vec x'|\bigr]$ at the cube center; the module's $\epsilon$-extrapolation gives $-1.747563$, matching the lattice value to $1\times10^{-6}$. Check: madelung_from_box_green() within $5\times10^{-4}$ of $-1.747564594$ (actually $\sim10^{-6}$); Evjen lattice sum within $2\times10^{-6}$ (test_p24_madelung); (3.98) also passes reciprocity and short-distance $1/|\vec x-\vec x'|$ tests (test_p24_box_green_reciprocity, test_p24_box_green_point_charge).

Solution

The bridge is §3.6's image-lattice reading of the box Green function: for a unit charge at the center of a grounded cube of side $a$, the images are unit charges of sign $(-1)^{i+j+k}$ at the points $({\rm center})+a\,(i,j,k)$ — precisely the NaCl arrangement with lattice spacing $a$. Therefore

\[G_D(\vec x,\vec x')\;\xrightarrow{\ \vec x'\to\vec x={\rm center}\ }\; \underbrace{\frac1{|\vec x-\vec x'|}}_{\text{self}}\;+\;\underbrace{\frac Ma}_{\text{all images}}\;+\;O(|\vec x-\vec x'|^2),\]

so the Madelung energy is the regularized Green function at coincidence — remove the self term and take the limit. (Interpreting $M$ through $G_D$ also dissolves the conditional-convergence worry the book raises about (3.108): the grounded box fixes the summation order physically.) Numerically (unit cube): put the two arguments at ${\rm center}\pm(\epsilon/2)\hat z$, sum (3.98) — at the center only odd $n,m$ survive since $\sin^2(n\pi/2)$ selects them — with the exp-stable reduced factor, and form

\[S(\epsilon)=G_D(\epsilon)-\frac1\epsilon=M+c_2\epsilon^2+c_4\epsilon^4+\cdots\]

($\epsilon$-even by the symmetry of the split). Two Richardson steps on $\epsilon=(0.2,\,0.1,\,0.05)$ annihilate $c_2$ and $c_4$:

\[M\simeq\frac{16B-A}{15},\qquad A=\frac{4S(0.1)-S(0.2)}{3},\quad B=\frac{4S(0.05)-S(0.1)}{3},\]

yielding $-1.7475635$ — five good decimals, comfortably beyond the requested three. Cross-check: the Evjen summation (expanding cubes with $1/2$-weighted faces, the standard cure for the conditional convergence) gives $-1.7475646$ at $N=14$. The interaction energy per reference ion is then $W=M/a$, as the book notes below (3.108).

P25. Exercise 3.7.1 — Cylinder with a point (delta) surface potentialWilcox 2e §3.13, p.131

A charge-free conducting cylinder of radius $b$ has surface potential $\Phi(b,\phi)=V_0\,\delta(\phi)$ on $-\pi<\phi<\pi$ (no other sources). Using polar separation of variables, find the Fourier series for $\Phi$ everywhere inside. Answer: $$\Phi(\rho,\phi)=\frac{V_0}{2\pi}+\frac{V_0}{\pi}\sum_{m=1}^{\infty} \Bigl(\frac\rho b\Bigr)^{m}\cos(m\phi).$$ Check: partial sums agree with the Poisson-kernel closed form of P31 to $10^{-10}$; $\Phi(0)=V_0/2\pi$, the surface average (test_p25_cylinder_delta_series).

Solution

The full-azimuth interior solution (3.118) keeps only the terms regular at $\rho=0$: $\Phi=a_0+\sum_m\rho^m(A_m\cos m\phi+B_m\sin m\phi)$ (the $\ln\rho$ and $\rho^{-m}$ members would blow up at the axis). Match at $\rho=b$ against the Fourier expansion of the data: for $\delta(\phi)$ on $(-\pi,\pi)$,

\[\delta(\phi)=\frac1{2\pi}+\frac1\pi\sum_{m=1}^\infty\cos m\phi\]

(all cosine coefficients equal $\frac1\pi\int\delta\cos m\phi\,d\phi=\frac1\pi$; no sines, $\delta$ being even). Termwise identification gives $a_0=V_0/2\pi$, $A_mb^m=V_0/\pi$, $B_m=0$ — the quoted series. Physical readings: $\Phi(0)=V_0/2\pi$ is the surface average (mean-value theorem, the $m=0$ term); each higher multipole of the pinprick data decays inward as $(\rho/b)^m$ — the cylinder is a low-pass filter in harmonic content, which is why relaxation methods smooth from the boundary in (~EM-04 §6). P31 sums this series to the 2-D Poisson kernel, closing the loop with the Green function of P27.

P26. Exercise 3.8.1 — Cylindrical pie wedge with given end dataWilcox 2e §3.13, p.131

A conducting "pie" of opening angle $\beta$ (the book's Fig. 3.26) has its two straight sides held at the constant potential $V$, while the curved end at $\rho=b$ carries a given profile $\Phi(b,\phi)$; discontinuities at the corners $\phi=0,\beta$ are allowed. Find the Fourier representation of $\Phi$ in the interior. Answer: $$\Phi(\rho,\phi)=V+\sum_{m=1}^\infty a_m\,\rho^{m\pi/\beta}\sin\frac{m\pi\phi}{\beta}, \qquad a_m=\frac{2}{\beta\,b^{m\pi/\beta}}\int_0^\beta\bigl[\Phi(b,\phi')-V\bigr] \sin\frac{m\pi\phi'}{\beta}\,d\phi' .$$ Check: single-mode manufactured data is recovered exactly; generic data is reproduced at $\rho\to b$; the sides sit at $V$; the corner field scales as $\rho^{\pi/\beta-1}$ (log-slope fit) (test_p26_wedge).

Solution

This is §3.8's corner solution (3.119) promoted to a full boundary-value problem. The angular range is restricted to $(0,\beta)$, so single-valuedness no longer quantizes $\nu$; instead the side conditions do. Keep the members of (3.114)–(3.115) regular at $\rho=0$ (drop $\rho^{-\nu}$ and $\ln\rho$). The $\nu=0$ piece $A_0+B_0\phi$ must satisfy $\Phi=V$ at both $\phi=0$ and $\phi=\beta$: $A_0=V$, $B_0=0$. The $\nu\ne0$ pieces must vanish at both sides (their job is the deviation from $V$): $\sin(\nu\phi)$ with $\sin(\nu\beta)=0$, i.e.

\[\nu_m=\frac{m\pi}{\beta},\qquad m=1,2,\dots\]

— generally non-integer powers of $\rho$; nothing is wrong with that away from the axis' full neighborhood. Superpose and match the end data: $\Phi(b,\phi)-V=\sum_ma_mb^{m\pi/\beta}\sin(m\pi\phi/\beta)$ is an ordinary Fourier sine series on $(0,\beta)$ (the Sturm–Liouville family of ~MA-11); orthogonality delivers the quoted $a_m$. Endpoint mismatches ($\Phi(b,0^+)\neq V$ etc.) are fine — sine series converge to the data in the open interval and to the mean at jumps. Near the tip the $m=1$ term dominates (Eq. 3.120): $\Phi-V\approx a_1\rho^{\pi/\beta}\sin(\pi\phi/\beta)$ and $|\vec E|=\frac{\pi|a_1|}{\beta}\rho^{\pi/\beta-1}$ (3.123): field concentration at a reentrant tip ($\beta>\pi$), shielding in a slot ($\beta<\pi$) — the lightning-rod exponent, which the test extracts from the series by a log-log fit. (If the two sides carry different constants $V_1,V_2$, add the extra harmonic wedge term $(V_2-V_1)\phi/\beta$ — P2(c) is exactly that case with $\Phi(b,\phi)$ absent.)

P27. Exercise 3.9.1 — Poisson's integral for the cylinderWilcox 2e §3.13, p.131

Using the cylinder Green function of P14, show that the interior potential of a cylinder of radius $b$ with surface data $\Phi(b,\phi)$ is $$\Phi(\rho,\phi)=\frac1{2\pi}\int_0^{2\pi}d\phi'\,\Phi(b,\phi')\, \frac{b^2-\rho^2}{\rho^2+b^2-2b\rho\cos(\phi-\phi')}$$ — Poisson's integral. Answer: as stated; the kernel is positive, has unit angular integral, and peaks at $\phi'=\phi$ as $\rho\to b$. Check: unit normalization to $10^{-12}$; reproduces $\cos\phi'$ data as $(\rho/b)\cos\phi$; numerically harmonic for step data (test_p27_poisson_integral).

Solution

With no interior charge, (2.98) keeps only the surface term $\Phi=-\frac1{4\pi}\oint\Phi\,\partial G_D/\partial n'\,dl'$ (2-D: a line integral, the $z'$ length already absorbed in the line-charge normalization). Differentiate P14's closed form radially at $\rho'=b$; writing $D=\rho^2+b^2-2b\rho\cos\Delta$, $\Delta=\phi-\phi'$:

\[\frac{\partial G_D}{\partial\rho'}\Big|_{\rho'=b} =\frac{2\rho^2b-2b^2\rho\cos\Delta}{b^2\,D}-\frac{2b-2\rho\cos\Delta}{D} =\frac{2}{b}\,\frac{\rho^2-b^2}{D}.\]

The outward normal of the interior region is $+\hat\rho'$, so $\partial G/\partial n'=\partial G/\partial\rho'|_{\rho'=b}$ and, with $dl'=b\,d\phi'$,

\[\Phi=-\frac1{4\pi}\int_0^{2\pi}\Phi(b,\phi')\,\frac2b\frac{\rho^2-b^2}{D}\,b\,d\phi' =\frac1{2\pi}\int_0^{2\pi}d\phi'\,\Phi(b,\phi')\,\frac{b^2-\rho^2}{D}\, .\]

Properties worth logging (all tested): setting $\Phi(b,\cdot)\equiv1$ must return $1$ (an equipotential cylinder has a constant interior), so the kernel has unit angular integral; at $\rho=0$ it is uniform — the mean-value theorem again; and as $\rho\to b^-$ it becomes a delta family in $\phi'-\phi$, reproducing the boundary data pointwise where it is continuous. This kernel is the 2-D twin of the sphere's (3.50).

P28. Exercise 3.9.2 — Split cylinder by Poisson's integralWilcox 2e §3.13, p.132

Use P27 to re-derive the interior potential (3.131) of a long cylinder of radius $b$ whose half-surfaces are at $V_1$ ($-\pi/2<\phi<\pi/2$) and $V_2$ ($\pi/2<\phi<3\pi/2$) (the book's Fig. 3.12). Answer: $$\Phi(\rho,\phi)=\frac{V_1+V_2}{2}+\frac{V_1-V_2}{\pi} \arctan\!\left[\frac{2(\rho/b)\cos\phi}{1-(\rho/b)^2}\right].$$ Check: Poisson quadrature (panels split at the data jumps) matches the closed form to $10^{-9}$ over the interior (test_p28_halves_via_poisson).

Solution

Split the data as the mean plus an odd square wave: $\Phi(b,\phi')=\frac{V_1+V_2}2+\frac{V_1-V_2}2\,{\rm sq}(\phi')$, with ${\rm sq}=+1$ on the right half, $-1$ on the left. The mean passes through the unit-normalized kernel untouched. For the square-wave part, the needed antiderivative is standard:

\[\int\frac{d\phi'}{\rho^2+b^2-2b\rho\cos(\phi-\phi')} =\frac{2}{b^2-\rho^2}\arctan\!\left[\frac{b+\rho}{b-\rho}\tan\frac{\phi'-\phi}{2}\right],\]

(differentiate to verify; $t=\tan\frac{\phi'-\phi}2$ substitution). Evaluate between the jump points $\phi'=\pm\pi/2$ for the two halves and combine the four arctangents with the addition law $\arctan u-\arctan v=\arctan\frac{u-v}{1+uv}$; after the trigonometric dust settles (the $\tan\frac{\pm\pi/2-\phi}2$ pairs combine to $2(\rho/b)\cos\phi/(1-\rho^2/b^2)$) one lands exactly on the boxed (3.131). The module takes the complementary route: it verifies the identity by high-accuracy quadrature of the Poisson integral against the closed form — and P29 gets (3.131) a third way, by summing the Fourier series, so the three derivations (series, Green function, complex sum) triangulate the result.

P29. Exercise 3.9.3 — Summing the split-cylinder seriesWilcox 2e §3.13, p.132

Fill in the derivation of (3.131) by summing the series (3.130). Hint: set $Z=(\rho/b)e^{i(\phi-\pi/2)}$ and note $(\rho/b)^{2n+1}\sin[(2n+1)(\phi-\pi/2)]={\rm Im}\,Z^{2n+1}$. Answer: $\displaystyle\sum_{n\ge0}\frac{Z^{2n+1}}{2n+1}={\rm arctanh}\,Z =\tfrac12\ln\frac{1+Z}{1-Z}$, whose imaginary part gives $\sum_{n\ge0}\frac{t^{2n+1}\sin[(2n+1)\psi]}{2n+1} =\tfrac12\arctan\frac{2t\sin\psi}{1-t^2}$; with $\psi=\phi-\pi/2$ this turns (3.130) into (3.131). On the symmetry axis $\phi=0$ the closed form collapses to $\frac{V_1+V_2}2+\frac{2(V_1-V_2)}{\pi}\arctan\frac{\rho}{b}$. Check: the lemma on random $(t,\psi)$ to $10^{-10}$; series (3.130) $=$ closed form (3.131); the axis double-angle collapse (test_p29_sum_the_series).

Solution

Term by term, for $|Z|<1$,

\[\sum_{n=0}^{\infty}\frac{Z^{2n+1}}{2n+1} =\frac12\left[\sum_{k\ge1}\frac{Z^k}{k}-\sum_{k\ge1}\frac{(-Z)^k}{k}\right] =\frac12\left[-\ln(1-Z)+\ln(1+Z)\right]=\frac12\ln\frac{1+Z}{1-Z}.\]

Take the imaginary part with $Z=te^{i\psi}$:

\[{\rm Im}\,\frac12\ln\frac{1+Z}{1-Z}=\frac12\arg\frac{1+Z}{1-Z},\qquad \frac{1+Z}{1-Z}=\frac{(1+Z)(1-\bar Z)}{|1-Z|^2} =\frac{1-t^2+2it\sin\psi}{|1-Z|^2},\]

so the argument is $\arctan\bigl[2t\sin\psi/(1-t^2)\bigr]$ (the real part $1-t^2>0$ keeps the principal branch honest for $t<1$). Now insert $t=\rho/b$, $\psi=\phi-\pi/2$, $\sin\psi=-\cos\phi$ into (3.130):

\[\Phi=\frac{V_1+V_2}2-\frac{2(V_1-V_2)}{\pi}\cdot \frac12\arctan\frac{-2t\cos\phi}{1-t^2} =\frac{V_1+V_2}2+\frac{V_1-V_2}{\pi}\arctan\frac{2t\cos\phi}{1-t^2},\]

which is (3.131). On the symmetry axis ($\phi=0$, toward the $V_1$ half) the double-angle identity $\arctan\frac{2t}{1-t^2}=2\arctan t$ ($t<1$) collapses it further to

\[\Phi(\rho,0)=\frac{V_1+V_2}{2}+\frac{2(V_1-V_2)}{\pi}\arctan\frac{\rho}{b},\]

a clean arctangent ramp from the mean at the center to $V_1$ at the wall — the form the code checks the series against point by point.

P30. Exercise 3.9.4 — Split cylinder: the exterior solutionWilcox 2e §3.13, p.132

(a) By Fourier methods, find $\Phi_{\rm out}(\rho,\phi)$ for the split cylinder in the exterior region $\rho>b$. (b) Produce a closed form (by summing as in P29 or otherwise). Given the interior and exterior series, how does one map one onto the other? Answer: (a) replace $(\rho/b)^{2n+1}\to(b/\rho)^{2n+1}$ in (3.130); (b) $$\Phi_{\rm out}=\frac{V_1+V_2}{2}+\frac{V_1-V_2}{\pi} \arctan\!\left[\frac{2(b/\rho)\cos\phi}{1-(b/\rho)^2}\right] =\Phi_{\rm in}\!\left(\frac{b^2}{\rho},\phi\right)$$ — the interior solution evaluated at the inversion point: swap $\rho/b\leftrightarrow b/\rho$. Check: exterior series $=$ closed form; the $\rho\to b^2/\rho$ identity to $10^{-12}$; $\rho\to\infty$ average; boundary values recovered (test_p30_exterior_halves).

Solution

(a) Outside, regularity at infinity replaces regularity at the axis: from (3.118) keep the constant and the $\rho^{-n}$ terms (the $\ln\rho$ term is absent because the cylinder carries zero net line charge — the potential must stay bounded). The boundary matching at $\rho=b$ is the same Fourier computation as the interior one — identical coefficients — so every $(\rho/b)^{2n+1}$ simply becomes $(b/\rho)^{2n+1}$:

\[\Phi_{\rm out}=\frac{V_1+V_2}2-\frac{2(V_1-V_2)}{\pi}\sum_{n\ge0} \Bigl(\frac b\rho\Bigr)^{2n+1}\frac{\sin[(2n+1)(\phi-\pi/2)]}{2n+1}.\]

(b) The P29 lemma applies verbatim with $t=b/\rho<1$, giving the boxed arctangent. The structural answer to the last question: interior and exterior are exchanged by the inversion $\rho\mapsto b^2/\rho$ — in 2-D, inversion maps harmonic functions to harmonic functions with no radial prefactor (unlike the 3-D Kelvin transform's $a/r$ weight), because $w\mapsto b^2/\bar w$… more plainly, $b^2/z$ is analytic (P33) and harmonicity is conformally invariant. Both series are the same function of the variable $t=\min(\rho,b^2/\rho)/b$; the boundary data (and the $\rho$-independent average $\tfrac{V_1+V_2}2$ at the two extremes $\rho\to0,\infty$) match automatically. P33 rederives exactly this by the conformal map $w=b^2/z$.

P31. Exercise 3.9.5 — Summing the delta-data seriesWilcox 2e §3.13, p.132

The point-surface-potential series of P25 can be summed in closed form. Do so (and compare with the expected P27 answer). Answer: $$\Phi(\rho,\phi)=\frac{V_0}{2\pi}\, \frac{b^2-\rho^2}{\rho^2+b^2-2b\rho\cos\phi}$$ — i.e. $V_0$ times the Poisson kernel: the P25 series is the P27 integral with $\Phi(b,\phi')=V_0\delta(\phi')$. Check: $\tfrac12+\sum t^m\cos m\phi=\tfrac12(1-t^2)/(1+t^2-2t\cos\phi)$ on random inputs to $10^{-10}$; P25 partial sums vs this closed form (test_p31_sum_delta_series, test_p25_cylinder_delta_series).

Solution

With $t=\rho/b$, sum the geometric cosine series through $W=te^{i\phi}$:

\[\sum_{m=1}^\infty t^m\cos m\phi={\rm Re}\sum_{m\ge1}W^m ={\rm Re}\,\frac{W}{1-W}=\frac{t\cos\phi-t^2}{1-2t\cos\phi+t^2}.\]

Then

\[\frac{\Phi}{V_0/\pi}=\frac12+\sum_mt^m\cos m\phi =\frac{(1-2t\cos\phi+t^2)+2t\cos\phi-2t^2}{2(1-2t\cos\phi+t^2)} =\frac{1-t^2}{2\,(1-2t\cos\phi+t^2)},\]

so $\Phi=\frac{V_0}{2\pi}\frac{1-t^2}{1-2t\cos\phi+t^2}$, and multiplying numerator and denominator by $b^2$ gives the boxed form. Consistency with P27 is immediate: putting $\Phi(b,\phi')=V_0\,\delta(\phi')$ under Poisson's integral just evaluates the kernel at $\phi'=0$. So the three objects — the separation-of-variables series (P25), the Green-function kernel (P27), and this closed form — are one function; the delta-data problem is the cylinder's own Green identity read backwards (the kernel is the boundary "response function"). This is also the generating identity behind P29: integrating the present formula over half the circle reproduces the split-cylinder arctangent.

P32. Exercise 3.11.1 — Conformal map of the box onto a half-annulusWilcox 2e §3.13, pp.132–133; adapted by the book from Brown & Churchill

The P18 box problem is mapped to the region between two concentric semicircles (the book's Fig. 3.27); every boundary is at zero potential except the segment $v=0$, $-r_0<u<-1$, which is at $V$. (a) Show $w=e^{\pi z/b}$ maps the P18 geometry and boundary data onto that region. (b) Deduce that the potential in the half-annulus is (with $m=2n-1$) $$\Phi(r,\theta)=\frac{4V}{\pi}\sum_{n=1}^{\infty}\frac1m\, \frac{\sinh\!\bigl(\tfrac{m\pi\theta}{\ln r_0}\bigr)}{\sinh\!\bigl(\tfrac{m\pi^2}{\ln r_0}\bigr)}\, \sin\!\Bigl(\tfrac{m\pi\ln r}{\ln r_0}\Bigr),$$ $(r,\theta)$ polar coordinates in the $w$-plane. Answer: the map sends $x=0\to$ unit semicircle, $x=a\to$ radius-$r_0$ semicircle ($r_0=e^{\pi a/b}$), $y=0\to(1,r_0)$, and the $V$-side $y=b\to(-r_0,-1)$; pulling P18 back through $x=\frac b\pi\ln r$, $y=\frac b\pi\theta$ gives the series. Check: Cauchy–Riemann residual numerically zero and $f'\neq0$ at interior points; all four boundary images verified; the half-annulus series equals the box series under the substitution to $10^{-9}$; polar-Laplacian $\approx0$; boundary data reproduced (test_p32_map_and_boundaries, test_p32_semicircle_potential).

Solution

(a) Write $w=e^{\pi z/b}$, $z=x+iy$: then $|w|=e^{\pi x/b}$ and $\arg w=\pi y/b$. The box $0<x<a$, $0<y<b$ therefore maps to $1<|w|<e^{\pi a/b}\equiv r_0$, $0<\arg w<\pi$: the upper half-annulus. The exponential is entire with $f'=\frac\pi be^{\pi z/b}\neq0$, so the map is conformal on the closed box, and the conformal-mapping theorem (§3.11: pulled back through an analytic map, constant-Dirichlet data stays constant-Dirichlet) transfers the boundary values piece by piece: $x=0$ (grounded) $\to$ the inner arc $|w|=1$; $x=a$ (grounded) $\to$ the outer arc $|w|=r_0$; $y=0$ (grounded) $\to$ $\arg w=0$, the segment $(1,r_0)$; and the charged side $y=b$ ($\Phi=V$) $\to$ $\arg w=\pi$, i.e. $v=0$ with $-r_0<u<-1$ — exactly the advertised layout. (b) Solving in the $w$-plane is not necessary — invert the map. A point $(r,\theta)$ in the half-annulus pulls back to

\[x=\frac{b}{\pi}\ln r\in(0,a),\qquad y=\frac{b}{\pi}\theta\in(0,b),\]

and harmonicity survives the pullback, so $\Phi_{\rm ann}(r,\theta)= \Phi_{\rm box}(x,y)$ with P18's series. Substituting (and using $a=\frac b\pi\ln r_0$):

\[\frac{m\pi x}{a}=\frac{m\pi\ln r}{\ln r_0},\qquad \frac{m\pi y}{a}=\frac{m\pi\theta}{\ln r_0},\qquad \frac{m\pi b}{a}=\frac{m\pi^2}{\ln r_0},\]

which turns the box series exactly into the quoted half-annulus series. Note the effective coordinates: $\ln r$ and $\theta$ are the real and imaginary parts of $\log w$ — the map's inverse — so the "curvilinear rectangle" $(\ln r,\theta)$ is the box again; conformal mapping never did anything but relabel the harmonics (~MA-06). The code verifies the map numerically (Cauchy–Riemann residuals at interior points, boundary tracing of all four sides) and the potential identity on random interior points.

P33. Exercise 3.11.2 — Exterior of the split cylinder by inversionWilcox 2e §3.13, p.133

Using the conformal map $w=b^2/z$, obtain the exterior potential $\Phi_{\rm out}(\rho,\phi)$ of the split cylinder of §3.9 from the interior solution (3.131). Answer: $w=b^2/z$ maps $\rho>b$ onto $\rho_w<b$ (boundary to boundary, $\phi_w=-\phi$), and since (3.131) is even in $\phi$, $$\Phi_{\rm out}(\rho,\phi)=\Phi_{\rm in}\Bigl(\frac{b^2}{\rho},\phi\Bigr) =\frac{V_1+V_2}{2}+\frac{V_1-V_2}{\pi} \arctan\!\left[\frac{2(b/\rho)\cos\phi}{1-(b/\rho)^2}\right],$$ in agreement with P30. Check: pullback equals the P30 closed form to $10^{-12}$; harmonic outside; Cauchy–Riemann residual of $b^2/z$ numerically zero (test_p33_inversion_map).

Solution

$f(z)=b^2/z$ is analytic for $z\neq0$ with $f'=-b^2/z^2\neq0$, hence conformal on the exterior $\rho>b$ (the puncture at $\infty$ maps to the regular point $w=0$). Writing $z=\rho e^{i\phi}$:

\[w=\frac{b^2}{\rho}\,e^{-i\phi}\;\Longrightarrow\; \rho_w=\frac{b^2}{\rho}<b,\qquad \phi_w=-\phi,\]

so the exterior maps onto the punctured interior disk, and the circle $\rho=b$ maps onto itself with $\phi\to-\phi$. Crucially the boundary data survive: reflection $\phi\to-\phi$ maps the right half-cylinder to itself and the left to itself ($\cos\phi$ even), so the $V_1/V_2$ split is preserved. By the conformal-mapping theorem, $H(z)\equiv\Phi_{\rm in}(w(z))$ is harmonic in $\rho>b$ and takes the correct boundary values; it is also bounded at infinity ($w\to0$ gives the average $\tfrac{V_1+V_2}2$ — the right physical limit for a neutral boundary). Uniqueness (bounded exterior Dirichlet problem) then forces $\Phi_{\rm out}=H$:

\[\Phi_{\rm out}(\rho,\phi) =\frac{V_1+V_2}{2}+\frac{V_1-V_2}{\pi} \arctan\!\left[\frac{2(b/\rho)\cos(-\phi)}{1-(b/\rho)^2}\right],\]

and $\cos(-\phi)=\cos\phi$ gives the stated form — precisely P30's closed form, now obtained in three lines. The inversion trick is the 2-D image-in-a-circle statement one level up: P14's image point $a^2/\rho'$ is $w=a^2/z$ acting on the source.

Run the worked code: cd MACRO_EM/MACRO_EM-03_boundary_value_problems/code && python3 bvp_greens.py

MACRO_EM-04 — Cylindrical & Spherical Electrostatics (Wilcox Ch. 4 problems)

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-04_cylindrical_spherical

Key equations

\[\frac1{|\vec x-\vec x'|}=\int_0^\infty dk\sum_me^{im\Delta\phi}J_mJ_m'e^{-k(z_>-z_<)}\quad(4.120),\]

Example problems

P1. Exercise 4.1.1 — Taylor series of $J_m$ two waysWilcox 2e §4.16, p.180

Derive the Taylor expansion (4.8), $$J_m(t)=\sum_{n=0}^{\infty}\frac{(-1)^n\,(t/2)^{m+2n}}{n!\,(m+n)!},$$ (a) from the generating function (4.7), $e^{\frac t2(u-\frac1u)}=\sum_m u^mJ_m(t)$, and (b) from the integral representation (4.13), $J_n(t)=i^{-n}\int_0^{2\pi}\frac{d\phi}{2\pi}e^{i(t\cos\phi-n\phi)}$. Answer: both routes give exactly (4.8); with $J_{-m}=(-1)^mJ_m$ (4.10) for negative order. Check: jm_taylor (log-stabilized series) $=$ scipy.jv $=$ jn_intrep_413 to $10^{-12}$, including $m<0$ (test_p1_taylor_series).

Solution

(a) Factor the generating function and expand each exponential:

\[e^{tu/2}\,e^{-t/2u}=\sum_{j=0}^\infty\frac{(t/2)^j}{j!}u^j \sum_{i=0}^\infty\frac{(-1)^i(t/2)^i}{i!}u^{-i}.\]

The coefficient of $u^m$ collects all $(j,i)$ with $j-i=m$, i.e. $j=m+n$, $i=n$:

\[J_m(t)=\sum_{n}\frac{(-1)^n(t/2)^{m+2n}}{n!\,(m+n)!},\]

the sum starting at $n=\max(0,-m)$ — which for $m\ge0$ is (4.8), and for $m<0$ reproduces $(-1)^mJ_{|m|}$ after shifting the index. (b) Expand $e^{it\cos\phi}=\sum_k\frac{(it)^k}{k!}\cos^k\phi$ inside (4.13) and use $\cos^k\phi=2^{-k}(e^{i\phi}+e^{-i\phi})^k$. The $\phi$ average kills every term except those where the binomial supplies $e^{+in\phi}$, i.e. $k=n+2j$ with binomial coefficient $\binom{n+2j}{j}$:

\[J_n=i^{-n}\sum_j\frac{(it)^{n+2j}}{(n+2j)!}\,\frac{1}{2^{n+2j}}\binom{n+2j}{j} =\sum_j\frac{i^{2j}\,(t/2)^{n+2j}}{j!\,(n+j)!} =\sum_j\frac{(-1)^j(t/2)^{n+2j}}{j!\,(n+j)!}.\]
P2. Exercise 4.1.2 — Two Bessel sum rulesWilcox 2e §4.16, p.180

From the plane-wave form of the generating function, $e^{it\cos\phi}=\sum_{m}i^me^{im\phi}J_m(t)$, prove (a) $\sum_{m=-\infty}^{\infty}J_m(t)^2=1$ and (b) $J_0(2t)=\sum_{m=-\infty}^{\infty}(-1)^mJ_m(t)^2$. Answer: (a) is the $\phi$-average of $|e^{it\cos\phi}|^2=1$; (b) is the $\phi$-average of $(e^{it\cos\phi})^2=e^{2it\cos\phi}$. Check: both sums at $t=0.4,1.3,3.1,6.4$ to $10^{-11}$ (test_p2_sum_rules).

Solution

(a) Multiply the expansion by its complex conjugate:

\[1=|e^{it\cos\phi}|^2=\sum_{m,m'}i^{m-m'}e^{i(m-m')\phi}J_mJ_{m'}.\]

Averaging over $\phi\in[0,2\pi)$ keeps only $m=m'$: $1=\sum_mJ_m^2$. (b) Square instead of conjugating: $e^{2it\cos\phi}$ has the same expansion with $t\to2t$, and its $\phi$ average is the $m=0$ term, $J_0(2t)$. On the other side the average of $\bigl(\sum_mi^me^{im\phi}J_m\bigr)^2$ keeps $m'=-m$:

\[J_0(2t)=\sum_m i^{m}i^{-m}J_mJ_{-m}=\sum_m(-1)^mJ_m^2,\]

using $J_{-m}=(-1)^mJ_m$.

P3. Exercise 4.1.3 — The $\int\rho^{m+1}J_m$ integralWilcox 2e §4.16, p.180

Show $$\int_0^a d\rho\,\rho^{m+1}J_m(k\rho)=\frac{a^{m+1}}{k}\bigl(J_{m+1}(ka)-\delta_{m,-1}\bigr).$$ Answer: immediate from the derivative identity $\frac{d}{dt}[t^{m+1}J_{m+1}(t)]=t^{m+1}J_m(t)$; the $\delta_{m,-1}$ is the lower boundary term $J_0(0)=1$. Check: closed form vs Gauss–Legendre quadrature for $m=0,1,2,5$ and $m=-1$ (test_p3_rho_power_integral).

Solution

From the series (4.8), $\frac{d}{dt}\bigl[t^{m+1}J_{m+1}(t)\bigr] =\frac{d}{dt}\sum_n\frac{(-1)^n t^{2m+2n+2}}{2^{m+1+2n}n!(m+n+1)!} =t^{m+1}\sum_n\frac{(-1)^n(t/2)^{m+2n}}{n!(m+n)!}=t^{m+1}J_m(t)$. Substituting $t=k\rho$ and integrating,

\[\int_0^a\rho^{m+1}J_m(k\rho)\,d\rho =\frac{1}{k^{m+2}}\Bigl[t^{m+1}J_{m+1}(t)\Bigr]_0^{ka} =\frac{a^{m+1}}{k}J_{m+1}(ka)-\lim_{t\to0}\frac{t^{m+1}J_{m+1}(t)}{k^{m+2}}.\]

For $m>-1$ the lower limit vanishes ($t^{m+1}J_{m+1}\sim t^{2m+2}$). For $m=-1$ it is $J_0(0)=1$, giving $-1/k=-a^{m+1}\delta_{m,-1}/k$ — the quoted Kronecker term. (Numerically: $J_{-1}=-J_1$ and $\int_0^aJ_1\,d\rho=(1-J_0(ka))/k$, consistent.)

P4. Exercise 4.1.4 — The other two integral representationsWilcox 2e §4.16, p.180

Starting from the characterizations already established (generating function (4.7), representation (4.13)), verify $$J_n(t)=\frac1{2\pi}\int_{-\pi}^{\pi}d\phi\,e^{i(t\sin\phi-n\phi)}\quad(4.15), \qquad J_n(t)=\frac1{\pi}\int_0^{\pi}d\phi\,\cos(t\sin\phi-n\phi)\quad(4.16).$$ Answer: (4.15) is (4.13) after the rotation $\phi\to\pi/2-\phi$ (which trades $\cos$ for $\sin$ and cancels the $i^{-n}$); (4.16) is the real part of (4.15). Check: both quadratures vs scipy.jv for $n=0,2,5$ (test_p4_integral_representations).

Solution

In (4.13) substitute $\phi=\pi/2-\psi$ (a shift plus reflection of the periodic integrand, so the domain stays one full period): $\cos\phi=\sin\psi$ and $e^{-in\phi}=e^{-in\pi/2}e^{in\psi}=i^{-n}e^{in\psi}$, so

\[J_n=i^{-n}\!\int\frac{d\psi}{2\pi}e^{it\sin\psi}\,i^{-n}e^{in\psi} =(-1)^n\!\int_{-\pi}^{\pi}\frac{d\psi}{2\pi}e^{i(t\sin\psi+n\psi)}.\]

Now let $\psi\to-\psi$: the integral becomes $\int e^{-i(t\sin\psi-n\psi)}\frac{d\psi}{2\pi}$, whose value must equal its own conjugate (swap back), i.e. it is real; and multiplying by $(-1)^n=J_{-n}/J_n$ bookkeeping is avoided by noting the result equals $\int e^{i(t\sin\psi-n\psi)}d\psi/2\pi$ directly — Eq. (4.15). For (4.16): split $e^{i(\cdot)}=\cos(\cdot)+i\sin(\cdot)$ on $[-\pi,\pi]$. $\sin(t\sin\phi-n\phi)$ is odd under $\phi\to-\phi$ and integrates to zero; $\cos(t\sin\phi-n\phi)$ is even, so the half-range integral doubles: $J_n=\frac1\pi\int_0^\pi\cos(t\sin\phi-n\phi)\,d\phi$.

P5. Exercise 4.2.1 — Bessel addition theorem and the 2-D deltaWilcox 2e §4.16, pp.180–181

(a) Evaluate $\int_0^{2\pi}\frac{d\alpha}{(2\pi)^2}\,e^{i\vec k_\perp\cdot(\vec x-\vec x')_\perp}$ two different ways ($\alpha$ = cylindrical angle of $\vec k$, book Fig. 4.6) to establish the addition theorem $$J_0(kD)=\sum_{m=-\infty}^{\infty}J_m(k\rho)J_m(k\rho')e^{im(\phi-\phi')}, \qquad D\equiv|(\vec x-\vec x')_\perp|$$ (the book's $\rho'=|\vec x_\perp|$ is a typo for $|\vec x'_\perp|$). (b) Use (a) to show $\int_0^\infty\frac{dk\,k}{2\pi}J_0(kD)=\frac1\rho\delta(\rho-\rho')\delta(\phi-\phi')$. Answer: (a) the direct route gives $J_0(kD)/2\pi$ via (4.13) with $n=0$; the expanded route gives the $m$ sum. (b) the $k$ integral is a delta family: Gaussian-regulated it is $\frac1{4\pi p^2}e^{-D^2/4p^2}$, a unit-mass 2-D delta as $p\to0$. Check: series $=J_0(kD)$ on random geometry; Weber's regulated integral: closed form $=$ quadrature $=$ Fourier–Bessel lattice; unit mass and $1/p^2$ concentration (test_p5_addition_theorem, test_p5_completeness_delta).

Solution

(a) Directly: $(\vec x-\vec x')_\perp$ has some azimuth $\phi_D$, so $\vec k_\perp\cdot(\vec x-\vec x')_\perp=kD\cos(\alpha-\phi_D)$ and (4.13) with $n=0$ gives $\int_0^{2\pi}\frac{d\alpha}{2\pi}e^{ikD\cos(\alpha-\phi_D)}=J_0(kD)$; the extra $1/2\pi$ tags along. Expanded: write $e^{i\vec k_\perp\cdot\vec x_\perp}e^{-i\vec k_\perp\cdot\vec x'_\perp}$ and expand each factor with (4.14), $e^{ik\rho\cos(\phi-\alpha)}=\sum_mi^me^{im(\phi-\alpha)}J_m(k\rho)$:

\[\int_0^{2\pi}\frac{d\alpha}{2\pi}\sum_{m,m'}i^{m-m'}e^{im\phi-im'\phi'} e^{-i(m-m')\alpha}J_m(k\rho)J_{m'}(k\rho') =\sum_mJ_m(k\rho)J_m(k\rho')e^{im(\phi-\phi')}.\]

Equating the two evaluations proves the theorem. (b) Multiply the theorem by $k/2\pi$ and integrate. With the Gaussian regulator $e^{-p^2k^2}$, Weber's second exponential integral gives in closed form

\[\int_0^\infty\frac{k\,dk}{2\pi}J_0(kD)e^{-p^2k^2}=\frac1{4\pi p^2}e^{-D^2/4p^2},\]

a normalized 2-D Gaussian of width $p\sqrt2$ centered at $\vec x_\perp=\vec x'_\perp$: unit mass $\int2\pi D\,dD\,(\cdot)=1$ for every $p$, peak $\propto1/p^2$. As $p\to0$ this is exactly $\delta^2\bigl((\vec x-\vec x')_\perp\bigr) =\frac1\rho\delta(\rho-\rho')\delta(\phi-\phi')$ — the completeness relation (4.39) resolved into azimuthal components.

P6. Exercise 4.3.1 — Normalization at zeros of $J_m'$Wilcox 2e §4.16, p.181

For $\bar k_{mn}=y_{mn}/a$ with $J_m'(y_{mn})=0$, show $$\int_0^a d\rho\,\rho\,[J_m(\bar k_{mn}\rho)]^2 =\frac{a^2}{2}\Bigl(1-\frac{m^2}{y_{mn}^2}\Bigr)[J_m(y_{mn})]^2,$$ using the method the book sketches after Eq. (4.52). Answer: as stated; it is the Neumann-eigenfunction analog of the $J_{m+1}^2$ normalization (4.58). Check: quadrature vs closed form for $(m,n)$ up to $(5,4)$ (test_p6_deriv_zero_normalization).

Solution

Let $u(\rho)=J_m(\bar k\rho)$, which satisfies Bessel's equation $(\rho u')'+(\bar k^2\rho-m^2/\rho)u=0$. Multiply by $2\rho u'$ and regroup into a total derivative:

\[\frac{d}{d\rho}\Bigl[\rho^2u'^2+(\bar k^2\rho^2-m^2)u^2\Bigr]=2\bar k^2\rho u^2 .\]

Integrate from $0$ to $a$. At $\rho=0$ the bracket vanishes ($u\sim\rho^m$ kills $-m^2u^2$ and $\rho^2u'^2$ separately, including $m=0$). At $\rho=a$, $u'(a)=\bar kJ_m'(y)=0$ by the choice of $\bar k$, leaving $(y^2-m^2)J_m(y)^2$. Hence

\[2\bar k^2\int_0^a\rho\,u^2\,d\rho=(y^2-m^2)J_m(y)^2 \;\Longrightarrow\; \int_0^a\rho\,u^2=\frac{a^2}{2}\Bigl(1-\frac{m^2}{y^2}\Bigr)J_m(y)^2 .\]
P7. Exercise 4.4.1 — Conducting wall in cylindrical coordinatesWilcox 2e §4.16, pp.181–182

For the grounded infinite plane $z=0$ (charge in $z>0$; book Fig. 4.7), show the reduced-Green-function method in cylindrical coordinates gives $$G_D=4\int_0^\infty dk\,k\,g(k;z,z')\Bigl[\tfrac12J_0(k\rho)J_0(k\rho') +\sum_{m\ge1}J_mJ_m'\cos m(\phi-\phi')\Bigr] =2\int_0^\infty dk\,k\,g\,J_0(kD),$$ and find $g(k;z,z')$. Answer: $g=\dfrac{e^{-k|z-z'|}-e^{-k(z+z')}}{2k}=\dfrac{\sinh(kz_<)\,e^{-kz_>}}{k}$ — the Ch. 3 result (3.30). Check: $g$ vanishes at $z=0$, carries the unit $-dg/dz$ jump, is symmetric; the assembled Hankel integral equals the image answer $1/|\vec x-\vec x'|-1/|\vec x-\vec x''|$ to $10^{-6}$ (test_p7_wall_green).

Solution

Expand the transverse delta with the $m$-resolved completeness (4.39) and the azimuthal exponentials: $4\pi\delta^3=2\!\int_0^\infty\!k\,dk\sum_me^{im(\phi-\phi')}J_m(k\rho)J_m(k\rho')\,\delta(z-z')$ (Eq. 4.108). Seeking $G$ with the same transverse structure and a reduced $g(k;z,z')$ turns $\nabla^2G=-4\pi\delta$ into the 1-D problem

\[\Bigl(k^2-\frac{\partial^2}{\partial z^2}\Bigr)g=\delta(z-z'),\qquad g(0,z')=0,\quad g\to0\ (z\to\infty).\]

Homogeneous solutions $e^{\pm kz}$: take $\psi_1=\sinh kz$ (wall condition), $\psi_2=e^{-kz}$ (decay). The Wronskian recipe (4.130) with unit jump $-\partial_zg|^+_-=1$ gives $C=1/k$ ($W_z[\sinh kz,e^{-kz}]=-k$), so $g=\sinh(kz_<)e^{-kz_>}/k$, which expands to $\bigl(e^{-k|z-z'|}-e^{-k(z+z')}\bigr)/2k$ — visibly the free part minus its mirror image. The $m$ sum collapses to $J_0(kD)$ by P5's addition theorem, giving the second (Hankel) form; carrying out that integral term by term (free + image, each a Lipschitz integral $\int J_0(kD)e^{-k\Delta}dk=1/\sqrt{D^2+\Delta^2}$) reproduces the image Green function — the numeric check does exactly this comparison.

P8. Exercise 4.4.2 — Conducting half-plane sheet: $\sin m\phi$ expansionWilcox 2e §4.16, p.182

A grounded conducting plate fills the $z$–$x$ plane; free space is $y>0$, i.e. $0<\phi<\pi$ in cylindrical coordinates $(\rho,\phi,z)$. Show by the reduced-Green-function technique that $$G_D=4\int_0^\infty dk\sum_{m=1}^{\infty}J_m(k\rho)J_m(k\rho') \sin(m\phi)\sin(m\phi')\,e^{k(z_<-z_>)}.$$ Answer: as stated — Dirichlet sine modes in $\phi$, free (Wronskian) $g$ in $z$. Check: equals the image pair $1/|\vec x-\vec x'|-1/|\vec x-\vec x''|$ ($\phi''=-\phi'$) on random points; vanishes at $\phi=0,\pi$ (test_p8_halfplane_green).

Solution

The wall now cuts the azimuth: Dirichlet conditions at $\phi=0$ and $\phi=\pi$ select $\sin(m\phi)$, integer $m\ge1$, with completeness $\delta(\phi-\phi')=\frac2\pi\sum_m\sin m\phi\sin m\phi'$ on $(0,\pi)$. The radial delta stays $\int k\,dk\,J_mJ_m'$ (valid per $m$), and $z$ is now the unbounded direction, so its reduced equation $(k^2-\partial_z^2)g=\delta(z-z')$ with decay both ways has the free solution $g=e^{-k|z-z'|}/2k$ (P7 without the wall term). Assembling with $\nabla^2G=-4\pi\delta$:

\[G_D=4\pi\sum_m\frac2\pi\sin m\phi\sin m\phi' \int_0^\infty k\,dk\,J_mJ_m'\,\frac{e^{-k|z-z'|}}{2k} =4\int_0^\infty dk\sum_{m\ge1}J_mJ_m'\sin m\phi\sin m\phi'\,e^{k(z_<-z_>)} .\]

Physically the same object as the plane-image Green function — reflection $y'\to-y'$ is $\phi'\to-\phi'$, and $\sin m\phi\sin m\phi'=\tfrac12[\cos m(\phi-\phi')-\cos m(\phi+\phi')]$ is precisely (source) $-$ (image) of the full-space azimuthal kernel. The test verifies the numerical identity.

P9. Exercise 4.4.3 — Parallel plates driven by a charged disk (Neumann data)Wilcox 2e §4.16, pp.182–183

Parallel plates at $z=0$ and $z=d$ (book Fig. 4.8). The top plate carries the Neumann data $E_z|_{z=d}=E_z^0$ (constant) on the disk $\rho<a$ and $E_z|_{z=d}=0$ outside it. (a) With the bottom plate also Neumann, $E_z|_{z=0}=0$, show that (up to a constant) $$\Phi(\rho,z)=-aE_z^0\int_0^\infty\frac{dk}{k}J_0(k\rho)J_1(ka) \frac{\cosh(kz)}{\sinh(kd)} .$$ (b) With the bottom plate grounded instead, $\Phi|_{z=0}=0$, show $$\Phi(\rho,z)=-aE_z^0\int_0^\infty\frac{dk}{k}J_0(k\rho)J_1(ka) \frac{\sinh(kz)}{\cosh(kd)} .$$ Answer: as stated. (In (a) the $k\to0$ end of the integral is logarithmically divergent — an infinite additive constant, reflecting that a pure-Neumann potential is defined only up to a constant; every field is finite.) Check: both forms are harmonic in the gap; $E_z(z{=}0)=0$ (a) / $\Phi(z{=}0)=0$ (b); $-\partial_z\Phi\to E_z^0$ on the top disk and $\to0$ off it ($e^{-\epsilon k}$-regulated, Richardson $\epsilon\to0$) (test_p9_capacitor_disk).

Solution

No volume charge, so the Neumann representation (2.103) leaves only the surface term $\Phi=\frac1{4\pi}\oint G_N\,\partial_{n'}\Phi\,da'+\langle\Phi\rangle$. Build $G_N$ for the gap by the reduced method (P7 with Neumann walls): $\psi_1=\cosh kz$, $\psi_2=\cosh k(d-z)$, Wronskian $=k\sinh(kd)$, so $g_N=\cosh(kz_<)\cosh(k(d-z_>))/(k\sinh kd)$, and $G_N=2\int k\,dk\,J_0(kD)\,g_N+\dots$ (azimuthally symmetric part suffices — the data is axisymmetric). On the top plate the outward normal is $+\hat z$ and $\partial_{n'}\Phi=\partial_z\Phi|_{z'=d}=-E_z^0$ on the disk. The $\phi'$ integral gives $2\pi J_0(k\rho)J_0(k\rho')$ (addition theorem) and the radial integral is P3 with $m=0$: $\int_0^a\rho'J_0(k\rho')d\rho'=aJ_1(ka)/k$. With $g_N(z,z'{=}d)=\cosh(kz)/(k\sinh kd)$,

\[\Phi=\frac{-E_z^0}{4\pi}\,2\pi\cdot2\int_0^\infty k\,dk\,J_0(k\rho)\frac{aJ_1(ka)}{k} \frac{\cosh kz}{k\sinh kd} =-aE_z^0\int_0^\infty\frac{dk}kJ_0(k\rho)J_1(ka)\frac{\cosh kz}{\sinh kd}.\]

(b) Swapping the bottom BC changes only the reduced function: $\psi_1=\sinh kz$ (Dirichlet at 0), $\psi_2=\cosh k(d-z)$ (Neumann at $d$), $W=-k\cosh(kd)$, so $g(z,d)=\sinh(kz)/(k\cosh kd)$ — the quoted mixed form. Consistency: $-\partial_z\Phi|_{z=d}=aE_z^0\int dk\,J_0(k\rho)J_1(ka)=E_z^0\,\theta(a-\rho)$ (the classic discontinuous Weber–Schafheitlin integral) — the imposed plate data, which the test recovers numerically by regularization.

P10. Exercise 4.4.4 — Capped half-infinite cylinderWilcox 2e §4.16, p.183

Find $G_D$ inside the half-infinite conducting cylinder $\rho<a$, $z>0$, closed by a conducting cap at $z=0$ (all surfaces grounded), by the reduced Green function technique. Answer: $$G_D=2\sum_{m=-\infty}^{\infty}\sum_{n=1}^{\infty}e^{im(\phi-\phi')} \mathcal J_{1m}(k_{mn}\rho)\,\mathcal J_{1m}(k_{mn}\rho')\, \frac{\sinh(k_{mn}z_<)\,e^{-k_{mn}z_>}}{k_{mn}},\qquad k_{mn}=\frac{x_{mn}}{a}.$$ Check: vanishes on the cap and the side wall; symmetric; equals the independent construction (infinite-cylinder $G$ from P16's $\rho$-reduced $g$, minus its image reflected through the cap) to $2\times10^{-5}$ (test_p10_capped_cylinder_green).

Solution

The transverse (bounded) directions get the discrete complete set: $e^{im\phi}/\sqrt{2\pi}$ in azimuth and the Fourier–Bessel functions $\mathcal J_{1m}(k_{mn}\rho)$, which obey Dirichlet at $\rho=a$ ($J_m(x_{mn})=0$) with completeness (4.71) $\sum_n\mathcal J_{1m}(k_{mn}\rho)\mathcal J_{1m}(k_{mn}\rho')=\delta(\rho-\rho')/\rho$. The remaining $z$ problem is P7's half-line equation $(k_{mn}^2-\partial_z^2)g=\delta(z-z')$, $g(0)=0$, $g(\infty)=0$, so $g=\sinh(k z_<)e^{-kz_>}/k$ with $k=k_{mn}$. Assembling ($4\pi\times\frac1{2\pi}=2$):

\[G_D=2\sum_{m,n}e^{im\Delta\phi}\,\mathcal J_{1m}\mathcal J_{1m}'\, \frac{\sinh(k_{mn}z_<)e^{-k_{mn}z_>}}{k_{mn}} .\]

Every factor is manifestly zero on its wall. The check exploits uniqueness the other way round: the same region is (infinite cylinder) minus (mirror through $z=0$), so $G_D$ must equal $G_{\rm cyl}(\Delta z)-G_{\rm cyl}(z+z')$ built from the completely independent $\rho$-reduced representation (4.122)/P16 — the two expansions agree numerically, certifying both.

P11. Exercise 4.6.1 — Finite-domain completeness limits onto the Hankel integralWilcox 2e §4.16, p.183

The chapter asserts that the infinite-domain completeness relation (4.39), $\int_0^\infty k\,dk\,J_\nu(k\rho)J_\nu(k\rho')=\delta(\rho-\rho')/\rho$, is the $a\to\infty$ limit of the finite-domain eigen-sum (4.71), $\sum_n\mathcal J_{1\nu}(k_{\nu n}\rho)\mathcal J_{1\nu}(k_{\nu n}\rho')=\delta(\rho-\rho')/\rho$. Demonstrate the consistency using the large-$n$ zero asymptotics (4.98), $x_{mn}\simeq(n+\tfrac m2-\tfrac14)\pi$. Answer: with $k_n=x_{mn}/a$ the eigenvalues become dense, $\Delta k=\pi/a$, and the normalization $2/[aJ_{m+1}(x_{mn})]^2\to\pi k_n/a$ turns the sum into the Riemann sum of $\int k\,dk\,J_mJ_m'$. Check: zero asymptotics vs jn_zeros (residual = McMahon's next order); Gaussian-regulated: the eigen-lattice sum equals Weber's closed form once $a$ covers the test function, with the wall felt exponentially at small $a$ (test_p11_zero_asymptotics, test_p11_completeness_limit).

Solution

Fix $m$ and write the $n$-th term of (4.71) with weight $w_n=2/[aJ_{m+1}(x_{mn})]^2$. At a zero of $J_m$ the asymptotic amplitude form $J_{m+1}(x)\simeq\sqrt{2/\pi x}\,|\!\cos(\cdot)|=\sqrt{2/\pi x_{mn}}$ (the cosine is $\pm1$ at the partner phase), so

\[w_n\simeq\frac{2}{a^2}\,\frac{\pi x_{mn}}{2}\cdot\frac1{1}\cdot\frac1{a^{-1}} \Big/ a\;=\;\frac{\pi k_n}{a},\]

i.e. $w_n=\pi k_n/a$ with $k_n=x_{mn}/a$. By (4.98) successive zeros are spaced $\Delta x=\pi$, so $\Delta k=\pi/a$ and

\[\sum_n w_nJ_m(k_n\rho)J_m(k_n\rho') =\sum_n \Delta k\;k_n\,J_m(k_n\rho)J_m(k_n\rho') \xrightarrow[a\to\infty]{}\int_0^\infty k\,dk\,J_mJ_m',\]

which is (4.39). The numeric check smears both sides with the Gaussian $e^{-p^2k^2}$: the lattice sum then equals Weber's closed form $\frac1{2p^2}e^{-(\rho^2+\rho'^2)/4p^2}I_\nu(\rho\rho'/2p^2)$ to machine precision once $a$ exceeds the Gaussian support, the small-$a$ deficit dying like the image term $e^{-(2a-\rho-\rho')^2/4p^2}$.

P12. Exercise 4.6.2 — Grounded caps, side at $V$Wilcox 2e §4.16, pp.183–184

A right circular cylinder of radius $a$ and height $L$ (book Fig. 4.9) has both caps ($z=0$ and $z=L$) grounded and the side wall $\rho=a$ (insulated from the caps by narrow gaps) at constant potential $V$. Find $\Phi(\rho,\phi,z)$ inside. Answer: $$\Phi=\frac{4V}{\pi}\sum_{n\ {\rm odd}}\frac1n\, \frac{I_0(n\pi\rho/L)}{I_0(n\pi a/L)}\,\sin\frac{n\pi z}{L}.$$ Check: vanishes on both caps; $\to V$ on the wall (2×10⁻³ with $10^5$ terms, Gibbs-limited); harmonic (FD Laplacian $<10^{-5}$); matches a sparse finite-difference solve of the axisymmetric Laplace problem to $3\times10^{-3}$ (test_p12_cylinder_side_at_V).

Solution

Grounded caps make $z$ the oscillatory direction: $Z_n=\sin(n\pi z/L)$, forcing the separation constant sign that turns the radial equation into the modified Bessel equation (4.92); regularity at $\rho=0$ selects $I_\nu$, and axisymmetric data ($V$ independent of $\phi$) kills all but $\nu=0$:

\[\Phi=\sum_{n\ge1}A_n\,I_0\!\Bigl(\frac{n\pi\rho}{L}\Bigr)\sin\frac{n\pi z}{L}.\]

The wall condition $\Phi(a,z)=V$ is a sine expansion of a constant: $A_nI_0(n\pi a/L)=\frac2L\int_0^LV\sin\frac{n\pi z}L\,dz=\frac{2V}{n\pi}\bigl(1-(-1)^n\bigr)$, i.e. $4V/n\pi$ for odd $n$, zero for even. Hence the quoted series. (The code evaluates the $I_0$ ratio with scaled ive to avoid overflow at large $n\pi a/L$.) Uniqueness is exercised numerically: an independent finite-difference solution of the same boundary-value problem agrees pointwise.

P13. Exercise 4.7.1 — Variational capacitance of the charged diskWilcox 2e §4.16, p.184

(a) Combine the variational principle (3.144), $C^{-1}[\sigma]=2W[\sigma]/Q^2$, with the cylindrical Coulomb expansion (4.120) to show that a thin disk of radius $a$ carrying axisymmetric surface density $\sigma(\rho)$ (total $Q$) has $$C^{-1}[\sigma]=\frac{4\pi^2}{Q^2}\int_0^\infty dk \Bigl[\int_0^a d\rho\,\rho\,J_0(k\rho)\,\sigma(\rho)\Bigr]^2 .$$ (b) With the trial family $\sigma=A+B(\rho/a)^2$, establish the bound $C>0.6213\,a$, and compare with the exact $C=\frac2\pi a=0.6366\,a$ (Ex. 2.6.1). Answer: (a) as stated; (b) optimizing $\beta=B/A$ gives $C_{\max}=0.62126\,a$ at $\beta\simeq7$ — density growing toward the rim, as the exact $\sigma\propto(a^2-\rho^2)^{-1/2}$ does. Check: $\beta=0$ reproduces the uniform-disk value $3\pi a/16=0.58905a$ exactly; optimized bound $>0.62125a$ and $<2a/\pi$; $\beta^*>0$ (test_p13_disk_variational).

Solution

(a) Put both points of $W=\frac12\int\!\!\int\sigma\sigma'/|\vec x-\vec x'|$ on the plane $z=z'=0$ and insert (4.120): $e^{-k(z_>-z_<)}\to1$, and the $\phi,\phi'$ integrals of $e^{im(\phi-\phi')}$ keep only $m=0$, each giving $2\pi$:

\[W=\frac12\int_0^\infty dk\,(2\pi)^2\Bigl[\int_0^a\rho\,d\rho\,J_0(k\rho)\sigma\Bigr]^2 ,\]

so $C^{-1}=2W/Q^2$ is the quoted functional — every trial density gives a lower bound on $C$ (Thompson, §3.10). (b) The two radial integrals are P3 closed forms: $\int_0^a\rho J_0=aJ_1(t)/k$ and, integrating $\rho^3J_0$ by parts with the same identity, $\int_0^a\rho(\rho/a)^2J_0=\frac ak\bigl(J_1(t)-\tfrac{2J_2(t)}{t}\bigr)$, $t=ka$. With $Q=\pi a^2A(1+\beta/2)$, $C(\beta)$ is a ratio of quadratics in $\beta$; numerical maximization gives $C=0.62126\,a$ at $\beta=7.0$ — matching the book's $0.6213$ and safely below the exact $2a/\pi$. The uniform member $\beta=0$ lands on $3\pi a/16$, the same number the Ch. 3 notes-check produced by real-space quadrature — two independent representations of one variational value.

P14. Exercise 4.7.2 — Neumann patch on a half-spaceWilcox 2e §4.16, pp.184–185

The half-space $z>0$ is bounded by a Neumann surface: on the disk $\rho<a$ of the plane $z=0$, $-\partial\Phi/\partial z=E_z^0$ (constant), and $E_z=0$ on the rest of the plane. Using the Neumann Green function and (4.120), show $$\Phi(\rho,z)=E_z^0\,a\int_0^\infty\frac{dk}{k}\,J_0(k\rho)\,J_1(ka)\,e^{-kz}.$$ Answer: as stated; on the axis it sums to $\Phi(0,z)=E_z^0(\sqrt{a^2+z^2}-z)$, and far away $\Phi\to E_z^0a^2/2z$ (the monopole of the patch flux). Check: axis quadrature vs closed form ($10^{-7}$); $-\partial_z\Phi\to E_z^0$ on the patch and $\to0$ off it (Richardson in $z$); far-field monopole (test_p14_patch_neumann).

Solution

The half-space Neumann function adds the same-sign image: reduced $g_N=\bigl(e^{-k|z-z'|}+e^{-k(z+z')}\bigr)/2k$, so on the wall $g_N(z,0)=e^{-kz}/k$. With no volume charge, (2.103) leaves $\Phi=\frac1{4\pi}\oint G_N\,\partial_{n'}\Phi\,da'$; the outward normal of the region is $-\hat z$, so on the patch $\partial_{n'}\Phi=-\partial_{z'}\Phi=E_z^0$. The azimuthal integral gives $2\pi J_0(k\rho)J_0(k\rho')$ and the radial one $aJ_1(ka)/k$ (P3):

\[\Phi=\frac{E_z^0}{4\pi}\,2\pi\cdot2\int_0^\infty k\,dk\, J_0(k\rho)\,\frac{aJ_1(ka)}{k}\,\frac{e^{-kz}}{k} =E_z^0a\int_0^\infty\frac{dk}kJ_0J_1(ka)e^{-kz}.\]

On the axis ($J_0=1$) the integral is elementary: $\int_0^\infty J_1(ka)e^{-kz}dk/k=(\sqrt{a^2+z^2}-z)/a$. Gauss's law sanity check: the patch injects flux $\pi a^2E_z^0$ into the half-space, so far away $\Phi\simeq(\pi a^2E_z^0/2\pi)/r=E_z^0a^2/2r$ — the $1/2$ because the flux fills a half-space; the closed form's large-$z$ expansion agrees.

P15. Exercise 4.7.3 — Wronskians of Bessel pairsWilcox 2e §4.16, p.185

(a) Using the differential equation $\bigl[\frac{d^2}{dt^2}+\frac1t\frac d{dt}-\frac{\nu^2}{t^2}+1\bigr]J_{\pm\nu}=0$, show $W_t[J_\nu,J_{-\nu}]=C/t$ with $C$ constant. (b) Using the large-$t$ asymptotics, evaluate $W_t[J_\nu,J_{-\nu}]=-\dfrac{2\sin\nu\pi}{\pi t}$ and, for integer $m$, $W_t[J_m,N_m]=\dfrac{2}{\pi t}$. Answer: as stated — these are the constants that normalize every reduced Green function of the chapter. Check: $t\,W$ constant over $t$ (spread $<10^{-7}$) and equal to the closed forms, by finite-difference Wronskians for $\nu=0.3,0.6,1.7$ and $m=0,2,5$ (test_p15_wronskians).

Solution

(a) With $u=J_\nu$, $v=J_{-\nu}$ (same equation, same $\nu^2$),

\[W'=uv''-vu''=-\frac1t\,(uv'-vu')=-\frac Wt \quad\Longrightarrow\quad (tW)'=0,\ \ W=\frac Ct .\]

(b) Evaluate $C$ where the functions are simple: $J_{\pm\nu}(t)\to\sqrt{2/\pi t}\cos(t\mp\nu\pi/2-\pi/4)$. Then

\[W\to\frac{2}{\pi t}\bigl[\cos\theta_+(-\sin\theta_-)-\cos\theta_-(-\sin\theta_+)\bigr] =\frac{2}{\pi t}\sin(\theta_+-\theta_-)=-\frac{2\sin\nu\pi}{\pi t},\]

where $\theta_\pm=t\mp\nu\pi/2-\pi/4$ and the $O(t^{-3/2})$ derivative corrections drop out of the constant. For the Neumann function use its definition $N_\nu=(J_\nu\cos\nu\pi-J_{-\nu})/\sin\nu\pi$:

\[W[J_\nu,N_\nu]=\frac{\cos\nu\pi\,W[J_\nu,J_\nu]-W[J_\nu,J_{-\nu}]}{\sin\nu\pi} =\frac{2\sin\nu\pi/\pi t}{\sin\nu\pi}=\frac2{\pi t},\]

finite as $\nu\to m$ — the integer-order limit quoted.

P16. Exercise 4.7.4 — Reduced Green functions of the conducting cylinderWilcox 2e §4.16, pp.185–186

An infinite grounded conducting cylinder of radius $a$ lies along $z$ (book Fig. 4.10). Assume $$G_D=4\pi\sum_{m}\frac{e^{im(\phi-\phi')}}{2\pi}\,\frac1\pi\int_0^\infty dk\,\cos[k(z-z')]\,g_m(k;\rho,\rho'),$$ with the matching delta expansion $4\pi\delta^3=4\pi\sum_m\frac{e^{im\Delta\phi}}{2\pi}\frac1\pi\int dk\cos(k\Delta z)\frac{\delta(\rho-\rho')}\rho$. Find the reduced Green function for (a) the exterior and (b) the interior. Answer: with $W_t[I_m,K_m]=-1/t$ fixing $C=1$, $$g_m^{\rm out}=\Bigl[I_m(k\rho_<)-K_m(k\rho_<)\frac{I_m(ka)}{K_m(ka)}\Bigr]K_m(k\rho_>), \qquad g_m^{\rm in}=I_m(k\rho_<)\Bigl[K_m(k\rho_>)-I_m(k\rho_>)\frac{K_m(ka)}{I_m(ka)}\Bigr].$$ Check: wall zeros, decay/regularity, the $-1/\rho'$ jump; free-space member $I_m(k\rho_<)K_m(k\rho_>)$ assembles to $1/|\vec x-\vec x'|$ ($10^{-4}$); interior $G$ vanishes on the wall (test_p16_cylinder_reduced_g).

Solution

Substituting the ansatz into $\nabla^2G=-4\pi\delta$ and matching the delta expansion mode by mode gives the radial problem (4.123),

\[\frac1\rho\frac d{d\rho}\Bigl(\rho\frac{dg_m}{d\rho}\Bigr) -\Bigl(k^2+\frac{m^2}{\rho^2}\Bigr)g_m=-\frac{\delta(\rho-\rho')}{\rho},\]

whose homogeneous solutions are $I_m(k\rho)$, $K_m(k\rho)$. The jump is $dg/d\rho|^+_-=-1/\rho'$, so in the recipe (4.130) $D=-1/\rho$ while $W_\rho[\psi_1,\psi_2]=k\,W_t[I_m,K_m]\cdot(\text{combo})=-(\text{combo})/\rho$: the constant is $C=1$ whenever $\psi_{1,2}$ are unit-coefficient in the $I$, $K$ that carry the Wronskian. (a) Exterior $(a<\rho<\infty)$: $\psi_1$ must vanish at $a$ — $\psi_1=I_m(k\rho)-K_m(k\rho)I_m(ka)/K_m(ka)$; $\psi_2=K_m(k\rho)$ decays. (b) Interior: $\psi_1=I_m(k\rho)$ is the regular one; $\psi_2=K_m(k\rho)-I_m(k\rho)K_m(ka)/I_m(ka)$ vanishes at $a$. In both, the admixed term contributes nothing to the Wronskian, so $C=1$ and $g=\psi_1(\rho_<)\psi_2(\rho_>)$ — the two quoted forms. Dropping the wall ($a\to\infty$ or $a\to0$) leaves $g=I_m(k\rho_<)K_m(k\rho_>)$, Eq. (4.125) with $A=1$: assembled through the $\cos k\Delta z$ integral it must equal $1/|\vec x-\vec x'|$, which the test verifies — that is the Wronskian derivation of the cylindrical free-space Green function.

P17. Exercise 4.7.5 — Toroid of rectangular cross-sectionWilcox 2e §4.16, pp.186–187

A conducting toroidal box (book Fig. 4.11): height $L$ (caps $z=0,L$), inner radius $a$, outer radius $b$, all grounded. Construct the interior Dirichlet Green function in cylindrical coordinates, taking $\rho$ as the non-oscillatory direction (the book's hint). Answer: with $k_n=n\pi/L$ and $\psi_1=I_m(k\rho)K_m(ka)-K_m(k\rho)I_m(ka)$ (zero at $a$), $\psi_2=I_m(k\rho)K_m(kb)-K_m(k\rho)I_m(kb)$ (zero at $b$), $$G_D=\frac4L\sum_{m=-\infty}^\infty\sum_{n=1}^\infty e^{im(\phi-\phi')}\sin(k_nz)\sin(k_nz')\, \frac{\psi_1(k_n\rho_<)\,\psi_2(k_n\rho_>)}{I_m(k_na)K_m(k_nb)-K_m(k_na)I_m(k_nb)} .$$ Check: reduced $g$ vanishes at both radii with the $-1/\rho'$ jump; assembled $G$ vanishes on all four walls, is symmetric, and satisfies $G\,R\to1$ near the source (Richardson in the offset) (test_p17_toroid_green).

Solution

Both $z$ (grounded caps) and $\phi$ (periodic) are oscillatory; $\rho$ carries the delta:

\[\delta^3=\frac{\delta(\rho-\rho')}\rho\cdot\frac1{2\pi}\sum_me^{im\Delta\phi} \cdot\frac2L\sum_n\sin k_nz\,\sin k_nz' .\]

Each $(m,n)$ mode obeys the modified radial equation (4.123) with $k=k_n$ — modified because the $z$ eigenvalue entered with the sign that makes $e^{\pm ikz}\to\sin$. Two-wall Dirichlet conditions pick the quoted $\psi_1$, $\psi_2$ (each a $I,K$ combination vanishing at its wall). Their Wronskian: bilinearity and $W[I,K]=-1/\rho$ give

\[W_\rho[\psi_1,\psi_2] =\bigl[I_m(ka)K_m(kb)-K_m(ka)I_m(kb)\bigr]\cdot\frac{1}{\rho}\times(-1)^{\#} =\frac{K_m(ka)I_m(kb)-I_m(ka)K_m(kb)}{\rho},\]

so $C=D/W=(-1/\rho)/W$ gives the quoted denominator. Assembling with the mode weights, $4\pi\cdot\frac1{2\pi}\cdot\frac2L=\frac4L$. (The code evaluates everything in ive/kve scaled form and falls back to the exact $m\gg kb$ power law — the 2-D annulus modes of P23 — where the scaled products underflow.)

P18. Exercise 4.7.6 — The cylindrical Coulomb expansion at workWilcox 2e §4.16, p.187

(a) Given the representation (4.120), $$\frac1{|\vec x-\vec x'|}=\int_0^\infty dk\sum_{m=-\infty}^\infty e^{im(\phi-\phi')}J_m(k\rho)J_m(k\rho')\,e^{-k(z_>-z_<)},$$ verify explicitly that $\nabla^2|\vec x-\vec x'|^{-1}=-4\pi\delta^3$, using the delta expansion (4.108). (b) Show that averaging $1/|\vec x-\vec x'|$ over a disk of radius $a$ (source coordinates $\rho'\le a$, all $\phi'$, fixed $z'$) gives $$\int_0^a\rho'd\rho'\int_0^{2\pi}\frac{d\phi'}{|\vec x-\vec x'|} =2\pi a\int_0^\infty\frac{dk}kJ_0(k\rho)J_1(ka)e^{-k|z-z'|}.$$ Answer: (a) each mode is annihilated by the operator except for the kink of $e^{-k|z-z'|}$, whose $-2k\,\delta(z-z')$ reassembles (4.108); (b) as stated. Check: (4.120) equals $1/R$ on random points ($10^{-8}$); the disk integral: 2-D quadrature vs the closed $k$-form ($10^{-7}$) (test_p18_coulomb_cylJ, test_p18_disk_source_integral).

Solution

(a) Apply the cylindrical Laplacian mode by mode. The $\rho,\phi$ part of each term satisfies Bessel's equation: $\bigl[\frac1\rho\partial_\rho(\rho\partial_\rho)-\frac{m^2}{\rho^2}\bigr]J_m(k\rho)e^{im\Delta\phi} =-k^2J_me^{im\Delta\phi}$. The $z$ factor satisfies $\partial_z^2e^{-k|z-z'|}=k^2e^{-k|z-z'|}-2k\,\delta(z-z')$ — the $+k^2$ cancels the $-k^2$, leaving only the kink term:

\[\nabla^2\frac1R=-2\delta(z-z')\int_0^\infty k\,dk\sum_me^{im\Delta\phi}J_mJ_m' =-4\pi\,\delta^3(\vec x-\vec x'),\]

where the last equality is exactly the expansion (4.108) of the three-dimensional delta. (b) Integrate (4.120) over the disk: the $\phi'$ integral kills all $m\ne0$ (factor $2\pi\delta_{m0}$), and the radial integral is P3's $m=0$ case, $\int_0^a\rho'J_0(k\rho')d\rho'=aJ_1(ka)/k$:

\[\int_{\rm disk}\frac{da'}{R} =2\pi\int_0^\infty dk\,J_0(k\rho)\,\frac{aJ_1(ka)}k\,e^{-k|z-z'|},\]

the quoted form — the potential of a uniformly charged disk (unit surface density), and the workhorse behind P9, P13, P14.

P19. Exercise 4.8.1 — Summing the wedge Green functionWilcox 2e §4.16, pp.187–188

Eq. (4.143) gives the open-wedge (angle $\beta$, grounded flats, line-charge source; book Fig. 4.12) Dirichlet Green function as $$G_D=\sum_{n=1}^{\infty}\frac4n\Bigl(\frac{\rho_<}{\rho_>}\Bigr)^{\gamma} \sin\frac{n\pi\phi}{\beta}\sin\frac{n\pi\phi'}{\beta},\qquad\gamma=\frac{n\pi}\beta.$$ Using the §3.9 summation method, sum it to the closed form $$G_D=\ln\!\left[\frac{1+u^{2q}-2u^{q}\cos\bigl(q(\phi+\phi')\bigr)} {1+u^{2q}-2u^{q}\cos\bigl(q(\phi-\phi')\bigr)}\right], \qquad u=\frac{\rho_<}{\rho_>},\ q=\frac\pi\beta,$$ and confirm that $\beta=\pi/2$ recovers the quadrant image answer of Ex. 3.1.3. Answer: as stated. Check: series $=$ closed form ($10^{-9}$, three $\beta$'s); zero on both flats; $\beta=\pi/2$ equals the $\rho^4$-log quadrant formula (test_p19_wedge_closed_form).

Solution

Use $\sin A\sin B=\tfrac12[\cos(A-B)-\cos(A+B)]$ and the elementary complex sum $\sum_{n\ge1}\frac{x^n}n\cos n\theta =-\tfrac12\ln(1-2x\cos\theta+x^2)$ (real part of $-\ln(1-xe^{i\theta})$, $0\le x<1$). With $x=u^{q}$ and $\theta_\mp=q(\phi\mp\phi')$:

\[G_D=\sum_n\frac2n u^{nq}\bigl[\cos n\theta_--\cos n\theta_+\bigr] =\ln\frac{1-2u^q\cos\theta_++u^{2q}}{1-2u^q\cos\theta_-+u^{2q}},\]

the quoted form. Both flats are grounded on inspection: at $\phi=0$ or $\phi=\beta$, $\cos\theta_+=\cos\theta_-$ and the ratio is 1. For $\beta=\pi/2$ ($q=2$) multiply numerator and denominator by $\rho_>^4$:

\[G_D=\ln\frac{\rho^4+\rho'^4-2\rho^2\rho'^2\cos2(\phi+\phi')} {\rho^4+\rho'^4-2\rho^2\rho'^2\cos2(\phi-\phi')},\]

exactly the four-image quadrant Green function of Ex. 3.1.3 (~MACRO_EM-03 P3) — the $w\mapsto w^{q}$ conformal unfolding in Green-function form.

P20. Exercise 4.8.2 — Closed wedge with two grounded arcsWilcox 2e §4.16, p.188

The vacuum wedge of opening $\beta$ is now closed by grounded circular arcs at $\rho=a$ and $\rho=b$ ($a<b$; book Fig. 4.13). Find $G_D$ for a unit line charge by the reduced Green function method. Answer: $G_D=\dfrac{8\pi}\beta\sum_n\sin\frac{n\pi\phi}\beta\sin\frac{n\pi\phi'}\beta\,g_n(\rho,\rho')$ (4.133) with $$g_n=\frac{(\rho_</\rho_>)^{\gamma}+\bigl(a^2\rho_>/b^2\rho_<\bigr)^{\gamma} -\bigl(\rho_<\rho_>/b^2\bigr)^{\gamma}-\bigl(a^2/\rho_<\rho_>\bigr)^{\gamma}} {2\gamma\,\bigl[1-(a/b)^{2\gamma}\bigr]},\qquad\gamma=\frac{n\pi}\beta .$$ Check: $g_n$ vanishes at both arcs and carries the $-1/\rho'$ jump; the assembled sum vanishes on all four boundaries, is symmetric, and $a\to0$ recovers the outer-arc-only wedge (4.142) (test_p20_wedge_annulus).

Solution

The angular delta on $(0,\beta)$ expands as (4.132), and each $n$ mode obeys the $k=0$ radial equation (4.134), $\frac1\rho\frac d{d\rho}(\rho\frac{dg_n}{d\rho})-\frac{\gamma^2}{\rho^2}g_n=-\frac{\delta(\rho-\rho')}\rho$, with power-law homogeneous solutions $\rho^{\pm\gamma}$ (4.136). Build the two-wall solutions

\[\psi_1=\Bigl(\frac\rho a\Bigr)^{\gamma}-\Bigl(\frac a\rho\Bigr)^{\gamma} \ \ (\psi_1(a)=0),\qquad \psi_2=\Bigl(\frac\rho b\Bigr)^{\gamma}-\Bigl(\frac b\rho\Bigr)^{\gamma} \ \ (\psi_2(b)=0).\]

Their Wronskian: $W_\rho[\rho^{\gamma},\rho^{-\gamma}]=-2\gamma/\rho$, so by bilinearity $W_\rho[\psi_1,\psi_2]=\frac{2\gamma}\rho\bigl[(b/a)^{\gamma}-(a/b)^{\gamma}\bigr]$. With $D=-1/\rho$ the recipe gives $C=-1/\bigl(2\gamma[(b/a)^\gamma-(a/b)^\gamma]\bigr)$, and expanding $C\,\psi_1(\rho_<)\psi_2(\rho_>)$ produces the four-power form quoted (dividing through by $(b/a)^\gamma$ to make every base $\le1$ — the numerically stable grouping the code uses). As $a\to0$ only the first and third powers survive, $g_n\to\frac1{2\gamma}u^\gamma[1-(\rho_>/b)^{2\gamma}]$ — Eq. (4.141) with outer wall $b$, whose $b\to\infty$ limit is P19's open wedge.

P21. Exercise 4.8.3 — Line charge inside a conducting cylinderWilcox 2e §4.16, pp.188–189

Show (reduced Green function or otherwise) that a unit line charge inside the grounded cylinder $\rho=a$ has $$G_D=-\ln\frac{\rho_>^2}{a^2} +2\sum_{m=1}^\infty\frac{\cos m(\phi-\phi')}m\,\rho_<^m \Bigl(\frac1{\rho_>^m}-\frac{\rho_>^m}{a^{2m}}\Bigr).$$ Extra: sum the series (§3.9 method) into the image form of Ex. 3.3.5(b). Answer: series as stated; the sum is $G_D=\ln\dfrac{a^4+\rho^2\rho'^2-2a^2\rho\rho'\cos\Delta\phi} {a^2\,(\rho^2+\rho'^2-2\rho\rho'\cos\Delta\phi)}$ — source line plus opposite image line at the inverse point $a^2/\rho'$. Check: series $=$ image form ($10^{-11}$); both vanish at $\rho=a$ (test_p21_cylinder_2d_series).

Solution

Full azimuth: modes $e^{im\Delta\phi}$, radial equation (4.134) with $\gamma\to m$ and, for $m=0$, solutions $\{1,\ln\rho\}$. Regularity at the axis and $g(a)=0$ give

\[g_0=-\ln\frac{\rho_>}a,\qquad g_m=\frac{\rho_<^m}{2m}\Bigl(\frac1{\rho_>^m}-\frac{\rho_>^m}{a^{2m}}\Bigr)\ (m\ge1),\]

each with the $-1/\rho'$ jump ($W[\ln\rho,1]=-1/\rho$; $W[\rho^m,\rho^{-m}]=-2m/\rho$). Assembling $G=2g_0+4\sum_{m\ge1}\cos m\Delta\phi\,g_m$ (the $4\pi\delta$ normalization with $\delta(\phi)=\frac1{2\pi}\sum e^{im\Delta\phi}$) gives the quoted series. Extra: apply $\sum\frac{x^m}m\cos m\theta=-\frac12\ln(1-2x\cos\theta+x^2)$ twice, with $x_1=\rho_</\rho_>$ (free + ) and $x_2=\rho_<\rho_>/a^2$ (image $-$):

\[G_D=-\ln\frac{\rho_>^2}{a^2} -\ln\frac{1-2x_1\cos\Delta\phi+x_1^2}{1-2x_2\cos\Delta\phi+x_2^2} =\ln\frac{a^4+\rho^2\rho'^2-2a^2\rho\rho'\cos\Delta\phi} {a^2(\rho^2+\rho'^2-2\rho\rho'\cos\Delta\phi)} .\]

Reading the numerator as $a^2\times$(distance to the image at $a^2/\rho'$ weighted by $\rho'/a$) recovers the cylinder-image construction (~MACRO_EM-03 P14).

P22. Exercise 4.8.4 — Point charge in a wedge-shaped holeWilcox 2e §4.16, p.189

An infinite wedge-shaped channel (opening $\beta$, radius $a$) is hollowed out of a conductor; a unit point charge sits inside (book Fig. 4.14). Derive a form of $G_D(\rho,\phi,z;\rho',\phi',z')$ by the reduced Green function method (the book hints that writing the correct 3-D delta expansion is the crux; either $\rho$ or $z$ can carry the reduced equation). Answer: carrying the reduced equation in $\rho$, $$G_D=\frac8\beta\sum_{n=1}^\infty\sin\frac{n\pi\phi}\beta\sin\frac{n\pi\phi'}\beta \int_0^\infty dk\,\cos k(z-z')\;g^{\rm in}_{\nu}(k;\rho,\rho'), \qquad\nu=\frac{n\pi}\beta,$$ with $g^{\rm in}_\nu$ the interior-cylinder reduced Green function of P16(b) at fractional order $\nu$. Check: vanishes on both flats and on the arc $\rho=a$; for $\beta=\pi$ it equals the half-cylinder image construction (interior-cylinder $G$ minus its reflection) to $10^{-6}$ (test_p22_wedge3d_point_charge).

Solution

The correct start (the hint) is

\[4\pi\delta^3=4\pi\,\frac{\delta(\rho-\rho')}\rho\cdot \frac2\beta\sum_{n\ge1}\sin\frac{n\pi\phi}\beta\sin\frac{n\pi\phi'}\beta\cdot \frac1\pi\int_0^\infty dk\,\cos k(z-z'),\]

i.e. Dirichlet sine modes on the restricted azimuth and a cosine transform in the free $z$ direction. The matching ansatz for $G$ turns $\nabla^2G=-4\pi\delta$ into the radial problem (4.123) with $m^2\to\nu^2$, $\nu=n\pi/\beta$ — Bessel's modified equation of fractional order, since nothing in its derivation required integer order (the book's footnote 7). Regularity at the axis and the wall zero at $\rho=a$ give exactly P16(b)'s $g^{\rm in}_\nu=I_\nu(k\rho_<)\bigl[K_\nu(k\rho_>)-I_\nu(k\rho_>)K_\nu(ka)/I_\nu(ka)\bigr]$, $C=1$ as before. Collecting weights, $4\pi\cdot\frac2\beta\cdot\frac1\pi=\frac8\beta$. For $\beta=\pi$ the region is the half-cylinder $y>0$: uniqueness says $G$ must equal $G_{\rm cyl}(\phi-\phi')-G_{\rm cyl}(\phi+\phi')$ built from the full interior cylinder kernel — the test confirms the fractional-order sum collapses onto that integer-order image difference.

P23. Exercise 4.8.5 — Line charge between concentric cylindersWilcox 2e §4.16, p.189

Construct $G_D(\rho,\phi;\rho',\phi')$ for a unit line charge between grounded concentric cylinders, inner radius $b$, outer radius $a$ ($b<\rho'<a$), by a reduced Green function technique. Answer: $G_D=2g_0+4\sum_{m\ge1}\cos m(\phi-\phi')\,g_m$ with $$g_0=-\frac{\ln(\rho_</b)\,\ln(\rho_>/a)}{\ln(a/b)},\qquad g_m=\frac{(\rho_</\rho_>)^m+\bigl(b^2\rho_>/a^2\rho_<\bigr)^m -\bigl(\rho_<\rho_>/a^2\bigr)^m-\bigl(b^2/\rho_<\rho_>\bigr)^m} {2m\,\bigl[1-(b/a)^{2m}\bigr]}.$$ Check: wall zeros and $-1/\rho'$ jumps for $m=0,1,3,4$; assembled $G$ vanishes on both cylinders, is symmetric; $b\to0$ ($1/\ln(a/b)$-extrapolated) recovers P21's single-cylinder answer (test_p23_concentric_2d).

Solution

Identical machinery to P20 with the angle unrestricted (integer $m$, cosine assembly as in P21). For $m\ge1$ the two-wall power solutions are P20's with $(a,b)\to(b,a)$ and $\gamma\to m$. The new case is $m=0$, where the homogeneous solutions are $1$ and $\ln\rho$: take $\psi_1=\ln(\rho/b)$ (zero at the inner wall) and $\psi_2=\ln(\rho/a)$ (zero at the outer). Then $W_\rho[\psi_1,\psi_2]=\ln(\rho/b)\frac1\rho-\ln(\rho/a)\frac1\rho =\frac{\ln(a/b)}\rho$, and $D=-1/\rho$ gives $C=-1/\ln(a/b)$, i.e. the quoted $g_0$ — the 2-D analog of the $\sinh$ ladder, linear in $\ln\rho$ on each side of the source. Consistency limits: $b\to0$ sends $g_0\to-\ln(\rho_>/a)$ and $g_m\to$ P21's modes (the approach is $\propto1/\ln(a/b)$, which the test removes by extrapolation); $\ln$-mode charge bookkeeping: $-\partial g_0/\partial\rho$ jumps by $1/\rho'$, the induced charge splitting between the walls in the ratio $\ln(\rho'/b):\ln(a/\rho')$ — the 2-D version of P45's plate split.

P24. Exercise 4.9.1 — Explicit Legendre coefficients and values at 0Wilcox 2e §4.16, p.190

(a) From the binomial theorem (applied inside Rodrigues' formula (4.179)), show $$P_\ell(x)=\frac1{2^\ell}\sum_{r=0}^{[\ell/2]} \frac{(-1)^r}{r!\,(\ell-r)!}\frac{(2\ell-2r)!}{(\ell-2r)!}\,x^{\ell-2r} =\sum_{r=0}^{[\ell/2]}\frac{(-1)^r(2\ell-2r-1)!!}{(2r)!!\,(\ell-2r)!}\,x^{\ell-2r},$$ with $(N)!!$ the double factorial, $(0)!!=(-1)!!\equiv1$. (b) Deduce $P_\ell(0)=0$ ($\ell$ odd) and $P_\ell(0)=(-1)^{\ell/2}\dfrac{(\ell-1)!!}{\ell!!}$ ($\ell$ even). (c) Show $\bigl(\frac d{dx}\bigr)^mP_\ell\big|_{x=0}=0$ for $\ell-m$ odd and $(-1)^{(\ell-m)/2}\dfrac{(\ell+m-1)!!}{(\ell-m)!!}$ for $\ell-m$ even ($m\le\ell$). Answer: as stated. Check: explicit sum $=$ eval_legendre for $\ell\le10$; (b), (c) against exact polynomial derivatives from numpy.polynomial for all $\ell\le8$, $m\le\ell$ (test_p24_legendre_explicit).

Solution

(a) Expand $(x^2-1)^\ell=\sum_r\binom{\ell}{r}(-1)^rx^{2\ell-2r}$ and differentiate $\ell$ times term by term: $\frac{d^\ell}{dx^\ell}x^{2\ell-2r}=\frac{(2\ell-2r)!}{(\ell-2r)!}x^{\ell-2r}$ (zero once $2\ell-2r<\ell$, truncating at $r=[\ell/2]$). Dividing by $2^\ell\ell!$ gives the first form. For the second, split $(2\ell-2r)!=(2\ell-2r-1)!!\,(2\ell-2r)!!$ and $(2\ell-2r)!!=2^{\ell-r}(\ell-r)!$; then $\frac{(2\ell-2r)!}{2^\ell\,r!\,(\ell-r)!}=\frac{(2\ell-2r-1)!!}{2^r\,r!} =\frac{(2\ell-2r-1)!!}{(2r)!!}$, using $(2r)!!=2^rr!$. (b) At $x=0$ only the constant term $\ell-2r=0$ survives: $\ell$ even, $r=\ell/2$, giving $(-1)^{\ell/2}(\ell-1)!!/\ell!!$ (with $(2r)!!=\ell!!$ and $(\ell-2r)!=1$); odd $\ell$ has no constant term. (c) The $m$-th derivative shifts the surviving term to $\ell-2r=m$ (so $\ell-m$ even, $r=(\ell-m)/2$), with factor $m!$ from $\frac{d^m}{dx^m}x^m$:

\[P_\ell^{(m)}(0)=(-1)^{\frac{\ell-m}2}\frac{(\ell+m-1)!!\,m!}{(\ell-m)!!\,m!} =(-1)^{\frac{\ell-m}2}\frac{(\ell+m-1)!!}{(\ell-m)!!},\]

after writing $(2\ell-2r-1)!!=(\ell+m-1)!!$ and $(2r)!!=(\ell-m)!!$ at $r=(\ell-m)/2$.

P25. Exercise 4.9.2 — Parity of the spherical harmonicsWilcox 2e §4.16, p.190

The inversion $\vec r\to-\vec r$ acts on angles as $\theta\to\pi-\theta$ with $\phi\to\phi+\pi$ (if $\phi<\pi$) or $\phi\to\phi-\pi$ (if $\phi\ge\pi$). What does it do to $Y_{\ell m}(\theta,\phi)$? (Hint: an overall phase.) Answer: $Y_{\ell m}\to(-1)^{\ell}\,Y_{\ell m}$ — parity $(-1)^\ell$, independent of $m$. Check: both $\phi$ branches, all $|m|\le\ell\le4$, to $10^{-12}$ (test_p25_ylm_parity).

Solution

Use the Schwinger/Rodrigues form (4.167): $Y_{\ell m}\propto e^{im\phi}(\sin\theta)^{-m} \bigl(\tfrac{d}{d\cos\theta}\bigr)^{\ell-m}(\cos^2\theta-1)^\ell$. Under the inversion: $\sin\theta$ is unchanged; $\cos\theta\to-\cos\theta$ flips each derivative, giving $(-1)^{\ell-m}$ from the $\ell-m$ derivatives of the even function $(\cos^2\theta-1)^\ell$; and $e^{im(\phi\pm\pi)}=(-1)^me^{im\phi}$ (either sign of the shift, since $e^{\pm im\pi}=(-1)^m$ — which is why the two branches give one answer). Total phase $(-1)^{\ell-m}(-1)^m=(-1)^\ell$. Equivalently: $Y_{\ell m}$ is a degree-$\ell$ homogeneous harmonic polynomial in $\hat r$ divided by $r^\ell$, and any degree-$\ell$ polynomial picks up $(-1)^\ell$ under $\vec r\to-\vec r$.

P26. Exercise 4.9.3 — Legendre orthogonality and normalizationWilcox 2e §4.16, p.191

(a) Using Rodrigues' formula (4.179) and the fact that $P_n$ has degree $n$, show $\int_{-1}^1P_n(x)P_m(x)\,dx=0$ for $m\ne n$. (b) Using (a), the recursion (4.181), $(2n+1)xP_n=(n+1)P_{n+1}+nP_{n-1}$, and induction, show $\int_{-1}^1P_n^2\,dx=\dfrac2{2n+1}$. Answer: as stated. Check: Gauss–Legendre quadrature of the products for several $(n,m)$ pairs and of the norms for $n=0,1,3,6$ ($10^{-12}$) (test_p26_legendre_orthogonality).

Solution

(a) Take $n>m$ and integrate by parts $n$ times:

\[\int_{-1}^1\frac{d^n(x^2-1)^n}{dx^n}\,P_m\,dx =(-1)^n\int_{-1}^1(x^2-1)^n\,\frac{d^nP_m}{dx^n}\,dx=0,\]

because every boundary term contains an underdifferentiated $(x^2-1)^{n-j}$, which vanishes at $\pm1$, and the surviving integrand needs the $n$-th derivative of the degree-$m<n$ polynomial $P_m$, which is zero. (b) Let $N_n=\int P_n^2$. Multiply (4.181) by $P_{n+1}$ and integrate — by (a) only the $P_{n+1}^2$ term survives on the right: $(2n+1)\int xP_nP_{n+1}=(n+1)N_{n+1}$. Now write (4.181) again with $n\to n+1$, multiply by $P_n$ and integrate: $(2n+3)\int xP_{n+1}P_n=(n+1)N_n$. The same cross-integral appears in both, so

\[\frac{N_{n+1}}{N_n}=\frac{2n+1}{2n+3}.\]

Induction: $N_0=\int_{-1}^1dx=2=\frac2{2\cdot0+1}$; if $N_n=\frac2{2n+1}$ then $N_{n+1}=\frac{2n+1}{2n+3}\cdot\frac2{2n+1}=\frac2{2(n+1)+1}$. $\square$

P27. Exercise 4.11.1 — Recursions from the generating functionWilcox 2e §4.16, p.191

With the Legendre generating function (4.204)/(4.205), $$G(x,t)=\frac1{\sqrt{1-2xt+t^2}}=\sum_{n=0}^\infty t^nP_n(x),$$ derive (a) Eq. (4.180), $x P'_{n+1}(x)-P'_n(x)=(n+1)P_{n+1}(x)$, and (b) Eq. (4.181), $(2n+1)xP_n=(n+1)P_{n+1}+nP_{n-1}$. (Hint: $t$- and $x$-derivatives.) Answer: both follow from the two first-derivative identities of $G$. Check: generating-function partial sums vs the closed form ($10^{-11}$); both recursions verified numerically for several $(n,x)$ (test_p27_generating_function).

Solution

Differentiate the closed form:

\[\frac{\partial G}{\partial t}=\frac{x-t}{(1-2xt+t^2)^{3/2}},\qquad \frac{\partial G}{\partial x}=\frac{t}{(1-2xt+t^2)^{3/2}} \;\Longrightarrow\; (x-t)\frac{\partial G}{\partial x}=t\,\frac{\partial G}{\partial t}. \tag{i}\]

(a) Insert the series into (i): $\sum_n\bigl[xP_n'-P_{n-1}'\bigr]t^n=\sum_n nP_nt^n$, so $xP_n'-P_{n-1}'=nP_n$; relabeling $n\to n+1$ gives (4.180). (b) Multiply the $t$-derivative identity through by the root: $(1-2xt+t^2)\,\partial_tG=(x-t)\,G$. Substituting the series and collecting $t^n$:

\[(n+1)P_{n+1}-2xnP_n+(n-1)P_{n-1}=xP_n-P_{n-1} \;\Longrightarrow\;(2n+1)xP_n=(n+1)P_{n+1}+nP_{n-1},\]

which is (4.181) — the three-term recursion behind every stable Legendre evaluation in the module's code.

P28. Exercise 4.11.2 — Rodrigues' formula: recursion and $P_n(1)$Wilcox 2e §4.16, p.191

(a) Show by direct substitution that the Rodrigues polynomials (4.179), $P_n=\frac1{2^nn!}\frac{d^n}{dx^n}(x^2-1)^n$, satisfy Eq. (4.182), $$\frac{dP_{n+1}}{dx}=(2n+1)P_n+\frac{dP_{n-1}}{dx}.$$ (b) Show from (4.179) that $P_n(1)=1$. Answer: as stated. ((4.182) is the identity that turns $\int P_\ell\,dx$ into Legendre values — used constantly from P33 on.) Check: (4.182) verified at the coefficient level (exact polynomial arithmetic) for $n\le7$, and $P_n(1)=1$ (test_p28_rodrigues).

Solution

(a) Write $D=d/dx$ and $u_n=(x^2-1)^n$, so $P_n=D^nu_n/(2^nn!)$. Since $Du_{n+1}=2(n+1)x\,u_n$,

\[P'_{n+1}=\frac{D^{n+2}u_{n+1}}{2^{n+1}(n+1)!} =\frac{D^{n+1}\bigl(x\,u_n\bigr)}{2^nn!} =\frac{x\,D^{n+1}u_n+(n+1)D^nu_n}{2^nn!} =\frac{x\,D^{n+1}u_n}{2^nn!}+(n+1)P_n \tag{i}\]

by Leibniz. Similarly $Du_n=2nx\,u_{n-1}$ gives

\[P'_{n-1}=\frac{D^nu_{n-1}}{2^{n-1}(n-1)!},\qquad D^{n+1}u_n=2n\,D^n(x\,u_{n-1})=2n\bigl[xD^nu_{n-1}+nD^{n-1}u_{n-1}\bigr].\]

Also $u_n=(x^2-1)u_{n-1}$, so $D^{n+1}u_n=D^{n+1}\bigl[(x^2-1)u_{n-1}\bigr] =(x^2-1)D^{n+1}u_{n-1}+2(n+1)xD^nu_{n-1}+n(n+1)D^{n-1}u_{n-1}$. Eliminating $D^{n+1}u_{n-1}$ between the two expressions and substituting into (i) collapses, after dividing by $2^nn!$, to $P'_{n+1}=(2n+1)P_n+P'_{n-1}$. (The module verifies this identity exactly on polynomial coefficients — the honest replacement for the last page of algebra.) (b) $(x^2-1)^n=(x-1)^n(x+1)^n$. In the Leibniz expansion of $D^n$ at $x=1$, any term leaving a positive power of $(x-1)$ vanishes; only the term with all $n$ derivatives on $(x-1)^n$ survives: $D^n u_n|_{x=1}=n!\,(x+1)^n|_{x=1}=n!\,2^n$, so $P_n(1)=1$.

P29. Exercise 4.11.3 — The $\int P_\ell P_\ell$ angular integralWilcox 2e §4.16, p.192

Evaluate, as concisely as possible, $$\int d\Omega'\;P_\ell(\cos\gamma_1)\,P_\ell(\cos\gamma_2),\qquad \cos\gamma_1=\frac{\vec r\cdot\vec r\,'}{rr'},\quad \cos\gamma_2=\frac{\vec r\,'\cdot\vec r\,''}{r'r''},$$ where the integration is over the directions of $\vec r\,'$. Answer: $\dfrac{4\pi}{2\ell+1}\,P_\ell(\cos\gamma_{12})$, with $\gamma_{12}$ the angle between $\vec r$ and $\vec r\,''$. Check: sphere quadrature vs closed form on random direction pairs, $\ell=1,3,5$ (test_p29_PlPl_integral).

Solution

Apply the addition theorem (4.223) to each factor:

\[P_\ell(\cos\gamma_1)=\frac{4\pi}{2\ell+1}\sum_mY_{\ell m}(\hat n')Y^*_{\ell m}(\hat r), \qquad P_\ell(\cos\gamma_2)=\frac{4\pi}{2\ell+1}\sum_{m'}Y^*_{\ell m'}(\hat n')Y_{\ell m'}(\hat r'').\]

The $d\Omega'$ integral is the orthonormality relation $\int Y_{\ell m}Y^*_{\ell m'}d\Omega'=\delta_{mm'}$, collapsing the double sum:

\[\Bigl(\frac{4\pi}{2\ell+1}\Bigr)^2\sum_mY^*_{\ell m}(\hat r)Y_{\ell m}(\hat r'') =\frac{4\pi}{2\ell+1}\,P_\ell(\hat r\cdot\hat r''),\]

the last step being the addition theorem read backwards. (This "reproducing" property is the projector identity: $\frac{2\ell+1}{4\pi}P_\ell(\hat u\cdot\hat v)$ is the kernel of the projection onto the $\ell$-th harmonic subspace, and a projector composed with itself is itself.)

P30. Exercise 4.11.4 — Variational capacitance of a hemispherical bowlWilcox 2e §4.16, p.192

(a) Combining the variational bound (3.144) with the Coulomb expansion (4.225), show that a hemispherical shell of radius $a$ carrying an axisymmetric density $\sigma(x)$ ($x=\cos\theta$, total charge $Q$) has $$C^{-1}[\sigma]=\frac{4\pi^2a^3}{Q^2}\sum_{\ell=0}^\infty \Bigl[\int_0^1dx\,P_\ell(x)\,\sigma(x)\Bigr]^2 .$$ (b) With the trial $\sigma(x)=A+Bx$, establish $C>0.8052\,a$. Does the optimal density grow or shrink toward the edge $\theta=\pi/2$? (Book note: the exact value is $C=(\frac12+\frac1\pi)a\approx0.8183\,a$, from Loh's toroidal-coordinate solution.) Answer: (a) as stated; (b) $C_{\max}=0.80515\,a$ at $\beta=B/A=-0.684$: the density grows toward the edge ($\beta<0$ weights $x=0$ hardest), as the exact edge-diverging solution suggests. Check: optimized bound in $(0.80515,\,0.8183)$; $\beta^*<0$; $\beta=0$ strictly worse (test_p30_hemisphere_variational).

Solution

(a) Both source points of $W=\frac12\int\int\sigma\sigma'/|\vec x-\vec x'|$ sit on the shell $r=r'=a$, where (4.225) gives $|\vec x-\vec x'|^{-1}=\sum_{\ell m}\frac{4\pi}{(2\ell+1)a}Y_{\ell m}(\hat n)Y^*_{\ell m}(\hat n')$. Axisymmetry keeps only $m=0$; with $Y_{\ell0}=\sqrt{\tfrac{2\ell+1}{4\pi}}P_\ell$ and $da=a^2d\Omega$,

\[W=\frac{a^3}2\sum_\ell\frac{4\pi}{2\ell+1}\cdot\frac{2\ell+1}{4\pi} \Bigl[2\pi\!\int_0^1P_\ell\,\sigma\,dx\Bigr]^2 =2\pi^2a^3\sum_\ell\Bigl[\int_0^1P_\ell\,\sigma\Bigr]^2\]

(the $x$ integral stops at 0 because $\sigma$ lives on the upper hemisphere only). Then $C^{-1}=2W/Q^2$ is the quoted sum — every trial is a lower bound on $C$ (§3.10). (b) With $\sigma=A(1+\beta x)$: $\int_0^1P_\ell\sigma=A(c_\ell+\beta d_\ell)$ where $c_\ell=\int_0^1P_\ell dx$ (P33's numbers) and $d_\ell=\int_0^1xP_\ell dx$, computed stably from $xP_\ell=\frac{(\ell+1)P_{\ell+1}+\ell P_{\ell-1}}{2\ell+1}$; and $Q=2\pi a^2A(1+\beta/2)$. Maximizing the ratio numerically (the $\ell$ sum taken to $6000$, converging like $1/\ell^2$ per term) gives $C=0.80515\,a$ at $\beta^=-0.684$ — the book's $0.8052$, and $1.6\%$ under Loh's exact $0.8183$. Since $x=\cos\theta$ decreases toward the rim, $\beta^<0$ means $\sigma$ is largest at the rim: the linear family is doing its best to imitate the true edge singularity.

P31. Exercise 4.11.5 — Rotations mix only within fixed $\ell$Wilcox 2e §4.16, pp.192–193

Completeness of the $Y_{\ell m}$ (4.220) rests on writing $P_\ell(\cos\gamma)$ as a combination of harmonics (4.219). Prove the stronger statement (4.288): for two spherical frames sharing an origin, $$Y_{\ell m}(\theta',\phi')=\sum_{m'=-\ell}^{\ell}C^{(\ell)}_{mm'}\,Y_{\ell m'}(\theta,\phi).$$ (a) Express $(\vec a\cdot\vec r\,)^\ell$ of the Schwinger identity (4.168) in both frames to obtain a linear relation of the form (4.289), $$(\xi_-)^{2\ell}\sum_m\Bigl(\frac{\xi_+}{\xi_-}\Bigr)^{\ell+m}d_{\ell m}Y_{\ell m}(\theta,\phi) =(\xi'_-)^{2\ell}\sum_m\Bigl(\frac{\xi'_+}{\xi'_-}\Bigr)^{\ell+m}c_{\ell m}Y_{\ell m}(\theta',\phi'),$$ with $\xi_\pm$-independent constants $c_{\ell m},d_{\ell m}$. (b) Choosing $2\ell+1$ different null vectors $\vec a$ (different $\xi'_+/\xi'_-$), solve the resulting system for $Y_{\ell m}(\theta',\phi')$ — the invertibility being a Vandermonde-matrix fact. (c) Conclude (4.219): with $\hat z'$ along $\vec r$, $P_\ell(\cos\gamma)\propto Y_{\ell0}(\theta',\phi')$ is a combination of the $Y_{\ell m}(\theta,\phi)$. Answer: as stated; the rotation matrix $C^{(\ell)}$ is what representation theory calls the Wigner $D^{(\ell)}$. Check: $C^{(\ell)}$ solved numerically from $2\ell+1$ random directions reproduces $Y_{\ell m}(R^T\hat n)$ at fresh directions to $10^{-9}$ ($\ell=1,2,3$); Vandermonde $\det=\prod_{i<j}(t_j-t_i)$; the $\ell$-closure gives the addition theorem (4.223) on random pairs (test_p31_ylm_rotation).

Solution

(a) The Schwinger construction (4.168) expands, for the null vector $\vec a=(\tfrac{\xi_+^2-\xi_-^2}{2i},\,\tfrac{\xi_+^2+\xi_-^2}{2},\,i\xi_+\xi_-)$-type parametrization, the $\ell$-th power of the scalar $\vec a\cdot\vec r$ as a generating polynomial in $\xi_+/\xi_-$ whose $Y_{\ell m}$ coefficients carry fixed numerical weights. But $\vec a\cdot\vec r$ is a scalar: computing it in the primed frame (where $\vec a$ has parameters $\xi'_\pm$ and $\vec r$ has angles $\theta',\phi'$) must give the same number, whence (4.289) — one linear relation between the $2\ell+1$ unprimed harmonics and the $2\ell+1$ primed ones, with coefficients polynomial in the ratio $t'=\xi'_+/\xi'_-$. (b) Each choice of $\vec a$ gives such a relation with a different $t'$; stacking $2\ell+1$ of them, the left sides are known and the coefficient matrix on the primed side is $V_{jm}=(t'_j)^{\ell+m}$ — a Vandermonde matrix, invertible whenever the $t'_j$ are distinct, since $\det V=\prod_{i<j}(t'_j-t'_i)\ne0$. Inverting expresses each $Y_{\ell m}(\theta',\phi')$ as a fixed combination of the $Y_{\ell m'}(\theta,\phi)$ — Eq. (4.288). No $\ell'\ne\ell$ enters: rotations cannot mix degrees. (c) Take the primed frame with $\hat z'\parallel\vec r$. Then $\theta'$ of the point $\vec r\,''$... more directly: $P_\ell(\cos\gamma)$, with $\gamma$ the angle of $\hat n$ from $\hat z'$, equals $\sqrt{4\pi/(2\ell+1)}\,Y_{\ell0}(\theta',\phi')$ evaluated in the primed frame; by (4.288) that is a linear combination of the unprimed $Y_{\ell m}(\theta,\phi)$ — which is (4.219), the input the chapter needed for completeness (4.220) and, after computing the coefficients, the addition theorem (4.223). The numeric check closes the loop by verifying (4.223) itself on random direction pairs.

P32. Exercise 4.11.6 — Two spherical averages of the Coulomb kernelWilcox 2e §4.16, pp.193–194

Using a spherical (free-space) Green function expansion, evaluate (a) $\displaystyle\int\frac{d\Omega'}{|\vec r-\vec r\,'|}$ and (b) $\displaystyle\int\frac{\cos\theta'\,d\Omega'}{|\vec r-\vec r\,'|}$ as completely as possible ($P_1(x)=x$ is the hint for (b)). Answer: (a) $\dfrac{4\pi}{r_>}$; (b) $\dfrac{4\pi}{3}\dfrac{r_<}{r_>^2}\cos\theta$, with $\theta$ the polar angle of the field point $\vec r$. Check: both against direct sphere quadrature, inside and outside (test_p32_sphere_coulomb_integrals).

Solution

Insert the Coulomb expansion (4.225), $\frac1{|\vec r-\vec r'|}=\sum_{\ell m}\frac{4\pi}{2\ell+1}\frac{r_<^\ell}{r_>^{\ell+1}}Y_{\ell m}(\hat r)Y^_{\ell m}(\hat r')$. (a) $\int d\Omega'\,Y^_{\ell m}(\hat r')=\sqrt{4\pi}\,\delta_{\ell0}\delta_{m0}$ (orthogonality against $Y_{00}=1/\sqrt{4\pi}$): only the monopole survives,

\[\int\frac{d\Omega'}{|\vec r-\vec r'|} =\frac{4\pi}{1}\cdot\frac1{r_>}\cdot\sqrt{4\pi}\,Y_{00}(\hat r)=\frac{4\pi}{r_>}.\]

(This is the shell theorem in kernel form: a uniform shell looks like a point charge outside, a constant potential inside.) (b) $\cos\theta'=\sqrt{4\pi/3}\,Y_{10}(\hat r')$, so the integral projects out $\ell=1$, $m=0$:

\[\int\frac{\cos\theta'\,d\Omega'}{|\vec r-\vec r'|} =\frac{4\pi}{3}\,\frac{r_<}{r_>^2}\,\sqrt{\frac{4\pi}3}\,Y_{10}(\hat r) =\frac{4\pi}{3}\,\frac{r_<}{r_>^2}\,\cos\theta .\]

Physically: the potential of the shell density $\sigma\propto\cos\theta'$ — uniform field inside ($\propto r\cos\theta$), pure dipole outside ($\propto\cos\theta/r^2$), continuous at $r=r'$.

P33. Exercise 4.12.1 — The hemispherical-caps capacitorWilcox 2e §4.16, p.194

Two thin conducting hemispherical caps of radius $a$, separated by a narrow equatorial gap, are held at $+V$ (upper) and $-V$ (lower) (book Fig. 4.15). Define $C\equiv Q/V$ with $Q$ the charge on the upper cap. (a) Treating this as a boundary value problem (or with this geometry's Green function), show $$C=\frac a2\sum_{n=0}^\infty\bigl[P_{2n}(0)-P_{2n+2}(0)\bigr]^2 .$$ (Hints: Eq. (4.182) and Ex. 4.11.2(b).) (b) Using Ex. 4.9.1, rewrite it as $$C=\frac a2\sum_{n=0}^\infty\Bigl[(4n+3)\,\frac{(2n-1)!!}{(2n+2)!!}\Bigr]^2 .$$ Answer: as stated — and the series diverges logarithmically ($t_n\sim4/\pi n$): an ideal, gapless split sphere has infinite capacitance, the 3-D cousin of the parallel-plate $d\to0$ divergence. A physical gap width cuts the sum off. Check: the two term forms agree to $10^{-15}$; $C$ from direct quadrature of $\sigma$ ($Q/V$) equals the partial series; increments per doubling $\to\frac2\pi\ln2$ (test_p33_caps_capacitor).

Solution

(a) Interior/exterior harmonic expansions matched to the surface data $V\,\mathrm{sgn}(x)$, $x=\cos\theta$: $\Phi_{\rm in}=\sum A_\ell(r/a)^\ell P_\ell$, $\Phi_{\rm out}=\sum A_\ell(a/r)^{\ell+1}P_\ell$, with

\[A_\ell=\frac{2\ell+1}2\,V\!\int_{-1}^1\mathrm{sgn}(x)P_\ell\,dx =(2\ell+1)V\!\int_0^1P_\ell\,dx\quad(\ell\ {\rm odd};\ {\rm even}\ \ell\ {\rm vanish}).\]

Integrating (4.182) from $x$ to $1$ and using $P_\ell(1)=1$ (Ex. 4.11.2b) gives the workhorse identity

\[\int_x^1P_\ell(x')\,dx'=\frac{P_{\ell-1}(x)-P_{\ell+1}(x)}{2\ell+1} \;\Longrightarrow\; A_\ell=V\bigl[P_{\ell-1}(0)-P_{\ell+1}(0)\bigr].\]

The surface charge adds the interior and exterior normal derivatives: $\sigma=\frac1{4\pi}\bigl(-\partial_r\Phi_{\rm out}+\partial_r\Phi_{\rm in}\bigr)_{r=a} =\sum_\ell\frac{2\ell+1}{4\pi a}A_\ell P_\ell$. The upper-cap charge is then

\[Q=2\pi a^2\int_0^1\sigma\,dx =\frac a2\sum_\ell A_\ell\,(2\ell+1)\!\int_0^1P_\ell\,dx =\frac a2\,V\sum_{\ell\ {\rm odd}}\bigl[P_{\ell-1}(0)-P_{\ell+1}(0)\bigr]^2,\]

i.e. $C=Q/V$ as quoted with $\ell=2n+1$. (b) Insert $P_{2n}(0)=(-1)^n\frac{(2n-1)!!}{(2n)!!}$ (P24b):

\[P_{2n}(0)-P_{2n+2}(0) =(-1)^n\Bigl[\frac{(2n-1)!!}{(2n)!!}+\frac{(2n+1)!!}{(2n+2)!!}\Bigr] =(-1)^n\frac{(2n-1)!!}{(2n+2)!!}\bigl[(2n+2)+(2n+1)\bigr],\]

whose bracket is $4n+3$ — the quoted form. Stirling gives $t_n\to4/\pi n$, so $C_N\simeq\frac{2a}\pi\ln N$: log-divergent, confirmed numerically ($\frac2\pi\ln2$ per doubling).

P34. Exercise 4.12.2 — Neumann Green function outside a sphereWilcox 2e §4.16, p.195

Find the electrostatic Neumann Green function for the region outside a sphere of radius $a$ (unit charge on the $+z$ axis at $r'$, book Fig. 4.16; $G_N\to0$ at infinity). The book supplies the answer to check against: $$G_N=\frac1{r_>}+\sum_{\ell\ge1}\Bigl[\frac{r_<^\ell}{r_>^{\ell+1}} +\frac{\ell}{\ell+1}\,\frac{a^{2\ell+1}}{(rr')^{\ell+1}}\Bigr]P_\ell(\cos\theta).$$ Answer: the series above; it also sums to the closed image form $$G_N=\frac1{|\vec r-\vec r\,'|}+\frac{a/r'}{|\vec r-\vec r_a|} -\frac1a\ln\frac{t-\cos\theta+\sqrt{1-2t\cos\theta+t^2}}{1-\cos\theta}, \qquad \vec r_a=\frac{a^2}{r'^2}\vec r\,',\ t=\frac{a^2}{rr'},$$ i.e. Kelvin image $+a/r'$ at the inverse point plus a uniform line image from the center to the inverse point. Check: series $=$ closed form ($10^{-9}$); $\partial G_N/\partial r|_{r=a}\to0$; symmetric in $r\leftrightarrow r'$ (test_p34_neumann_exterior_sphere).

Solution

Expand in Legendre modes (azimuthal symmetry): $G_N=\sum_\ell(2\ell+1)g_\ell(r,r')P_\ell(\cos\theta)$ with the radial equation (4.230). For the exterior region the bounding "surface" is the sphere plus the sphere at infinity, so $S\to\infty$ and the Neumann boundary condition (2.106), $\partial_nG_N=-4\pi/S$, becomes homogeneous: $\partial_rg_\ell|_{r=a}=0$ for every $\ell$. From $r^\ell$, $r^{-\ell-1}$ build

\[\psi_1(r)=r^\ell+\frac{\ell}{\ell+1}\frac{a^{2\ell+1}}{r^{\ell+1}} \ \ (\psi_1'(a)=0),\qquad \psi_2(r)=\frac1{r^{\ell+1}},\]

with jump $-1/r'^2$ in $g'_\ell$ fixing $C=1/(2\ell+1)$; multiplying by $(2\ell+1)P_\ell$ gives the book's series (the $\ell=0$ member being $1/r_>$: a Neumann sphere cannot hide the monopole). Closed form: split $\frac{\ell}{\ell+1}=1-\frac1{\ell+1}$. The "$1$" part sums by the generating function to the Kelvin image $\frac{a}{r'}\frac1{|\vec r-\vec r_a|}$; the $\frac1{\ell+1}$ part uses $\sum_\ell\frac{t^{\ell+1}}{\ell+1}P_\ell(x)=\int_0^t\frac{ds}{\sqrt{1-2sx+s^2}} =\ln\frac{t-x+\sqrt{1-2tx+t^2}}{1-x}$, a uniform line-charge image of density $-1/a$ stretched from the center to the inverse point — the standard trick to repair the flux a lone image would push through the Neumann wall. The test also confirms the $\vec r\leftrightarrow\vec r'$ symmetry that the $t=a^2/rr'$ variable makes manifest.

P35. Exercise 4.12.3 — Interior Neumann Green function between spheresWilcox 2e §4.16, pp.195–196

(a) Solve the Neumann problem for the shell $a<r<b$: $\nabla^2G_N=-4\pi\delta$, $G_N=\sum_\ell(2\ell+1)g_\ell(r,r')P_\ell(\cos\gamma)$, and show that for $\ell>0$ $$g_\ell=\frac{\ell(\ell+1)}{(2\ell+1)\bigl(b^{2\ell+1}-a^{2\ell+1}\bigr)} \Bigl[\frac{r_<^\ell}{\ell}+\frac{a^{2\ell+1}}{(\ell+1)r_<^{\ell+1}}\Bigr] \Bigl[\frac{r_>^\ell}{\ell}+\frac{b^{2\ell+1}}{(\ell+1)r_>^{\ell+1}}\Bigr].$$ Can $g_0$ be determined? Is it unique? (Recall §2.8.) Show the $b\to\infty$ limit recovers Ex. 4.12.2. (b) Verify that the §2.8/(2.115) surface delta functions are present. Answer: (a) as stated; $g_0$ is fixed only up to an additive constant (pure-Neumann interior problem): the wall-flux condition $\partial_rg_0=+\frac1{a^2+b^2}$ at $r=a$ and $-\frac1{a^2+b^2}$ at $r=b$ (i.e. $\mp4\pi/S$ along the outward normals, $S=4\pi(a^2+b^2)$) gives the symmetric representative $g_0=\frac1{r_>}-\frac{a^2}{a^2+b^2}\bigl(\frac1r+\frac1{r'}\bigr)+{\rm const}$. (b) present: as the source approaches a wall, $G_N\to2/|\vec x-\vec x'|$ — the same-sign image merges with the source (the surface delta of (2.115)). Check: wall derivatives zero ($\ell\ge1$) and $\pm1/(a^2+b^2)$ ($\ell=0$); $-1/r'^2$ jump; $b\to\infty$ matches P34's modes; boundary doubling $G_N\,R\to2$ (test_p35_neumann_shell).

Solution

(a) For $\ell\ge1$ the $-4\pi/S$ flux can be (and, for the expansion to close, must be) carried entirely by the $\ell=0$ mode, so the higher modes obey homogeneous Neumann walls: from $r^\ell,r^{-\ell-1}$,

\[\psi_1=\frac{r^\ell}{\ell}+\frac{a^{2\ell+1}}{(\ell+1)r^{\ell+1}},\qquad \psi_2=\frac{r^\ell}{\ell}+\frac{b^{2\ell+1}}{(\ell+1)r^{\ell+1}}\]

(each normalized so $\psi'=r^{\ell-1}-a^{2\ell+1}/r^{\ell+2}$-type vanishes at its wall). Radial equation $-(r^2g')'+\ell(\ell+1)g=\delta(r-r')$ demands the jump $g'|^+_-=-1/r'^2$; $W_r[\psi_1,\psi_2]=\frac{(2\ell+1)\bigl(b^{2\ell+1}-a^{2\ell+1}\bigr)}{\ell(\ell+1)\,r^2}$, so $C=\ell(\ell+1)/[(2\ell+1)(b^{2\ell+1}-a^{2\ell+1})]$ — the quoted $g_\ell$ (the module evaluates it in ratio form to avoid overflow at large $\ell$). $b\to\infty$: $\psi_2\to\frac{b^{2\ell+1}}{(\ell+1)r^{\ell+1}}$ and $C\psi_1\psi_2\to$ P34's mode, term by term. The $\ell=0$ mode: Gauss's law forces total flux $-4\pi$ through the two walls, and (2.106) distributes it as $-4\pi/S$ per unit area: $\partial_rg_0|_a=+4\pi/S$, $\partial_rg_0|_b=-4\pi/S$ with $S=4\pi(a^2+b^2)$ — one checks $-a^2(+\frac1{a^2+b^2})\cdot4\pi+b^2(-\frac1{a^2+b^2})\cdot4\pi=-4\pi$. Solving $-(r^2g_0')'=\delta(r-r')$ with those wall slopes gives $g_0=\frac1{r_>}-\frac{a^2}{a^2+b^2}\bigl(\frac1r+\frac1{r'}\bigr)+{\rm const}$: determined up to the constant — the §2.8 zero mode of the interior Neumann problem (only potential differences are physical; equivalently $\langle\Phi\rangle_S$ in (2.103) absorbs it). It is not unique, and no boundary condition can make it so. (b) The (2.115) refinement says the normal derivative of $G_N$ acquires a surface delta when the source point lies on the wall. Its integrated signature: a source on a Neumann wall coincides with its same-sign image, so the Green function doubles, $G_N\to2/|\vec x-\vec x'|$, as $\vec x\to\vec x'$ with $r'=a$. The test drives the 500-mode sum to the wall and watches $G_N\,|\vec x-\vec x'|\to2$.

P36. Exercise 4.12.4 — Sphere-surface data: mode sum and Poisson kernelWilcox 2e §4.16, p.196

(a) Show that a sphere of radius $a$ with prescribed surface potential $V(\theta,\phi)$ produces outside $$\Phi(\vec x)=\sum_{\ell m}\Bigl(\frac ar\Bigr)^{\ell+1}Y_{\ell m}(\theta,\phi)\,B_{\ell m}, \qquad B_{\ell m}=\oint_SdΩ'\,V(\theta',\phi')\,Y^_{\ell m}(\theta',\phi'),$$ and give the interior solution. (b) Show both are equivalent to the closed kernel form ($+$ inside, $-$ outside) $$\Phi(\vec x)=\pm\frac{a\,(a^2-r^2)}{4\pi}\oint \frac{d\Omega'\,V(\theta',\phi')}{(a^2+r^2-2ar\cos\gamma)^{3/2}},\qquad \cos\gamma=\hat r\cdot\hat r'.$$ Answer: (a) as stated; inside, $(a/r)^{\ell+1}\to(r/a)^{\ell}$. (b) the spherical Poisson kernel. Check:* mode series $=$ kernel quadrature at interior and exterior points (random smooth data, $10^{-8}$); both reproduce the boundary data as $r\to a^\pm$ (test_p36_sphere_poisson).

Solution

(a) Outside, harmonicity + decay force $\Phi=\sum_{\ell m}c_{\ell m}r^{-\ell-1}Y_{\ell m}$; matching at $r=a$ and projecting with $\oint Y^*_{\ell m}$ (orthonormality) gives $c_{\ell m}=a^{\ell+1}B_{\ell m}$ — the quoted form. Inside, regularity at the origin swaps the radial factor for $(r/a)^\ell$ with the same $B_{\ell m}$. (Equivalently: feed the sphere's Dirichlet Green function into the surface term of (2.98); the modes of $-\frac1{4\pi}\partial_{n'}G_D$ are exactly these radial ratios.) (b) Resum. Insert $B_{\ell m}$, use the addition theorem to collapse the $m$ sum, and evaluate the $\ell$ sum with the generating-function derivative identity: for $t=r/a<1$,

\[\sum_\ell(2\ell+1)\,t^\ell P_\ell(\cos\gamma) =\Bigl(2t\frac{d}{dt}+1\Bigr)\frac1{\sqrt{1-2t\cos\gamma+t^2}} =\frac{1-t^2}{(1-2t\cos\gamma+t^2)^{3/2}} .\]

Then $\Phi_{\rm in}=\frac1{4\pi}\oint d\Omega'V\sum_\ell(2\ell+1)t^\ell P_\ell =\frac{a(a^2-r^2)}{4\pi}\oint\frac{d\Omega'V}{(a^2+r^2-2ar\cos\gamma)^{3/2}}$, restoring dimensions by $a^3$ from $t$-powers. Outside, $t=a/r$ gives the same kernel with $(r^2-a^2)$ — the overall $\mp$ sign quoted. As $r\to a^\pm$ the kernel is a normalized, concentrating family on the sphere (unit mass by the $\ell=0$ term), so $\Phi\to V$: the boundary data is recovered, which is the numeric check.

P37. Exercise 4.12.5 — Hemisphere: grounded dome, charged baseWilcox 2e §4.16, p.196

Solve the interior of the half-ball $0\le\theta\le\pi/2$, $r\le a$ (book Fig. 4.17): the hemispherical dome $r=a$ is at potential $0$, the flat base ($\theta=\pi/2$, i.e. $z=0$, $r<a$) at potential $V$. Determine all coefficients of the series solution. Answer: $$\Phi(r,\theta)=V\Bigl[1-\sum_{\ell\ {\rm odd}} \bigl(P_{\ell-1}(0)-P_{\ell+1}(0)\bigr)\Bigl(\frac ra\Bigr)^{\ell}P_\ell(\cos\theta)\Bigr].$$ Check: $\Phi=V$ on the base (exactly, term by term), $\to0$ on the dome ($2\times10^{-3}$ at 4000 terms, Gibbs-limited), harmonic inside, $\to V$ at the center (test_p37_hemisphere_basin).

Solution

Write $\Phi=V+u$: then $u$ is harmonic with $u=0$ on the base and $u=-V$ on the dome. Harmonics regular at the origin that vanish on the base $\theta=\pi/2$ are exactly the odd-$\ell$ family $r^\ell P_\ell(\cos\theta)$ (odd $P_\ell(0)=0$), so $u=-V\sum_{\rm odd}c_\ell(r/a)^\ell P_\ell$. The dome condition needs $\sum_{\rm odd}c_\ell P_\ell(x)=1$ on $0<x<1$ — i.e. the odd-$\ell$ Legendre expansion of $\mathrm{sgn}(x)$ restricted to the upper half:

\[c_\ell=\frac{2\ell+1}{2}\int_{-1}^1\mathrm{sgn}(x)P_\ell\,dx =(2\ell+1)\int_0^1P_\ell\,dx=P_{\ell-1}(0)-P_{\ell+1}(0),\]

by P33's integral identity. Hence the quoted series. Sanity limits: at the center ($r\to0$) only the "1" survives, $\Phi\to V$ — correct, the center sits on the base plate; on the axis the series is alternating with $(r/a)^\ell$ decay. (The coefficients are evaluated with the stable $P_{2n}(0)$ recursion — the double-factorial form overflows past $\ell\sim300$, an implementation lesson the code encodes.)

P38. Exercise 4.12.6 — Capacitance matrix of concentric spheresWilcox 2e §4.16, p.197

From the §4.12 Dirichlet Green function for concentric spheres (inner radius $a$, outer $b$), deduce the capacitance coefficients $C_{aa}$, $C_{bb}$ and the induction coefficient $C_{ab}$ (§2.12 supplies the framework $Q_i=\sum_jC_{ij}V_j$). Answer: $$C_{aa}=\frac{ab}{b-a},\qquad C_{ab}=C_{ba}=-\frac{ab}{b-a},\qquad C_{bb}=\frac{ab}{b-a}+b .$$ Check: against the explicit $\ell=0$ two-sphere potential (Gauss-law charges for three $(V_a,V_b)$ pairs, $10^{-12}$); $b\to\infty$ isolated sphere $C_{aa}\to a$; symmetry and positivity of the matrix (test_p38_concentric_capacitances).

Solution

Conductors are equipotentials, so only the $\ell=0$ sector of the §4.12 Green function is engaged (all $Y_{\ell m}$ surface moments of constant data vanish for $\ell\ge1$). Between the spheres the general monopole solution is $\Phi=\alpha/r+\beta$; the data $\Phi(a)=V_a$, $\Phi(b)=V_b$ give

\[\alpha=\frac{ab\,(V_a-V_b)}{b-a},\qquad \beta=\frac{bV_b-aV_a}{b-a}.\]

Gauss's law reads the charges off: the inner sphere carries $Q_a=\alpha=\frac{ab}{b-a}(V_a-V_b)$, so $C_{aa}=\frac{ab}{b-a}$, $C_{ab}=-\frac{ab}{b-a}$. The outer conductor's inner face carries $-\alpha$ (the field between must terminate), while its outer face sees the exterior solution $\Phi=bV_b/r$ and carries $bV_b$:

\[Q_b=-\alpha+bV_b=-\frac{ab}{b-a}V_a+\Bigl(\frac{ab}{b-a}+b\Bigr)V_b,\]

giving $C_{ba}=C_{ab}$ (reciprocity, automatic) and the quoted $C_{bb}$. Limits: $b\to\infty$: $C_{aa}\to a$ (isolated sphere), $C_{bb}\to b$; $b-a\to0$: the parallel-plate divergence. The matrix is symmetric with $C_{aa}C_{bb}-C_{ab}^2>0$ — the §2.12 energy positivity, which the test asserts.

P39. Exercise 4.13.1 — Field at the center of an unequally split sphereWilcox 2e §4.16, p.197

A conducting sphere of radius $a$ is cut into two insulated pieces along the cone $\theta=\theta_0$ (book Fig. 4.18): the cap $\theta<\theta_0$ is at potential $V$, the remainder at $-V$. Find $\vec E$ at the center $O$. Answer: $\vec E(O)=-\dfrac{3V}{2a}\sin^2\!\theta_0\,\hat z$ — set by the $\ell=1$ interior coefficient alone; for the symmetric split ($\theta_0=\pi/2$) it is $-\frac{3V}{2a}\hat z$. Check: closed form vs finite-difference gradient of the truncated interior series at three $(\theta_0,V,a)$ (test_p39_center_field).

Solution

Inside, $\Phi=\sum_\ell A_\ell(r/a)^\ell P_\ell(\cos\theta)$; at the origin only the $\ell=1$ term has a nonzero gradient ($\nabla[rP_1\cos]=\hat z$; higher $\ell$ vanish like $r^{\ell-1}$, and $\ell=0$ is constant). Project the boundary data:

\[A_1=\frac32\Bigl[V\!\int_{x_0}^1x\,dx+(-V)\!\int_{-1}^{x_0}x\,dx\Bigr] =\frac32\,V\Bigl[\frac{1-x_0^2}{2}-\frac{x_0^2-1}{2}\Bigr] =\frac{3V}{2}\bigl(1-x_0^2\bigr),\qquad x_0=\cos\theta_0 .\]

Then $\vec E(O)=-\nabla\Phi|_0=-\frac{A_1}{a}\hat z =-\frac{3V}{2a}\sin^2\theta_0\,\hat z$. Sanity: for $\theta_0\to0$ or $\pi$ the sphere is (almost) all one potential and the field dies like the cap area; the maximum is the symmetric split. The test differentiates the 800-term series numerically at the origin and matches.

P40. Exercise 4.13.2 — Point electrostatics on a sphereWilcox 2e §4.16, pp.197–198

Do 2-D electrostatics on the unit sphere: solve $$\nabla^2_{\theta\phi}G=-2\pi\,\delta(\cos\theta-\cos\theta')\,\delta(\phi-\phi') +2\pi\,\delta(\cos\theta+\cos\theta')\,\delta\bigl(\phi-{\rm mod}_{2\pi}(\phi'+\pi)\bigr),$$ i.e. a $+1$ point charge at $(\theta',\phi')$ and a $-1$ charge at the antipode, where $\nabla^2_{\theta\phi}=(\vec r\times\vec\nabla)^2 =\frac1{\sin\theta}\partial_\theta(\sin\theta\,\partial_\theta)+\frac1{\sin^2\theta}\partial_\phi^2$. (a) Show $G=Q_0(x)=\frac12\ln\frac{1+x}{1-x}$, $x=\cos\gamma=\hat r\cdot\hat r'$, with $Q_0$ the zeroth Legendre function of the second kind. (b) Show the eigenfunction form: the book prints $G=2\sum_{\ell\ {\rm odd}}\frac{2\ell+1}{\ell(\ell+1)}P_\ell(\cos\gamma)$ — but the prefactor $2$ is inconsistent with (a)'s $-2\pi$ normalization: the PDE gives coefficient $\frac{2\ell+1}{\ell(\ell+1)}$ without the 2 (flagged erratum, settled numerically). Answer: $G=Q_0(\cos\gamma)=\sum_{\ell\ {\rm odd}}\frac{2\ell+1}{\ell(\ell+1)}P_\ell(\cos\gamma)$. Why the antipodal $-1$? A compact surface admits no net charge (Gauss: the flux has nowhere to go) — the opposite charge is obligatory. Check: Cesàro-averaged series $=Q_0$ at several $\cos\gamma$ ($10^{-6}$, coefficient $1\times$, not $2\times$); $Q_0(\cos\gamma)$ is angularly harmonic away from the two charges; near-charge behavior $G\to-\ln\gamma+\ln2$ — the 2-D Coulomb log in the $-2\pi$ convention (test_p40_sphere_point_electrostatics).

Solution

(a) Rotational symmetry: put $\hat z$ along $\hat r'$, so $G=G(\gamma)$ with the $+$ charge at $\gamma=0$ and the $-$ at $\gamma=\pi$. Away from both, $\frac1{\sin\gamma}\frac d{d\gamma}\bigl(\sin\gamma\,\frac{dG}{d\gamma}\bigr)=0$ integrates to $\sin\gamma\,G'=c_1$. Try $G=Q_0(\cos\gamma)$: $Q_0'(x)=1/(1-x^2)$, so $\frac{dG}{d\gamma}=-\sin\gamma\cdot\frac1{\sin^2\gamma}=-\frac1{\sin\gamma}$ and $\sin\gamma\,G'=-1$: harmonic in the punctured sphere. Near $\gamma=0$, $1-x\simeq\gamma^2/2$ gives $G\simeq\ln(2/\gamma)$: exactly the 2-D point charge $-\ln(\text{distance})$ demanded by the $-2\pi$ delta (flux bookkeeping: $\oint(\partial G/\partial\gamma)\,\sin\gamma\,d\phi=-2\pi$ ✓); near $\gamma=\pi$, $G\simeq-\ln(2/(\pi-\gamma))\cdot$… i.e. $+\ln$ divergence of the opposite sign — the $-1$ charge. Uniqueness on the compact surface holds up to a constant; $Q_0$ is the zero-average representative ($\int_{-1}^1Q_0\,dx=0$ by oddness). (b) Expand $G=\sum_\ell g_\ell\frac{2\ell+1}{4\pi}\cdot4\pi\,(\dots)$ — cleanly: use $\delta^2(\hat n-\hat n')=\sum_{\ell m}Y_{\ell m}(\hat n)Y^*_{\ell m}(\hat n')$ and $Y_{\ell m}(-\hat n')=(-1)^\ell Y_{\ell m}(\hat n')$ (P25): the source difference keeps odd $\ell$ only, with the $m$ sums collapsing by the addition theorem to $\frac{2\ell+1}{4\pi}P_\ell(\cos\gamma)\times2$. Since $\nabla^2_{\theta\phi}P_\ell=-\ell(\ell+1)P_\ell$,

\[-\ell(\ell+1)\,g_\ell=-2\pi\quad\Longrightarrow\quad g_\ell=\frac{2\pi}{\ell(\ell+1)}, \qquad G=\sum_{\ell\ {\rm odd}}\frac{2\ell+1}{\ell(\ell+1)}P_\ell(\cos\gamma).\]

The Cesàro-averaged numerical sum matches $Q_0(\cos\gamma)$ with coefficient exactly 1 — the printed extra factor 2 in the book's (b) would double the charge and contradict its own part (a).

P41. Exercise 4.13.3 — Sphere split at $\theta_0$: potentials and capacitanceWilcox 2e §4.16, pp.198–199

The shell of radius $a$ is separated at polar angle $\theta_0$ (book Fig. 4.19): the top piece carries charge $Q$ at potential $V_1$, the bottom $-Q$ at $V_2$. (a) Show $V_2=-\dfrac{1-\cos\theta_0}{1+\cos\theta_0}\,V_1$. (b) With $x_0=\cos\theta_0$ and $C\equiv Q/(V_1-V_2)$, show $$C=\frac a8\sum_{\ell\ge1}(2\ell+1)^2 \Bigl[\int_{x_0}^1P_\ell\,dx\Bigr] \Bigl[(1+x_0)\int_{x_0}^1P_\ell\,dx+(x_0-1)\int_{-1}^{x_0}P_\ell\,dx\Bigr],$$ and explain how the integrals become sums (no need to evaluate). (c) Reconnect to Ex. 4.12.1 at $\theta_0=\pi/2$. Answer: (a) equivalent to zero mean surface potential (zero total charge); (b) as stated — and since $\int_{-1}^{x_0}=-\int_{x_0}^1$ for $\ell\ge1$, it simplifies to $C=\frac a4\sum(2\ell+1)^2\bigl[\int_{x_0}^1P_\ell\bigr]^2$; the integrals are $[P_{\ell-1}(x_0)-P_{\ell+1}(x_0)]/(2\ell+1)$ via (4.182); (c) $C(x_0{=}0)=\frac12C_{4.12.1}$ — consistent, because this $C$ divides by $V_1-V_2=2V$ where 4.12.1 divided by $V$. Check: (a) as the $\langle V\rangle=0$ condition ($10^{-13}$); printed and simplified series identical; $x_0=0$ reconnection exact (test_p41_unequal_caps).

Solution

(a) The exterior monopole reads the total charge: $\Phi_{\rm out}=\sum A_\ell(a/r)^{\ell+1}P_\ell$ has $Q_{\rm tot}=aA_0=a\,\langle V\rangle$, the average of the surface potential. Zero net charge ($+Q-Q$) therefore forces

\[\langle V\rangle=\tfrac12\bigl[V_1(1-x_0)+V_2(1+x_0)\bigr]=0 \;\Longrightarrow\;V_2=-\frac{1-x_0}{1+x_0}V_1,\]

the cap area fractions being $(1\mp x_0)/2$. (b) Project the two-level data: $A_\ell=\frac{2\ell+1}2\bigl[V_1I_+ + V_2I_-\bigr]$ with $I_+=\int_{x_0}^1P_\ell$, $I_-=\int_{-1}^{x_0}P_\ell$. Then $\sigma=\sum\frac{2\ell+1}{4\pi a}A_\ell P_\ell$ and the top-piece charge is $Q=2\pi a^2\int_{x_0}^1\sigma\,dx=\frac a2\sum(2\ell+1)A_\ell I_+$. Using (a) to write $V_1,V_2$ in terms of $V_1-V_2$ ($V_1=\frac{1+x_0}2(V_1-V_2)$, $V_2=-\frac{1-x_0}2(V_1-V_2)$) gives

\[Q=(V_1-V_2)\,\frac a8\sum_{\ell\ge1}(2\ell+1)^2 I_+\bigl[(1+x_0)I_+ +(x_0-1)I_-\bigr],\]

the printed form ($\ell=0$ drops: $A_0=\langle V\rangle=0$). Integrals to sums: integrate (4.182) as in P33: $I_+=[P_{\ell-1}(x_0)-P_{\ell+1}(x_0)]/(2\ell+1)$, and $I_-=-I_+$ because $\int_{-1}^1P_\ell=0$ for $\ell\ge1$ — which also collapses the bracket to $2I_+$ and the sum to $\frac a4\sum(2\ell+1)^2I_+^2$. (c) At $x_0=0$, $(2\ell+1)I_+=P_{\ell-1}(0)-P_{\ell+1}(0)$ (odd $\ell$), so $C=\frac a4\sum_{\rm odd}[P_{\ell-1}(0)-P_{\ell+1}(0)]^2$ — exactly half of Ex. 4.12.1's $\frac a2\sum[\cdot]^2$: there $C=Q/V$ with $V_{1,2}=\pm V$, here $C=Q/2V$. Same physics, factor-two of definition.

P42. Exercise 4.13.4 — Capacitance matrix of the two hemispheresWilcox 2e §4.16, p.199

For the sphere of radius $a$ split symmetrically into halves 1 (upper) and 2 (lower) (book Fig. 4.20), show $$C_{11}=C_{22}=\frac a4\sum_{\ell\ge0}(2\ell+1)^2\Bigl[\int_0^1P_\ell\,dx\Bigr]^2, \qquad C_{12}=C_{21}=\frac a4\sum_{\ell\ge0}(-1)^\ell(2\ell+1)^2\Bigl[\int_0^1P_\ell\,dx\Bigr]^2 .$$ (The book notes the system capacitance is $C=\frac12(C_{11}-C_{12})$, and the integrals reduce as in Ex. 4.12.1.) Answer: as stated. Bonus structure the checks exploit: $C_{11}+C_{12}=a/2$ exactly at every truncation (even $\ell\ge2$ have $\int_0^1P_\ell=0$), which is the full sphere at one potential ($Q=\frac a2\cdot2V/2\dots$ i.e. $C_{\rm sphere}=a$ split over two halves); and $C_{11}-C_{12}$ is Ex. 4.12.1's log-divergent gap series. Check: both identities at two truncations ($10^{-12}$); $C_{11}>0>C_{12}$ (test_p42_halves_capacitance_matrix).

Solution

Give the halves independent potentials $V_1$, $V_2$. Since $\int_{-1}^0P_\ell=(-1)^\ell\int_0^1P_\ell$ (parity of $P_\ell$), the projection is

\[A_\ell=\frac{2\ell+1}2\,I_\ell\,\bigl[V_1+(-1)^\ell V_2\bigr],\qquad I_\ell\equiv\int_0^1P_\ell\,dx .\]

The upper-half charge (P41's bookkeeping at $x_0=0$):

\[Q_1=\frac a2\sum_\ell(2\ell+1)A_\ell I_\ell =\frac a4\sum_\ell(2\ell+1)^2I_\ell^2\,V_1 +\frac a4\sum_\ell(-1)^\ell(2\ell+1)^2I_\ell^2\,V_2 ,\]

and reading off $Q_1=C_{11}V_1+C_{12}V_2$ gives both quoted series; $C_{22}=C_{11}$ and $C_{21}=C_{12}$ by the up-down symmetry. Consistency: odd-$\ell$ terms cancel in $C_{11}+C_{12}$, and even $\ell\ge2$ have $I_\ell=0$ (their $P_{\ell\mp1}(0)$ vanish), leaving only $\ell=0$: $C_{11}+C_{12}=\frac a4\cdot1\cdot1\cdot2=\frac a2$ exactly — set $V_1=V_2=V$: the full sphere holds $Q_{\rm tot}=2Q_1=(C_{11}+C_{12})2V=aV$ ✓. Setting $V_2=-V_1$ instead isolates $C_{11}-C_{12}=\frac a2\sum_{\rm odd}(2\ell+1)^2I_\ell^2$ — Ex. 4.12.1's series, so the gap capacitance $\frac12(C_{11}-C_{12})$ diverges logarithmically as it must.

P43. Exercise 4.13.5 — Half-space Green function in spherical harmonicsWilcox 2e §4.16, p.200

Find $G_D$ for the free half-space above a grounded conducting plane at $\theta=\pi/2$ (all $\phi$; book Fig. 4.21), as a sum over spherical harmonics. Answer: $$G_D=\sum_{\ell,m\,:\;\ell+m\ {\rm odd}}\frac{8\pi}{2\ell+1}\, \frac{r_<^\ell}{r_>^{\ell+1}}\,Y_{\ell m}(\theta,\phi)\,Y^_{\ell m}(\theta',\phi') .$$ Check:* equals the plane-image pair $1/R-1/R''$ on random point pairs ($2\times10^{-4}$ at $L=80$); vanishes on the plane (test_p43_halfspace_spherical).

Solution

Image route: $G_D=\frac1{|\vec r-\vec r'|}-\frac1{|\vec r-\vec r''|}$ with $\vec r''$ the mirror of $\vec r'$ ($\theta'\to\pi-\theta'$, same $\phi'$, same $r'$). Expand both by the Coulomb expansion (4.225); the image term carries $Y^_{\ell m}(\pi-\theta',\phi')=(-1)^{\ell+m}Y^_{\ell m}(\theta',\phi')$ (the $\theta$-half of P25's parity: $P_\ell^{|m|}(-x)=(-1)^{\ell+|m|}P_\ell^{|m|}(x)$, no azimuth flip here). Subtracting kills $\ell+m$ even and doubles $\ell+m$ odd:

\[G_D=\sum_{\ell+m\ {\rm odd}}2\cdot\frac{4\pi}{2\ell+1}\frac{r_<^\ell}{r_>^{\ell+1}} Y_{\ell m}Y^*_{\ell m}{}' ,\]

the quoted form. On the plane $\theta=\pi/2$: $Y_{\ell m}(\pi/2,\phi)\propto P_\ell^{|m|}(0)$, which vanishes exactly when $\ell+m$ is odd — every surviving term is individually zero on the conductor. (Equivalently, one can derive it without images: expand $G_D$ in the half-space harmonic basis — the $\ell+m$-odd $Y_{\ell m}$, complete for functions vanishing at $\theta=\pi/2$ — and solve the radial jump problem; the doubling $8\pi$ appears because the half-basis resolves only the odd part of the delta.)

P44. Exercise 4.14.1 — Completeness relation for orthonormal setsWilcox 2e §4.16, p.200

Prove the relation (4.267), $\delta(\vec x\,'-\vec x)=\sum_n\psi^_n(\vec x\,')\psi_n(\vec x)$, for a complete orthonormal set $\{\psi_n\}$. Answer: it is the statement that the expansion $f=\sum_nc_n\psi_n$, $c_n=\int\psi_n^f$, reproduces every $f$ in the space — i.e. the kernel $\sum\psi^_n(\vec x')\psi_n(\vec x)$ acts as the identity. Check:* the sine-basis kernel on $[0,L]$ applied to two smooth test functions returns their point values ($10^{-6}$) (test_p44_completeness_action).

Solution

Completeness of $\{\psi_n\}$ means every admissible $f$ expands as $f(\vec x)=\sum_nc_n\psi_n(\vec x)$; orthonormality ($\int\psi^_n\psi_m=\delta_{nm}$) fixes the coefficients: $c_n=\int d^3x'\,\psi^_n(\vec x\,')f(\vec x\,')$. Substituting the coefficients back and exchanging sum and integral,

\[f(\vec x)=\int d^3x'\Bigl[\sum_n\psi^*_n(\vec x\,')\psi_n(\vec x)\Bigr]f(\vec x\,') \qquad\text{for every }f .\]

An object that reproduces every test function under the integral is the delta distribution — Eq. (4.267). (The equality is distributional: the sum does not converge pointwise, but its action on smooth functions does, which is precisely what the numeric check exercises with a truncated sine basis.) Conversely, if (4.267) holds, expanding any $f$ succeeds — completeness and the delta relation are equivalent.

P45. Exercise 4.14.2 — Parallel plates: the Bessel–eigenfunction formWilcox 2e §4.16, p.200

Show (eigenfunction expansion or otherwise) that the Dirichlet Green function between grounded plates $z=0$ and $z=a$ (book Fig. 4.22; cf. Exercises 3.1.1 and 3.2.3) can be written $$G_D=\frac4a\int_0^\infty dk\,k\,J_0(kD) \sum_{n=1}^\infty\frac{\sin(n\pi z/a)\,\sin(n\pi z'/a)}{k^2+(n\pi/a)^2}, \qquad D=|(\vec x-\vec x')_\perp| .$$ Answer: as stated — transverse plane waves ($\to J_0(kD)$ after the angular average) times the sine eigenfunctions in $z$, divided by the eigenvalue. Check: equals the Ex. 3.1.1 image ladder (12000 images) to $10^{-7}$, including the coincident-plane case $z=z'$ (the code sums the $n$ series first via P48's sum rule and splits off the free part analytically); zero on both plates (test_p45_plates_bessel_form).

Solution

The Laplacian eigenfunctions of the slab that vanish on the plates are $\psi_{\vec k,n}=\frac{e^{i\vec k\cdot\vec x_\perp}}{2\pi}\sqrt{\frac2a}\sin\frac{n\pi z}a$ with eigenvalue $-(k^2+k_n^2)$, $k_n=n\pi/a$; they are orthonormal and complete. The eigenfunction recipe (4.268-style) inverts $-\nabla^2G=4\pi\delta$ mode by mode:

\[G_D=4\pi\int d^2k\sum_n\frac{\psi_{\vec k,n}(\vec x)\psi^*_{\vec k,n}(\vec x\,')}{k^2+k_n^2} =\frac4a\cdot\frac1{2\pi}\int d^2k\,e^{i\vec k\cdot(\vec x-\vec x')_\perp} \sum_n\frac{\sin k_nz\,\sin k_nz'}{k^2+k_n^2}.\]

The angular part of $d^2k$ is P5's addition-theorem average, $\int_0^{2\pi}d\alpha\,e^{ikD\cos\alpha}=2\pi J_0(kD)$, leaving the quoted single $k$ integral. It is the same object as Ex. 3.1.1's image ladder and §3.2's reduced-$g$ $k$-integral — three representations, and the numeric check pins the eigenfunction one against the ladder. (Practical note: at $z=z'$ the raw $k$ integrand decays only like $J_0(kD)/2k$ — conditionally convergent; doing the $n$ sum first (P48) and pulling out $e^{-k|z-z'|}/2k\to1/|\vec x-\vec x'|$ analytically leaves an exponentially convergent remainder. The code does exactly this.)

P46. Exercise 4.14.3 — Eigenvalue form of the cylinder's reduced $g$Wilcox 2e §4.16, p.201

Returning to Ex. 4.7.4(b): show the interior reduced Green function has the eigenvalue expansion $$g^{\rm in}_m(k;\rho,\rho')=\sum_{n=1}^\infty \frac{\mathcal J_{1m}(k_{mn}\rho)\,\mathcal J_{1m}(k_{mn}\rho')}{k^2+k_{mn}^2}, \qquad k_{mn}=\frac{x_{mn}}a .$$ Answer: as stated — the Fourier–Bessel resolvent of the radial operator. Check: the $N=6000$ eigen-sum equals P16(b)'s $I,K$ closed form for $(m,k)=(0,0.7),(2,1.3)$ to $2\times10^{-6}$, and converges steadily in the delicate near-wall case (test_p46_cylinder_eigen_g).

Solution

The reduced equation (P16) is $\bigl[\mathcal L_\rho-k^2\bigr]g_m=-\delta(\rho-\rho')/\rho$ with $\mathcal L_\rho=\frac1\rho\partial_\rho(\rho\partial_\rho)-\frac{m^2}{\rho^2}$ and $g_m(a)=0$. The $\mathcal J_{1m}(k_{mn}\rho)$ are exactly the Dirichlet eigenfunctions of $\mathcal L_\rho$: $\mathcal L_\rho\mathcal J_{1m}=-k_{mn}^2\mathcal J_{1m}$, orthonormal with weight $\rho$ (4.69) and complete (4.71). Expand $g_m=\sum_nc_n\mathcal J_{1m}(k_{mn}\rho)$ and the delta by (4.71); matching coefficients,

\[-(k_{mn}^2+k^2)\,c_n=-\mathcal J_{1m}(k_{mn}\rho') \quad\Longrightarrow\quad c_n=\frac{\mathcal J_{1m}(k_{mn}\rho')}{k^2+k_{mn}^2},\]

the quoted sum. Its closed resummation is P16(b)'s $I_m(k\rho_<)[K_m(k\rho_>)-I_m(k\rho_>)K_m(ka)/I_m(ka)]$ — the identity the test verifies numerically; it is the radial analog of P48's sine sum rule.

P47. Exercise 4.14.4 — The 1-D Dirichlet Green function by eigenfunctionsWilcox 2e §4.16, p.201

Expand the one-dimensional Dirichlet Green function of §2.9, $$\frac{d^2G_D(x,x')}{dx^2}=-\delta(x-x'),\qquad G_D(0,x')=G_D(L,x')=0,$$ in eigenfunctions. Answer: $G_D=\dfrac2L\sum_{n\ge1}\dfrac{\sin(k_nx)\sin(k_nx')}{k_n^2}$, $k_n=n\pi/L$ — summing to the §2.9 closed form $x_<(L-x_>)/L$. Check: eigen-sum $=$ closed form ($10^{-4}$ at $N=2\times10^4$; the series converges like $1/N$); BCs exact; unit kink in $G'$ (test_p47_g1d_eigen).

Solution

Eigenfunctions of $d^2/dx^2$ with Dirichlet ends: $\psi_n=\sqrt{2/L}\sin k_nx$, eigenvalues $-k_n^2$, complete and orthonormal. The (2.124) normalization has no $4\pi$: $G_D=\sum_n\psi_n(x)\psi_n(x')/k_n^2$, the quoted series. Closed form: solve directly — $G$ is linear on each side of $x'$ (no source), vanishes at both ends, is continuous at $x'$, and its slope drops by 1 there:

\[G_D=\begin{cases}\alpha x,&x<x'\\ \beta(L-x),&x>x'\end{cases} \;\Longrightarrow\; \alpha x'=\beta(L-x'),\ \ \alpha+\beta=1 \;\Longrightarrow\; G_D=\frac{x_<\,(L-x_>)}{L}.\]

Physical reading (§2.9): a string pulled transversally at $x'$ — the triangle profile; or the potential of a unit charge between grounded points in 1-D. The test verifies series $=$ triangle, the exact zeros, and the unit kink.

P48. Exercise 4.14.5 — Finite cylinder by eigenfunctions; the sine sum ruleWilcox 2e §4.16, p.201

Solve for $G_D$ inside the finite conducting cylinder (radius $a$, height $L$) by a full eigenfunction expansion. Doing the $z$ eigensum should reproduce Eq. (4.79); deduce from that the sum rule $$\sum_{n=1}^\infty\frac{\sin(k_nz)\sin(k_nz')}{k^2+k_n^2} =\frac L2\,\frac{\sinh(kz_<)\,\sinh\bigl(k(L-z_>)\bigr)}{k\,\sinh(kL)}, \qquad k_n=\frac{n\pi}L$$ ($k$ a real parameter) — which also simplifies the Ex. 4.14.2 answer. Answer: $G_D=4\pi\sum_{mnp}\psi\psi^/\lambda$ with $\psi=\mathcal J_{1m}(k_{mn}\rho)\frac{e^{im\phi}}{\sqrt{2\pi}}\sqrt{\frac2L}\sin\frac{p\pi z}L$, $\lambda=k_{mn}^2+(p\pi/L)^2$; the sum rule as stated. Check:* sum rule at three $(k,z,z')$ ($10^{-8}$); the triple eigen-sum equals the (4.79) $z$-reduced form at two interior points ($10^{-4}$) (test_p48_sine_sum_rule).

Solution

The box eigenfunctions are the products quoted (Dirichlet Fourier–Bessel radially, exponentials azimuthally, sines axially), with $-\nabla^2\psi=\lambda\psi$. The 4.267/4.268 recipe gives $G_D=4\pi\sum\psi(\vec x)\psi^(\vec x')/\lambda$. Now fix $(m,n)$ and do the $p$ sum: it is exactly $\frac2L\sum_p\sin(k_pz)\sin(k_pz')/(k_{mn}^2+k_p^2)$ — and comparing with the reduced-Green-function* route to the same $G_D$ (Eq. (4.79), built in §4.4 from $g=\sinh(kz_<)\sinh(k(L-z_>))/(k\sinh kL)$, which solves $(k^2-\partial_z^2)g=\delta$ with grounded ends) forces, mode by mode,

\[\frac2L\sum_p\frac{\sin k_pz\,\sin k_pz'}{k^2+k_p^2}=g(k;z,z')\]

— the quoted rule (multiply by $L/2$). Direct proof without (4.79): expand $g(k;z,z')$ itself in the sine basis; its coefficients are $\int_0^Lg\sin k_pz\,dz=\sin(k_pz')/(k^2+k_p^2)$ by two integrations by parts (the boundary terms vanish, the kink supplies the numerator). The rule turns P45's $n$ sum into the exponentially convergent (4.79) form — the identity the code's G_plates_bessel/G_finite_cyl_79 exploit, and the triple-sum test confirms end to end.

P49. Exercise 4.14.6 — Eigenfunctions inside a conducting sphereWilcox 2e §4.16, p.201

(a) Show that the Dirichlet eigenfunctions for the interior of a conducting sphere are $$\psi(r,\theta,\phi)\propto j_\ell(kr)\,Y_{\ell m}(\theta,\phi),$$ where the spherical Bessel function $j_\ell$ satisfies $$\frac1{r^2}\frac d{dr}\Bigl(r^2\frac{dj_\ell(kr)}{dr}\Bigr) +\Bigl(k^2-\frac{\ell(\ell+1)}{r^2}\Bigr)j_\ell(kr)=0 .$$ (b) How are the eigenvalues $k$ determined for radius $a$? Answer: (a) as stated — the regular radial solution ($n_\ell$, the singular partner, is excluded by the origin); (b) $j_\ell(ka)=0$, i.e. $k=z_{\ell n}/a$ with $z_{\ell n}$ the $n$-th zero of $j_\ell$ (for $\ell=0$: $z_{0n}=n\pi$, since $j_0=\sin t/t$). Check: radial ODE residual $<10^{-5}$ (FD); zeros located by bracketing satisfy $j_\ell=0$ to $10^{-12}$ and $z_{02}=2\pi$ exactly; radial orthogonality $\int_0^ar^2j_\ell(z_{\ell n}r/a)j_\ell(z_{\ell n'}r/a)\,dr=0$ (test_p49_spherical_eigenfunctions).

Solution

(a) Separate the Helmholtz eigenproblem $\nabla^2\psi=-k^2\psi$ in spherical coordinates: the angular operator is $-\ell(\ell+1)$ on $Y_{\ell m}$ (the §4.13 separation), leaving the radial equation quoted — Bessel's equation in disguise: substituting $j_\ell(t)=\sqrt{\pi/2t}\,J_{\ell+1/2}(t)$ maps it to the half-odd-order Bessel equation. Of the two solutions $j_\ell$ (regular, $\sim t^\ell$) and $n_\ell$ (singular, $\sim t^{-\ell-1}$), the origin inside the domain keeps only $j_\ell$. (b) The Dirichlet wall demands $\psi(a,\theta,\phi)=0$ for all angles, i.e. $j_\ell(ka)=0$: the spectrum is $k_{\ell n}=z_{\ell n}/a$, discrete and $\ell$-dependent (degenerate in $m$: $2\ell+1$ each). These are the modes that would assemble the sphere's interior $G_D$ as $4\pi\sum\psi\psi^*/k^2$ — and, in Ch. 10, the resonant frequencies of the spherical cavity. The $\ell=0$ tower $k=n\pi/a$ is the 1-D box in radial disguise ($rj_0(kr)=\sin(kr)/k$ obeys P47's problem on $[0,a]$).

Run the worked code: cd MACRO_EM/MACRO_EM-04_cylindrical_spherical/code && python3 cylindrical_spherical.py

MACRO_EM-05 — Multipoles, Macroscopic Media, Dielectrics (Wilcox Ch. 5 problems)

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-05_multipoles_dielectrics

Key equations

\[\Phi=\frac qr+\frac{\vec x\cdot\vec p}{r^3} +\frac12\sum_{ij}Q_{ij}\frac{x_ix_j}{r^5}+\dots,\qquad Q_{ij}=\int(3x_i'x_j'-\delta_{ij}r'^2)\rho\,d^3x',\]
\[G_{z>0}=\frac1{|\vec x-\vec x'|}-\frac{\epsilon-1}{\epsilon+1}\frac1{|\vec x-\vec x''|}, \qquad G_{z<0}=\frac1\epsilon\frac{2\epsilon}{\epsilon+1}\frac1{|\vec x-\vec x'|},\]
\[G_{r<a}=\sum_\ell\frac{2\ell+1}{\ell(1+\epsilon)+1}\frac{r^\ell}{r'^{\ell+1}}P_\ell,\qquad G_{r>a}=\frac1{|\vec x-\vec x'|}-\sum_{\ell\ge1} \frac{(\epsilon-1)\ell}{\ell(1+\epsilon)+1}\frac{a^{2\ell+1}}{(rr')^{\ell+1}}P_\ell .\]
\[\Delta W=\frac12\int\!\!\int\rho\,[G_D-G_D^0]\,\rho =\frac1{8\pi}\int(\epsilon_0-\epsilon)\vec E\cdot\vec E_0 \;\;\overset{\epsilon_0=1}{=}\;-\frac12\int\vec P\cdot\vec E_0\ \ (5.173).\]

Example problems

P1. Exercise 5.1.1 — Can an origin shift kill the dipole moment?Wilcox 2e §5.13, p.242

Prove or give a counterexample: for a charge distribution with nonvanishing total charge $q$, one can always choose an origin that makes the dipole moment $\vec p$ vanish. Answer: True. Shifting the origin to $\vec R=\vec p/q$ gives $\vec p\,'=0$ (the "center of charge", the electrical analog of the center of mass). Check: random charge sets: after the shift $|\vec p\,'|<10^{-12}$; for $q=0$ the dipole moment is origin-independent (test_p01_dipole_killing_origin).

Solution

Let the moments about the old origin be $q=\int\rho$, $\vec p=\int\vec x'\rho$. About a new origin at $\vec R$ the position vectors are $\vec x'-\vec R$, so

\[\vec p\,'=\int d^3x'\,(\vec x'-\vec R)\,\rho(\vec x')=\vec p-q\vec R.\]

If $q\neq0$ the choice $\vec R=\vec p/q$ is well defined and gives $\vec p\,'=0$. (Conversely, when $q=0$, $\vec p\,'=\vec p$ for every $\vec R$: the dipole moment of a neutral distribution is intrinsic — Eq. (5.39) footnote's general pattern: the lowest nonvanishing multipole is origin-independent.) $\blacksquare$

P2. Exercise 5.1.2 — Multipole moments under translation of originWilcox 2e §5.13, p.242

A distribution has moments $q,\vec p,Q_{ij}$ about one origin and $q',\vec p\,',Q'_{ij}$ about a second origin displaced by $\vec R=(X,Y,Z)$ (axes parallel). Find the explicit connections. Answer: $$q'=q,\qquad \vec p\,'=\vec p-q\vec R,$$ $$Q'_{ij}=Q_{ij}-3(R_ip_j+R_jp_i)+2\,\delta_{ij}\,\vec R\cdot\vec p +q\,(3R_iR_j-R^2\delta_{ij}).$$ Check: closed forms match direct recomputation of the moments about the shifted origin for random charge sets to $10^{-10}$ (test_p02_moment_translation).

Solution

In the new frame the source point is $\vec y=\vec x'-\vec R$. Monopole: $q'=\int\rho=q$. Dipole: $\vec p\,'=\int(\vec x'-\vec R)\rho =\vec p-q\vec R$ (P1). Quadrupole: insert $\vec y$ into the definition,

\[Q'_{ij}=\int\big[3(x_i'-R_i)(x_j'-R_j)-\delta_{ij}(\vec x'-\vec R)^2\big]\rho.\]

Expand: $3x_i'x_j'-3R_ix_j'-3R_jx_i'+3R_iR_j$ and $(\vec x'-\vec R)^2=r'^2-2\vec x'\cdot\vec R+R^2$. Integrating term by term,

\[Q'_{ij}=Q_{ij}-3R_i p_j-3R_j p_i+3qR_iR_j +\delta_{ij}\big(2\vec R\cdot\vec p-qR^2\big),\]

which is the boxed form. Consistency checks: (i) trace: $\sum_iQ'_{ii} =0-6\vec R\cdot\vec p+6\vec R\cdot\vec p+q(3R^2-3R^2)=0$ — still traceless; (ii) if $q=0$ and $\vec p=0$, then $Q'_{ij}=Q_{ij}$: the quadrupole is origin-independent exactly when all lower moments vanish (the general rule stated after (5.39)).

P3. Exercise 5.1.3 — Cube with $\rho=Kx$Wilcox 2e §5.13, p.242

A cube of side $L$ is centered on the origin, faces perpendicular to the axes, filled with charge density $\rho(x,y,z)=Kx$ ($K$ constant). (a) Compute the monopole, dipole, and all quadrupole moments. (b) What is the leading far field? Answer: (a) $q=0$; $\vec p=\dfrac{KL^5}{12}\hat\imath$; $Q_{ij}=0$ (all nine). (b) A pure dipole field, $\vec E=\dfrac{3(\vec p\cdot\hat r)\hat r-\vec p}{r^3}$ with the above $\vec p$ — the first correction is octopole ($\ell=3$), down by $(L/r)^2$. Check: 3-D Gauss–Legendre quadrature of all moments; far-field potential from quadrature matches $\vec p\cdot\vec x/r^3$ to $2\times10^{-4}$ (test_p03_cube_rho_Kx).

Solution

(a) Monopole: $q=K\int x\,dV=0$ (odd in $x$). Dipole: $p_x=K\int x^2dV=K\big(\int_{-L/2}^{L/2}x^2dx\big)L^2=K\frac{L^3}{12}L^2 =\frac{KL^5}{12}$; $p_y=K\int xy\,dV=0$ (odd in $y$), likewise $p_z=0$. Quadrupole: every component is an integral of $Kx\times(\text{quadratic})$: - $Q_{11}=K\int x(3x^2-r^2)dV$ — integrand odd in $x$ → 0; same for $Q_{22},Q_{33}$; - $Q_{12}=3K\int x^2y\,dV=0$ (odd in $y$), $Q_{13}=3K\int x^2z\,dV=0$, $Q_{23}=3K\int xyz\,dV=0$ (odd in each).

So the quadrupole vanishes identically — not by symmetry of the shape alone but because $\rho$ is odd under $x\to-x$ while every quadrupole integrand is even-degree in the coordinates times $x$, hence odd under inversion of one axis. (b) With $q=0$, $Q=0$, the expansion (5.12) starts and — through $\ell=2$ — ends with the dipole term, $\Phi=\vec p\cdot\vec x/r^3$, so $\vec E=[3(\vec p\cdot\hat r)\hat r-\vec p]/r^3$ (5.15). Because $\rho$ is odd under $\vec x\to-\vec x$... more precisely under $x\to-x$, all even-$\ell$ moments vanish, so the next correction is the $\ell=3$ (octopole) term of P4, smaller by $O(L^2/r^2)$.

P4. Exercise 5.1.4 — The octopole term $R_{ijk}$Wilcox 2e §5.13, p.242

Work out the integral form of the next moment $R_{ijk}$ in $$\Phi(\vec x)=\frac qr+\frac{\vec x\cdot\vec p}{r^3} +\frac12\sum_{i,j}Q_{ij}\frac{x_ix_j}{r^5} +\frac16\sum_{i,j,k}R_{ijk}\frac{x_ix_jx_k}{r^7}+\dots$$ and show $R_{ijk}$ has only 7 independent components. Answer: $$R_{ijk}=\int d^3x'\Big[15\,x_i'x_j'x_k' -3r'^2\big(x_i'\delta_{jk}+x_j'\delta_{ik}+x_k'\delta_{ij}\big)\Big]\rho(\vec x').$$ Symmetric rank-3 → 10 components; the three trace conditions $\sum_iR_{iik}=0$ cut it to $10-3=7$ ($=2\ell+1$ at $\ell=3$). Check: the tensor from random charge sets is symmetric, traceless on every pair, spans exactly a 7-dimensional space (matrix rank over samples), and its contraction reproduces the residual $\Phi_{\rm exact}-\Phi_{q,p,Q}$ at large $r$ (test_p04_octopole).

Solution

The $\ell=3$ Taylor term of $1/|\vec x-\vec x'|$ is $-\frac1{3!}(\vec x'\cdot\vec\nabla)^3\frac1r$ (5.4–5.5). Two gradients gave (5.8); the third gradient of $(3x_ix_j-\delta_{ij}r^2)/r^5$ gives

\[\partial_i\partial_j\partial_k\frac1r =-\frac{15\,x_ix_jx_k}{r^7} +\frac{3\,(x_i\delta_{jk}+x_j\delta_{ik}+x_k\delta_{ij})}{r^5},\]

symmetric and traceless on every pair (contract $j=k$: $-15x_ir^2/r^7+3(x_i+x_i+3x_i)/r^5=0$ — harmonicity of $1/r$). With the $(-1)^\ell$ of (5.4) the $\ell=3$ contribution to $\Phi$ is

\[\Phi_3=\frac16\int d^3x'\,\rho\sum_{ijk}x_i'x_j'x_k' \Big[\frac{15x_ix_jx_k}{r^7} -\frac{3(x_i\delta_{jk}+x_j\delta_{ik}+x_k\delta_{ij})}{r^5}\Big].\]

Regroup source and field factors as in (5.10): the $\delta$-terms contract two source indices into $r'^2$ and leave one $x$-factor, e.g. $\sum_{jk}x_j'x_k'\delta_{jk}\,x_i x_i'\cdot 3/r^5 =3r'^2(\vec x\cdot\vec x')/r^5=\sum_{ijk}\frac{x_ix_jx_k}{r^7}\, r'^2x_i'\delta_{jk}\,$-pieces after symmetrization, so

\[\Phi_3=\frac16\sum_{ijk}\frac{x_ix_jx_k}{r^7}\,R_{ijk},\qquad R_{ijk}=\int\!\big[15x_i'x_j'x_k' -3r'^2(x_i'\delta_{jk}+x_j'\delta_{ik}+x_k'\delta_{ij})\big]\rho\,d^3x' .\]

(Because the field tensor is traceless, only the traceless part of $x_i'x_j'x_k'$ survives the contraction — so $R_{ijk}$ may be, and here is, defined traceless with no loss.) Counting: a symmetric rank-3 tensor in 3-D has $\binom{3+2}{3}=10$ independent entries. Tracelessness $\sum_iR_{iik}=0$ is one condition for each $k$ (and by symmetry every other trace coincides with these): 3 conditions, leaving $10-3=7=2\cdot3+1$ — exactly the number of $Y_{3m}$'s, as the spherical expansion (5.20) predicts.

P5. Exercise 5.1.5 — Linear quadrupoleWilcox 2e §5.13, pp.242–243

Charges $+1$ at $z=\pm a$ on the 3-axis and $-2$ at the origin (the book's Fig. 5.21). (a) From the Cartesian expansion (dipole + quadrupole), find the leading potential for $r\gg a$. (b) Confirm by Taylor-expanding the exact potential. Answer: $q=0$, $\vec p=0$; $Q_{33}=4a^2$, $Q_{11}=Q_{22}=-2a^2$ (off-diagonals zero); $$\Phi\simeq\frac{a^2(3\cos^2\theta-1)}{r^3}=\frac{2a^2}{r^3}P_2(\cos\theta).$$ Check: moments computed from the point set; quadrupole formula equals $\frac12\sum Q_{ij}x_ix_j/r^5$ exactly and the exact 3-charge potential to $O(a^2/r^2)$ relative (test_p05_linear_quadrupole).

Solution

(a) $q=1+1-2=0$; $\vec p=(+1)(a\hat k)+(+1)(-a\hat k)=0$. Quadrupole ($Q_{ij}=\sum_nq_n(3x_ix_j-\delta_{ij}r^2)_n$): the two $\pm a$ charges each give $3z^2-r^2=2a^2$ on the 33 component and $-a^2$ on 11 and 22; the central charge sits at $r=0$:

\[Q_{33}=2(3a^2-a^2)=4a^2,\qquad Q_{11}=Q_{22}=2(0-a^2)=-2a^2.\]

Then

\[\Phi=\frac12\sum_{ij}Q_{ij}\frac{x_ix_j}{r^5} =\frac{-2a^2(x^2+y^2)+4a^2z^2}{2r^5} =\frac{a^2(3z^2-r^2)}{r^5}=\frac{2a^2}{r^3}P_2(\cos\theta).\]

(b) Exactly, with $\cos\theta=\hat r\cdot\hat k$ and $r>a$ the Legendre generating function gives

\[\Phi=\frac1{|\vec r-a\hat k|}+\frac1{|\vec r+a\hat k|}-\frac2r =\frac2r\sum_{\ell\text{ even}}\Big(\frac ar\Big)^\ell P_\ell(\cos\theta)-\frac2r =\frac{2a^2}{r^3}P_2+\frac{2a^4}{r^5}P_4+\dots,\]

whose leading term is (a); odd $\ell$ cancels between $\pm a$ and the monopole cancels against $-2/r$. The next correction is down by $(a/r)^2$ — the prolate ($Q_{33}>0$) case of Fig. 5.3.

P6. Exercise 5.1.6 — Dipole above a conducting planeWilcox 2e §5.13, p.243

(a) A neutral atom with dipole moment $\vec p=(p_x,p_y,p_z)$ sits at height $d$ on the $z$-axis above the grounded conducting plane $z=0$. Find $\Phi(\vec x)$ for $z>0$ by the image method. (b) For $\vec p=p_z\hat k$, find the induced surface density $\sigma$. Answer: (a) image dipole $\vec p\,''=(-p_x,-p_y,+p_z)$ at $(0,0,-d)$: $$\Phi=\frac{\vec p\cdot(\vec x-d\hat k)}{|\vec x-d\hat k|^3} +\frac{\vec p\,''\cdot(\vec x+d\hat k)}{|\vec x+d\hat k|^3}.$$ (b) $\displaystyle\sigma(\rho)=\frac{p_z}{2\pi}\, \frac{2d^2-\rho^2}{(\rho^2+d^2)^{5/2}}$, with $\int\sigma\,da=0$. Check: $\Phi=0$ on the plane; $\sigma$ matches $-\frac1{4\pi}\partial\Phi/\partial z|_{0^+}$ by finite differences; total induced charge integrates to $0$ (test_p06_dipole_over_plane).

Solution

(a) A dipole is the limit of charges $\pm q$ at $d\hat k\pm\frac{\vec\delta}2$ with $\vec p=q\vec\delta$. Each charge images as usual: $q\to-q$ reflected through $z=0$. The image pair sits at $-d\hat k\mp\frac{\vec\delta^{\,}}2$ where $\vec\delta^{\,}=(\delta_x,\delta_y,-\delta_z)$ is the reflection of $\vec\delta$, with the charges swapped in sign. The image dipole is therefore $\vec p\,''=-q\vec\delta^{\,}=(-p_x,-p_y,+p_z)$: the transverse components flip, the vertical one survives. On $z=0$ the two dipole potentials cancel pointwise (each charge cancels its own mirror), so $\Phi=0$ there and uniqueness makes this the* $z>0$ solution. (b) With $\vec p=p_z\hat k$, $\Phi=p_z(z-d)/R_1^3+p_z(z+d)/R_2^3$, $R_{1,2}^2=\rho^2+(z\mp d)^2$. On the plane $R_1=R_2=R=(\rho^2+d^2)^{1/2}$ and

\[\frac{\partial\Phi}{\partial z}\Big|_{z=0} =2p_z\Big[\frac1{R^3}-\frac{3d^2}{R^5}\Big] =\frac{2p_z(\rho^2-2d^2)}{R^5}.\]

The conductor's surface charge is $\sigma=\frac1{4\pi}E_n=-\frac1{4\pi} \partial_z\Phi|_{0^+}$, giving the boxed $\sigma$. For $p_z>0$ the induced charge is positive in the near zone directly beneath the dipole and switches sign on the circle $\rho=\sqrt2\,d$. The total, $\int_0^\infty\sigma\,2\pi\rho\,d\rho\propto\int_{d^2}^\infty \frac{(3d^2-u)}{u^{5/2}}du=0$: a neutral source induces zero net charge.

P7. Exercise 5.2.1 — Cylindrically symmetric quadrupole: energy and forceWilcox 2e §5.13, pp.243–244

(a) For a quadrupole with $Q_{11}=Q_{22}=-\tfrac12Q_{33}$ (others zero) in an external potential $\Phi$, show $$W=\frac14Q_{33}\frac{\partial^2\Phi}{\partial z^2},\qquad \vec F=\frac14Q_{33}\frac{\partial^2\vec E}{\partial z^2}.$$ (b) With the quadrupole at the origin and a point dipole $\vec p=(p_x,p_y,p_z)$ at $\vec x_1=(x_1,0,0)$ (Fig. 5.22), find the force on the quadrupole along direction 1. Answer: (b) $\displaystyle F_1=-\frac{3\,Q_{33}\,p_x}{x_1^{5}}$. Check: $W=\frac14Q_{33}\Phi_{zz}$ equals $\frac16\sum Q_{ij}\Phi_{ij}$ and the microscopic $\sum q_i\Phi(x_i)$; $\vec F$ equals $-\vec\nabla W$; (b) matches the point-charge model of quadrupole + dipole to $5\times10^{-4}$ (test_p07_quad_energy_and_force).

Solution

(a) The quadrupole energy in an external field is (from (5.25), written with derivatives at the quadrupole's location) $W_Q=\frac16\sum_{ij}Q_{ij}\,\partial_i\partial_j\Phi$. With the symmetric $Q_{ij}$ and $\nabla^2\Phi=0$ at the (source-free) quadrupole position,

\[W_Q=\frac16Q_{33}\Big[\Phi_{33}-\tfrac12(\Phi_{11}+\Phi_{22})\Big] =\frac16Q_{33}\Big[\Phi_{33}+\tfrac12\Phi_{33}\Big] =\frac14Q_{33}\frac{\partial^2\Phi}{\partial z^2}.\]

The force is $\vec F=-\vec\nabla W=-\frac14Q_{33}\vec\nabla\Phi_{zz} =\frac14Q_{33}\partial_z^2(-\vec\nabla\Phi)=\frac14Q_{33}\, \partial^2\vec E/\partial z^2$ (derivatives commute). (b) The dipole's field is $\vec E=[3(\vec p\cdot\hat s)\hat s-\vec p]/s^3$ with $\vec s=\vec x-\vec x_1$. Rather than differentiate blindly, use the interaction energy with $\vec x$ the separation from dipole to quadrupole (magnitude $x_1$ along $-\hat 1$): from (5.28)-type algebra, or directly from (a): $W(\vec x_0)=\frac14Q_{33}\,\partial_z^2\Phi_{\rm dip}(\vec x_0)$. On the 1-axis ($\vec s=-x_1\hat 1$), $\Phi_{\rm dip}=\vec p\cdot\vec s/s^3$ gives $\partial_z^2\Phi_{\rm dip}|_{\vec x_0=0}=3p_xx_1/x_1^5\cdot\ldots$ — carrying it out (or by the code's algebra): $W(x_1)=\frac34\,Q_{33}\,p_x/x_1^4$. Moving the quadrupole toward the dipole decreases the separation, so

\[F_1=-\frac{\partial W}{\partial(\text{quadrupole 1-coordinate})} =+\frac{dW}{dx_1}=-3\,Q_{33}\,p_x\,x_1^{-5}.\]

Only $p_x$ (the component along the line of centers) contributes at this order; for $Q_{33}p_x>0$ the quadrupole is pulled away from the dipole.

P8. Exercise 5.2.2 — Quadrupole–quadrupole interactionWilcox 2e §5.13, pp.244–245

Two cylindrically symmetric quadrupoles $Q^{(1)}_{ij}$, $Q^{(2)}_{ij}$ ($Q^{(i)}_{11}=Q^{(i)}_{22}=-\frac12Q^{(i)}_{33}$), both symmetry axes along the 3-direction, separated by $r=|x_1|$ along the 1-direction (Fig. 5.23). Show the interaction energy is $W_{QQ}\propto Q^{(1)}_{33}Q^{(2)}_{33}/r^5$ with coefficient $9/16$. Extra: repeat with the axes and the separation all along 3. Answer: $$W_{QQ}=+\frac{9}{16}\frac{Q^{(1)}_{33}Q^{(2)}_{33}}{r^5} \qquad\text{(perpendicular geometry)},\qquad W^{33}_{QQ}=+\frac32\frac{Q^{(1)}_{33}Q^{(2)}_{33}}{r^5} \quad\text{(collinear)}.$$ The book prints $-\tfrac9{16}$; the sign is an erratum — like-sign $Q_{33}$'s in the Fig. 5.23 geometry repel (see check). Check: microscopic 6-charge sums at $a/r=0.05$ and $0.025$ converge to $+\frac9{16}Q_1Q_2/r^5$ and $+\frac32Q_1Q_2/r^5$ with $O(a^2)$ error — both positive (test_p08_quad_quad_energy).

Solution

Use P7(a) with $\Phi_2$ = potential of quadrupole 2. From P5's algebra, a symmetric quadrupole's potential is

\[\Phi_2(\vec y)=\frac{Q^{(2)}_{33}}{4}\,\frac{3y_3^2-y^2}{y^5},\]

with $\vec y$ measured from quadrupole 2. Then $W=\frac14Q^{(1)}_{33}\,\partial^2\Phi_2/\partial y_3^2$ evaluated at quadrupole 1's position. Perpendicular case $\vec y=(\mp r,0,0)$: with $f=(2y_3^2-y_1^2-y_2^2)/y^5$,

\[\partial_{y_3}^2f\Big|_{(r,0,0)}=\frac4{r^5}-\frac{5(-r^2)}{r^7} =\frac9{r^5}\;\Longrightarrow\; W=\frac14Q^{(1)}_{33}\cdot\frac{Q^{(2)}_{33}}4\cdot\frac9{r^5} =\frac9{16}\frac{Q^{(1)}_{33}Q^{(2)}_{33}}{r^5}.\]

Collinear case $\vec y=(0,0,r)$: on the axis $f=2/y_3^3$, so $\partial_{y_3}^2f=24/r^5$ and $W=\frac14Q_{33}^{(1)}\frac{Q^{(2)}_{33}}4\frac{24}{r^5} =\frac32Q^{(1)}_{33}Q^{(2)}_{33}/r^5$. Sign verdict: the microscopic check (two $(+1,-2,+1)$ triplets) gives $W=+9a^4/r^5\cdot(1+O(a^2/r^2))$ — positive — matching $+9/16\,(4a^2)^2/r^5$; the printed minus sign cannot be reproduced by any orientation consistent with Fig. 5.23. Physically: two prolate charge "dumbbells" side by side present like charges broadside and repel; end-to-end they also repel (positive tips adjacent), consistent with both signs found. Both configurations are unstable extrema in orientation — tilting one axis lowers $W$ (the T-shaped $45°$ arrangements are where quadrupoles attract).

P9. Exercise 5.2.3 — Charge and grounded sphere: summing the multipole seriesWilcox 2e §5.13, p.245

A charge $q$ sits a distance $D$ from the center of a grounded conducting sphere of radius $R<D$. The image solution gives $$W=q\Big({-q\frac RD}\Big)\frac1{D-\frac{R^2}D}=-\frac{q^2R}{D^2}\, \frac1{1-\frac{R^2}{D^2}}.$$ Treating charge + image as a separable configuration about the sphere's center, sum the spherical multipole interaction series (5.32)/(5.37) and recover this result. Answer: $\displaystyle W=\sum_{\ell=0}^\infty q'\Big(\frac{R^2}D\Big)^\ell \frac{q}{D^{\ell+1}}=\frac{qq'}{D}\frac1{1-R^2/D^2}$ with $q'=-qR/D$ — a geometric series in $(R/D)^2$. Check: partial sums converge geometrically to the closed form (ratio $(R^2/D^2)^{L}$), which equals $qq'/(D-R^2/D)$ exactly (test_p09_sphere_multipole_sum).

Solution

The induced surface charge of the grounded sphere is exactly equivalent, for all exterior fields, to the image $q'=-qR/D$ at $\vec x''=(R^2/D)\hat z$ (taking the charge on $+\hat z$). Take $\rho_<$ = image charge (interior), $\rho_>$ = the real charge at $D$: the configuration is separable in the book's sense (all of $\rho_<$ lies at radius $R^2/D<$ all of $\rho_>$ at $D$). The moments (5.33)–(5.34) of on-axis point charges carry only $m=0$:

\[(\rho_<)_{\ell0}=q'\Big(\frac{R^2}D\Big)^{\ell},\qquad (\rho_>)_{\ell0}=\frac{q}{D^{\ell+1}},\]

(using $\sqrt{4\pi/(2\ell+1)}\,Y_{\ell0}(0)=P_\ell(1)=1$). Then (5.37):

\[W=\sum_{\ell m}(\rho_<)^*_{\ell m}(\rho_>)_{\ell m} =\frac{qq'}D\sum_{\ell=0}^\infty\Big(\frac{R^2}{D^2}\Big)^{\ell} =\frac{qq'}{D}\,\frac{1}{1-R^2/D^2}=-\frac{q^2R}{D^2\big(1-\frac{R^2}{D^2}\big)}.\]

Note this $W$ is the charge–surface interaction energy (the full image-Coulomb value), not the $\frac12$-weighted work of assembly — exactly what the product formula (5.37) computes. Each $\ell$ term is the interaction of the charge with the sphere's induced $2^\ell$-pole; the $\ell=0$ term $qq'/D=-q^2R/D^2$ is the "grounded monopole" attraction that survives at $D\gg R$.

P10. Exercise 5.3.1 — Alternate force form; torque on a distributionWilcox 2e §5.13, p.245

(a) Show the force (5.51)/(5.52) can also be written $$\vec F=q\vec E^{(0)}(0)+(\vec p\cdot\vec\nabla)\vec E^{(0)}\big|_0 +\frac16\sum_{ij}Q_{ij}\frac{\partial^2\vec E^{(0)}}{\partial x_i\partial x_j}\Big|_0+\dots,$$ spelling out the assumptions. (b) Show the torque is (either form) $$N_i=(\vec p\times\vec E^{(0)}(0))_i +\frac13\sum_{jkm}\epsilon_{ijk}Q_{jm}\frac{\partial E^{(0)}_k}{\partial x_m}\Big|_0 ,$$ or the same with $\partial E^{(0)}_m/\partial x_k$. Answer: (a) requires $\vec\nabla\times\vec E^{(0)}=0$ and $\vec\nabla\cdot\vec E^{(0)}=0$ throughout the distribution (no external sources there); (b) the two quoted forms are equal because $\partial_mE_k=\partial_kE_m$ for the curl-free external field. Check: multipole force and torque against exact sums for random compact clouds in the field of external point charges; error is next-order small and shrinks with cloud size (test_p10_force_torque_multipole).

Solution

(a) Start from $\vec F=\int\rho\vec E^{(0)}$ (5.41) and Taylor expansion (5.42). Dipole term: $\int\rho\,(\vec x\cdot\vec\nabla')\vec E^{(0)}$ is already $(\vec p\cdot\vec\nabla)\vec E^{(0)}$ — the identity (5.44), $\vec\nabla(\vec x\cdot\vec E^{(0)})=(\vec x\cdot\vec\nabla)\vec E^{(0)}$, needs $\vec\nabla\times\vec E^{(0)}=0$ and converts it to the gradient form of (5.52); running it backwards is where curl-freeness enters. Quadrupole term: the raw Taylor coefficient is $\frac12\sum_{ij}x_ix_j\partial_i\partial_j\vec E$; to replace $x_ix_j\to\frac13(3x_ix_j-r^2\delta_{ij})$ (which builds $Q_{ij}$) one must add $-\frac16r^2\delta_{ij}\partial_i\partial_j\vec E =-\frac16r^2\nabla^2\vec E$, and $\nabla^2\vec E^{(0)} =\vec\nabla(\vec\nabla\cdot\vec E^{(0)})-\vec\nabla\times(\vec\nabla\times\vec E^{(0)})=0$ requires both $\vec\nabla\cdot\vec E^{(0)}=0$ (no external charge inside the distribution) and curl-freeness (statics). With those assumptions the term is $\frac16\sum Q_{ij}\partial_i\partial_j\vec E^{(0)}$. So (5.52) and (5.53) agree in electrostatics whenever the external sources don't overlap the distribution — the book's remark after (5.53). (b) $\vec N=\int\rho\,\vec x\times\vec E^{(0)}(\vec x)\,d^3x$. Expand $E^{(0)}_k(\vec x)=E^{(0)}_k(0)+x_m\partial_mE^{(0)}_k+\dots$:

\[N_i=\epsilon_{ijk}\Big[\int\rho x_j\Big]E^{(0)}_k(0) +\epsilon_{ijk}\Big[\int\rho\,x_jx_m\Big]\partial_mE^{(0)}_k+\dots =(\vec p\times\vec E^{(0)})_i +\epsilon_{ijk}\,\overline{x_jx_m}\,\partial_mE^{(0)}_k,\]

with $\overline{x_jx_m}\equiv\int\rho x_jx_m=\frac13\big(Q_{jm}+\delta_{jm}\int\rho r^2\big)$. The $\delta_{jm}$ piece contributes $\epsilon_{ijk}\partial_jE_k^{(0)}\propto(\vec\nabla\times\vec E^{(0)})_i=0$, leaving $N_i=(\vec p\times\vec E^{(0)})_i+\frac13\epsilon_{ijk}Q_{jm}\partial_mE^{(0)}_k$. Since $\partial_mE_k=\partial_kE_m$ (curl-free), swapping them gives the second quoted form — showing one is sufficient. (The $r^2$ moment — the "scalar radius" — never exerts torque or force in a source-free external field: only the traceless moments are mechanically visible.)

P11. Exercise 5.4.1 — Effective densities from a quadrupole densityWilcox 2e §5.13, p.246

Starting from the quadrupole term of the force expansion of P10(a), argue that atoms with quadrupole density $q_{ij}(\vec x)\equiv n(\vec x)Q_{ij}(\vec x)$ contribute a bulk effective charge density $$\rho^Q_{\rm eff}=\frac16\sum_{ij}\frac{\partial^2q_{ij}}{\partial x_i\partial x_j},$$ plus surface densities $$\sigma^Q_{\rm eff}=-\frac16\sum_{ij}\hat n_j\frac{\partial q_{ij}}{\partial x_i}, \qquad (P^Q_{\rm eff})_j=\frac16\sum_i\hat n_i\,q_{ij}$$ ($\hat n$ = outward normal), the last acting like the surface restriction of (5.55). Answer: two integrations by parts of $\vec F=\int\frac16q_{ij}\,\partial_i\partial_j\vec E\,d^3x$ generate exactly these three terms. Check: quadrature for $q_{ij}=x_1(1+r^2/R_b^2)T_{ij}$ in a ball, external point-charge field: $\vec F_{\rm direct}=\vec F_{\rho}+\vec F_{\sigma}+\vec F_{P}$ to $2\times10^{-4}$ relative (test_p11_quadrupole_effective_densities).

Solution

Summing P10(a)'s quadrupole force over atoms and smoothing,

\[F_k=\frac16\int_Vd^3x\;q_{ij}(\vec x)\,\partial_i\partial_jE_k.\]

Integrate by parts in $x_i$: $F_k=\frac16\oint da\,\hat n_i\,q_{ij}\,\partial_jE_k -\frac16\int(\partial_iq_{ij})\,\partial_jE_k$; integrate the volume term by parts again in $x_j$:

\[F_k=\underbrace{\frac16\oint da\,(\hat n_iq_{ij})\,\partial_jE_k}_{\text{surface polarization}} -\underbrace{\frac16\oint da\,\hat n_j(\partial_iq_{ij})\,E_k}_{\sigma^Q_{\rm eff}E_k} +\underbrace{\frac16\int d^3x\,(\partial_i\partial_jq_{ij})\,E_k}_{\rho^Q_{\rm eff}E_k}.\]

Reading off: the volume piece defines $\rho^Q_{\rm eff}$; the middle surface piece is an ordinary surface charge $\sigma^Q_{\rm eff}=-\frac16\hat n_j\partial_iq_{ij}$; the first surface piece has the structure $\oint(\vec{\mathcal P}\cdot\vec\nabla)E_k$ with $(\mathcal P^Q_{\rm eff})_j=\frac16\hat n_iq_{ij}$ — the surface analog of the bulk dipole-force integrand $(\vec P\cdot\vec\nabla)\vec E$ in (5.55), i.e. a surface polarization (dipole layer), not a surface charge. Note the bookkeeping is exactly one derivative deeper than the dipole case: there $-\vec\nabla\cdot\vec P$ plus $\sigma=\vec P\cdot\hat n$; here two derivatives distribute into (volume) + (surface charge) + (surface dipole layer). The book's bracketed note — that $\vec{\mathcal P}^Q_{\rm eff}$ can be regrouped as a volume polarization $\vec P^Q_{\rm eff}$ with $(P^Q)_j=-\frac16\partial_iq_{ij}$ plus the same surface term — is the single-integration-by-parts reading of the same identity.

P12. Exercise 5.4.2 — Bound charge from free charge in a linear dielectricWilcox 2e §5.13, p.246

(a) Show that inside a linear isotropic dielectric of constant $\epsilon$, $$\rho_{\rm bound}=\Big(\frac{1-\epsilon}{\epsilon}\Big)\rho_{\rm free}.$$ (b) Deduce that for arbitrary geometry the total bound surface charge is $$\int da\,\sigma_{\rm bound}=\Big(\frac{\epsilon-1}{\epsilon}\Big)Q_{\rm free}.$$ Check: dielectric sphere with a central free charge: $\sigma_b=(\epsilon-1)q/(4\pi\epsilon a^2)$, total $(\epsilon-1)q/\epsilon$; net charge seen from outside $=q$ (test_p12_bound_free_charge).

Solution

(a) Inside the material, $\vec\nabla\cdot\vec E=4\pi(\rho_f+\rho_b)$ (5.61) while $\vec\nabla\cdot\vec D=4\pi\rho_f$ (5.65) with $\vec D=\epsilon\vec E$ and constant $\epsilon$ gives $\vec\nabla\cdot\vec E=4\pi\rho_f/\epsilon$ (5.70). Subtracting,

\[4\pi\rho_b=4\pi\rho_f\Big(\frac1\epsilon-1\Big) \;\Longrightarrow\;\rho_b=\frac{1-\epsilon}{\epsilon}\rho_f .\]

Each embedded free charge is screened by a co-located bound charge of opposite sign and fraction $(\epsilon-1)/\epsilon$. (b) The dielectric is neutral: its total bound charge (volume + surface) vanishes, $\int\rho_b\,d^3x+\oint\sigma_b\,da=0$. With (a),

\[\oint\sigma_b\,da=-\int\rho_b\,d^3x =\frac{\epsilon-1}{\epsilon}\int\rho_f\,d^3x =\frac{\epsilon-1}{\epsilon}Q_{\rm free}.\]

The screening charge "pushed off" every interior free charge reappears on the surface, restoring the full $Q_{\rm free}$ as seen by a distant Gaussian surface — the mechanism behind P25's far-field monopole.

P13. Exercise 5.4.3 — Dielectric cylinder in a uniform fieldWilcox 2e §5.13, pp.246–247

An infinite dielectric cylinder (radius $a$, constant $\epsilon$) is placed in an initially uniform field $E_0\hat y$ (the book's Fig. 5.24 — its caption says "magnetic field", an erratum for electric). Solve the boundary-value problem (polar solutions of §3.7) and show $$\Phi_{\rm in}=-\frac{2E_0}{\epsilon+1}\,\rho\sin\phi,\qquad \Phi_{\rm out}=-E_0\rho\sin\phi+E_0\,\frac{\epsilon-1}{\epsilon+1}\, \frac{a^2}{\rho}\sin\phi.$$ Check: continuity of $\Phi$ and of $\epsilon\,\partial_\rho\Phi$ at $\rho=a$, FD-Laplacian $\approx0$ both sides, uniform interior field $E_{\rm in}=2E_0/(\epsilon+1)$, and the $\epsilon\to1$ limit (test_p13_cylinder_in_uniform_field).

Solution

With $y=\rho\sin\phi$, the driving potential is $-E_0\rho\sin\phi$: pure $m=1$, $\sin\phi$ symmetry. The §3.7 separable solutions with this symmetry are $\rho\sin\phi$ and $\rho^{-1}\sin\phi$. Regularity at the axis and the far-field condition force

\[\Phi_{\rm in}=A\rho\sin\phi,\qquad \Phi_{\rm out}=-E_0\rho\sin\phi+\frac{B}{\rho}\sin\phi .\]

Match at $\rho=a$: continuity of $\Phi$ (tangential $E$): $Aa=-E_0a+B/a$; continuity of $D_\rho$: $\epsilon A=-E_0-B/a^2$. Solving,

\[A=-\frac{2E_0}{\epsilon+1},\qquad B=E_0a^2\,\frac{\epsilon-1}{\epsilon+1},\]

the quoted forms. Physics: the interior field is uniform and reduced, $\vec E_{\rm in}=\frac2{\epsilon+1}E_0\hat y$ — the 2-D depolarization factor is $\frac12$ (vs $\frac13$ for the sphere, P24: $\frac3{\epsilon+2}$); the exterior disturbance is a 2-D (line-)dipole $\propto\sin\phi/\rho$ with moment per unit length $\frac{\epsilon-1}{\epsilon+1}\frac{a^2E_0}2\cdot2$. Limits: $\epsilon\to1$ kills the disturbance; $\epsilon\to\infty$ gives $\Phi_{\rm in}\to0$, $B\to E_0a^2$ — the conducting cylinder. This transverse polarizability is the engine of P37's rod force.

P14. Exercise 5.4.4 — Potential of a polarized body; bubble in a polarized slabWilcox 2e §5.13, p.247

(a) Starting from the potential of an elementary dipole $d\Phi=d\vec p\cdot(\vec x-\vec x')/|\vec x-\vec x'|^3$, show that a smooth polarization $\vec P(\vec x')$ produces $$\Phi(\vec x)=\oint ds'\,\frac{\vec P\cdot\hat n'}{|\vec x-\vec x'|} -\int d^3x'\,\frac{\vec\nabla'\cdot\vec P}{|\vec x-\vec x'|},$$ consistent with the densities (5.58)–(5.59). (b) A spherical vacuum bubble of radius $a$ sits in a semi-infinite slab of uniform polarization $\vec P=P_0\hat z$ (Fig. 5.25). Show the field induced by $\vec P$ inside the bubble is $$\vec E_P=\frac{4\pi}3P_0\hat z .$$ Check: surface quadrature of the bubble-wall charge $\sigma_b=-P_0\cos\theta$ gives a uniform interior field $(4\pi/3)P_0\hat z$ at random interior points to $2\times10^{-4}$ (test_p14_bubble_in_polarized_slab).

Solution

(a) Superpose: $d\vec p=\vec P(\vec x')d^3x'$, so

\[\Phi=\int d^3x'\,\vec P(\vec x')\cdot\frac{\vec x-\vec x'}{|\vec x-\vec x'|^3} =\int d^3x'\,\vec P\cdot\vec\nabla'\frac1{|\vec x-\vec x'|},\]

and $\vec P\cdot\vec\nabla'f=\vec\nabla'\cdot(f\vec P)-f\,\vec\nabla'\cdot\vec P$ with the divergence theorem gives the two stated terms: an effective surface charge $\sigma=\vec P\cdot\hat n$ and volume charge $-\vec\nabla'\cdot\vec P$ — precisely (5.59) and (5.58), now derived from the potential rather than the force. (b) Uniform $\vec P$ has $\vec\nabla\cdot\vec P=0$: only surfaces contribute. The bubble wall carries $\sigma_b=\vec P\cdot\hat n'$ with $\hat n'=-\hat r$ (outward from the material means into the bubble): $\sigma_b=-P_0\cos\theta$. A $\cos\theta$ surface charge on a sphere produces a uniform interior field: the interior potential must be $\propto r\cos\theta=z$ (the only regular $\ell=1$ harmonic), and matching the standard boundary conditions gives $\Phi_{\rm in}=-\frac{4\pi}3P_0z$, i.e. $\vec E_P=+\frac{4\pi}3P_0\hat z$ — anti-parallel to the wall dipoles' interior field... directed along $+\hat z$ because the negative bound charge sits on top ($\sigma_b<0$ at $\theta=0$). The slab's remote outer face also carries bound charge, but its (position-independent) sheet field is part of the macroscopic field $\vec E$ in the Clausius–Mossotti bookkeeping of P15(c); the exercise's $\vec E_P$ is the local cavity (Lorentz) term, and that is exactly the $\frac{4\pi}3\vec P$ evaluated here. (The exact interior integral is done by the code as a brute-force surface quadrature — it is uniform to the quoted accuracy at every sampled interior point.)

P15. Exercise 5.4.5 — Cubical hole and the Clausius–Mossotti relationWilcox 2e §5.13, pp.247–249

A cubical vacuum hole sits in a material of uniform polarization $\vec P=P_0\hat z$ (Fig. 5.26). (a) Show the field induced by $\vec P$ at the hole's center is $\vec E_P(0)=2P_0\int_{\rm top}\vec x'\,da'/r'^3$ (integral over the top face). (b) By symmetry and solid angle, show $\vec E_P(0)=\frac{4\pi}3P_0\hat z$. (c) With the local-field model $\vec P=N\alpha_{\rm mol}\vec E_T$, $\vec E_T=\vec E+\vec E_P$, and (5.66) $\vec P=\chi\vec E$, derive $$\alpha_{\rm mol}=\frac1N\,\frac{\chi}{1+\frac{4\pi}3\chi} \qquad\text{(Clausius–Mossotti)}.$$ Check: face solid angle $=2\pi/3$ by quadrature; $E_P(0)=(4\pi/3)P_0$; CM inverts consistently ($\chi\leftrightarrow\alpha$ round-trip) (test_p15_cubical_hole).

Solution

(a) By P14(a) only the hole's walls contribute (uniform $\vec P$). On the four side faces $\vec P\cdot\hat n'=0$; the top face ($z'=+L/2$, material's outward normal $\hat n'=-\hat z$) carries $\sigma_b=-P_0$ and the bottom $+P_0$. The field at the center is $\vec E(0)=-\oint\sigma_b\,\hat x'\,da'/r'^3$ (pointing from the walls to the origin); the two charged faces contribute equally by the symmetry $\vec x'\to-\vec x'$, so

\[\vec E_P(0)=2P_0\int_{\rm top}\frac{\vec x'\,da'}{r'^3}.\]

(b) The transverse components integrate to zero on the square; the $z$-component is $2P_0\int_{\rm top}(z'/r'^3)da'=2P_0\,\Omega_{\rm face}$, where $\Omega_{\rm face}=\int\cos\theta'\,da'/r'^2$ is the solid angle the face subtends at the center. Six congruent faces tile the full sphere: $\Omega_{\rm face}=4\pi/6=2\pi/3$. Hence $\vec E_P(0)=2P_0\cdot\frac{2\pi}3\hat z=\frac{4\pi}3P_0\hat z$ — identical to the spherical cavity of P14(b): the $\frac{4\pi}3$ Lorentz factor is shared by any cavity with cubic-or-better symmetry. (c) Each molecule polarizes in the total local field: $\vec P=N\alpha\vec E_T=N\alpha(\vec E+\tfrac{4\pi}3\vec P)$. Insert $\vec P=\chi\vec E$:

\[\chi=N\alpha\Big(1+\frac{4\pi}3\chi\Big) \;\Longrightarrow\; \alpha_{\rm mol}=\frac1N\frac{\chi}{1+\frac{4\pi}3\chi},\]

and with $\chi=(\epsilon-1)/4\pi$ (5.67) this is the familiar $\alpha=\frac3{4\pi N}\frac{\epsilon-1}{\epsilon+2}$. The correction factor $(1+\frac{4\pi}3\chi)^{-1}$ is exactly the cavity field of (a)–(b): dense media polarize more easily than the naive $\chi=N\alpha$ because each atom feels its neighbors' polarization.

P16. Exercise 5.6.1 — Dielectric corner by imagesWilcox 2e §5.13, p.249

Two perpendicular dielectric interfaces (the $x$–$z$ and $y$–$z$ planes) meet at the origin; the dielectric ($\epsilon\neq1$) occupies the region outside the first quadrant ($x<0$ or $y<0$, all $z$; Fig. 5.27), with the unit charge in the vacuum quadrant at $(x',y',z')$, $x',y'>0$. Find the Green function in Cartesian coordinates. Answer: with $\beta=\dfrac{1-\epsilon}{1+\epsilon}$ (the single-interface image coefficient of §5.6) and $R_{s_xs_y}=|\vec x-(s_xx',s_yy',z')|$, the corner ansatz in the vacuum quadrant is $$G=\frac1{R_{++}}+\frac{\beta}{R_{-+}}+\frac{\beta}{R_{+-}} +\frac{\beta^2}{R_{--}},$$ with transmitted pieces $\tau(1/R_{++}+\beta/R_{+-})$ in $x<0,y>0$, $\tau(1/R_{++}+\beta/R_{-+})$ in $x>0,y<0$, and $\tau^2/R_{++}$ in the third quadrant, $\tau=2/(1+\epsilon)=1+\beta$. Caveat (module finding): this construction satisfies all interface conditions exactly only if the third quadrant has permittivity $\epsilon^2$ (factorizable medium $\epsilon(x,y)=e(x)e(y)$). For the uniform-$\epsilon$ region of the figure it is exact on both vacuum–dielectric interfaces and violates only the internal $x=0,y<0$ / $y=0,x<0$ seam conditions at $O(\beta)$ — it is the first-order-in-$\beta$ (single-reflection) solution, and one can show no finite image set is exact for the uniform corner. Check: factorized medium: seam continuity $<10^{-12}$, $D$-matching at FD precision; uniform medium: continuity still exact, internal-seam $D$-residual scales as $\beta^1$ (test_p16_dielectric_corner).

Solution

Construction. A single plane interface reflects with coefficient $\beta$ and transmits with $\tau=1+\beta$ (Eqs. 5.106–5.107). Compose the two perpendicular interfaces as for the conductor corner (§3.1): each reflection multiplies by $\beta$, so the vacuum-side images at $(-x',y')$, $(x',-y')$ carry $\beta$ and the doubly reflected $(-x',-y')$ carries $\beta^2$; crossing an interface multiplies by $\tau$. Verification. On $x=0,y>0$: with $R_{++}=R_{-+}$ and $R_{+-}=R_{--}$ there, $G_{Q1}|_0=(1+\beta)(1/R_{++}+\beta/R_{+-})=\tau(\dots)=G_{Q2}|_0$ — continuous; the normal derivatives give $(1-\beta)=\epsilon\tau\iff\beta=(1-\epsilon)/(1+\epsilon)$ — satisfied. The same works on $y=0,x>0$, and on the internal seams provided the media ratio across them is again $\epsilon$ — i.e. third quadrant $\epsilon^2$. For uniform $\epsilon$ the internal-seam $D$ condition fails by $-2\epsilon\tau\beta\,x'/R^3$-type terms: pure $O(\beta)$. No-go for the uniform corner: the dielectric region is connected, so its potential is one harmonic function whose only allowed image singularity is the source point itself, $G_d=t/R_{++}$; matching term-by-term on the two interfaces then forces $b+c=0,\;b-c=0$ from $x=0$ but $b=t-1\neq0$ from $y=0$ — a contradiction unless $\epsilon=1$. Hence the exercise's expected $\beta$-composition answer is exact only in the factorizable sense above, or to first order in $\beta$ (weak dielectric) for the drawn geometry — the 2-D dielectric wedge is in fact a classic problem with no closed image solution. Both readings are quoted in the answer; the code pins down each statement numerically.

P17. Exercise 5.6.2 — Charge between a conductor and a dielectric slabWilcox 2e §5.13, pp.249–250

A semi-infinite dielectric ($\epsilon$, occupying $z>d$) faces a grounded conducting plane at $z=0$; a unit charge sits between them at $0<z'<d$ (Fig. 5.28). With the Bessel expansions $$\delta(\vec x-\vec x')=\sum_m\frac{e^{im(\phi-\phi')}}{2\pi} \int_0^\infty dk\,k\,J_m(k\rho)J_m(k\rho')\,\delta(z-z'),\qquad G_D=4\pi\sum_m\frac{e^{im(\phi-\phi')}}{2\pi}\int_0^\infty dk\,kJ_mJ_m'\,g(z,z'),$$ (the $m$ sums collapse via Ex. 4.2.1), show the reduced Green function is $$g=\begin{cases}f(z_>)\sinh(kz_<),&z<d\\[2pt] K(z')\,e^{k(2d-z)},&z>d\end{cases} \qquad f(z_>)=\frac{e^{kz_>}}k\; \frac{1+\frac{1+\epsilon}{1-\epsilon}e^{2k(d-z_>)}}{1+\frac{1+\epsilon}{1-\epsilon}e^{2kd}},\qquad K(z')=\frac{\frac2{1-\epsilon}\frac{\sinh(kz')}k}{1+\frac{1+\epsilon}{1-\epsilon}e^{2kd}}.$$ Check: the closed form equals an independent 4-coefficient linear solve on a $(k,z,z')$ grid to $10^{-10}$; $g(0)=0$; unit jump at $z'$; $g'(d^-)=\epsilon g'(d^+)$; $\epsilon\to1$ reduces to the conductor-only $\sinh(kz_<)e^{-kz_>}/k$; $\epsilon\to\infty$ makes $g(d)\to0$ (test_p17_slab_over_conductor).

Solution

Fourier-transforming in the transverse plane turns $\nabla^2G_D=-4\pi\delta$ into the 1-D problem $(k^2-\partial_z^2)g=\delta(z-z')$ per mode (§3.2 / Eq. 5.84). The piecewise ansatz respecting the boundary conditions is

\[g=\begin{cases}A\sinh(kz),&0<z<z'\quad(\text{grounded wall})\\ Be^{kz}+Ce^{-kz},&z'<z<d\\ De^{-kz},&z>d\quad(\text{decay}),\end{cases}\]

with four conditions: continuity at $z'$; slope jump $g'(z'^-)-g'(z'^+)=1$; continuity at $d$; and $D_n$ continuity $g'(d^-)=\epsilon g'(d^+)$ (vacuum below, $\epsilon$ above). Eliminating $A,B,C,D$ (the code does it by linear algebra; by hand one propagates the wall solution $\sinh(kz)$ upward and the decaying solution downward, gluing at $z'$) yields exactly the quoted $f(z_>)$, $K(z')$ — the $e^{k(2d-z)}$ writing of the outer branch absorbs $e^{2kd}$ into the normalization so that $c\equiv\frac{1+\epsilon}{1-\epsilon}$ appears symmetrically. Notes: (i) $c<-1$ for $\epsilon>1$, so the denominator $1+ce^{2kd}$ never vanishes; (ii) the structure is a two-mirror ladder: expanding $[1+ce^{2kd}]^{-1}$ in powers of $c^{-1}e^{-2kd}$ regenerates the infinite image series between the conductor ($-1$ reflections) and the dielectric surface ($\beta$ reflections); (iii) both P40's force integral and P42's $\epsilon\to\infty$ plate problem are direct corollaries of this $g$.

P18. Exercise 5.6.3 — Interchanging the vacuum and dielectricWilcox 2e §5.13, p.251

Find a substitution of parameters that converts P17's Green function into the one for Fig. 5.29 — dielectric slab attached to the conductor ($0<z<d$), vacuum beyond, the unit charge still between the plate and the $z=d$ surface (now inside the dielectric). Answer: $$G_D^{\rm swapped}(\epsilon)=\frac1\epsilon\,G_D^{\rm P17}\!\Big(\epsilon\to\frac1\epsilon\Big),$$ same $(z,z')$ — replace $\epsilon\to1/\epsilon$ everywhere and divide by $\epsilon$. Check: direct 4-coefficient solve of the swapped geometry equals $(1/\epsilon)\,g_{\rm P17}(1/\epsilon)$ to $10^{-10}$ across a $(k,z,z')$ grid; $\epsilon=1$ reduces to the conductor-only form (test_p18_swap_substitution).

Solution

The swapped problem solves $\vec\nabla\cdot[\epsilon_s(z)\vec\nabla G]=-4\pi\delta$ with $\epsilon_s=\epsilon$ for $z<d$ and $1$ for $z>d$. Divide the whole equation by the constant $\epsilon$:

\[\vec\nabla\cdot\Big[\frac{\epsilon_s(z)}{\epsilon}\vec\nabla G\Big] =-\frac{4\pi}\epsilon\delta .\]

But $\epsilon_s/\epsilon$ equals $1$ below $d$ and $1/\epsilon$ above — the original P17 medium pattern with dielectric constant $1/\epsilon$, and a source of strength $1/\epsilon$. By linearity and uniqueness, $G^{\rm swapped}(\epsilon)=\frac1\epsilon G^{\rm P17}(1/\epsilon)$. Only the ratio of permittivities across an interface (and the value at the source) matters. Sanity limits: $\epsilon\to\infty$ makes the swapped $G\to0$ (charge frozen inside a conductor-like slab); $\epsilon\to1$ recovers P17's $\epsilon\to1$ conductor-only kernel; and the $\beta$ coefficient maps as $\beta(1/\epsilon)=-\beta(\epsilon)$ — reflections off the interface flip sign, as they must when approaching from the dense side.

P19. Exercise 5.6.4 — 1-D Green function with a dielectric slabWilcox 2e §5.13, p.251

Conducting walls at $x=0$ and $x=L$ (the 1-D setting of §2.9); a dielectric slab of constant $\epsilon$ fills $0<x<d$ ($d<L$). For a charge in the vacuum region ($d<x'<L$), solve $-d^2G_D/dx^2=\delta(x-x')$ (vacuum-region normalization) with the dielectric interface conditions and check the $\epsilon=1$, $d\to0$ limits against §2.9's $G_D=x_<(1-x_>/L)$ (2.136). Answer: with $\Delta\equiv d+\epsilon(L-d)$, $$G_D=\begin{cases} \alpha\,x,&x<d\\[4pt] \alpha\,[\,d+\epsilon(x-d)\,],&d<x<x'\\[4pt] B\,(L-x),&x>x' \end{cases} \qquad \alpha=\frac{L-x'}{\Delta},\qquad B=\frac{d+\epsilon(x'-d)}{\Delta}.$$ Check: closed form vs a 4000-cell flux-form finite-difference solve of $-(d/dx)[\epsilon(x)G']=\delta$ (relative $2\times10^{-3}$); exact reduction to $x_<(1-x_>/L)$ at $\epsilon=1$ and as $d\to0$ (test_p19_oneD_green).

Solution

Piecewise-linear ansatz (1-D harmonic functions are lines): $G=\alpha x$ for $x<d$ (wall at 0), $G=\gamma+\beta x$ for $d<x<x'$, $G=B(L-x)$ for $x>x'$ (wall at $L$). Conditions: (i) continuity at $d$; (ii) $D$ continuity at $d$: $\epsilon\,\alpha=\beta$ (the 1-D $D=-\epsilon\,dG/dx$); (iii) continuity at $x'$; (iv) unit source in vacuum: $G'(x'^-)-G'(x'^+)=1$, i.e. $\beta+B=1$. From (i)–(ii): $G=\alpha d+\epsilon\alpha(x-d)$ in the middle. From (iii): $\alpha[d+\epsilon(x'-d)]=B(L-x')$. Substituting $B=1-\epsilon\alpha$ and solving,

\[\alpha=\frac{L-x'}{d+\epsilon(L-d)},\qquad B=\frac{d+\epsilon(x'-d)}{d+\epsilon(L-d)}.\]

(The Answer block's second expression for $B$ simplifies to this; the code uses these forms.) Limits: $\epsilon=1$: $\alpha=(L-x')/L$, $B=x'/L$ — exactly (2.136); $d\to0$: same. Interpretation: the slab acts like a series capacitor — the "electrical thickness" of the dielectric layer is $d/\epsilon$ when referred to the vacuum side (rewrite $\Delta/\epsilon=d/\epsilon+(L-d)$, the denominator of P43), so the charge's image weight shifts exactly as the reduced distance dictates.

P20. Exercise 5.6.5 — Image solution for two dielectric half-spacesWilcox 2e §5.13, pp.251–252

Media $\epsilon_1$ ($z<0$) and $\epsilon_2$ ($z>0$) meet at the plane $z=0$; a free point charge $q$ sits at $z'>0$ (Fig. 5.30). Find $\Phi$ everywhere by images, confirming the book's quoted answer $$\Phi_{z>0}=\frac1{\epsilon_2}\Big(\frac q{R_1}+\frac{q'}{R_2}\Big),\qquad \Phi_{z<0}=\frac1{\epsilon_1}\frac{q''}{R_1},$$ $$q'=q\,\frac{\epsilon_2-\epsilon_1}{\epsilon_2+\epsilon_1},\qquad q''=2q\,\frac{\epsilon_1}{\epsilon_2+\epsilon_1},$$ with $R_1=|\vec x-\vec x'|$, $R_2=|\vec x-\vec x''|$, $\vec x''=(x',y',-z')$. Check: continuity of $\Phi$ and of $\epsilon\partial_z\Phi$ across $z=0$ on a grid; FD-harmonic off the charge; $\epsilon_1=\epsilon_2$ reduces to the uniform-medium Coulomb form (test_p20_two_halfspace_images).

Solution

Ansatz: in the charge's region use the source (screened by $\epsilon_2$) plus one image at the mirror point; in the far region a single effective charge at the true source position:

\[\Phi_2=\frac1{\epsilon_2}\Big(\frac q{R_1}+\frac{q'}{R_2}\Big),\qquad \Phi_1=\frac1{\epsilon_1}\frac{q''}{R_1}.\]

Both are harmonic in their half-spaces (images live outside), and $\nabla\cdot(\epsilon\nabla\Phi)$ has exactly the $-4\pi q\delta$ source at $\vec x'$. On $z=0$, $R_1=R_2\equiv R$, so: continuity: $\frac1{\epsilon_2}(q+q')=\frac{q''}{\epsilon_1}$; normal $D$: $\partial_z(1/R_1)|_0=+z'/R^3$ and $\partial_z(1/R_2)|_0=-z'/R^3$, so $D_z$ continuity ($\epsilon_2\partial_z\Phi_2=\epsilon_1\partial_z\Phi_1$) gives $q-q'=q''$. Solving the pair,

\[q'=q\frac{\epsilon_2-\epsilon_1}{\epsilon_2+\epsilon_1},\qquad q''=\frac{2q\epsilon_1}{\epsilon_1+\epsilon_2}\; \Big(\Rightarrow \Phi_1=\frac{2q}{(\epsilon_1+\epsilon_2)R_1}\Big).\]

Limits: $\epsilon_1=\epsilon_2=\epsilon$: $q'=0$, $\Phi=q/(\epsilon R_1)$ everywhere ✓; $\epsilon_1\to\infty$: $q'=-q$ — the grounded conductor; $\epsilon_2=1,\epsilon_1=\epsilon$: the book's (5.106)–(5.107). Sign physics: for $\epsilon_1>\epsilon_2$ the image $q'$ is negative — the charge is attracted toward the optically denser medium (bound charge of opposite sign accumulates at the interface, cf. (5.111) and P36).

P21. Exercise 5.6.6 — Dielectric slab of finite thicknessWilcox 2e §5.13, pp.252–253

A uniform slab (constant $\epsilon$, thickness $d$, infinite transversely) occupies $-d<z<0$; a unit charge sits at $z'>0$ (Fig. 5.31). Assuming the reduced form (5.82), give the functional forms of $g(z)$ in every region and the conditions fixing the coefficients; argue the count closes (no need to solve). Answer: four regions, $$g=\begin{cases}Ae^{-kz},&z>z'\\ Be^{kz}+Ce^{-kz},&0<z<z'\\ De^{kz}+Ee^{-kz},&-d<z<0\\ Fe^{kz},&z<-d,\end{cases}$$ six unknowns; six conditions: continuity and unit slope-jump at $z'$; continuity and $D_n$ ($g'(0^+)=\epsilon g'(0^-)$) at $z=0$; continuity and $\epsilon g'(-d^+)=g'(-d^-)$ at $z=-d$. A linear system with a nonvanishing determinant → unique solution. Check: the $6\times6$ solve satisfies all six conditions; $\epsilon\to1$ returns the free $e^{-k|z-z'|}/2k$; for $kd\gg1$ the $z>0$ branch matches the half-space (5.104) (test_p21_finite_slab).

Solution

Each region is source-free (except the delta at $z'$), so $g''=k^2g$ with solutions $e^{\pm kz}$; boundedness kills the growing exponential in the two outer regions (leaving $A$ and $F$), while both exponentials survive in the bounded regions ($B,C$ and $D,E$): six constants. The matching conditions are the standard four interface equations (continuity + $D_n$ at $z=0$ and $z=-d$) plus the two source conditions at $z'$ (continuity + jump $g'(z'^-)-g'(z'^+)=1$). Six linear equations, six unknowns; solvability: the associated homogeneous problem (no source) admits only $g\equiv0$ (a nontrivial bounded solution would violate uniqueness of the Dirichlet problem at infinity), so the determinant is nonzero and the inhomogeneous system has exactly one solution — "enough information." Physically the solved kernel (code) shows the two-interface ladder: the charge sees an image train with alternating reflection coefficients $\beta$ at $z=0$ and $-\beta$-weighted internal reflections between $0$ and $-d$, summing to a geometric series in $\beta^2e^{-2kd}$; at $kd\gg1$ single reflection dominates → half-space; at $\epsilon\to1$, $\beta\to0$ → free space.

P22. Exercise 5.7.1 — 2-D Green function of a dielectric cylinderWilcox 2e §5.13, p.253

Using the reduced-Green-function technique with a line-charge source (as in Ex. 4.8.3), find $G$ for an infinite dielectric cylinder (constant $\epsilon$, radius $a$), unit-density line charge outside at $\rho'>a$ (the book's Fig. 5.32 — its caption says "Exercise 5.9.10", an erratum: it belongs here). Verify the book's hinted answer $$G=4\sum_{m=0}^{\infty}\cos[m(\phi-\phi')]\,g_m(\rho,\rho'),\qquad g_0=-\tfrac12\ln(\rho_>/K),$$ $$g_{m\ge1}=\begin{cases} \dfrac1{m(1+\epsilon)}\Big(\dfrac{\rho}{\rho'}\Big)^m,&\rho<a\\[8pt] \dfrac1{2m}\Big(\dfrac{\rho_<}{\rho_>}\Big)^m \Big[1+\dfrac{1-\epsilon}{1+\epsilon}\Big(\dfrac a{\rho_<}\Big)^{2m}\Big],&\rho>a . \end{cases}$$ Check: each $g_m$ satisfies the radial ODE (FD), both $\rho=a$ interface conditions, and the source jump $\rho'[g'(-)-g'(+)]=1$ ($\tfrac12$ for $m{=}0$); the $\epsilon=1$ sum reproduces $-2\ln|\vec x_\perp-\vec x'_\perp|$ to $10^{-6}$; the $\epsilon\neq1$ sum is continuous across $\rho=a$ (test_p22_cylinder_2d_green).

Solution

In 2-D the Green equation is $\vec\nabla\cdot(\epsilon\vec\nabla G)=-4\pi\delta^2$, free solution $-2\ln(\rho/K)$ (Eq. 3.11; $K$ is the line-charge length scale — physics is $K$-independent). Expand $G$ and $\delta(\phi-\phi')=\frac1{2\pi}[1+2\sum_m\cos m(\phi-\phi')]$ in azimuthal modes; with the book's prefactor $4$, the mode problems are

\[\frac1\rho\big(\rho\,\epsilon(\rho)\,g_0'\big)'=-\frac{\delta(\rho-\rho')}{2\rho}, \qquad \big(\rho g_m'\big)'-\frac{m^2}{\rho}g_m=-\frac{\delta(\rho-\rho')}{1}\cdot\frac1\rho\cdot\rho\Big|_{\rm jump\ } \rho'[g_m'(-)-g_m'(+)]=1 .\]

$m=0$: inside the dielectric $g_0=$ const (regular); $D$ continuity forces the middle region's log coefficient to vanish too, so $g_0$ is constant out to $\rho'$ and $-\tfrac12\ln(\rho/K)$ beyond — i.e. $g_0=-\tfrac12\ln(\rho_>/K)$, independent of $\epsilon$: a neutral dielectric leaves no monopole image (total bound charge zero, P12). $m\ge1$: $g_m=A\rho^m$ ($\rho<a$), $B\rho^m+C\rho^{-m}$ ($a<\rho<\rho'$), $D\rho^{-m}$ ($\rho>\rho'$). Interface at $a$: continuity $Aa^m=Ba^m+Ca^{-m}$ and $D_\rho$: $\epsilon mAa^{m-1}=mBa^{m-1}-mCa^{-m-1}$ give $C=\beta a^{2m}B$, $A=(1+\beta)B$ with $\beta=(1-\epsilon)/(1+\epsilon)$; the jump at $\rho'$ fixes $B=\rho'^{-m}/2m$, $D=B[\rho'^{2m}+\beta a^{2m}]$. Assembling gives exactly the quoted branches: outside, the induced part is the source's $m$-th image weight $\beta(a^2/\rho\rho')^m$ — the dielectric analog of the line-charge-in-cylinder image of §3.3, with strength $\beta$ instead of $-1$; inside, the transmitted mode $(1+\beta)/2m=(1/m(1+\epsilon))$. At $\epsilon=1$ the sum telescopes to $-2\ln\rho_>+2\sum_m\frac1m(\rho_</\rho_>)^m\cos m\Delta\phi =-2\ln|\vec x_\perp-\vec x'_\perp|$ ✓. (P44 sums the coincidence limit into the force on the line charge.)

P23. Exercise 5.7.2 — Point charge outside a dielectric cylinderWilcox 2e §5.13, pp.253–254

Same cylinder, now a point charge outside (Fig. 5.33). Assume the reduced form (as Ex. 4.7.4) $$G=\frac2\pi\sum_{m=-\infty}^{\infty}e^{im(\phi-\phi')} \int_0^\infty dk\,\cos[k(z-z')]\,g_m(\rho,\rho'),\qquad 4\pi\delta=\frac2\pi\sum_me^{im\Delta\phi}\int_0^\infty dk\cos k\Delta z\, \frac{\delta(\rho-\rho')}\rho .$$ Motivate the solutions in the three radial regions in terms of modified Bessel functions, and exhibit the conditions that determine the coefficients (no need to solve). Answer: regular/decaying combinations of $I_m(k\rho)$, $K_m(k\rho)$: $$g_m=\begin{cases}A\,I_m(k\rho),&\rho<a\\ B\,I_m(k\rho)+C\,K_m(k\rho),&a<\rho<\rho'\\ D\,K_m(k\rho),&\rho>\rho',\end{cases}$$ with (i) continuity at $a$; (ii) $\epsilon\,g_m'(a^-)=g_m'(a^+)$; (iii) continuity at $\rho'$; (iv) jump $g_m'(\rho'^-)-g_m'(\rho'^+)=1/\rho'$ — four linear conditions for $A,B,C,D$, uniquely solvable (nonzero Wronskian determinant). Check: the $4\times4$ solve satisfies all four conditions by FD; at $\epsilon=1$ the assembled double sum reproduces $1/|\vec x-\vec x'|$ to $2\times10^{-3}$; for $\epsilon\neq1$ the assembled $G$ is continuous across $\rho=a$ (test_p23_cylinder_3d_reduced).

Solution

Insert the expansions into $\vec\nabla\cdot(\epsilon\vec\nabla G)=-4\pi\delta$: each $(m,k)$ mode obeys the modified Bessel equation

\[g_m''+\frac{g_m'}\rho-\Big(k^2+\frac{m^2}{\rho^2}\Big)g_m =-\frac{\delta(\rho-\rho')}{\rho},\]

whose homogeneous solutions are $I_m(k\rho)$ (regular at 0, grows) and $K_m(k\rho)$ (decays, singular at 0) — "Bessel functions of imaginary argument". Regularity on the axis keeps only $I_m$ inside the dielectric; decay at $\rho\to\infty$ keeps only $K_m$ outside the source; both survive in the annulus: four constants. The four conditions above are two interface conditions at the dielectric surface (tangential $E$ ↔ continuity of $g$; normal $D$ ↔ the $\epsilon$-weighted slope) and the two source conditions (the jump normalization follows by integrating the mode equation across $\rho'$). Uniqueness: the homogeneous system would need a bounded solution of the modified Bessel problem vanishing in all three regions' boundary senses; none exists (the Wronskian $I_mK_m'-I_m'K_m=-1/x$ never vanishes), so the $4\times4$ determinant is nonzero: the coefficients are determined — "enough information," as the exercise asks. The code's $\epsilon=1$ cross-check $G\to1/|\vec x-\vec x'|$ validates the normalization ($g_m^{\rm free} =I_m(k\rho_<)K_m(k\rho_>)$ by the Wronskian, exactly the classic identity).

P24. Exercise 5.7.3 — Dielectric sphere in a uniform field, via the Green functionWilcox 2e §5.13, p.254

From the Green function of a unit charge near a dielectric sphere, generate the uniform-field solution by the distant-charge trick of §3.3 (Fig. 5.34), confirming $$\Phi_{\rm out}=-E_0z+\frac{\vec p\cdot\vec x}{r^3},\quad \vec p=\frac{\epsilon-1}{\epsilon+2}a^3E_0\hat z;\qquad \Phi_{\rm in}=-\frac{3E_0z}{\epsilon+2}.$$ Check: interface conditions at $r=a$; the exact series with a source at $R=300a$, $q=E_0R^2$ matches the closed forms to $2\%$ (the $O(a/R)$ residual); the $\ell=1$ induced coefficient equals $(\epsilon-1)a^3E_0/(\epsilon+2)$ (test_p24_sphere_uniform_field).

Solution

Put $q=E_0R^2$ at $z=-R$ ($R\to\infty$): near the origin its field is $E_0\hat z$ with corrections $O(r/R)$, and its potential is $q/R+E_0z+\dots$ — after dropping the constant, the applied $-E_0z$ (sign per the geometry: the code handles the bookkeeping; here quote the standard orientation). In the exterior Green function (5.141) each induced term scales as $q\,a^{2\ell+1}/(rR)^{\ell+1}=E_0R^{1-\ell}(\cdots)$: only $\ell=1$ survives $R\to\infty$,

\[q\cdot\frac{(\epsilon-1)\cdot1}{1\cdot(1+\epsilon)+1}\, \frac{a^3}{r^2R^2}P_1(\cos\gamma)\longrightarrow \frac{\epsilon-1}{\epsilon+2}\,a^3E_0\,\frac{\cos\theta}{r^2} =\frac{\vec p\cdot\vec x}{r^3},\]

the field of the induced dipole $\vec p=\frac{\epsilon-1}{\epsilon+2}a^3E_0\hat z$ (Eq. 5.144). Likewise the interior kernel (5.140) keeps only $\ell=0$ (constant, dropped) and $\ell=1$: $q\cdot\frac{3}{\epsilon+2}\frac{r}{R^2}P_1\to\frac3{\epsilon+2}E_0r\cos\theta$ with the sign arranging to $\Phi_{\rm in}=-\frac{3}{\epsilon+2}E_0z$ — a uniform interior field $\vec E_{\rm in}=\frac3{\epsilon+2}E_0\hat z$ (5.146), reduced by the spherical depolarization factor $\frac13$: $E_{\rm in}=E_0/[1+\frac{\epsilon-1}3]$. Boundary sanity: $\Phi$ continuous at $r=a$ ($-E_0a+p/a^2$ vs $-3E_0a/(\epsilon+2)$ — equal by the $p$ value) and $\epsilon\partial_r\Phi_{\rm in}=\partial_r\Phi_{\rm out}$ ✓ (code). This is the sphere twin of P13's cylinder ($\frac2{\epsilon+1}$ vs $\frac3{\epsilon+2}$).

P25. Exercise 5.7.4 — Green function with the source inside the sphereWilcox 2e §5.13, p.255

Find $G$ for the dielectric sphere when the unit source is inside ($r'<a$). For $r\gg a$ identify the effective dipole moment and evaluate the total polarization charge on the surface, comparing with P12(b). [The book's hint: get part of the answer from the symmetry $G(\vec x,\vec x')=G(\vec x',\vec x)$ and the $r'>a$ solution of §5.7.] Answer: for $r>a$ (by symmetry with (5.140)): $G=\sum_\ell\frac{2\ell+1}{\ell(1+\epsilon)+1}\frac{r'^\ell}{r^{\ell+1}}P_\ell(\cos\gamma)$; for $r,r'<a$: $$G=\frac1\epsilon\frac1{|\vec x-\vec x'|} +\sum_\ell\frac{(\ell+1)(\epsilon-1)}{\epsilon\,[\ell(1+\epsilon)+1]} \frac{(rr')^\ell}{a^{2\ell+1}}P_\ell(\cos\gamma).$$ Far field: monopole $1/r$ (the full free charge) and $\vec p_{\rm eff}=\dfrac{3\,\vec x'}{\epsilon+2}$; total surface polarization charge $\displaystyle\oint\sigma_b\,da =\frac{\epsilon-1}\epsilon$ — exactly P12(b) with $Q_{\rm free}=1$. Check: closed coefficients equal an independent $4\times4$ solve for every $\ell$; far-field monopole $=1$ and dipole $=3r'/(\epsilon+2)$ from the series; $\oint\sigma_b$ by quadrature $=(\epsilon-1)/\epsilon$ independent of $r'$ (test_p25_source_inside_sphere).

Solution

Radial ansatz per $\ell$ (source in the dielectric): $g_\ell=Ar^\ell$ ($r<r'$), $Br^\ell+Cr^{-\ell-1}$ ($r'<r<a$), $Dr^{-\ell-1}$ ($r>a$). Source conditions at $r'$ (in medium $\epsilon$): continuity and $\epsilon r'^2[g'(-)-g'(+)]=1\cdot r'^0\Rightarrow g'(-)-g'(+)=1/(\epsilon r'^2)$, giving directly $C=r'^\ell/[\epsilon(2\ell+1)]$ — the Coulomb-in-medium direct part. Interface at $a$: continuity and $\epsilon g'(a^-)=g'(a^+)$ give

\[B=\frac{(\ell+1)(\epsilon-1)}{\ell(1+\epsilon)+1}\,\frac{C}{a^{2\ell+1}},\qquad D=Ba^{2\ell+1}+C=\frac{r'^\ell}{\ell(1+\epsilon)+1},\]

and $A=B+C\,r'^{-2\ell-1}$. The $D$ coefficient is exactly the $(r\leftrightarrow r')$ transpose of (5.140) — the hinted symmetry; $B$ is the interior "reaction" kernel (the engine of P48's force). Far field: $\ell=0$: $D_0=1$ → $\Phi\to1/r$: at large $r$ the full unit charge is visible (the interior screening cloud $\rho_b=(1-\epsilon)/\epsilon$ at the charge is exactly cancelled by the surface bound charge, P12). $\ell=1$: $(2\cdot1+1)g_1=3r'/[(\epsilon+2)]\cdot r^{-2}P_1$ → $\vec p_{\rm eff}=3\vec x'/(\epsilon+2)$: the displacement of the charge off center is what the outside world sees, screened by the same $3/(\epsilon+2)$ as P24 (reciprocity: source inside ↔ observer inside). Total surface charge: $\sigma_b=\frac1{4\pi}[E_r(a^+)-E_r(a^-)]$; only $\ell=0$ survives the angular integral: $E_r(a^+)=1/a^2$, $E_r(a^-)=1/(\epsilon a^2)$, so $\oint\sigma_b\,da=1-\frac1\epsilon=\frac{\epsilon-1}\epsilon$ ✓ — P12(b) from the explicit solution, independent of where the charge sits inside.

P26. Exercise 5.7.5 — Vacuum bubble in a dielectric mediumWilcox 2e §5.13, p.255

Find the Green function for a spherical vacuum bubble (radius $a$) embedded in a medium of constant $\epsilon$, with the free unit charge outside the bubble (in the dielectric). [Hint: compare boundary conditions with the dielectric-sphere case — no need to start over.] Answer: the interface conditions swap sides, which is the substitution $\epsilon\to1/\epsilon$ (plus the in-medium source normalization $1/\epsilon$): $$G_{\rm bubble}(\epsilon)=\frac1\epsilon\,G_{\rm sphere}\big(\epsilon\to1/\epsilon\big) =\frac1\epsilon\Big[\frac1{|\vec x-\vec x'|} +\sum_{\ell\ge1}\frac{(\epsilon-1)\ell}{\ell(1+\epsilon)+\epsilon}\, \frac{a^{2\ell+1}}{(rr')^{\ell+1}}P_\ell(\cos\gamma)\Big]\quad(r,r'>a),$$ with interior ($r<a$) modes $(2\ell+1)r^\ell/\{[\ell(1+\epsilon)+\epsilon]r'^{\ell+1}\}$. Note the induced series has the opposite sign to the sphere's (5.141) and denominators $\ell(1+\epsilon)+\epsilon$ instead of $\ell(1+\epsilon)+1$. Check: the substitution formula equals a direct radial solve mode-by-mode ($10^{-9}$) and mode-sum vs closed-sum agreement at $10^{-8}$ (test_p26_bubble_green).

Solution

The bubble problem solves $\vec\nabla\cdot[\epsilon_b(r)\vec\nabla G]=-4\pi\delta$ with $\epsilon_b=1$ ($r<a$), $\epsilon$ ($r>a$). Divide by $\epsilon$ (P18's trick): the medium pattern becomes $1/\epsilon$ inside, $1$ outside — a "dielectric sphere" of constant $1/\epsilon$ in vacuum with source strength $1/\epsilon$. Uniqueness gives the substitution rule. Explicitly, with $\epsilon'=1/\epsilon$ in (5.141): $(\epsilon'-1)\ell/[\ell(1+\epsilon')+1] =(1-\epsilon)\ell/[\ell(1+\epsilon)+\epsilon]$, whose sign flip converts the sphere's attractive image series into the bubble's repulsive one (P46): a cavity in a dielectric behaves like a region of deficit polarizability — an "anti-sphere" with effective $\ell=1$ polarizability $-\frac{\epsilon-1}{1+2\epsilon}a^3$ (per unit medium-screened source). The $\ell$-dependence of the denominators means there is again no single image point (only $\epsilon\to\infty$ collapses the sphere series to one; the bubble has no conducting limit).

P27. Exercise 5.7.6 — Point dipole near a dielectric sphereWilcox 2e §5.13, pp.255–256

A point dipole $\vec p_0$ (arbitrary direction) sits at $\vec x'$ outside a dielectric sphere of radius $a$ (Fig. 5.35). Find the leading potential (a) far from everything ($r\gg r',a$), and (b) inside the sphere ($r<a$, with $r'\gg a$). Answer: (a) $\Phi\simeq\vec p_{\rm eff}\cdot\vec x/r^3$ with $$\vec p_{\rm eff}=\vec p_0+\frac{\epsilon-1}{\epsilon+2}a^3\,\vec E_{\rm dip}(0), \qquad \vec E_{\rm dip}(0)=\frac{3(\vec p_0\cdot\hat n')\hat n'-\vec p_0}{r'^3},\quad \hat n'=\frac{\vec x'}{r'}$$ (the dipole plus the dipole its field induces in the sphere). (b) a uniform screened field: $\vec E_{\rm in}=\dfrac{3}{\epsilon+2}\,\vec E_{\rm dip}(0)$, i.e. $\Phi_{\rm in}={\rm const}-\frac{3}{\epsilon+2}\vec x\cdot\vec E_{\rm dip}(0)$. Check: two-charge dipole + exact series: far-field dipole components match $\vec p_{\rm eff}$ to $3\%$ ($O(r'/r)$); interior FD field matches (b) with error $\propto1/r'$ shrinking between $r'=20a$ and $40a$ (test_p27_dipole_near_sphere).

Solution

Write the dipole as the limit of charges $\pm q$ at $\vec x'\pm\vec\delta/2$ and superpose the one-charge Green function. (a) Far away, each source charge contributes its own effective system: the bare charge (monopoles cancel between $\pm q$, leaving $\vec p_0$) and its sphere-induced $\ell=1$ image. The induced dipole responds linearly to the field at the sphere's center, so in the limit $\vec p_{\rm ind}=\alpha\vec E_{\rm dip}(0)$ with $\alpha=\frac{\epsilon-1}{\epsilon+2}a^3$ (5.143–5.144). The two dipoles do not sit at the same point ($\vec p_0$ at $\vec x'$, $\vec p_{\rm ind}$ at the origin), but the displacement only affects the $\ell=2$ (quadrupole) term: to leading order $\Phi\simeq(\vec p_0+\vec p_{\rm ind})\cdot\vec x/r^3$. (b) For $r'\gg a$ the dipole's field is uniform across the sphere, $\vec E_{\rm dip}(0)+O(a/r')$, so P24's screening applies verbatim: $\vec E_{\rm in}=\frac3{\epsilon+2}\vec E_{\rm dip}(0)$. From the kernel: the $\ell=0$ term of (5.140) contributes only a constant ($p_0$-projected $-\vec p_0\cdot\hat n'/r'^2$), and the $\ell=1$ term differentiates to exactly the uniform interior gradient — the code confirms by finite-differencing the series. Everything here is the polarizability algebra reused in P49's force.

P28. Exercise 5.7.7 — Dielectric sphere inside a grounded shellWilcox 2e §5.13, pp.255–256

A solid dielectric sphere (radius $a$, constant $\epsilon$) sits concentric inside a hollow grounded conductor of inner radius $b$; the unit charge is in the gap, $a<r'<b$. Assuming the (5.116) form, give the $g_\ell(r)$ in each region and the boundary conditions determining the coefficients (no need to solve). Answer: $$g_\ell=\begin{cases}A_\ell r^\ell,&r<a\\ B_\ell r^\ell+C_\ell r^{-\ell-1},&a<r<r'\\ D_\ell r^\ell+E_\ell r^{-\ell-1},&r'<r<b,\end{cases}$$ five unknowns; five conditions: continuity and $\epsilon g_\ell'(a^-)=g_\ell'(a^+)$ at $a$; continuity and jump $g_\ell'(r'^-)-g_\ell'(r'^+)=1/r'^2$ at $r'$; and the Dirichlet wall $g_\ell(b)=0$. Check: the $5\times5$ solve satisfies all five (FD); at $\epsilon=1$ it equals the grounded-shell interior kernel $\frac1{2\ell+1}\big[\frac{r_<^\ell}{r_>^{\ell+1}}-\frac{(rr')^\ell}{b^{2\ell+1}}\big]$ (the $b\to$ finite analog of (4.240)) to $10^{-10}$ (test_p28_sphere_in_conducting_shell).

Solution

Regularity at the origin keeps only $r^\ell$ in the dielectric; between $a$ and $b$ both radial solutions appear, split at the source radius into two two-parameter branches. Counting: $1+2+2=5$ constants. The five stated conditions are all of them: the two dielectric-interface conditions (tangential $E$, normal $D$), the two source conditions (the jump follows by integrating $-(r^2g')'+\ell(\ell+1)g=\delta(r-r')$ across $r'$), and the grounded conductor $g_\ell(b)=0$ ($\Phi=0$ on the wall for every mode). The homogeneous problem has no nontrivial solution — a source-free potential regular at 0, matching at $a$, vanishing at $b$ must vanish identically (uniqueness inside a grounded shell) — so the determinant is nonzero and the system pins all five coefficients: "enough information." The $\epsilon=1$ limit collapses $A=B$, $C=0$ and reproduces the image-in-sphere kernel; $\epsilon\to\infty$ freezes the core ($g(a)\to0$), giving the conductor-in-conductor annulus kernel.

P29. Exercise 5.7.8 — Dielectric sphere facing a uniformly charged planeWilcox 2e §5.13, p.256

Use $\Phi=\int G\rho$ with the interior Green function to find the potential inside a dielectric sphere (radius $a$) in the field of an infinite plane of uniform surface charge $\sigma$ at $z=d>a$ (Fig. 5.36); compare the interior field with P24. Answer: every $\ell\ge2$ plane integral vanishes exactly (parity + orthogonality), $\ell=0$ is an (infinite) constant, and $\ell=1$ gives $$\Phi_{\rm in}={\rm const}+\frac{3}{\epsilon+2}\,2\pi\sigma\,z \qquad\Longrightarrow\qquad \vec E_{\rm in}=-\frac{3}{\epsilon+2}\,2\pi\sigma\,\hat z =\frac{3}{\epsilon+2}\vec E_{\rm plane},$$ exactly P24's screened uniform field with $E_0=2\pi\sigma$ — exact, not just far-field, because an infinite uniform plane makes a truly uniform field. Check: the plane moment integrals: $\ell=1\to2\pi$, $\ell=2\ldots5\to0$ (quadrature, cutoff-tail small); interior field matches $-\frac3{\epsilon+2}2\pi\sigma$ (test_p29_sphere_and_charged_plane).

Solution

With $\rho=\sigma\,\delta(z'-d)$ and the interior kernel (5.140),

\[\Phi_{\rm in}(\vec x)=\sigma\sum_\ell\frac{2\ell+1}{\ell(1+\epsilon)+1}\, r^\ell P_\ell(\cos\theta)\;I_\ell,\qquad I_\ell\equiv\int_{\rm plane}\frac{P_\ell(\cos\theta')}{r'^{\ell+1}}\,da' ,\]

(azimuthal symmetry kills $m\neq0$). Parametrize the plane by $r'\in[d,\infty)$ with $\cos\theta'=d/r'$, $da'=2\pi r'dr'$:

\[I_\ell=2\pi\int_d^\infty\frac{P_\ell(d/r')}{r'^\ell}\,dr' =2\pi d^{\,1-\ell}\int_0^1P_\ell(t)\,t^{\ell-2}\,dt .\]

For $\ell\ge2$, $P_\ell(t)t^{\ell-2}$ has even parity, so $\int_0^1=\frac12\int_{-1}^1P_\ell(t)\,t^{\ell-2}\,dt=0$ by Legendre orthogonality ($t^{\ell-2}$ has degree $<\ell$): every higher multipole of an infinite uniform plane vanishes. $\ell=1$: $\int_0^1P_1t^{-1}dt=1$, so $I_1=2\pi$; $\ell=0$ diverges — the familiar infinite constant of an infinite plane's potential (gauge; drop it). Hence $\Phi_{\rm in}=\text{const}+\frac{3}{\epsilon+2}2\pi\sigma\,r\cos\theta$ and the interior field is uniform: magnitude $\frac3{\epsilon+2}\times2\pi\sigma$, directed away from the plane (for $\sigma>0$) — the plane's field $|E|=2\pi\sigma$ screened by P24's factor. The Green-function route thus derives rather than assumes the equivalence to the uniform-field problem.

P30. Exercise 5.7.9 — Dielectric sphere inside a charged ringWilcox 2e §5.13, pp.256–257

A ring of radius $b$ and total charge $Q$, uniformly distributed, lies in the equatorial plane concentric with a dielectric sphere of radius $a<b$ (permittivity $\varepsilon$). Show the interior potential is $$\Phi(r,\theta)=Q\sum_{n=0}^{\infty} \frac{(-1)^n(4n+1)}{2n(1+\varepsilon)+1}\, \frac{(2n-1)!!}{(2n)!!}\,\frac{r^{2n}}{b^{2n+1}}\,P_{2n}(\cos\theta)$$ (Ex. 4.9.1's $P_\ell(0)$ values are the input). Check: the series equals the ring rebuilt from 400 point charges, each with the one-charge interior kernel, to $10^{-6}$ at several $(r,\theta)$ (test_p30_ring_around_sphere).

Solution

Superpose the interior kernel (5.140) over the ring. For a source at $(b,\theta'=\pi/2,\phi')$ the addition theorem reduces the azimuthal average of $P_\ell(\cos\gamma)$ to $P_\ell(\cos\theta)P_\ell(\cos\theta')=P_\ell(\cos\theta)P_\ell(0)$ ($m\neq0$ terms integrate away around the uniform ring). Hence

\[\Phi_{\rm in}=Q\sum_\ell\frac{2\ell+1}{\ell(1+\varepsilon)+1}\, \frac{r^\ell}{b^{\ell+1}}P_\ell(0)\,P_\ell(\cos\theta).\]

Ex. 4.9.1(b): $P_\ell(0)=0$ for odd $\ell$ and $P_{2n}(0)=(-1)^n\frac{(2n-1)!!}{(2n)!!}$; keeping $\ell=2n$, $2\ell+1\to4n+1$ and $\ell(1+\varepsilon)+1\to2n(1+\varepsilon)+1$ gives the quoted series verbatim. Structure worth noting: at $n=0$ the term is $Q/b$ — the ring's constant potential leaks in unscreened (constants feel no dielectric); the first nontrivial term is $n=1$ with the $\frac5{2(1+\varepsilon)\cdot?}$-type screened $P_2$ — the sphere reduces each even harmonic by $\frac{4n+1}{2n(1+\varepsilon)+1}$ relative to vacuum's $1$, the $\ell$-dependent generalization of $3/(\epsilon+2)$.

P31. Exercise 5.7.10 — Split-sphere capacitances with a dielectric fillingWilcox 2e §5.13, p.257

Fill the interior of Ex. 4.13.4's split conducting sphere (radius $a$, two hemispherical shells) with a uniform dielectric $\varepsilon$. Show $$C_{11}(\varepsilon)=C_{11}+\frac{a(\varepsilon-1)}4 \sum_{\ell\ge1}\ell(2\ell+1)\Big[\int_0^1P_\ell(x)dx\Big]^2,\qquad C_{12}(\varepsilon)=C_{12}+\frac{a(\varepsilon-1)}4 \sum_{\ell\ge1}(-1)^\ell\,\ell(2\ell+1)\Big[\int_0^1P_\ell(x)dx\Big]^2,$$ where $C_{11},C_{12}$ are Ex. 4.13.4's vacuum values $\frac a4\sum(2\ell+1)^2I_\ell^2$ and $\frac a4\sum(-1)^\ell(2\ell+1)^2I_\ell^2$, $I_\ell=\int_0^1P_\ell$. Check: the sums equal direct quadrature of the free charge on the upper hemisphere for $(V_1,V_2)=(1,0)$ and $(0,1)$ at $\varepsilon=1,2,4.5$; at $\varepsilon=1$ they collapse to the $(2\ell+1)^2$ forms; the shift formula matches term by term (test_p31_split_sphere_dielectric).

Solution

Let the shells carry potentials $V_1$ (upper), $V_2$ (lower); the surface value is the step function $V(\theta)$ with Legendre projection

\[V_\ell=\tfrac{2\ell+1}2\big(V_1+(-1)^\ell V_2\big)I_\ell\ (\ell\ge1),\qquad V_0=\tfrac{V_1+V_2}2,\]

using $\int_{-1}^0P_\ell=(-1)^\ell I_\ell$. The potential is $\sum V_\ell(r/a)^\ell P_\ell$ inside (dielectric) and $\sum V_\ell(a/r)^{\ell+1}P_\ell$ outside — continuity at $r=a$ is built in (the shell fixes $\Phi$ there). The free charge on the shell is the $D$-jump:

\[4\pi\sigma_f=D_r(a^+)-D_r(a^-) =\sum_\ell\frac{V_\ell}{a}\big[(\ell+1)+\varepsilon\,\ell\big]P_\ell(\cos\theta):\]

the exterior contributes $(\ell+1)$, the dielectric interior $\varepsilon\ell$. Integrate over the upper hemisphere ($\int_{\rm up}P_\ell\,da=2\pi a^2I_\ell$):

\[Q_1=\frac a2\sum_\ell V_\ell\big[(\ell+1)+\varepsilon\ell\big]I_\ell =\frac a4(V_1+V_2)+\frac a4\sum_{\ell\ge1}(2\ell+1) \big[(\ell+1)+\varepsilon\ell\big]I_\ell^2\big(V_1+(-1)^\ell V_2\big).\]

Then $C_{11}=\partial Q_1/\partial V_1$ and $C_{12}=\partial Q_1/\partial V_2$ give

\[C_{1j}(\varepsilon)=\frac a4\Big[1+\sum_{\ell\ge1}(\pm1)^\ell(2\ell+1) \big[(\ell+1)+\varepsilon\ell\big]I_\ell^2\Big],\]

($+$ for $j{=}1$, $(-1)^\ell$ for $j{=}2$). Since $(\ell+1)+\varepsilon\ell=(2\ell+1)+(\varepsilon-1)\ell$, this is the vacuum $(2\ell+1)^2$ sum plus the stated $(\varepsilon-1)\ell(2\ell+1)I_\ell^2$ shift. Only odd $\ell$ contribute ($I_{2n}=0$ for $n\ge1$), so the $C_{12}$ shift is negative: the dielectric strengthens the inductive coupling. The symmetric-system capacitance $C=\frac12(C_{11}-C_{12})$ then grows by $\frac a4(\varepsilon-1)\sum_{\rm odd}\ell(2\ell+1)I_\ell^2$ — dielectric filling raises $C$, as it must.

P32. Exercise 5.7.11 — Dielectric core inside a conducting cylinderWilcox 2e §5.13, pp.257–258

(a) A grounded conducting cylinder of radius $a$ contains a coaxial solid dielectric cylinder of radius $b<a$; a unit line charge sits in the gap at $b<\rho'<a$ (Fig. 5.37). By reduced Green functions, exhibit the mode solutions and all conditions determining the coefficients (no need to solve). (b) How to get the $\rho'<b$, $b<\rho<a$ branch directly from (a)? (c) How to get the dielectric↔vacuum swapped problem from (a)? Answer: (a) per azimuthal mode $m\ge1$: $A\rho^m$ ($\rho<b$), $B\rho^m+C\rho^{-m}$ ($b<\rho<\rho'$), $D\rho^m+E\rho^{-m}$ ($\rho'<\rho<a$); $m=0$: constants and $\ln\rho$. Conditions: continuity and $\epsilon g'(b^-)=g'(b^+)$ at $b$; continuity and jump $g_m'(\rho'^-)-g_m'(\rho'^+)=1/\rho'$ ($\,1/2\rho'$ for $m=0$) at the source; wall $g_m(a)=0$: five per mode, uniquely solvable. (b) By symmetry $G(\vec x,\vec x')=G(\vec x',\vec x)$: the $\rho'<b$ branch is the (a) solution read with arguments exchanged. (c) By P18's division trick: $G_{\rm swap}(\epsilon)=\frac1\epsilon G_{(a)}(1/\epsilon)$ (charge again in the gap region — which is now the dielectric). Check: the $5\times5$ solves satisfy wall/interface/jump conditions per mode; at $\epsilon=1$ the assembled sum equals the grounded-cylinder image Green function $-2\ln|\vec x-\vec x'|+2\ln(\rho'|\vec x-\vec x_{\rm im}|/a)$ to $10^{-6}$ (test_p32_coaxial_dielectric).

Solution

(a) The mode count: regularity at the axis (1 constant in the core), two 2-parameter annuli split at the source — five per $m$, matching the five conditions listed (two interface, two source, one wall). For $m=0$ the radial solutions are $\{1,\ln\rho\}$; $D$-continuity at $b$ with a regular core forces the middle log coefficient to vanish (as in P22), and the wall then fixes the outer branch to $-\frac12\ln(\rho/a)$-type — the $m=0$ mode is again $\epsilon$-blind. Uniqueness of the grounded-cavity Dirichlet problem makes the homogeneous determinant nonzero: "enough information." (b) The dielectric Green function is symmetric (5.78), so no new solve is needed: for $\rho'<b$ evaluate the (a) coefficients at the swapped arguments; concretely the $\rho<b$ branch $A(\rho')\rho^m$ of (a) becomes, read as a function of its second argument, the $b<\rho<a$ field of an interior source. (c) Divide the PDE by $\epsilon$ exactly as in P18/P26: media $(\epsilon\ \text{core},1\ \text{gap})\to(1\ \text{core},1/\epsilon\ \text{gap})$ with source weight $1/\epsilon$ — the swapped problem with $\epsilon\to1/\epsilon$, overall factor $1/\epsilon$. (The wall condition $g(a)=0$ is $\epsilon$-independent and survives both maps.)

P33. Exercise 5.7.12 — Quadrupole induced in a dielectric sphereWilcox 2e §5.13, p.258

A unit point charge at $\vec x'$ ($r'>a$) polarizes a dielectric sphere (radius $a$, permittivity $\epsilon$) centered at the origin. Show the induced quadrupole moment is $$Q_{ij}=\frac{2a^5(\epsilon-1)}{3+2\epsilon} \Big({-\frac{\partial E'_j(0)}{\partial x'_i}}\Big),\qquad \vec E'(0)=-\frac{\vec x'}{r'^3}$$ (the charge's field at the center) — so a uniform field induces no quadrupole. [The book prints $a^3$; dimensional analysis and the numeric check below require $a^5$ — an erratum.] Check: $Q_{33}$ integrated from the bound surface charge of the exact series solution matches the formula (with $a^5$) at two radii — confirming both the coefficient and the $a^5$ scaling; the tensor is traceless-symmetric with $Q_{11}=Q_{22}=-\frac12Q_{33}$ (test_p33_induced_quadrupole).

Solution

The $\ell=2$ induced term of the exterior Green function (5.141) is

\[\Phi_2^{\rm ind}=-\frac{2(\epsilon-1)}{3+2\epsilon}\, \frac{a^5}{r^3r'^3}\,P_2(\cos\gamma),\]

(coefficient $(\epsilon-1)\ell/[\ell(1+\epsilon)+1]$ at $\ell=2$; note $2(1+\epsilon)+1=3+2\epsilon$). Compare with the quadrupole potential $\frac12\sum Q_{ij}x_ix_j/r^5$: for an axisymmetric tensor about $\hat x'$, $\frac12\sum Q_{ij}x_ix_j/r^5=\frac{Q_{33}}{2}P_2(\cos\gamma)/r^3$ (P5's algebra with the 3-axis along $\hat x'$), so

\[Q_{33}=-\frac{4(\epsilon-1)}{3+2\epsilon}\,\frac{a^5}{r'^3}.\]

Meanwhile the gradient of the charge's field at the origin is

\[\frac{\partial E'_j(0)}{\partial x'_i} =-\frac{\partial}{\partial x'_i}\frac{x'_j}{r'^3} =\frac{3x'_ix'_jr'^{-5}-\delta_{ij}r'^{-3}}{1} =\frac{3\hat n'_i\hat n'_j-\delta_{ij}}{r'^3},\]

an axisymmetric traceless tensor whose 33-component (along $\hat x'$) is $2/r'^3$. Hence $Q_{ij}=\frac{2a^5(\epsilon-1)}{3+2\epsilon}\big(-\partial E'_j/\partial x'_i\big)$ reproduces $Q_{33}$ above and, being proportional to the traceless symmetric $3\hat n\hat n-\mathbb 1$, all other components — the tensor identity holds, with $a^5$ (a "quadrupole polarizability" $\propto a^5$, just as the dipole's is $\propto a^3$; each extra $\ell$ costs $a^2$). Since $Q_{ij}\propto\partial E'_j/\partial x'_i$, a spatially uniform applied field (zero gradient) induces no quadrupole — the book's parenthetical remark. The code's bound-charge quadrature ($\int(3z^2-r^2)\sigma_b\,da$ over the exact series solution) confirms coefficient and scaling; $a^3$ would be off by $a^2$ and dimensionally inconsistent ($Q\sim$ charge·length², and $\partial E'/\partial x'\sim$ charge/length³ leaves length⁵ to supply).

P34. Exercise 5.8.1 — Energy identities for permanent polarizationWilcox 2e §5.13, pp.258–259

(a) For a material with permanent polarization $\vec P(\vec x)$ and no free charge, show $\displaystyle\int d^3x\,\vec E\cdot\vec D=0$ (all space). (b) Starting from the pairwise dipole interaction $\delta W^{\rm int}_{ij}=-\delta\vec p_i\cdot\delta\vec E_j(\vec x_i)$ ($i\neq j$), the relation $\vec D=\vec E+4\pi\vec P$, and (a), argue $$W^{\rm int}=-\frac12\int d^3x\,\vec P\cdot\vec E =\frac1{8\pi}\int d^3x\,\vec E^2 .$$ Check: uniformly polarized sphere: interior + exterior contributions to $\int\vec E\cdot\vec D$ cancel exactly (closed forms; radial quadrature); the two $W^{\rm int}$ expressions agree (test_p34_permanent_polarization_energy).

Solution

(a) With no free charge $\vec\nabla\cdot\vec D=0$ (5.65), and statics gives $\vec E=-\vec\nabla\Phi$:

\[\int\vec E\cdot\vec D=-\int\vec\nabla\Phi\cdot\vec D =-\int\vec\nabla\cdot(\Phi\vec D)+\int\Phi\,\vec\nabla\cdot\vec D =-\oint_{S_\infty}\Phi\,\vec D\cdot\hat n+0=0,\]

the surface term dying because $\Phi\sim1/r$ ($1/r^2$ for neutral bodies) and $D\sim1/r^3$ while the sphere area grows only as $r^2$. (b) Summing the pairwise energies over dipole pairs and passing to the continuum, the interaction energy of the polarized matter is $W^{\rm int}=-\frac12\int\vec P\cdot\vec E$ — the $\frac12$ correcting the double count of pairs, with $\vec E$ the total (self-consistent) field. Now eliminate $\vec P$ via $4\pi\vec P=\vec D-\vec E$ and apply (a):

\[-\frac12\int\vec P\cdot\vec E =-\frac1{8\pi}\int(\vec D-\vec E)\cdot\vec E =\frac1{8\pi}\int\vec E^2-\frac1{8\pi}\underbrace{\int\vec E\cdot\vec D}_{0} =\frac1{8\pi}\int\vec E^2 .\]

(The book's comment: the continuum limit quietly adds self-energy pieces — the $i=j$ terms excluded from the sum reappear as the local-field part of the integral; that is precisely why $W^{\rm int}$ ends up expressible as the manifestly positive total field energy.) Worked instance (code): uniform $\vec P_0$ sphere: $\vec E_{\rm in}=-\frac{4\pi}3\vec P_0$, $\vec D_{\rm in}=+\frac{8\pi}3\vec P_0$ — anti-parallel $E$, $D$! — and the exterior is the pure dipole $p=\frac{4\pi}3a^3P_0$: $\int_{\rm in}\vec E\cdot\vec D=-\frac{32\pi^2}9P_0^2V$ exactly cancels $\int_{\rm out}E^2=+\frac{8\pi}3p^2/a^3$; both $W^{\rm int}$ forms give $\frac{2\pi}3P_0^2V$.

P35. Exercise 5.9.1 — Normal force per unit area on a dielectric surfaceWilcox 2e §5.13, p.259

(a) Show the normal force per unit area on an arbitrary dielectric surface ($\hat n$ outward from the dielectric; fields $\vec E_1$ inside, $\vec E_2$ outside — Fig. 5.38) is $$\vec F\cdot\hat n=\frac1{8\pi}\big(E_{2n}^2-E_{1n}^2\big).$$ (b) With only bound charge $\sigma_b$ present: $\vec F\cdot\hat n=2\pi\sigma_b^2\,\dfrac{1+\epsilon}{\epsilon-1}$. Extra: with both free $\sigma_f$ and bound $\sigma_b$ on the surface: $$\vec F\cdot\hat n=2\pi\Big[\Big(\frac{\sigma_b\varepsilon}{\varepsilon-1} +\sigma_f\Big)^2-\frac{\sigma_b^2}{(1-\varepsilon)^2}\Big].$$ Check: all three expressions agree pointwise on the charge-above-half-space interface of P20/P36; the Extra form factors to $2\pi(\sigma_f+\sigma_b)\big[\sigma_f+\sigma_b\frac{\epsilon+1}{\epsilon-1}\big]$ and reduces to (b) at $\sigma_f=0$ (test_p35_surface_force_formulas).

Solution

(a) The force on the surface layer is (charge)×(average field), the §2.11/§5.9 average-field rule (5.185): the layer cannot push on itself, so the acting field is $\frac12(\vec E_1+\vec E_2)$. The total surface charge (free+bound) is $4\pi\sigma_{\rm tot}=E_{2n}-E_{1n}$ (tangential components are continuous and contribute no normal force):

\[F_n=\sigma_{\rm tot}\,\frac{E_{1n}+E_{2n}}2 =\frac{(E_{2n}-E_{1n})(E_{2n}+E_{1n})}{8\pi} =\frac{E_{2n}^2-E_{1n}^2}{8\pi},\]

which is also the jump of the Maxwell normal stress $T_{nn}=E_n^2/8\pi$ (plus continuous tangential pieces that cancel in the difference). (b) Only bound charge: $D_n$ continuous, $E_{2n}=\epsilon E_{1n}$, and $4\pi\sigma_b=E_{2n}-E_{1n}=(\epsilon-1)E_{1n}$:

\[F_n=\frac{(E_{2n}-E_{1n})(E_{2n}+E_{1n})}{8\pi} =\frac{4\pi\sigma_b\cdot4\pi\sigma_b\frac{\epsilon+1}{\epsilon-1}}{8\pi} =2\pi\sigma_b^2\,\frac{\epsilon+1}{\epsilon-1}\;(>0:\ \text{always outward — dielectrics are pulled into the field}).\]

Extra: now $E_{2n}-E_{1n}=4\pi(\sigma_f+\sigma_b)$ and $E_{2n}-\epsilon E_{1n}=4\pi\sigma_f$; solving, $E_{1n}=4\pi\sigma_b/(\epsilon-1)$, $E_{2n}=4\pi[\sigma_f+\sigma_b\epsilon/(\epsilon-1)]$, so

\[F_n=\frac{E_{2n}^2-E_{1n}^2}{8\pi} =2\pi\Big[\Big(\sigma_f+\frac{\sigma_b\epsilon}{\epsilon-1}\Big)^2 -\frac{\sigma_b^2}{(\epsilon-1)^2}\Big],\]

identical to the printed form (note $(1-\varepsilon)^2=(\varepsilon-1)^2$). Factored, $2\pi(\sigma_f+\sigma_b)[\sigma_f+\sigma_b(\epsilon+1)/(\epsilon-1)]$: total charge times average field, as it must be.

P36. Exercise 5.9.2 — Force on a dielectric half-space, three waysWilcox 2e §5.13, p.260

Compute the force on the semi-infinite dielectric ($z<0$, constant $\epsilon$) exerted by a unit charge at $z'>0$ (Fig. 5.39): (a) from the charge–image force; (b) from the energy $\Delta W=\frac12\int\!\!\int\rho[G_D-G_D^0]\rho$; (c) from P35's surface stress. Answer: all three give attraction of magnitude $$F=\frac{\epsilon-1}{\epsilon+1}\,\frac1{4z'^2}$$ (the dielectric is pulled up toward the charge; the charge is pulled down). Check: (a) analytic; (b) $-\partial_{z'}\Delta W$ with $\Delta W=-\frac{\epsilon-1}{\epsilon+1}\frac1{4z'}$; (c) quadrature of $2\pi\sigma_b^2\frac{\epsilon+1}{\epsilon-1}$ over the interface — agreement to $10^{-4}$ (test_p36_halfspace_force_three_ways).

Solution

(a) The vacuum-side solution is charge $+$ image $q'=-\frac{\epsilon-1}{\epsilon+1}$ at $-z'$ (P20 with $\epsilon_1=\epsilon,\epsilon_2=1$). The force on the charge is $qq'/(2z')^2=-\frac{\epsilon-1}{\epsilon+1}\frac1{4z'^2}$ (toward the surface). By Newton's third law the dielectric (the physical carrier of the bound charge that the image summarizes) feels the equal and opposite pull $+\frac{\epsilon-1}{\epsilon+1}\frac1{4z'^2}$ toward the charge. (b) The coincidence limit of the induced part: $G_D-G_D^0=q'/R_2\to q'/(2z')$ at the charge, so

\[\Delta W=\frac12\Big(-\frac{\epsilon-1}{\epsilon+1}\Big)\frac1{2z'} =-\frac{\epsilon-1}{\epsilon+1}\frac1{4z'} ,\qquad F_{\rm charge}=-\frac{\partial\Delta W}{\partial z'} =-\frac{\epsilon-1}{\epsilon+1}\frac1{4z'^2},\]

matching (a) (the $\frac12$ of $\Delta W$ against the full image force is exactly compensated by the $z'$-dependence of the image distance — the same bookkeeping as the conductor's $W=-q^2/4z'$). (c) From (5.111)/P20, $\sigma_b(\rho)=-\frac1{2\pi}\frac{\epsilon-1}{\epsilon+1} \frac{z'}{(\rho^2+z'^2)^{3/2}}$. P35(b):

\[F=\int_0^\infty 2\pi\rho\,d\rho\;2\pi\sigma_b^2\frac{\epsilon+1}{\epsilon-1} =\frac{\epsilon-1}{\epsilon+1}z'^2\int_0^\infty\frac{\rho\,d\rho}{(\rho^2+z'^2)^3} =\frac{\epsilon-1}{\epsilon+1}\,\frac{z'^2}{4z'^4} =\frac{\epsilon-1}{\epsilon+1}\frac1{4z'^2}.\]

Same number, and now with a location: half the force accumulates inside $\rho\lesssim0.64\,z'$ — the stress picture shows where the pull acts, which the energy methods cannot (the book's §5.9 moral).

P37. Exercise 5.9.3 — Thin rod broadside to a distant chargeWilcox 2e §5.13, pp.260–261

A dielectric rod ($\epsilon>1$, length $L$, radius $a\ll L$) lies perpendicular to the line joining its midpoint to a unit positive charge a distance $z\gg L$ away (Fig. 5.40). Estimate the force; attraction or repulsion? [The charge's field is nearly uniform over the rod; P13 supplies the transverse response.] Answer: attraction, of magnitude $$F=\frac{\epsilon-1}{\epsilon+1}\,\frac{a^2L}{z^5}.$$ Check: equals $-\,dW/dz$ of the induced-dipole energy $W=-\frac{\epsilon-1}{4(\epsilon+1)}a^2L/z^4$; ratio to P38 is $2/(\epsilon+1)$ (test_p37_p38_rod_forces).

Solution

The rod sees the charge's field $E_0=1/z^2$ transverse to its axis. P13: a cylinder in a transverse field carries the uniform interior field $E_{\rm in}=\frac{2E_0}{\epsilon+1}$, so its polarization is $\vec P=\frac{\epsilon-1}{4\pi}\vec E_{\rm in} =\frac{\epsilon-1}{2\pi(\epsilon+1)}\vec E_0$ and the total induced moment

\[p=P\cdot\pi a^2L=\frac{\epsilon-1}{2(\epsilon+1)}\,a^2L\,E_0 \equiv\alpha_\perp E_0,\qquad \alpha_\perp=\frac{\epsilon-1}{2(\epsilon+1)}a^2L .\]

An induced dipole in a nonuniform field has energy $W=-\frac12\alpha E_0^2(z)=-\frac{\alpha_\perp}{2z^4}$ (the $\frac12$ because the moment builds with the field), hence

\[F_z=-\frac{dW}{dz}=-\frac{2\alpha_\perp}{z^5} =-\frac{\epsilon-1}{\epsilon+1}\frac{a^2L}{z^5},\]

negative = toward the charge: attraction for $\epsilon>1$ (high-$\epsilon$ matter is always drawn toward stronger field — the $\nabla E^2$ force). The $z^{-5}$ law is generic for induced dipoles ($F\propto\partial_zE_0^2$).

P38. Exercise 5.9.4 — Thin rod pointing at a distant chargeWilcox 2e §5.13, pp.260–261

The same long thin cylinder ($\epsilon$, length $L$, radius $a$; $z\gg L\gg a$) now points along the line to the charge (Fig. 5.41). Find the force; attraction or repulsion for $\epsilon>1$? Answer: attraction, $$F=\frac{(\epsilon-1)\,a^2L}{2\,z^5} =\frac{\epsilon+1}2\times F_{\rm P37}$$ — the lengthwise rod is pulled harder by the factor $(\epsilon+1)/2$. Check: $F=-dW/dz$ with $W=-(\epsilon-1)a^2L/(8z^4)$; the needle limit is justified by the prolate-spheroid depolarization factor $n_z(\text{aspect}\to\infty)\to0$, verified numerically ($n_z(1)=\frac13$, $n_z(300)<10^{-4}$, $E_{\rm in}\to E_0$) (test_p37_p38_rod_forces).

Solution

For a needle along the field, the interface condition is continuity of tangential $E$ along the (dominant) lateral surface: the interior field equals the applied one, $E_{\rm in}\simeq E_0$, up to end corrections of order $(a/L)^2\ln$-small — equivalently, the prolate depolarization factor $n_z\to0$ as the aspect ratio diverges ($E_{\rm in}=E_0/[1+n_z(\epsilon-1)]$). Then

\[p=\frac{\epsilon-1}{4\pi}E_0\cdot\pi a^2L=\frac{(\epsilon-1)a^2L}{4}E_0 \equiv\alpha_\parallel E_0,\qquad \alpha_\parallel=\frac{(\epsilon-1)a^2L}{4},\]

and the induced-dipole energy/force machinery of P37 gives $W=-\alpha_\parallel/2z^4$, $F_z=-2\alpha_\parallel/z^5=-\frac{(\epsilon-1)a^2L}{2z^5}$: attraction. Comparing polarizabilities: $\alpha_\parallel/\alpha_\perp=(\epsilon+1)/2>1$ — no depolarization along the needle versus the factor $\frac2{\epsilon+1}$ broadside. (A free rod therefore also feels a torque aligning it with the local field before it is pulled in — needle first.)

P39. Exercise 5.9.5 — Slab partially inserted in a capacitorWilcox 2e §5.13, pp.261–262

Parallel plates of length $L$, width $W$, gap $D$; a dielectric block ($\epsilon$) fills the gap to depth $x$ (Fig. 5.42). (a) Plates held at potential $V$ by a battery: find $F_x$ on the block — pulled in or pushed out? (b) The block is withdrawn, a fixed charge $\pm Q$ with $V/D=4\pi Q/(LW)$ is placed on the plates, and the block re-inserted to depth $x$: find $F_x$ again. (The book's "soapbox": at any instant the two protocols give the same force for the same instantaneous state; disconnecting the battery in (a) changes nothing instantaneously, while reconnecting it in (b) does only because $V$ has meanwhile drifted.) Answer: with $C(x)=\dfrac{W[\epsilon x+(L-x)]}{4\pi D}$: $$\text{(a)}\ F_x=+\frac{V^2}2\frac{dC}{dx} =\frac{(\epsilon-1)WV^2}{8\pi D}\ \ (\text{pulled in, $x$-independent});$$ $$\text{(b)}\ F_x=\frac{Q^2}{2C^2}\frac{dC}{dx} =\frac{(\epsilon-1)WV^2}{8\pi D}\,\frac{L^2}{[L+(\epsilon-1)x]^2} \ \ (\text{pulled in, weakening as it enters}).$$ Check: both equal virtual-work finite differences of $\frac12CV^2$ (at fixed $V$, with the (5.179) sign) and $Q^2/2C$ (fixed $Q$); they coincide at $x=0$ (test_p39_partial_capacitor).

Solution

The two gap regions are capacitors in parallel: $C(x)=\frac{W}{4\pi D}[\epsilon x+(L-x)]$, $dC/dx=\frac{(\epsilon-1)W}{4\pi D}$. (a) Fixed $V$ (battery attached): by (5.179) the force is $+\partial W_{\rm field}/\partial x|_V$ with $W_{\rm field}=\frac12CV^2$ (the battery supplies $VdQ=V^2dC$, twice the field-energy gain, so the net system energy falls): $F_x=\frac{V^2}2\frac{dC}{dx}=\frac{(\epsilon-1)WV^2}{8\pi D}>0$: sucked in, uniformly (edge effects neglected). (b) Fixed $Q=\frac{LWV}{4\pi D}$ (the vacuum-capacitor charge at voltage $V$): $W_{\rm field}=Q^2/2C(x)$ and $F_x=-\frac{\partial}{\partial x}\frac{Q^2}{2C} =\frac{Q^2}{2C^2}\frac{dC}{dx} =\frac{(\epsilon-1)W}{8\pi D}\Big[\frac{4\pi DQ}{W\,[L+(\epsilon-1)x]}\Big]^2 \cdot\frac{W^2}{(4\pi D)^2}\cdot\ldots =\frac{(\epsilon-1)WV^2L^2}{8\pi D\,[L+(\epsilon-1)x]^2},$$ i.e. the same formula with $V\to V_{\rm inst}=Q/C(x)=VL/[L+(\epsilon-1)x]$. Both are positive: dielectrics are always drawn into stronger fields, whatever is held fixed. At the same instantaneous state ($x$, same plate charge) the forces are identical — the sign flip between $-\partial_x W|_Q$ and $+\partial_x W|_V$ is exactly the battery's ledger (5.174)–(5.179), not a physical difference; that is the soapbox point.

P40. Exercise 5.9.6 — Exact force on the dielectric of P17Wilcox 2e §5.13, p.262

For the conductor–gap–dielectric system of P17 (unit charge at $z'$ in the gap), show the $z$-force on the dielectric is exactly $$F_z=4\,\frac{1+\epsilon}{1-\epsilon} \int_0^\infty dk\,k\;\frac{e^{2kd}\,\sinh^2(kz')} {\big[1+\frac{1+\epsilon}{1-\epsilon}e^{2kd}\big]^2}.$$ Check: the integral equals $-\partial_d\Delta W$ (finite difference of $\Delta W(z',d)=\int_0^\infty k\,dk\,[g-g^0](z',z')$) to $10^{-4}$, and is negative (dielectric pulled toward the charge) for $\epsilon>1$ (test_p40_slab_force_integral).

Solution

The dielectric's position enters only through $d$, so at fixed charge the force on it is $F_z=-\partial\Delta W/\partial d$ with

\[\Delta W(z',d)=\frac12\big[G_D-G^0_D\big]_{\vec x=\vec x'=(0,0,z')} =\int_0^\infty dk\,k\,\big[g(z',z';k)-g^0\big],\]

($g^0=\sinh(kz')e^{-kz'}/k$ is the conductor-only kernel; the transverse $k$-integral of $4\pi\int\frac{d^2k}{(2\pi)^2}$ at coincidence is $2\int_0^\infty k\,dk$). From P17's closed form at $z=z'$, with $c=\frac{1+\epsilon}{1-\epsilon}$:

\[g(z',z')-g^0=\frac{\sinh(kz')}k\Big\{ \frac{e^{kz'}\big[1+c\,e^{2k(d-z')}\big]}{1+c\,e^{2kd}}-e^{-kz'}\Big\} =\frac{2\sinh^2(kz')}{k}\,\frac1{1+c\,e^{2kd}},\]

(the $c\,e^{2kd}e^{-kz'}$ pieces cancel between numerator and the $-e^{-kz'}$ term, leaving $e^{kz'}-e^{-kz'}$). Only the denominator carries $d$, so per mode

\[-\frac{\partial}{\partial d}\big[g(z',z')-g^0\big] =\frac{2\sinh^2(kz')}{k}\cdot\frac{2k\,c\,e^{2kd}}{[1+c\,e^{2kd}]^2} =\frac{4\,c\,e^{2kd}\sinh^2(kz')}{[1+c\,e^{2kd}]^2}.\]

Multiplying by $k\,dk$ and integrating gives the boxed $F_z$. Sign: $c<-1$ for $\epsilon>1$ makes the integrand negative: $F_z<0$, the slab is pulled down toward the charge — consistent with P36's half-space limit ($d\to z'^+$ dominated by $k\sim1/(d-z')$) and with the $\epsilon\to\infty$ conductor limit of P42.

P41. Exercise 5.9.7 — Weak-dielectric limit and its image readingWilcox 2e §5.13, p.262

(a) Show that for a weak dielectric ($\epsilon-1\ll1$) P40's force becomes $$F_z\simeq\frac14\,\frac{1-\epsilon}{1+\epsilon} \Big[\frac1{(d+z')^2}+\frac1{(d-z')^2}-\frac2{d^2}\Big].$$ (b) Confirm by an image computation. Check: the exact integral converges to this form as $\epsilon\to1$ (error $O((\epsilon-1)^2)$: halving $\epsilon-1$ roughly halves the relative deviation); the three-term image assembly reproduces it exactly (test_p41_weak_dielectric).

Solution

(a) With $\beta=\frac{1-\epsilon}{1+\epsilon}$ small, $c=1/\beta$ and $[1+ce^{2kd}]^{-2}\simeq\beta^2e^{-4kd}(1-2\beta e^{-2kd}+\dots)$, so to first order

\[F_z\simeq4\beta\int_0^\infty dk\,k\,e^{-2kd}\sinh^2(kz') =\beta\int_0^\infty dk\,k\,\big[e^{-2k(d-z')}+e^{-2k(d+z')}-2e^{-2kd}\big]\]

(using $\sinh^2=\frac14(e^{2kz'}+e^{-2kz'}-2)$), and $\int_0^\infty k\,e^{-2ks}dk=1/4s^2$ gives the quoted bracket. (b) To first order in $\beta$ the dielectric surface reflects each vacuum source once: sources are the charge $+1$ at $z'$ and its conductor image $-1$ at $-z'$; their dielectric images are $\beta$ at $2d-z'$ and $-\beta$ at $2d+z'$. The force on the dielectric is minus the total force its response exerts... i.e. $-\sum$(forces on the two vacuum sources from the two $\beta$-images):

\[F^{(+1)}_z=-\frac{\beta}{4(d-z')^2}+\frac{\beta}{4d^2},\qquad F^{(-1)}_z=+\frac{\beta}{4d^2}-\frac{\beta}{4(d+z')^2},\]

(each pair separated by twice its distance to the plane $z=d$), so

\[F^{\rm diel}_z=-\big[F^{(+1)}_z+F^{(-1)}_z\big] =\frac\beta4\Big[\frac1{(d-z')^2}+\frac1{(d+z')^2}-\frac2{d^2}\Big].\]

For $\epsilon>1$ ($\beta<0$) the bracket is positive (the $(d-z')^{-2}$ attraction to the near charge wins), so $F<0$: net pull toward the charge. The $-2/d^2$ piece is the repulsion bookkeeping between the dielectric's response and the conductor image — a genuinely three-body term that a naive "charge attracts dielectric" estimate misses.

P42. Exercise 5.9.8 — The $\epsilon\to\infty$ limit: a second conducting plateWilcox 2e §5.13, pp.262–263

(a) Taking $\epsilon\to\infty$ in P17 (the dielectric face becomes an equipotential), show the surface charge density on the plane $z=d$ is $$\sigma(\rho)=-\frac1{2\pi}\int_0^\infty dk\,k\, \frac{\sinh(kz')}{\sinh(kd)}\,J_0(k\rho).$$ (b) Hence the force on the $z=d$ plate is $$F_z=-\int_0^\infty dk\,k\,\Big[\frac{\sinh(kz')}{\sinh(kd)}\Big]^2$$ (attraction), and this is the $\epsilon\to\infty$ limit of P40. Check: $\sigma$ and $F$ agree with the two-plate image-ladder values ($10^{-5}$, $10^{-4}$); $F$ equals P40's integral at $\epsilon=10^9$; $\int\sigma\,da=-z'/d$ (the classic charge-division rule) (test_p42_conducting_limit).

Solution

(a) At $\epsilon\to\infty$ P17's kernel becomes the two-plate Dirichlet kernel $g=\sinh(kz_<)\sinh(k(d-z_>))/[k\sinh(kd)]$ ($g(d)=0$). The plate charge is $\sigma=\frac1{4\pi}\vec E\cdot\hat n$ with $\hat n=-\hat z$ (into the gap): $\sigma=-\frac1{4\pi}\partial_zG|_{z=d^-}\cdot(-1)^{\dots}$ — carefully: $\sigma=\frac1{4\pi}E_n=-\frac1{4\pi}E_z(d^-)\cdot\ldots$ with $E_z=-\partial_zG$: $\sigma=+\frac1{4\pi}\partial_zG|_{d^-}$. Using $G=2\int_0^\infty k\,dk\,J_0(k\rho)\,g$ (the $m$-sum done by Ex. 4.2.1) and $\partial_zg|_{z=d}=-\sinh(kz')/\sinh(kd)$:

\[\sigma(\rho)=-\frac1{2\pi}\int_0^\infty dk\,k\, \frac{\sinh(kz')}{\sinh(kd)}J_0(k\rho).\]

(b) The plate is pulled with pressure $2\pi\sigma^2$ (§2.11) toward the gap:

\[F_z=-\int 2\pi\sigma^2\,da =-\,2\pi\cdot2\pi\int_0^\infty\rho\,d\rho\,\sigma^2 .\]

Insert (a) and use the Hankel closure $\int_0^\infty\rho J_0(k\rho)J_0(k'\rho)d\rho=\delta(k-k')/k$:

\[F_z=-\int_0^\infty dk\,k\Big[\frac{\sinh kz'}{\sinh kd}\Big]^2 .\]

Limit check: P40 with $c\to-1$: $4c\,e^{2kd}/[1+ce^{2kd}]^2\to-4e^{2kd}/(e^{2kd}-1)^2=-1/\sinh^2(kd)$ — exactly (b)'s integrand ✓. And integrating (a): $\int\sigma\,da=-z'/d$, the standard result that a charge between grounded plates deposits fractions $z'/d$ and $1-z'/d$ on the far and near plates (cf. the §3.2/Ex. 3.2.3 induced-charge computation).

P43. Exercise 5.9.9 — Capacitor assembled around a dielectric layerWilcox 2e §5.13, p.263

A capacitor consists of a dielectric layer ($\epsilon\neq1$, thickness $d$) attached to the left plate; the right plate is at distance $x$ ($d<x<L$; Fig. 5.43 — the statement's "Figure 5.39" is a figure-number erratum). A battery establishes $\Delta V$ between the plates. (a) Battery attached: show the force per unit area on the right plate at separation $x$ is $$F=-\frac1{8\pi}\,\frac{\Delta V^2}{[\,d/\epsilon+(x-d)\,]^2}\quad(<0:\ \text{attractive}).$$ (b) The battery is disconnected right after charging at the initial separation $L$: find $F(x)$ in terms of $\Delta V,\epsilon,d,L,x$. Answer: (b) $F=-2\pi\sigma^2=-\dfrac{\Delta V^2}{8\pi[\,d/\epsilon+(L-d)\,]^2}$ — independent of $x$ (fixed $\sigma$). Check: both from virtual work on $W=\frac12C'\Delta V^2$ (fixed $V$, (5.179) sign) and $W=2\pi\sigma^2[\,d/\epsilon+(x-d)\,]$ per area (fixed $Q$) (test_p43_layered_capacitor).

Solution

Series capacitors: vacuum gap $(x-d)$ plus dielectric layer of "reduced thickness" $d/\epsilon$ (P19's lesson):

\[\frac1{C'}=4\pi\Big[(x-d)+\frac d\epsilon\Big]\quad(\text{per unit area}).\]

(a) Fixed $\Delta V$: $F=+\partial_x(\tfrac12C'\Delta V^2)|_V =\frac{\Delta V^2}2\,\frac{dC'}{dx}$ and $dC'/dx=-C'^2\cdot4\pi$:

\[F=-2\pi C'^2\Delta V^2=-\frac{\Delta V^2}{8\pi[\,d/\epsilon+(x-d)\,]^2},\]

attractive and growing as the gap closes. (b) Disconnecting at separation $L$ freezes $\sigma=\frac{\Delta V}{4\pi[\,d/\epsilon+(L-d)\,]}$. At fixed charge the plate feels the field of everything else, $F=-2\pi\sigma^2$ per area (equivalently $W/A=2\pi\sigma^2[\,d/\epsilon+(x-d)\,]$ and $F=-\partial_xW$): constant in $x$,

\[F=-\frac{\Delta V^2}{8\pi[\,d/\epsilon+(L-d)\,]^2}.\]

At $x=L$ (the disconnect instant) the two answers coincide, as they must — the force is a property of the instantaneous state; thereafter the fixed-$V$ force outgrows the fixed-$Q$ one as the plates approach because the battery keeps feeding charge.

P44. Exercise 5.9.10 — Line charge and dielectric cylinder: force per unit lengthWilcox 2e §5.13, p.264

Using P22's Green function, with $F\equiv-\partial\Delta W/\partial\rho'$ and $\Delta W\equiv\frac12[G_D-G_D^0]_{\vec x=\vec x'}$, find the force per unit length between the cylinder ($\epsilon>1$, radius $a$) and the unit line charge at $\rho'>a$; sum the series. Attractive or repulsive? Answer: $\Delta W=-\beta\ln\big(1-\frac{a^2}{\rho'^2}\big)$ with $\beta=\frac{1-\epsilon}{1+\epsilon}$, and $$F=-\frac{\partial\Delta W}{\partial\rho'} =-\frac{\epsilon-1}{\epsilon+1}\,\frac{2a^2}{\rho'(\rho'^2-a^2)} \qquad\text{— attractive for }\epsilon>1,$$ diverging like $(\rho'-a)^{-1}$ at contact and falling as $2\beta a^2/\rho'^3$ far away. Check: series $=$ closed log to $10^{-10}$; $F=-\partial_{\rho'}\Delta W$ by FD; $\Delta W$ rebuilt from the P22 modes at coincidence matches (test_p44_line_charge_cylinder).

Solution

At coincidence the direct parts cancel and only the induced (image-series) parts of P22's $g_m$ survive:

\[\Delta W=\frac12\sum_{m\ge1}4\cdot\frac1{2m}\,\beta\Big(\frac a{\rho'}\Big)^{2m} =\beta\sum_{m\ge1}\frac1m\Big(\frac{a^2}{\rho'^2}\Big)^{m} =-\beta\ln\Big(1-\frac{a^2}{\rho'^2}\Big)\]

($m=0$ contributes nothing — P22's $\epsilon$-blind monopole mode; the $\sum x^m/m=-\ln(1-x)$ resummation is exact for $\rho'>a$). Then

\[F=-\frac{\partial\Delta W}{\partial\rho'} =\beta\,\frac{d}{d\rho'}\ln\Big(1-\frac{a^2}{\rho'^2}\Big) =\beta\,\frac{2a^2}{\rho'(\rho'^2-a^2)} =-\frac{\epsilon-1}{\epsilon+1}\frac{2a^2}{\rho'(\rho'^2-a^2)} .\]

$\beta<0$ for $\epsilon>1$: attraction, always. Limits: far field $F\to2\beta a^2/\rho'^3$ — the 2-D induced-dipole law ($W\sim-\alpha_{2D}E_0^2$ with $E_0=2/\rho'$, $\alpha_{2D}=\frac{\epsilon-1}{\epsilon+1}\frac{a^2}2$ per unit length, consistent with P13); near contact the image series piles up into the half-space result: $F\simeq-\frac{\epsilon-1}{\epsilon+1}/(\rho'-a)$ per... precisely $\beta/(\rho'-a)$ — the 2-D twin of P36 with the line-charge normalization. The $\epsilon\to\infty$ limit reproduces the conducting cylinder's image force.

P45. Exercise 5.10.1 — Variational structure of the leading-logarithm modelWilcox 2e §5.13, p.264

In §5.10's quark-confinement model, $$\vec E=-\vec\nabla\Phi,\quad \vec D=\epsilon\vec E,\quad \epsilon=2\alpha\ln\frac{E^2}{K^2}\ (\alpha>0),\qquad W=\frac1{4\pi}\int d^3x\Big[\frac12\vec E\cdot\vec D+\alpha E^2\Big],$$ and under $\vec E\to\vec E+\delta\vec E$ one has $\delta W^{(1)}=\frac1{4\pi}\int\vec E\cdot\delta\vec D$ (Eq. 5.189/5.193). (a) If $\vec\nabla\cdot\delta\vec D=0$ (no change in the free charge), argue $\delta W^{(1)}=0$: the field configuration is an extremum of $W$. (b) Expanding to second order in $\delta\vec E$, show $\delta W^{(2)}>0$: the extremum is a stable minimum. Check: the perfect-differential identity $\delta[\frac12\vec E\cdot\vec D+\alpha E^2]=\vec E\cdot\delta\vec D$ verified by finite differences on random $(\vec E,\delta\vec E)$; the second-variation integrand is positive on random samples in the confinement region $E^2>K^2$ (test_p45_leading_log_variational).

Solution

(a) With $\vec E=-\vec\nabla\Phi$,

\[\delta W^{(1)}=\frac1{4\pi}\int\vec E\cdot\delta\vec D =-\frac1{4\pi}\int\vec\nabla\Phi\cdot\delta\vec D =-\frac1{4\pi}\int\vec\nabla\cdot(\Phi\,\delta\vec D) +\frac1{4\pi}\int\Phi\,\underbrace{\vec\nabla\cdot\delta\vec D}_{0}=0,\]

the surface term vanishing for localized fields (and on the confinement boundary $\vec D\cdot\hat n=0$ — the homogeneous Neumann condition of the flux tube — so $\delta\vec D\cdot\hat n=0$ there too). Fixing $\vec\nabla\cdot\delta\vec D=0$ is fixing $\delta\rho=0$: among all fields with the given free charge, the physical one extremizes this particular $W$ — which is why the $\alpha E^2$ addition to $\frac12\vec E\cdot\vec D$ is the right energy functional here (for the nonlinear $\epsilon(E^2)$, $\frac1{8\pi}\int\vec E\cdot\vec D$ alone is not a perfect integral of $\vec E\cdot\delta\vec D$, cf. (5.162)–(5.163)). (b) Write $u=E^2$ and the energy density $4\pi w=\frac12\epsilon(u)u+\alpha u=\alpha[u\ln(u/K^2)+u]\equiv\alpha f(u)$, with $f'=\ln(u/K^2)+2$, $f''=1/u$. Under $\vec E\to\vec E+\delta\vec E$, $\delta u=2\vec E\cdot\delta\vec E+|\delta\vec E|^2$, so collecting the second-order pieces,

\[\delta w^{(2)}=\frac{\alpha}{4\pi}\Big[f'(u)\,|\delta\vec E|^2 +\tfrac12f''(u)\,(2\vec E\cdot\delta\vec E)^2\Big] =\frac{\alpha}{4\pi}\Big[\Big(\ln\frac{E^2}{K^2}+2\Big)|\delta\vec E|^2 +\frac{2(\vec E\cdot\delta\vec E)^2}{E^2}\Big].\]

In the confinement region the model has $E^2>K^2$, so $\ln(E^2/K^2)>0$ and both terms are positive for any $\delta\vec E\neq0$: $\delta W^{(2)}>0$, a strict local minimum. (This convexity is what makes the flux-tube solution stable and underwrites the linear-confinement bound (5.195)–(5.197): $W>\frac K{8\pi}\int|\vec D|\ge\frac12K|Q|(R-2r)$ — energy growing linearly with quark separation.)

P46. Exercise 5.11.1 — Bubble in a dielectric fluid vs a free chargeWilcox 2e §5.13, p.265

P26's vacuum bubble (radius $a$) sits in a dielectric fluid ($\epsilon$); a positive unit free charge floats in the fluid at $r_0\gg a$. Find the force between bubble and charge — attractive or repulsive for $\epsilon>1$? [Book's hint: adapt Eq. (5.202).] Answer: repulsive — $$\Delta W\simeq+\frac{\epsilon-1}{\epsilon(1+2\epsilon)}\,\frac{a^3}{2r_0^4}, \qquad F_{r}=-\frac{\partial\Delta W}{\partial r_0} =+\frac{2(\epsilon-1)}{\epsilon(1+2\epsilon)}\,\frac{a^3}{r_0^5}\;(>0).$$ The (5.202) adaptation: $\epsilon\to1/\epsilon$ and an overall $1/\epsilon$ (the charge now sits in the medium). Check: finite-difference force from the exact bubble $\Delta W$ series matches the far formula at $r_0=12a$ to $2.5\%$ (the $O((a/r_0)^2)$ $\ell=2$ correction); positive, while the sphere counterpart is negative (test_p46_bubble_repulsion).

Solution

Repeat (5.198)–(5.202) with P26's kernel, reference medium $G^0=1/(\epsilon|\vec x-\vec x'|)$:

\[\Delta W=\frac12\big[G_{\rm bubble}-G^0\big]_{\rm coincident} =\frac{\epsilon-1}{2\epsilon}\sum_{\ell\ge1} \frac{\ell}{\ell(1+\epsilon)+\epsilon}\,\frac{a^{2\ell+1}}{r_0^{2\ell+2}},\]

whose leading $\ell=1$ term is the boxed $\Delta W$ (denominator $1+2\epsilon$). Equivalently by the P26 substitution rule applied to (5.202): $\Delta W_{\rm sphere}=-\frac{\epsilon-1}{\epsilon+2}\frac{a^3}{2r_0^4} \to\frac1\epsilon\Big[-\frac{\frac1\epsilon-1}{\frac1\epsilon+2}\Big]\frac{a^3}{2r_0^4} =+\frac{\epsilon-1}{\epsilon(1+2\epsilon)}\frac{a^3}{2r_0^4}$ — "what one has to do to (5.202)". Since $\Delta W>0$ increases as the charge approaches ($r_0\downarrow$), the force pushes the charge away: repulsion for $\epsilon>1$. Physics: the bubble is a hole in a polarizable medium — a region of polarizability deficit. Field energy in a dielectric is lowered by concentrating field in high-$\epsilon$ material; pushing the low-$\epsilon$ hole away from the strong-field region (equivalently the charge away from the hole) lowers the energy. This is the electrostatic version of why bubbles in a dielectric liquid migrate to weak-field regions (and its converse is P47's attraction of a dielectric sphere in vacuum) — same $1/r_0^5$ law, opposite sign, $\epsilon$-dependent weight.

P47. Exercise 5.11.2 — Sphere–charge force from the polarization-energy formulaWilcox 2e §5.13, p.265

Using $$W-W_0=-\frac12\int_Vd^3x\,\vec P(\vec x)\cdot\vec E_0(\vec x)$$ (Eq. 5.173; the integral only over the dielectric's volume) together with the interior screening (5.146), re-derive the force between a dielectric sphere (radius $a$) and a unit point charge at $r'\gg a$. Answer: $\vec P=\frac{\epsilon-1}{4\pi}\frac{3}{\epsilon+2}\vec E_0$ with $E_0=1/r'^2$ uniform over the sphere: $$W-W_0=-\frac{\epsilon-1}{\epsilon+2}\,\frac{a^3}{2r'^4} \qquad\Longrightarrow\qquad F_r=-\frac{\epsilon-1}{\epsilon+2}\,\frac{2a^3}{r'^5},$$ exactly (5.202): attraction. Check: the closed form equals the exact series (5.201) at large $r'$ (error $O((a/r')^2)$), and $-\partial_{r'}(W-W_0)$ reproduces (5.202) to $10^{-6}$ (test_p47_energy_from_polarization).

Solution

For $r'\gg a$ the charge's field is uniform across the sphere, $\vec E_0\simeq\hat r'/r'^2$ in magnitude $E_0=1/r'^2$. Inside, (5.146): $\vec E_{\rm in}=\frac3{\epsilon+2}\vec E_0$, so the (uniform) polarization is

\[\vec P=\frac{\epsilon-1}{4\pi}\vec E_{\rm in} =\frac{3(\epsilon-1)}{4\pi(\epsilon+2)}\vec E_0 .\]

Then

\[W-W_0=-\frac12\,P\,E_0\cdot\frac{4\pi a^3}3 =-\frac12\cdot\frac{3(\epsilon-1)}{4\pi(\epsilon+2)}E_0^2\cdot\frac{4\pi a^3}3 =-\frac{\epsilon-1}{\epsilon+2}\,\frac{a^3E_0^2}2 =-\frac{\epsilon-1}{\epsilon+2}\,\frac{a^3}{2r'^4},\]

which is precisely the $\ell=1$ (leading) term of the exact interaction energy (5.201) — the Green-function route and the polarization-energy route are term-for-term the same physics ($-\frac12\alpha E_0^2$ with $\alpha=\frac{\epsilon-1}{\epsilon+2}a^3$, the induced-dipole energy with the build-up factor $\frac12$). The force follows: $F_r=-\partial_{r'}\Delta W=-\frac{\epsilon-1}{\epsilon+2}\frac{2a^3}{r'^5}$, attractive for $\epsilon>1$, the $1/r'^5$ induced-dipole law (contrast the grounded conductor's $1/r'^3$: there an $\ell=0$ monopole image exists; the neutral dielectric starts at $\ell=1$ — the book's remark under (5.202)).

P48. Exercise 5.11.3 — Charge inside a dielectric dropletWilcox 2e §5.13, p.265

A $+1$ charge sits at radius $r_0$ inside a spherical droplet ("bubble of dielectric fluid") of radius $a$ and constant $\varepsilon>1$, vacuum outside (Fig. 5.44). By the Green-function approach, show the radial force on the charge is $$F_r=-\frac{\varepsilon-1}{\varepsilon}\sum_{\ell=1}^{\infty} \frac{\ell(\ell+1)}{[\ell(1+\varepsilon)+1]}\, \frac{r_0^{2\ell-1}}{a^{2\ell+1}}$$ (negative: the charge is pushed toward the center). Check: the force series equals $-\partial_{r_0}\Delta W$ (finite differences) with $\Delta W$ built from P25's interior coefficients $B_\ell$; every term negative; the coefficient identity $\frac12(2\ell+1)B_\ell r_0^{2\ell}$ ↔ series verified term by term (test_p48_charge_in_droplet).

Solution

The self-interaction energy of the charge with the droplet's response is $\Delta W(r_0)=\frac12G_{\rm ind}(\vec r_0,\vec r_0)$, where $G_{\rm ind}$ is the regular (induced) part of P25's inside–inside kernel — the reference $G^0=1/(\varepsilon|\vec x-\vec x'|)$ (charge in unbounded fluid) subtracts the Coulomb-in-medium self-energy. From P25,

\[G_{\rm ind}(\vec x,\vec x')=\sum_\ell(2\ell+1)B_\ell\,(rr')^\ell P_\ell(\cos\gamma), \qquad B_\ell=\frac{(\ell+1)(\varepsilon-1)} {\varepsilon(2\ell+1)[\ell(1+\varepsilon)+1]\,a^{2\ell+1}},\]

so, at coincidence ($P_\ell(1)=1$),

\[\Delta W(r_0)=\frac{\varepsilon-1}{2\varepsilon}\sum_{\ell\ge0} \frac{\ell+1}{\ell(1+\varepsilon)+1}\,\frac{r_0^{2\ell}}{a^{2\ell+1}} .\]

The $\ell=0$ term is an $r_0$-independent constant (the droplet's overall self-energy shift); differentiating term by term,

\[F_r=-\frac{\partial\Delta W}{\partial r_0} =-\frac{\varepsilon-1}{\varepsilon}\sum_{\ell\ge1} \frac{\ell(\ell+1)}{\ell(1+\varepsilon)+1}\, \frac{r_0^{2\ell-1}}{a^{2\ell+1}},\]

the quoted series. Every term is negative for $\varepsilon>1$: the charge is driven to the center. Physically, looking out from inside the dense medium, the interface reflection coefficient has the sign of $(\varepsilon-1)/(\varepsilon+1)>0$ — the image charge is of the same sign (P20 with the media swapped), so the wall repels the charge; the most distant wall point pulls least, and the stable point is the center (restoring force $\propto r_0$ for small $r_0$: $F_r\simeq-\frac{2(\varepsilon-1)}{\varepsilon(\varepsilon+2)}\frac{r_0}{a^3}$, a harmonic trap). This is the exact converse of the charge-outside-bubble repulsion of P46 — both say: the system pushes free charge into the high-$\varepsilon$ region and keeps it away from interfaces with lower $\varepsilon$.

P49. Exercise 5.11.4 — Dielectric sphere and a distant point dipoleWilcox 2e §5.13, p.266

A point dipole $\vec p$ (arbitrary direction) sits at $z=d\gg a$ on the axis of a dielectric sphere (radius $a$, permittivity $\varepsilon$) centered at the origin. Show the force components on the dipole are $$F_i\simeq-3\,\frac{\varepsilon-1}{\varepsilon+2}\,\frac{a^3}{d^7}\times \begin{cases}-p_3\,p_i,&i=1,2\\[4pt] 3p_3^2+\vec p^{\,2},&i=3 .\end{cases}$$ Check: the closed form equals $-\vec\nabla W$ (finite differences) of $W=-\frac\alpha2|\vec E_p(0)|^2$, and matches the exact two-charge dipole energy built from the induced kernel at $d=6a$ to $O((a/d)^2)$; $F_3<0$ (attraction toward the sphere) (test_p49_dipole_sphere_force).

Solution

The sphere responds as an induced dipole $\vec p_{\rm ind}=\alpha\vec E_p(0)$, $\alpha=\frac{\varepsilon-1}{\varepsilon+2}a^3$ (5.144), in the dipole's field at the center. For the dipole at $\vec x_d$ ($|\vec x_d|=d$),

\[\vec E_p(0)=\frac{3(\vec p\cdot\hat x_d)\hat x_d-\vec p}{d^3},\qquad |\vec E_p(0)|^2=\frac{3(\vec p\cdot\hat x_d)^2+\vec p^{\,2}}{d^6},\]

and the induced-response interaction energy (the $\frac12$ of P47) is

\[W(\vec x_d)=-\frac{\alpha}2\,\frac{3(\vec p\cdot\hat x_d)^2+p^2}{d^6} =-\frac\alpha2\Big[\frac{3(\vec p\cdot\vec x_d)^2}{d^8}+\frac{p^2}{d^6}\Big].\]

Force on the dipole: $\vec F=-\vec\nabla_{x_d}W$. Differentiate:

\[\vec\nabla W=-\frac\alpha2\Big[\frac{6(\vec p\cdot\vec x_d)\,\vec p}{d^8} -\frac{24(\vec p\cdot\vec x_d)^2\vec x_d}{d^{10}} -\frac{6p^2\vec x_d}{d^8}\Big],\]

and at $\vec x_d=d\hat z$ ($\vec p\cdot\vec x_d=p_3d$):

\[F_{1,2}=+\frac{3\alpha\,p_3\,p_{1,2}}{d^7},\qquad F_3=-\frac{3\alpha\,(3p_3^2+p^2)}{d^7},\]

which is exactly the boxed form (note the double negative for $i=1,2$). Reading it: the radial component is always attractive ($3p_3^2+p^2>0$) with the strongest pull when $\vec p$ is radial ($|E_p(0)|^2=4p^2/d^6$) and weakest broadside ($p^2/d^6$) — factor 4, the induced-dipole anisotropy; the transverse force $\propto p_3p_{1,2}$ torques the trajectory unless $\vec p$ is purely radial or purely transverse (those are the symmetry axes where $\hat x_d$ is a principal direction of $\vec p\otimes\vec p$). The $d^{-7}$ law completes the module's force ladder: charge–sphere $r^{-5}$ (P47), dipole–sphere $d^{-7}$ — each source derivative costs $d^{-1}$ twice in $W=-\frac\alpha2E^2$.

Run the worked code: cd MACRO_EM/MACRO_EM-05_multipoles_dielectrics/code && python3 multipole_dielectrics.py

MACRO_EM-06 — Magnetostatics (Wilcox Ch. 6 problems)

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-06_magnetostatics

Key equations

\[\vec B=\frac Ic\vec\nabla\Omega'(\vec x)+\frac{4\pi I}{c}\int_{S'}d\vec s'\,\delta(\vec x-\vec x')\quad(6.56),\]
\[\Omega=-2\pi a\,\mathrm{sign}(z)\int_0^\infty dk\,J_1(ka)J_0(k\rho)e^{-k|z|}\ (6.73),\]
\[B_\rho=\frac{2\pi aI}{c}\mathrm{sign}(z)\!\int\!dk\,kJ_1(ka)J_1(k\rho)e^{-k|z|},\quad B_z=\frac{2\pi aI}{c}\!\int\!dk\,kJ_1(ka)J_0(k\rho)e^{-k|z|}\ (6.83{-}6.84),\]
\[B_r=\frac{2\pi Ia}{cr}\sum\frac{(-1)^n(2n+1)!!}{(2n)!!}\frac{r_<^{2n+1}}{r_>^{2n+2}}P_{2n+1}\ (6.119),\qquad B_\theta:\ (6.121)\ \text{two-branch}.\]
\[\vec B_m=\frac{3\vec x(\vec m\cdot\vec x)-r^2\vec m}{r^5}+\frac{8\pi}{3}\vec m\,\delta(\vec x)\ (6.152),\qquad \vec J_m=-c\,\vec m\times\vec\nabla\delta\ (6.153)\]
\[\vec J_{\rm eff}=c\vec\nabla\times\vec M\ (6.195),\qquad \vec K_{\rm eff}=c\vec M\times\hat n\ (6.196);\]
\[\vec B\leftrightarrow\vec D,\qquad\vec H\leftrightarrow\vec E,\qquad\mu\leftrightarrow\epsilon\ (6.210{-}6.211),\]
\[a=\frac{\mu-1}{\mu+1}=-b,\qquad \vec J^{**}=\frac{2\mu}{\mu+1}\vec J\ \text{(transmitted)}\]
\[F_z=-\frac{4\pi^2I^2a^2}{c^2}\frac{\mu-1}{\mu+1}\int_0^\infty dk\,k\,e^{-2kd}J_1^2(ka)\ (6.237) \;\xrightarrow{d\gg a}\;-\frac{6\pi^2I^2a^4}{c^2(2d)^4}\frac{\mu-1}{\mu+1}\ (6.239),\]
\[\Phi_m(\vec x)=\oint_S\frac{\vec M\cdot\hat n'}{|\vec x-\vec x'|}da' -\int_V\frac{\vec\nabla'\cdot\vec M}{|\vec x-\vec x'|}d^3x'\ (6.255)\]

Example problems

P1. Exercise 6.1.1 — Planar circuit partly immersed in a fieldWilcox 2e §6.15, p.316

An irregular planar circuit carries current $I>0$. A uniform field $\vec B$ points perpendicular to the circuit's plane, but only within a bounded (crosshatched) region that the circuit partially enters (the book's Fig. 6.22). Show that the net force on the circuit is $$\vec F=\frac{I}{c}\,\vec L\times\vec B,$$ with $\vec L$ the chord vector joining the two points where the circuit crosses the field boundary (from one field-free side to the other). Answer: as stated; the immersed arc's shape is irrelevant — only its endpoint-to-endpoint displacement $\vec L$ enters. Check: circuit_force_partial (segment-by-segment $d\vec l\times\vec B$ sum over two different irregular immersed arcs with the same crossing points) equals chord_force to $10^{-12}$ and is unchanged under path refinement (test_p1_partial_circuit_force).

Solution

Only the immersed portion feels a force, so from (6.10)

\[\vec F=\frac{I}{c}\int_{\rm in}d\vec x\times\vec B .\]

Since $\vec B$ is one constant vector throughout the region, it factors out of the integral:

\[\vec F=\frac{I}{c}\Bigl(\int_{\rm in}d\vec x\Bigr)\times\vec B =\frac{I}{c}\,\vec L\times\vec B,\]

because $\int d\vec x$ along any path is just the endpoint displacement — here from the entry point (current entering the field region) to the exit point. All the wiggles of the immersed arc cancel telescopically. With $\vec B$ perpendicular to the circuit plane and $\vec L$ in the plane, $\vec F$ lies in the plane, perpendicular to the chord, with magnitude $ILB/c$. (Had the whole circuit been immersed, $\vec L=0$ — a closed loop in a uniform field feels no net force, only a torque.)

P2. Exercise 6.3.1 — Magnetic pinch pressure in a straight wireWilcox 2e §6.15, pp.316–317

A long straight wire of radius $a$ carries total current $I$, uniformly distributed over its cross-section (Fig. 6.23). Starting from $$\frac{dP(\rho)}{d\rho}=\frac{1}{A(\rho)}\frac{dF_\rho}{d\rho}$$ ($F_\rho$ = radial force on a coaxial tube of radius $\rho$, $A(\rho)$ = its lateral area), find the radial pressure $P(\rho)$ everywhere. Inward or outward? Answer: $P(\rho)=\dfrac{I^2}{\pi c^2a^2}\Bigl(1-\dfrac{\rho^2}{a^2}\Bigr)$ for $\rho\le a$, zero outside; the pressure is inward (the pinch), maximal on the axis, $P(0)=I^2/\pi c^2a^2$. Check: closed form vs the integrated $dP/d\rho=-JB_\phi/c$ quadrature ($10^{-10}$), monotone decrease, $P(a)=0$; Ampère's law for $B_\phi$ verified at $\rho\lessgtr a$ (test_p2_pinch_pressure).

Solution

The current density is $J=I/\pi a^2$. Ampère's law (6.36) on a coaxial circle: $2\pi\rho B_\phi=\frac{4\pi}{c}I_{\rm enc}$ with $I_{\rm enc}=I\rho^2/a^2$ inside, $I$ outside, so

\[B_\phi=\frac{2I\rho}{ca^2}\ (\rho\le a),\qquad B_\phi=\frac{2I}{c\rho}\ (\rho\ge a).\]

The force density is $\vec f=\frac1c\vec J\times\vec B =\frac1c J\hat z\times B_\phi\hat e_\phi=-\frac{JB_\phi}{c}\hat\rho$ — radially inward. A shell $(\rho,\rho+d\rho)$ of unit length feels $dF_\rho=-\frac{JB_\phi}{c}\,2\pi\rho\,d\rho$, and with $A(\rho)=2\pi\rho$ per unit length the book's relation gives

\[\frac{dP}{d\rho}=-\frac{J\,B_\phi(\rho)}{c}=-\frac{2I^2\rho}{\pi c^2a^4}.\]

Each shell's inward squeeze is borne by the material beneath it, so integrating in from the free surface ($P(a)=0$):

\[P(\rho)=\int_\rho^a\frac{2I^2\rho'}{\pi c^2a^4}d\rho' =\frac{I^2}{\pi c^2a^2}\Bigl(1-\frac{\rho^2}{a^2}\Bigr),\]

and $P\equiv0$ for $\rho>a$ (no current, no body force). The pressure is compressive (inward): parallel current filaments attract (§6.1) — this is the classic $z$-pinch profile.

P3. Exercise 6.3.2 — Spinning, sliding charged cylinder by Ampère's lawWilcox 2e §6.15, p.317

An infinite hollow cylinder of radius $R$ carries uniform surface charge density $\sigma$ (Fig. 6.24). It spins about its axis ($z$) at angular velocity $\omega$ and translates along $z$ with speed $v_0$. Use Ampère's law to find $\vec B$ inside and outside. Answer: inside: $\vec B=\dfrac{4\pi\sigma\omega R}{c}\hat z$ (uniform); outside: $\vec B=\dfrac{4\pi\sigma R v_0}{c\rho}\hat e_\phi$. The rotation acts as an infinite solenoid, the translation as a fat straight wire. Check: both closed forms vs direct Biot–Savart superposition (a sinh-graded stack of current loops for $K_\phi$, a ring of long straight wires for $K_z$), agreement $2\times10^{-3}$ with the complementary components consistent with zero (test_p3_spinning_sliding_cylinder).

Solution

The moving surface charge is the superposition of two surface currents: rotation gives $K_\phi=\sigma v_\phi=\sigma\omega R$ (a solenoid sheet), translation gives $K_z=\sigma v_0$ (an axial sheet). Solenoid part. By symmetry $\vec B=B_z(\rho)\hat z$; $B_z(\infty)=0$ and a rectangular Ampère loop straddling the sheet with legs parallel to $z$ picks up only the sheet current: $B_z^{\rm in}-B_z^{\rm out}=\frac{4\pi}{c}K_\phi$, while a loop entirely inside (or outside) shows $B_z$ is constant in each region. Hence $B_z^{\rm out}=0$ and $B_z^{\rm in}=\frac{4\pi}{c}\sigma\omega R$. Wire part. By symmetry $\vec B=B_\phi(\rho)\hat e_\phi$; a coaxial circular Ampère loop encloses $I_{\rm enc}=K_z\cdot2\pi R=2\pi R\sigma v_0$ when $\rho>R$ and nothing when $\rho<R$:

\[B_\phi(\rho>R)=\frac{4\pi\sigma R v_0}{c\rho},\qquad B_\phi(\rho<R)=0 .\]

Superpose: uniform axial field inside, azimuthal wire field outside. (Each part also satisfies the jump condition (6.43) across the sheet.)

P4. Exercise 6.4.1 — Field of an infinite current sheetWilcox 2e §6.15, pp.317–318

A plane sheet (the $y$–$z$ plane, Fig. 6.25) carries constant surface current density $\vec K=K_0\hat z$. Find $\vec B$ on both sides. Answer: $\vec B=\pm\dfrac{2\pi K_0}{c}\,\hat y$ for $x\gtrless0$ — uniform, parallel to the sheet, perpendicular to the current, antisymmetric across the sheet, with jump $\hat n\times(\vec B_2-\vec B_1)=\frac{4\pi}{c}\vec K$. Check: closed form vs a sinh-graded superposition of infinite straight wires ($10^{-6}$); the jump condition verified exactly (test_p4_current_sheet).

Solution

Think of the sheet as a stack of parallel wires along $z$ at $(0,y')$, each carrying $dI=K_0\,dy'$. The wire at $y'$ produces $d\vec B=\frac{2\,dI}{c\,d}\hat e_\phi$ with $d=\sqrt{x^2+(y-y')^2}$. By the $y'\to2y-y'$ mirror symmetry the components along $\hat x$ cancel pairwise and the $\hat y$ components add:

\[B_y(x)=\frac{2K_0}{c}\int_{-\infty}^{\infty}\frac{x\,dy'}{x^2+y'^2} =\frac{2K_0}{c}\,\pi\,\mathrm{sign}(x).\]

So $\vec B=\frac{2\pi K_0}{c}\mathrm{sign}(x)\,\hat y$: uniform on each side (the sheet has no length scale), tangential, and odd in $x$. Consistency with (6.43), $\hat n=\hat x$: $\hat x\times[\vec B(0^+)-\vec B(0^-)]=\hat x\times\frac{4\pi K_0}{c}\hat y =\frac{4\pi K_0}{c}\hat z=\frac{4\pi}{c}\vec K$ ✓. (This is the magnetostatic twin of the charged sheet's $\pm2\pi\sigma$ field, cf. §6.4's $\pm\frac{2\pi}{c}K$ disk argument (6.48)–(6.49).)

P5. Exercise 6.5.1 — The Stokes transform $\oint d\vec\ell\times\vec A$Wilcox 2e §6.15, p.318

Transform Stokes' theorem $\oint_C\vec A\cdot d\vec\ell=\int_S da\,\hat n\cdot(\vec\nabla\times\vec A)$ into ($d\vec s=da\,\hat n$) $$\oint_C d\vec\ell\times\vec A=\int_S(d\vec s\times\vec\nabla)\times\vec A .$$ Answer: identity proved below; in components the right side is $\int_S\bigl[\sum_i ds_i\vec\nabla A_i-d\vec s\,(\vec\nabla\cdot\vec A)\bigr]$ — the form (6.51) used to build the solid-angle representation of $\vec B$ (§6.5) and the directed-area moment formula (6.133). Check: both sides computed for a smooth non-trivial $\vec A$ over the unit circle spanned two ways — a flat disk and a paraboloidal cap — agreeing to $10^{-5}$ (surface independence included) (test_p5_stokes_transform).

Solution

Let $\hat c$ be an arbitrary constant vector and apply ordinary Stokes' theorem to the field $\vec A\times\hat c$:

\[\oint_C(\vec A\times\hat c)\cdot d\vec\ell =\int_S d\vec s\cdot\bigl[\vec\nabla\times(\vec A\times\hat c)\bigr].\]

Left side: the cyclic identity $d\vec\ell\cdot(\vec A\times\hat c)=\hat c\cdot(d\vec\ell\times\vec A)$ gives $\hat c\cdot\oint d\vec\ell\times\vec A$. Right side: for constant $\hat c$, $\vec\nabla\times(\vec A\times\hat c)=(\hat c\cdot\vec\nabla)\vec A-\hat c\,(\vec\nabla\cdot\vec A)$, so

\[d\vec s\cdot[\cdots]=\sum_{i,j}ds_j\,c_i\partial_iA_j-(d\vec s\cdot\hat c)(\vec\nabla\cdot\vec A) =\hat c\cdot\Bigl[\sum_j ds_j\vec\nabla A_j-d\vec s\,(\vec\nabla\cdot\vec A)\Bigr].\]

Since $\hat c$ is arbitrary, the vectors multiplying it are equal:

\[\oint_C d\vec\ell\times\vec A =\int_S\Bigl[\sum_i ds_i\,\vec\nabla A_i-d\vec s\,(\vec\nabla\cdot\vec A)\Bigr] =\int_S(d\vec s\times\vec\nabla)\times\vec A,\]

where the last equality is the $\varepsilon$-identity $[(d\vec s\times\vec\nabla)\times\vec A]_k =\sum_i ds_i\partial_kA_i-ds_k\sum_i\partial_iA_i$ (expand $\varepsilon_{kij}\varepsilon_{ilm}=\delta_{jl}\delta_{km}-\delta_{jm}\delta_{kl}$ — the operator BAC–CAB rule, with $\vec\nabla$ acting only on $\vec A$).

P6. Exercise 6.6.1 — Finite solenoid: interior Bessel form and outside falloffWilcox 2e §6.15, pp.318–319

(a) Building on the loop fields (6.83)–(6.84), show that a tightly wound solenoid (radius $a$, length $d$, $n$ turns per unit length, current $I$, origin at its center; Fig. 6.26) has, for $-d/2<z<d/2$, $$B_\rho=\frac{4\pi anI}{c}\int_0^\infty dk\,J_1(ka)J_1(k\rho)\,e^{-kd/2}\sinh(kz),$$ $$B_z=\frac{4\pi nI}{c}H(\rho)-\frac{4\pi anI}{c}\int_0^\infty dk\,J_1(ka)J_0(k\rho)\,e^{-kd/2}\cosh(kz),$$ where $H(\rho)=1$ for $\rho<a$, $0$ for $\rho>a$ (the first term is the infinite-solenoid field; the second is the finite-length correction). (b) Show the correction term at the center falls off like $1/d^2$ for $d\gg\rho,a$. Answer: (a) as stated; (b) correction $\to 8\pi a^2nI/(cd^2)$. Check: Bessel forms vs a brute-force stack of elliptic-integral loops ($2\times10^{-6}$) and the exact on-axis form (test_p6_solenoid_bessel_inside); $d^2\times$correction $\to8\pi a^2nI/c$ monotonically, to $5\times10^{-4}$ at $d=80a$ (test_p6_correction_term_falloff).

Solution

(a) Superpose loops: the turns in $dz_0$ at height $z_0$ carry $nI\,dz_0$, so replace $I\to nI\,dz_0$, $z\to z-z_0$ in (6.83)–(6.84) and integrate $z_0\in(-d/2,d/2)$. Both integrals factor through

\[\int_{-d/2}^{d/2}dz_0\,k\,e^{-k|z-z_0|}\, \begin{Bmatrix}\mathrm{sign}(z-z_0)\\1\end{Bmatrix}.\]

For $|z|<d/2$ split at $z_0=z$:

\[\int k e^{-k|z-z_0|}dz_0=2-e^{-k(d/2+z)}-e^{-k(d/2-z)}=2\bigl[1-e^{-kd/2}\cosh kz\bigr],\]
\[\int \mathrm{sign}(z-z_0)\,k e^{-k|z-z_0|}dz_0 =e^{-k(d/2-z)}-e^{-k(d/2+z)}=2\,e^{-kd/2}\sinh kz .\]

The $\sinh$ line inserted into (6.83) gives $B_\rho$ directly. For $B_z$, (6.84) produces

\[B_z=\frac{4\pi anI}{c}\int_0^\infty dk\,J_1(ka)J_0(k\rho) -\frac{4\pi anI}{c}\int_0^\infty dk\,J_1(ka)J_0(k\rho)e^{-kd/2}\cosh kz,\]

and the first ($d$-independent) integral is exactly the step function identity (6.74): $a\int_0^\infty J_1(ka)J_0(k\rho)\,dk=H(\rho)$ — the infinite-solenoid term $\frac{4\pi nI}{c}H(\rho)$. ✓ (b) At $\rho=0$, $z=0$ the correction is $\Delta=\frac{4\pi anI}{c}\int_0^\infty dk\,J_1(ka)e^{-kd/2}$. For $d\gg a$ the exponential confines $k\lesssim2/d\ll1/a$, where $J_1(ka)\simeq ka/2$:

\[\Delta\simeq\frac{4\pi anI}{c}\cdot\frac{a}{2}\int_0^\infty k\,e^{-kd/2}dk =\frac{2\pi a^2nI}{c}\cdot\frac{4}{d^2}=\frac{8\pi a^2nI}{c\,d^2}\;\propto\;\frac1{d^2}.\]

So the outside return field near the middle of a long solenoid dies as $1/d^2$ (each end looks like a monopole-pair aperture; cf. P16 for the $|z|\gg d$ dipole regime).

P7. Exercise 6.6.2 — Spinning charged diskWilcox 2e §6.15, p.319

A thin disk of radius $R$ in the $z=0$ plane carries uniform surface charge $\sigma$ and spins at $\omega$ about its axis. Show $$B_\rho=\mathrm{sign}(z)\,\frac{2\pi\omega\sigma R^2}{c}\int_0^\infty dk\,e^{-k|z|}J_2(kR)J_1(k\rho),\qquad B_z=\frac{2\pi\omega\sigma R^2}{c}\int_0^\infty dk\,e^{-k|z|}J_2(kR)J_0(k\rho).$$ Extra: show $B_z\to\dfrac{\pi\sigma\omega}{2c}\dfrac{R^4}{|z|^3}$ for $|z|\gg\rho,R$ and read off the disk's magnetic moment $m_z$. (The book's limit line lists "$\rho,a,b$"; the disk's only scales are $\rho$ and $R$.) Answer: as stated; $m_z=\pi\sigma\omega R^4/(4c)$ (so $B_z\to2m_z/|z|^3$ on axis). Check: Bessel forms vs ring superposition ($5\times10^{-6}$), $B_\rho$ odd in $z$ (test_p7_spinning_disk); far-field $B_z$ matches $\frac{2m}{z^3}(1-R^2/z^2)$ to $2\times10^{-3}$ — the exact axis expansion — and $m$ matches the direct moment integral (test_p7_disk_far_field_moment).

Solution

The annulus $(\rho_0,\rho_0+d\rho_0)$ is a loop of current $dI=\sigma\,(\omega\rho_0)\,d\rho_0$ (charge per length $\sigma d\rho_0$ passing at speed $\omega\rho_0$). Insert $a\to\rho_0$, $I\to dI$ in (6.83)–(6.84) and integrate. Both components need

\[\int_0^R\rho_0^2\,J_1(k\rho_0)\,d\rho_0=\frac{R^2}{k}J_2(kR),\]

which follows from the Bessel recursion $\frac{d}{dx}[x^2J_2(x)]=x^2J_1(x)$ (the $m=2$ member of the family that gave (6.72)). Then, e.g.,

\[B_z=\frac{2\pi\sigma\omega}{c}\int_0^\infty dk\,k\,J_0(k\rho)e^{-k|z|} \int_0^R \rho_0^2 J_1(k\rho_0)d\rho_0 =\frac{2\pi\omega\sigma R^2}{c}\int_0^\infty dk\,J_2(kR)J_0(k\rho)e^{-k|z|},\]

and identically for $B_\rho$ with $J_1(k\rho)$ and the loop field's $\mathrm{sign}(z)$. ✓ Far field. On axis ($\rho=0$, $J_0=1$), $e^{-k|z|}$ confines $k\lesssim1/|z|\ll1/R$ where $J_2(kR)\simeq(kR)^2/8$:

\[B_z\simeq\frac{2\pi\omega\sigma R^2}{c}\,\frac{R^2}{8}\int_0^\infty k^2e^{-k|z|}dk =\frac{2\pi\omega\sigma R^4}{8c}\,\frac{2}{|z|^3} =\frac{\pi\sigma\omega R^4}{2c\,|z|^3}.\]

Matching the on-axis dipole field $B_z=2m_z/|z|^3$ (6.154):

\[m_z=\frac{\pi\sigma\omega R^4}{4c} \;\Bigl(=\frac1{2c}\int(\vec x\times\vec K)_z\,da =\frac{1}{2c}\int_0^R\rho_0\,\sigma\omega\rho_0\,2\pi\rho_0\,d\rho_0\ \checkmark\Bigr).\]
P8. Exercise 6.6.3 — Spinning solid charged cylinderWilcox 2e §6.15, pp.319–320

A solid cylinder (radius $R$, length $d$, uniform charge density $\rho_0$) spins at $\omega$ about its axis; origin at the center. Show that for $|z|<d/2$ $$B_z(\rho,z)=\frac{2\pi\rho_0\omega}{c}\bigl(R^2-\rho^2\bigr)H(R-\rho) -\frac{4\pi\rho_0\omega R^2}{c}\int_0^\infty\frac{dk}{k}\,e^{-kd/2}\cosh(kz)\,J_2(kR)J_0(k\rho),$$ with $H$ the unit step (the book writes it "$H(R)$", meaning the step in $\rho$ at $R$). [Hint: use Exercise 6.6.1 or 6.6.2.] Answer: as stated — an infinite-cylinder parabolic profile plus a finite-length correction. Check: Bessel form vs a doubly split stack of spinning disks (each a ring superposition), $3\times10^{-4}$; the Weber–Schafheitlin integral $\int_0^\infty J_2(kR)J_0(k\rho)\,dk/k=(R^2-\rho^2)/2R^2\,H(R-\rho)$ behind the step term verified by direct quadrature (test_p8_spinning_solid_cylinder).

Solution

Slice the cylinder into disks of thickness $dz_0$: each is a spinning disk (P7) of surface density $\rho_0\,dz_0$. Integrate P7's $B_z$ with $z\to z-z_0$:

\[B_z=\frac{2\pi\rho_0\omega R^2}{c}\int_0^\infty dk\,J_2(kR)J_0(k\rho) \int_{-d/2}^{d/2}dz_0\,e^{-k|z-z_0|}.\]

The inner integral (P6's split) is $\frac2k[1-e^{-kd/2}\cosh kz]$, so

\[B_z=\frac{4\pi\rho_0\omega R^2}{c}\int_0^\infty\frac{dk}{k}J_2(kR)J_0(k\rho) -\frac{4\pi\rho_0\omega R^2}{c}\int_0^\infty\frac{dk}{k}e^{-kd/2}\cosh(kz)J_2(kR)J_0(k\rho).\]

The first, $d$-independent integral is the Weber–Schafheitlin closed form

\[\int_0^\infty\frac{dk}{k}\,J_2(kR)J_0(k\rho)=\frac{R^2-\rho^2}{2R^2}\,H(R-\rho)\]

(at $\rho=0$ it is $\int J_2(x)dx/x=1/2$ ✓), turning the leading term into $\frac{2\pi\rho_0\omega}{c}(R^2-\rho^2)H(R-\rho)$ — precisely the infinite spinning cylinder: nested solenoid sheets $K_\phi=\rho_0\omega\rho'\,d\rho'$ give $B_z(\rho)=\frac{4\pi}{c}\int_\rho^R\rho_0\omega\rho'\,d\rho' =\frac{2\pi\rho_0\omega}{c}(R^2-\rho^2)$ inside and $0$ outside. ✓

P9. Exercise 6.6.4 — Loop potential as a modified-Bessel integralWilcox 2e §6.15, p.320

The thin circular loop of radius $a$ in the $z'=0$ plane carrying current $I$ has volume current $\vec J(\vec x')=I\,a\,\frac{\delta(\rho'-a)}{\rho'}\,\delta(z')\,\hat e_{\phi'}$, with $\hat e_{\phi'}=-\sin\phi'\,\hat x+\cos\phi'\,\hat y$. Show that its vector potential can be evaluated as $$\vec A(\rho,z)=\frac{4Ia}{c}\,\hat e_\phi\int_0^\infty dk\,\cos(kz)\, I_1(k\rho_<)\,K_1(k\rho_>),$$ where $\rho_<$ ($\rho_>$) is the lesser (greater) of $\rho$ and $a$ (modified Bessel functions as in §4.6). Answer: as stated — the $\rho$-stacked twin of the $z$-stacked form (6.227). Check: loop_A_IK $=$ loop_A_bessel (6.227) $=$ direct Biot–Savart line integral loop_A_3d, to $2\times10^{-6}$ at points inside and outside $\rho=a$ (test_p9_loop_A_IK).

Solution

(The given $\vec J$ integrates over a half-plane cross-section to $I$ ✓.) By symmetry $\vec A=A_\phi(\rho,z)\hat e_\phi$, and evaluating at $\phi=0$ (where $\hat e_\phi=\hat y$) as in (6.100)–(6.101),

\[A_\phi=\frac{Ia}{c}\int_0^{2\pi}d\phi'\,\frac{\cos\phi'}{|\vec x-\vec x'|} \Big|_{\rho'=a,\,z'=0}.\]

Now insert the other cylindrical expansion of the free Green function — Fourier in $z$, modified Bessel in $\rho$ (the §4.6 companion of (6.70)):

\[\frac1{|\vec x-\vec x'|}=\frac2\pi\sum_{m=-\infty}^{\infty} \int_0^\infty dk\,e^{im(\phi-\phi')}\cos\bigl(k(z-z')\bigr)\,I_m(k\rho_<)K_m(k\rho_>).\]

The $\phi'$ integral $\int_0^{2\pi}\cos\phi'\,e^{-im\phi'}d\phi'=\pi(\delta_{m,1}+\delta_{m,-1})$ keeps only $m=\pm1$, each contributing equally ($I_{-1}K_{-1}=I_1K_1$), so with $z'=0$ and $\phi=0$:

\[A_\phi=\frac{Ia}{c}\cdot\frac2\pi\cdot2\pi\int_0^\infty dk\,\cos(kz)\,I_1(k\rho_<)K_1(k\rho_>) =\frac{4Ia}{c}\int_0^\infty dk\,\cos(kz)\,I_1(k\rho_<)K_1(k\rho_>). \checkmark\]

Here $\rho_<=\min(\rho,a)$, $\rho_>=\max(\rho,a)$ because the source sits at $\rho'=a$. This form is manifestly regular on the axis ($I_1\to0$) and decays for $\rho\to\infty$ ($K_1\to0$); the numeric check confirms it agrees with the $e^{-k|z|}J_1J_1$ representation (6.227) everywhere off the wire.

P10. Exercise 6.6.5 — Spinning truncated cone: field at the tipWilcox 2e §6.15, pp.320–321

A truncated cone of half-opening angle $\alpha$ has its axis along $z$ and its (virtual) apex at the origin; the surface extends from axial distance $L_1$ to $L_2$ (Fig. 6.27). It carries uniform surface charge $\sigma$ (cf. Ex. 2.4.4) and spins at $\omega$, so $\vec K=\sigma\omega\rho\,\hat e_\phi$. Using the on-axis loop field (6.62), sum the ring currents to get $B_z$ at the origin. Answer: $B_z(0)=\dfrac{2\pi\sigma\omega}{c}\,(L_2-L_1)\, \dfrac{\sin^3\alpha}{\cos\alpha}$. Check: closed form vs direct ring quadrature ($10^{-10}$); the $\propto\alpha^3$ small-angle scaling verified (test_p10_cone_tip_field).

Solution

Slice the cone into rings by axial position $z\in(L_1,L_2)$. The ring at $z$ has radius $\rho(z)=z\tan\alpha$; its width measured along the slant is $d\ell=dz/\cos\alpha$, so it carries

\[dI=K\,d\ell=\sigma\omega\,\rho(z)\,\frac{dz}{\cos\alpha} =\frac{\sigma\omega\tan\alpha}{\cos\alpha}\,z\,dz .\]

The on-axis loop formula (6.62), with the field point a distance $z$ below the ring's plane, gives $dB_z=\frac{2\pi\,dI}{c}\frac{\rho^2}{(\rho^2+z^2)^{3/2}}$. With $\rho^2+z^2=z^2/\cos^2\alpha$:

\[dB_z=\frac{2\pi}{c}\,\frac{\sigma\omega\tan\alpha}{\cos\alpha}\,z\, \frac{z^2\tan^2\alpha\,\cos^3\alpha}{z^3}\,dz =\frac{2\pi\sigma\omega}{c}\,\frac{\sin^3\alpha}{\cos\alpha}\,dz,\]

which is independent of $z$ — every slice contributes equally (the $1/z^2$ geometric dilution exactly cancels the growth of ring radius and current). Hence

\[B_z(0)=\frac{2\pi\sigma\omega}{c}\,\frac{\sin^3\alpha}{\cos\alpha}\,(L_2-L_1).\]

Limits: $\alpha\to0$ kills the field as $\alpha^3$ (thin needle); $\alpha\to\pi/2$ diverges (the cone flattens into an infinite sheet-like annulus whose inner edge approaches the origin).

P11. Exercise 6.7.1 — Legendre series for the disk solid angleWilcox 2e §6.15, p.321

Evaluate the solid angle (6.69) of a flat disk of radius $a$ (in the $x$–$y$ plane, axis $\hat z$, oriented as the current-loop spanning surface of §§6.6–6.7) with the spherical-coordinate Coulomb expansion (4.225). Show $$\Omega(\vec x)=-2\pi\sum_{n\ge0}\Bigl(\frac ar\Bigr)^{2n+2} \frac{(-1)^n(2n+1)!!}{(2n+2)!!}\,P_{2n+1}(\cos\theta)\qquad(r\ge a),$$ $$\Omega(\vec x)=-2\pi\sum_{n\ge0}\frac{(-1)^n(2n-1)!!}{(2n)!!} \Bigl[\frac{4n+3}{2n+2}-\Bigl(\frac ra\Bigr)^{2n+1}\Bigr]P_{2n+1}(\cos\theta)\qquad(r\le a),$$ the two agreeing at $r=a$; and show the interior form can be re-organized as $$\Omega(\vec x)=-2\pi\,\mathrm{sign}(z)+2\pi\sum_{n\ge0} \frac{(-1)^n(2n-1)!!}{(2n)!!}\Bigl(\frac ra\Bigr)^{2n+1}P_{2n+1}(\cos\theta).$$ [Hints: (4.181)–(4.183), Ex. 4.12.1, and $\partial_z=\cos\theta\,\partial_r+\frac{\sin^2\theta}{r}\partial_{\cos\theta}$.] Answer: as stated. The sign-split form isolates the disk discontinuity: the constant part of the interior series is exactly the Legendre expansion of $\mathrm{sign}(\cos\theta)$. Check: exterior series vs quadrature and the Bessel form (6.73) to $2\times10^{-6}$; split interior form to $10^{-6}$ (geometric convergence); plain interior branch converges $\sim1/N$ to the same values (conditionally convergent constant part); termwise $r=a$ branch agreement; on-axis closed form (6.60) reproduced (test_p11_solid_angle_series).

Solution

Exterior. Start from (6.69), $\Omega=\partial_z\int_{S'}da'/|\vec x-\vec x'|$. Every source point has $r'=\rho'\le a<r$ and sits at polar angle $\pi/2$, so the $m=0$ (azimuthally averaged) Coulomb expansion gives

\[\int_{S'}\frac{da'}{|\vec x-\vec x'|} =2\pi\sum_\ell P_\ell(0)\,P_\ell(\cos\theta)\,\frac{1}{r^{\ell+1}}\int_0^a\rho'^{\,\ell+1}d\rho' =2\pi\sum_\ell\frac{P_\ell(0)\,a^{\ell+2}}{(\ell+2)\,r^{\ell+1}}P_\ell(\cos\theta).\]

$P_\ell(0)$ kills odd $\ell$; for $\ell=2n$, $P_{2n}(0)=(-1)^n\frac{(2n-1)!!}{(2n)!!}$. Now apply the hinted derivative. Acting on $f_\ell(r)P_\ell(\cos\theta)$ with $f_\ell=r^{-(\ell+1)}$, the two pieces combine via the derivative identities (4.181)–(4.183) into the pure $P_{\ell+1}$ ladder

\[\partial_z\Bigl[\frac{P_\ell(\cos\theta)}{r^{\ell+1}}\Bigr] =-(\ell+1)\frac{P_{\ell+1}(\cos\theta)}{r^{\ell+2}}\]

(the textbook identity $\partial_z[r^{-(\ell+1)}P_\ell]$: both $\cos\theta\,\partial_r$ and the angular term produce $P_{\ell+1}$-content only, by $(\ell+1)P_{\ell+1}=(2\ell+1)xP_\ell-\ell P_{\ell-1}$ and $(1-x^2)P'_\ell=\ell(P_{\ell-1}-xP_\ell)$; Ex. 4.12.1). Hence

\[\Omega=2\pi\sum_n\frac{(-1)^n(2n-1)!!}{(2n)!!}\frac{a^{2n+2}}{2n+2} \bigl[-(2n+1)\bigr]\frac{P_{2n+1}(\cos\theta)}{r^{2n+2}} =-2\pi\sum_n\frac{(-1)^n(2n+1)!!}{(2n+2)!!}\Bigl(\frac ar\Bigr)^{2n+2}P_{2n+1},\]

using $(2n+1)(2n-1)!!=(2n+1)!!$ and $(2n+2)(2n)!!=(2n+2)!!$. ✓ Interior. For $r\le a$ split the radial integral at $\rho'=r$:

\[\int_0^a\frac{\rho'^{\,\ell+1}\,d\rho'}{r_>^{\ell+1}}\,r_<^\ell\Big/\rho'^{\,\ell}\ \text{bookkeeping} \;\Rightarrow\; \int_0^r\frac{\rho'^{\,\ell+1}}{r^{\ell+1}}d\rho'+r^\ell\!\int_r^a\frac{d\rho'}{\rho'^{\,\ell}} =\frac{r}{\ell+2}+\frac{r}{\ell-1}\Bigl[1-\Bigl(\frac ra\Bigr)^{\ell-1}\Bigr]\]

(for $\ell\ge2$; the $\ell=0$ term is $a-r/2$, and only its $-r/2$ piece survives $\partial_z$). Applying the same $\partial_z$ ladder — now also to the growing solutions, via $\partial_z[r^{\ell}P_\ell]=\ell\,r^{\ell-1}P_{\ell-1}$ — and collecting coefficients of $P_{2n+1}$ produces the stated interior branch; at $r=a$ it matches the exterior branch termwise because $\frac{(2n-1)!!}{(2n)!!}\bigl[\frac{4n+3}{2n+2}-1\bigr] =\frac{(2n-1)!!}{(2n)!!}\frac{2n+1}{2n+2}=\frac{(2n+1)!!}{(2n+2)!!}$. Sign split. The $r$-independent part of the interior series is $-2\pi\sum_n(-1)^n\frac{(2n-1)!!}{(2n)!!}\frac{4n+3}{2n+2}P_{2n+1}(\cos\theta)$. Since $\int_0^1P_{2n+1}(x)\,dx=(-1)^n\frac{(2n-1)!!}{(2n+2)!!}$, the Legendre coefficients of $\mathrm{sign}(x)$ are $c_{2n+1}=(4n+3)\int_0^1P_{2n+1}=(-1)^n\frac{(2n-1)!!(4n+3)}{(2n+2)!!}$ — exactly the numbers above. So that constant part is $-2\pi\,\mathrm{sign}(\cos\theta)$, and pulling it out leaves the stated geometric-convergent power series. The sign term carries the whole $\Omega=\mp2\pi$ jump across the disk ((6.80)–(6.81)); the remaining series is continuous through $z=0$.

P12. Exercise 6.7.2 — Loop $B_r$, $B_\theta$ from the solid angleWilcox 2e §6.15, p.321

Using P11's solid-angle series in $\vec B=\frac{I}{c}\vec\nabla\Omega$, recover the current-loop fields (6.119) and (6.121) for both $r>a$ and $r<a$: $$B_r=\frac{2\pi Ia}{cr}\sum_{n\ge0}\frac{(-1)^n(2n+1)!!}{(2n)!!} \frac{r_<^{2n+1}}{r_>^{2n+2}}P_{2n+1}(\cos\theta),$$ $$B_\theta=-\frac{\pi Ia^2}{c}\sum_{n\ge0}\frac{(-1)^n(2n+1)!!}{(n+1)(2n)!!} P^1_{2n+1}(\cos\theta)\times \begin{cases}\dfrac{1}{r^3}\bigl(\tfrac ar\bigr)^{2n}, & r>a,\\[1ex] -\dfrac{2n+2}{2n+1}\dfrac1{a^3}\bigl(\tfrac ra\bigr)^{2n}, & r<a.\end{cases}$$ Answer: as stated (Condon–Shortley $P^1_\ell$). Check: both series vs the elliptic-integral loop field converted to spherical components, $10^{-8}$ at interior and exterior points (test_p12_loop_field_series).

Solution

$B_r=\frac{I}{c}\partial_r\Omega$ and $B_\theta=\frac{I}{c}\frac1r\partial_\theta\Omega$ (6.82-analog in spherical form). Exterior $B_r$: $\partial_r(a/r)^{2n+2}=-(2n+2)(a/r)^{2n+2}/r$, so

\[B_r=\frac{2\pi I}{c}\sum(-1)^n\frac{(2n+1)!!}{(2n+2)!!}(2n+2)\frac{a^{2n+2}}{r^{2n+3}}P_{2n+1} =\frac{2\pi Ia}{cr}\sum(-1)^n\frac{(2n+1)!!}{(2n)!!}\frac{a^{2n+1}}{r^{2n+2}}P_{2n+1},\]

i.e. (6.119) with $r_<=a$, $r_>=r$. Interior $B_r$: use the sign-split form (the $\mathrm{sign}(z)$ term is $r$-independent on either side, so $\partial_r$ kills it):

\[B_r=\frac{2\pi I}{c}\sum(-1)^n\frac{(2n-1)!!}{(2n)!!}\frac{(2n+1)\,r^{2n}}{a^{2n+1}}P_{2n+1} =\frac{2\pi Ia}{cr}\sum(-1)^n\frac{(2n+1)!!}{(2n)!!}\frac{r^{2n+1}}{a^{2n+2}}P_{2n+1},\]

the same formula with $r_<=r$, $r_>=a$: $B_r$ is one continuous expression. ✓ $B_\theta$: $\frac{\partial}{\partial\theta}P_\ell(\cos\theta) =-\sin\theta\,P'_\ell(\cos\theta)=P^1_\ell(\cos\theta)$ in the Condon–Shortley convention. Exterior:

\[B_\theta=-\frac{2\pi I}{c}\sum(-1)^n\frac{(2n+1)!!}{(2n+2)!!} \frac{a^{2n+2}}{r^{2n+3}}P^1_{2n+1} =-\frac{\pi Ia^2}{c}\sum\frac{(-1)^n(2n+1)!!}{(n+1)(2n)!!}\frac{(a/r)^{2n}}{r^3}P^1_{2n+1},\]

since $(2n+2)!!=2(n+1)(2n)!!$. Interior (split form again):

\[B_\theta=\frac{2\pi I}{c}\sum(-1)^n\frac{(2n-1)!!}{(2n)!!}\frac{r^{2n}}{a^{2n+1}}P^1_{2n+1} =-\frac{\pi Ia^2}{c}\sum\frac{(-1)^n(2n+1)!!}{(n+1)(2n)!!} \Bigl[-\frac{2n+2}{2n+1}\Bigr]\frac{(r/a)^{2n}}{a^3}P^1_{2n+1},\]

matching the stated $r<a$ branch. The apparent jump of $B_\theta$ across $r=a$ is the book's point: on the sphere $r=a$ the two branches disagree termwise, but the sums only actually differ at $\theta=\pi/2$ — the wire itself — because the discarded $\mathrm{sign}(z)$ term contributes the compensating $\delta$-sheet on the spanning disk ($\frac1r\partial_\theta$ of $-2\pi\,\mathrm{sign}(\cos\theta)$), cf. (6.85)–(6.94). Off the wire the full field is continuous — the numeric check hits points on both sides against the elliptic closed form.

P13. Exercise 6.7.3 — Rotating uniformly charged shellWilcox 2e §6.15, p.322

A spherical shell of radius $a$ with uniform surface charge $\sigma$ spins at constant $\omega$ about $\hat z$ (Fig. 6.28). Via the vector potential, show $$\vec B=\begin{cases} \dfrac{8\pi a\sigma\omega}{3c}\,\hat z, & r<a,\\[1ex] \dfrac{3\vec x(\vec m\cdot\vec x)-r^2\vec m}{r^5}, & r>a, \end{cases} \qquad \vec m=\frac{4\pi\sigma\omega a^4}{3c}\hat z:$$ uniform inside, a perfect dipole outside. (Identical to the uniformly magnetized sphere of §6.13 with $M_0=\sigma\omega a/c$.) Answer: as stated. Check: closed forms vs Biot–Savart ring quadrature over the shell at interior and exterior points, $10^{-6}$ (test_p13_rotating_shell).

Solution

The surface current is $\vec K=\sigma\vec v=\sigma\omega a\sin\theta'\,\hat e_{\phi'}$. In $\vec A=\frac1c\oint K\,da'/|\vec x-\vec x'|$ expand the Green function in spherical harmonics (6.102). Because $K\propto\sin\theta'=-P^1_1(\cos\theta')$, the $\hat e_{\phi'}$ projection picks out only the $\ell=1$, $m=\pm1$ terms (the same bookkeeping as (6.101)–(6.113), where now the $\theta'$ integral $\int P^1_\ell P^1_1\sin\theta'\,d\theta'\propto\delta_{\ell1}$). The result must therefore be of the pure $\ell=1$ form

\[A_\phi=\frac{4\pi\sigma\omega a}{3c}\sin\theta\times \begin{cases}r, & r<a\\ a^3/r^2, & r>a\end{cases}\]

(the coefficient fixed by the $\ell=1$ radial factor $\frac{4\pi}{3}\frac{r_<}{r_>^2}\,a^2\cdot\frac{\sigma\omega a}{c}$, continuous at $r=a$). Then $\vec B=\vec\nabla\times(A_\phi\hat e_\phi)$:

\[B_r=\frac{1}{r\sin\theta}\partial_\theta(\sin\theta A_\phi),\qquad B_\theta=-\frac1r\partial_r(rA_\phi).\]

Inside ($A_\phi\propto r\sin\theta$, i.e. $\vec A=\frac12\vec B_0\times\vec x$): $B_r=\frac{8\pi\sigma\omega a}{3c}\cos\theta$, $B_\theta=-\frac{8\pi\sigma\omega a}{3c}\sin\theta$, which is the uniform field $\frac{8\pi a\sigma\omega}{3c}\hat z$. ✓ Outside ($A_\phi=\frac{m\sin\theta}{r^2}$ with $m=\frac{4\pi\sigma\omega a^4}{3c}$): $B_r=\frac{2m\cos\theta}{r^3}$, $B_\theta=\frac{m\sin\theta}{r^3}$ — exactly the point dipole (6.154)–(6.155). The magnetization-sphere identification: $K_{\rm eff}=cM_0\sin\theta\,\hat e_\phi$ (6.268) matches $K=\sigma\omega a\sin\theta\,\hat e_\phi$ at $M_0=\sigma\omega a/c$, and then $B_{\rm in}=\frac{8\pi}{3}M_0$ ✓, $m=\frac{4\pi a^3}{3}M_0$ ✓ ((6.259), (6.267)).

P14. Exercise 6.7.4 — Rotating uniformly charged solid sphereWilcox 2e §6.15, p.322

A solid sphere of radius $a$, uniform charge density $\rho$, spins at $\omega$ about $\hat z$. (a) Show the exterior field is a perfect dipole with $m=4\pi a^5\omega\rho/(15c)$. (b) Show the interior field is an $r$-dependent dipole field with $m(r)=4\pi r^5\omega\rho/(15c)$ plus a $\hat z$-directed field that vanishes at $r=a$. Answer: (a) as stated; (b) the extra term is $\frac{4\pi\rho\omega}{3c}(a^2-r^2)\hat z$. Check: closed forms vs exact-shell superposition (P13 per shell, radially split quadrature), $10^{-8}$; exterior equals dipole_B; continuity across $r=a$ (test_p14_rotating_solid_sphere).

Solution

Slice into shells of radius $r'$, surface density $\sigma_{\rm eff}=\rho\,dr'$, and superpose P13. Outside ($r>a$): every shell is a dipole,

\[m=\int_0^a\frac{4\pi(\rho\,dr')\,\omega r'^4}{3c} =\frac{4\pi\rho\omega}{3c}\,\frac{a^5}{5}=\frac{4\pi a^5\omega\rho}{15c}. \checkmark\]

Inside ($r<a$): shells with $r'<r$ act as dipoles, accumulating $m(r)=4\pi r^5\omega\rho/(15c)$ — the same integral cut at $r$; shells with $r'>r$ each contribute their uniform interior field $\frac{8\pi r'(\rho\,dr')\omega}{3c}\hat z$, summing to

\[\int_r^a\frac{8\pi\rho\omega r'}{3c}dr'\,\hat z =\frac{4\pi\rho\omega}{3c}\,(a^2-r^2)\,\hat z,\]

which indeed vanishes at $r=a$, where the total field joins the exterior dipole continuously (no surface current at the outer boundary: $\vec K$ is a volume effect here). So $\vec B_{\rm in}=\vec B_{\rm dip}\bigl(m(r)\bigr)+\frac{4\pi\rho\omega}{3c}(a^2-r^2)\hat z$. ✓

P15. Exercise 6.7.5 — Rotating shell with $\sigma=\sigma_0\cos\theta$: pure quadrupoleWilcox 2e §6.15, p.323

The rotating shell of P13 (radius $a$, frequency $\omega$) now has $\sigma(\theta)=\sigma_0\cos\theta$, giving surface current $\vec K=\omega a\,\sigma(\theta)\sin\theta\,\hat e_\phi$. Show that $$\vec B=\begin{cases} \dfrac{4\pi\sigma_0\omega}{5c}\,(-x\,\hat x-y\,\hat y+2z\,\hat z), & r<a,\\[1ex] \dfrac{4\pi\sigma_0 a^5\omega}{5c\,r^7}\, \bigl[x(5z^2-r^2)\hat x+y(5z^2-r^2)\hat y-z\bigl(5(x^2{+}y^2)-2r^2\bigr)\hat z\bigr], & r>a. \end{cases}$$ Answer: as stated — a linear (harmonic) interior field and a pure quadrupole exterior (see P21c for its $s_{ij}$). Check: both branches vs Biot–Savart ring quadrature, $2\times10^{-6}$; exterior $1/r^4$ falloff exact (test_p15_costheta_shell).

Solution

Now $K_\phi=\omega a\sigma_0\cos\theta\sin\theta =-\frac{\omega a\sigma_0}{3}P^1_2(\cos\theta)$ (Condon–Shortley $P^1_2=-3\cos\theta\sin\theta$): a pure $\ell=2$ current, so the same projection as P13 leaves only the $\ell=2$ radial pair. The regular/decaying combination continuous at $r=a$ is

\[A_\phi=\frac{4\pi\omega a\sigma_0}{5c}\cdot\Bigl(-\frac{P^1_2(\cos\theta)}{3}\Bigr)\times \begin{cases}r^2/a, & r<a\\ a^4/r^3, & r>a\end{cases} =\frac{4\pi\omega a\sigma_0}{5c}\,\cos\theta\sin\theta\times \begin{cases}r^2/a\\ a^4/r^3\end{cases}\]

(coefficient from the $\ell=2$ kernel $\frac{4\pi}{5}\frac{r_<^2}{r_>^3}$ and the projection integral $\int_0^\pi P^1_2P^1_2\sin\theta\,d\theta=\frac{2\cdot4!}{5\cdot2!\cdot... } =\frac{12}{5}$, folded with the $a^2$ area factor). Taking $B_r=\frac{1}{r\sin\theta}\partial_\theta(\sin\theta A_\phi)$, $B_\theta=-\frac1r\partial_r(rA_\phi)$: inside $A_\phi\propto r^2\sin\theta\cos\theta$ gives $B_r=\frac{4\pi\sigma_0\omega}{5c}\,r\,(3\cos^2\theta-1)$, $B_\theta=-\frac{4\pi\sigma_0\omega}{5c}\,3r\sin\theta\cos\theta$; converting with $x=r\sin\theta\cos\phi$ etc. gives exactly $\frac{4\pi\sigma_0\omega}{5c}(-x,-y,2z)$ — divergence-free and curl-free (a harmonic $\ell=2$ interior field, the magnetostatic analog of a uniform field gradient). Outside the same derivatives of $a^4/r^3$ produce the quoted Cartesian quadrupole, falling as $1/r^4$ — no net moment: the shell's dipole $\propto\int\sigma_0\cos\theta\cdot\sin^2\theta\,(\dots)$ integrates to zero, so the leading multipole is $\ell=2$. Both branches agree at $r=a$ except for the $K$-sheet jump in $B_\theta$, as they must.

P16. Exercise 6.8.1 — Solenoid outside field and its dipole readingWilcox 2e §6.15, p.323

(a) Following P6 but for $|z|>d/2$, show the solenoid's axial field is $$B_z=\frac{4\pi anI}{c}\int_0^\infty dk\,J_1(ka)J_0(k\rho)\,e^{-k|z|}\sinh(kd/2).$$ (b) For $|z|\gg d,\rho,a$, show $B_z\simeq\dfrac{2\pi a^2IN}{c}\dfrac{1}{|z|^3}$, $N\equiv nd$ the total number of turns. (c) Recover (b) by treating the solenoid as a point dipole. Answer: as stated; the dipole moment is $m=NI\pi a^2/c$. Check: Bessel form vs the loop stack ($2\times10^{-6}$); far-field ratio to $2\pi a^2IN/(c|z|^3)$ and to dipole_B with $m=\pi a^2IN/c$ within the expected $O((d/z)^2)$ corrections (test_p16_solenoid_outside_dipole).

Solution

(a) Same superposition as P6, but with $|z|>d/2$ the field point is outside the $z_0$ range and $|z-z_0|=|z|-z_0\,\mathrm{sign}(z)$ never changes branch:

\[\int_{-d/2}^{d/2}k\,e^{-k|z-z_0|}\,dz_0 =e^{-k|z|}\bigl(e^{kd/2}-e^{-kd/2}\bigr)=2\,e^{-k|z|}\sinh(kd/2),\]

which in (6.84) gives the stated $B_z$ (and the matching $B_\rho\propto J_1(k\rho)$ form with the same kernel). ✓ (b) On axis, $e^{-k|z|}$ confines $k\lesssim1/|z|$, small enough that $J_1(ka)\simeq ka/2$, $J_0\simeq1$, $\sinh(kd/2)\simeq kd/2$:

\[B_z\simeq\frac{4\pi anI}{c}\,\frac{a}{2}\,\frac{d}{2}\int_0^\infty k^2e^{-k|z|}dk =\frac{\pi a^2 n d\,I}{c}\,\frac{2}{|z|^3}=\frac{2\pi a^2IN}{c\,|z|^3}. \checkmark\]

(c) Each turn is a loop of moment $I\pi a^2/c$ (6.157); $N$ turns give $m=NI\pi a^2/c$ along $\hat z$. On the axis of a dipole (6.154), $B_z=2m/|z|^3=2\pi a^2IN/(c|z|^3)$ — the multipole expansion reproduces the $k\to0$ limit of the exact kernel: the three factors $ka/2$, $kd/2$, $k$ in (b) are precisely the loop area, the turn count and the dipole differentiation.

P17. Exercise 6.8.2 — Shaved magnet slab $\equiv$ rim current $I=cM_0d$Wilcox 2e §6.15, pp.323–324

An extremely thin flat wafer of thickness $d$ is shaved off the end of a permanent magnet (Fig. 6.29); inside it $\vec M=M_0\hat n$, uniform and perpendicular to its faces. Show its field is that of a wire circuit along its outer boundary $C$ carrying $I=cM_0d$ — i.e. $$\vec A=M_0d\oint_C\frac{d\vec\ell'}{|\vec x-\vec x'|}$$ (cf. (6.42), (6.22); flatness is unnecessary as long as $\vec M$ stays perpendicular to the wafer). Answer: as stated. Check: $\vec B$ of the wafer (magnetic-charge picture: two disks $\sigma_m=\pm M_0$) vs Biot–Savart of the rim loop with $I=cM_0d$: relative deviation $<2\times10^{-4}$ at $d=0.02R$, shrinking as $d^2$ (test_p17_shaved_magnet_rim_current).

Solution

Route 1 (effective currents). Uniform $\vec M$ has $\vec J_{\rm eff}=c\vec\nabla\times\vec M=0$ in the bulk. On the two faces $\hat n'=\pm\hat n\parallel\vec M$, so $\vec K_{\rm eff}=c\vec M\times\hat n'=0$ there; only the rim (outward normal $\hat\nu\perp\hat n$) carries $\vec K_{\rm eff}=cM_0\,\hat n\times\hat\nu$ — a current of surface density $cM_0$ circulating around $C$ (right-handed about $\vec M$). Integrated over the thickness it is a line current $I=|\vec K|\,d=cM_0d$. Hence, by (6.42) restricted to a line current (6.22), $\vec A=\frac{I}{c}\oint_C d\vec\ell'/|\vec x-\vec x'|=M_0d\oint_Cd\vec\ell'/g$. ✓ Route 2 (dipole superposition, the Ex. 6.13.1 result). From P33, $\vec A=\int(\vec\nabla'\times\vec M)/g\,-\oint(\hat n'\times\vec M)/g$: the volume term dies, the face terms die ($\hat n'\parallel\vec M$), and the rim term is the same line integral. Route 3 (Stokes). For the thin wafer, $\vec A=\int d^3x'\,\vec M\times\vec\nabla'(1/g) = M_0d\int_S da'\,\hat n\times\vec\nabla'(1/g)$, and the surface-curl corollary of Stokes' theorem, $\int_S(\hat n\times\vec\nabla')f\,da'=\oint_Cf\,d\vec\ell'$, lands on the same answer — this route shows the curved wafer works too, since only $\vec M\parallel\hat n'$ (locally) was used. The check compares fields, not potentials: outside the material $\vec B=\vec H$ of the two $\pm M_0$ charged faces, which converges to the rim-loop Biot–Savart field quadratically in $d$.

P18. Exercise 6.8.3 — Two magnetic moments by $\oint\vec x\times d\vec\ell$Wilcox 2e §6.15, p.324

(a) Find the magnetic moment of the saddle circuit of Fig. 6.30(a): two semicircular arcs of radius $R$ standing in parallel vertical planes a distance $L$ apart (one bulging up, the other down), joined by two straight legs of length $L$; concretely (our parametrization of the figure, current $I$): semicircle in the $y$–$z$ plane at $x=0$ from the origin to $(0,2R,0)$ bulging $+z$; leg to $(-L,2R,0)$; semicircle at $x=-L$ bulging $-z$; leg back to the origin. (b) A circular loop of radius $R$ is bent by $90^\circ$ along a diameter (the $x$ axis, Fig. 6.30(b)); find its moment. Answer: (a) $\vec m=\frac{I}{c}\bigl(-\pi R^2\,\hat x+2RL\,\hat z\bigr)$, $|\vec m|=\frac{IR}{c}\sqrt{\pi^2R^2+4L^2}$ — the two arc projections combine into one full circle ($\pi R^2$) perpendicular to the legs, the legs and arc chords into a $2R\times L$ rectangle in the plane. (b) $\vec m=\frac{I\pi R^2}{2c}(\hat y+\hat z)$ for the $y<0$ half folded up about the $x$ axis (the opposite fold flips the $\hat y$ sign); $|\vec m|=\pi IR^2/(\sqrt2\,c)$, at $45^\circ$ between the two half-disk normals. Check: circuit_moment (the $\frac{1}{2c}\oint\vec x\times d\vec\ell$ quadrature) vs both closed forms, plus origin-independence of the quadrature (test_p18_saddle_and_bent_moments).

Solution

For a line current (6.131), $\vec m=\frac{I}{2c}\oint\vec x\times d\vec\ell$, equivalently the directed area $\vec m=\frac Ic\vec S$ (6.133): $S_i$ = signed area of the circuit's projection onto the plane $\perp\hat e_i$. (a) Projection on the $x$–$y$ plane ($S_z$): the arcs project onto the two segments $y\in[0,2R]$ at $x=0,-L$; the circuit projects to the $2R\times L$ rectangle traversed once; with the parametrization above the traversal is counterclockwise seen from $+z$… tracking the order (origin $\to(0,2R)\to(-L,2R)\to(-L,0)\to$ origin) the loop runs clockwise in the conventional $(x,y)$ orientation? Compute honestly: $\frac12\oint(x\,dy-y\,dx)$ over that rectangle path gives $+2RL$ — the quadrature settles the sign: $S_z=+2RL$. Projection on the $y$–$z$ plane ($S_x$): the legs project to points; arc 1 (at $x=0$, bulging $+z$) traverses $(0,0)\to(R,R)_{\;(y,z)}\to(2R,0)$, arc 2 (at $x=-L$, bulging $-z$) traverses $(2R,0)\to(R,-R)\to(0,0)$: together a full circle of radius $R$ traversed clockwise in the $(y,z)$ plane, i.e. $S_x=-\pi R^2$. Projection on $x$–$z$: the two arcs trace the same half-disk boundary in opposite senses — cancels; the legs are collinear segments: $S_y=0$. Hence $\vec m=\frac Ic(-\pi R^2,0,2RL)$. (The saddle geometry is exactly why the arcs add in $S_x$: one bulges up traversed forward, the other bulges down traversed backward.) (b) Each half is a half-disk of area $\pi R^2/2$; the unbent half (in the $x$–$y$ plane, traversed counterclockwise from $+z$) contributes $\frac{I\pi R^2}{2c}\hat z$; the folded half lies in the $x$–$z$ plane and, for the fold that lifts the $y<0$ half to $z>0$, its traversal $(-R,0)\to(0,R)\to(R,0)$ in $(x,z)$ has directed area $+\frac{\pi R^2}{2}\hat y$ (verified by the quadrature). Total $\vec m=\frac{I\pi R^2}{2c}(\hat y+\hat z)$, magnitude $\pi IR^2/(\sqrt2c)$ — bending a loop by $90^\circ$ cuts its moment by $1/\sqrt2$ and rotates it to bisect the fold.

P19. Exercise 6.8.4 — The point dipole's delta field and currentWilcox 2e §6.15, p.325

(a) Show that $\vec A_m=\dfrac{\vec m\times\vec r}{r^3}$ implies $$\vec B_m=\frac{8\pi}{3}\vec m\,\delta(\vec x)+\frac{3\vec r(\vec m\cdot\vec r)-\vec m r^2}{r^5}.$$ (b) Show $\vec\nabla\times\vec B_m=\frac{4\pi}{c}\vec J_m$ with $\vec J_m=-c\,\vec m\times\vec\nabla\delta(\vec x)$. [Hint: the identity for $\nabla_i\nabla_j\frac1r$, Eq. (6.139).] Answer: as stated. Check: the (6.139) box integrals: diagonal $=-4\pi/3$, off-diagonal $=0$ ($10^{-6}$); $\int_{\rm ball}\vec B\,d^3x=\frac{8\pi}{3}\vec m$ by the surface form $\oint\hat n\times\vec A\,da$; the smeared $\vec J_m$ reproduces $\vec m$ through (6.129); the $r\ne0$ field is curl-free (test_p19_dipole_delta_field).

Solution

(a) Write $(\vec m\times\vec r/r^3)_k =-\varepsilon_{klm}m_l\partial_m\frac1r$ (since $\vec r/r^3=-\vec\nabla\frac1r$). Then

\[B_i=\varepsilon_{ijk}\partial_j A_k =-\varepsilon_{ijk}\varepsilon_{klm}\,m_l\,\partial_j\partial_m\frac1r =-\bigl(\delta_{il}\delta_{jm}-\delta_{im}\delta_{jl}\bigr)m_l\partial_j\partial_m\frac1r =-m_i\nabla^2\frac1r+\sum_j m_j\partial_j\partial_i\frac1r .\]

The first term is $+4\pi m_i\,\delta(\vec x)$. For the second use (6.139), $\partial_i\partial_j\frac1r=\frac{3x_ix_j-r^2\delta_{ij}}{r^5} -\frac{4\pi}{3}\delta_{ij}\delta(\vec x)$ (its diagonal delta weight $-4\pi/3$ is the box-flux computation checked numerically; off-diagonal terms carry no delta):

\[\vec B_m=4\pi\vec m\,\delta-\frac{4\pi}{3}\vec m\,\delta +\frac{3\vec r(\vec m\cdot\vec r)-\vec m r^2}{r^5} =\frac{8\pi}{3}\vec m\,\delta(\vec x)+\vec B_{\rm dip}. \checkmark\]

(The $\frac{8\pi}{3}\vec m$ weight — versus the electric dipole's $-\frac{4\pi}{3}\vec p$ (6.147) — is what the ball-integral check measures: $\int_{\rm ball}\vec\nabla\times\vec A=\oint\hat n\times\vec A\,da =\frac{8\pi}{3}\vec m$ for any ball centered on the dipole, since the traceless dipole term integrates to zero.) (b) With $\vec\nabla\cdot\vec A_m=0$ (it is $-\vec m\cdot\vec\nabla\times\vec\nabla\frac1r$-type, i.e. the divergence of a curl-like object: explicitly $\vec\nabla\cdot(\vec m\times\vec F)=-\vec m\cdot\vec\nabla\times\vec F=0$ for the gradient field $\vec F=-\vec\nabla\frac1r$),

\[\vec\nabla\times\vec B_m=\vec\nabla\times(\vec\nabla\times\vec A_m) =-\nabla^2\vec A_m =+\vec m\times\vec\nabla\bigl(\nabla^2\tfrac1r\bigr) =\vec m\times\vec\nabla(-4\pi\delta) =\frac{4\pi}{c}\bigl[-c\,\vec m\times\vec\nabla\delta(\vec x)\bigr],\]

identifying $\vec J_m=-c\,\vec m\times\vec\nabla\delta$. ✓ Its moment closes the loop: $\frac1{2c}\int\vec x\times\vec J_m =-\frac12\int\vec x\times(\vec m\times\vec\nabla\delta) =\vec m$ after one integration by parts (checked with a Gaussian-smeared delta). This is the magnetic twin of $\rho=-\vec p\cdot\vec\nabla\delta$ (6.150).

P20. Exercise 6.8.5 — Magnetic quadrupole moments $m_{ij}$Wilcox 2e §6.15, pp.325–326

For a localized magnetostatic current $J_i(\vec x')$: (a) Prove the cyclic identity $0=\int d^3x'\,[\,x'_ix'_jJ_k+x'_iJ_jx'_k+J_ix'_jx'_k\,]$. (b) Using (a), show $$\frac1c\int d^3x'\,x'_ix'_jJ_k =-\frac12\sum_r\bigl(\varepsilon_{kir}m_{rj}+\varepsilon_{kjr}m_{ri}\bigr), \qquad m_{ij}\equiv\frac2{3c}\int d^3x'\,\bigl(\vec x'\times\vec J\bigr)_i\,x'_j .$$ (c) With the third Taylor term of $1/|\vec x-\vec x'|$ (quadratic in $\vec x'$, kernel $\frac{x'_ix'_j}{2r^5}(3x_ix_j-\delta_{ij}r^2)$), show the next ("magnetic quadrupole") term of the expansion (6.123) is $$A^{(q)}_k(\vec x)=-\frac{1}{2cr^5}\sum_{i,j,r}\varepsilon_{kir}\,Q_{ij}(\vec x)\,m_{rj}, \qquad Q_{ij}=3x_ix_j-r^2\delta_{ij}.$$ (With $m_{ij}$ defined as in (b) — which already carries the $1/c$ — the prefactor is dimensionally $-\frac{1}{2r^5}$; the book's printed extra $1/c$ is redundant unless one works in $c=1$ units, as the code does.) Answer: as stated. Check: cyclic integrals vanish ($<10^{-5}$ of scale) for two exactly divergence-free localized currents; the (b) relation verified component by component; $\mathrm{tr}\,m_{ij}=0$ identically; $A_{\rm exact}-A_{\rm dipole}$ matches $A^{(q)}$ at large $r$ within 5% of the quadrupole term (test_p20_cyclic_identity_and_mij, test_p20_quadrupole_potential).

Solution

(a) For static currents $\vec\nabla'\cdot\vec J=0$ (6.34), so

\[0=\int d^3x'\,\vec\nabla'\cdot\bigl(\vec J\,x'_ix'_jx'_k\bigr) =\int(\vec\nabla'\cdot\vec J)\,x'_ix'_jx'_k +\int\vec J\cdot\vec\nabla'(x'_ix'_jx'_k),\]

where the total-divergence integral vanishes for localized $\vec J$ (surface at infinity) and $\vec J\cdot\vec\nabla'(x'_ix'_jx'_k) =J_ix'_jx'_k+x'_iJ_jx'_k+x'_ix'_jJ_k$. ✓ (This generalizes (6.124) ($x'_i$ alone: $\int J_i=0$) and (6.126) (two coordinates: symmetric part).) (b) Use (a) to remove the totally symmetric part:

\[\int x'_ix'_jJ_k=\tfrac13\int\bigl[2x'_ix'_jJ_k-x'_ix'_kJ_j-x'_jx'_kJ_i\bigr] =\tfrac13\int\bigl[x'_i(x'_jJ_k-x'_kJ_j)+x'_j(x'_iJ_k-x'_kJ_i)\bigr].\]

Now $x'_jJ_k-x'_kJ_j=\sum_r\varepsilon_{jkr}(\vec x'\times\vec J)_r$ (contract two epsilons), so

\[\int x'_ix'_jJ_k=\tfrac13\sum_r\Bigl[\varepsilon_{jkr}\int(\vec x'\times\vec J)_rx'_i +\varepsilon_{ikr}\int(\vec x'\times\vec J)_rx'_j\Bigr] =\tfrac{c}{2}\sum_r\bigl[\varepsilon_{jkr}m_{ri}+\varepsilon_{ikr}m_{rj}\bigr],\]

using the definition of $m_{ij}$ ($\int(\vec x'\times\vec J)_rx'_i=\frac{3c}{2}m_{ri}$). Flipping $\varepsilon_{jkr}=-\varepsilon_{kjr}$, $\varepsilon_{ikr}=-\varepsilon_{kir}$ gives the stated minus-sign form. ✓ Note $\mathrm{tr}\,m=\frac2{3c}\int(\vec x'\times\vec J)\cdot\vec x'=0$ identically. (c) The quadratic Taylor term of (6.123) is

\[A^{(q)}_k=\frac1c\sum_{ij}\frac{3x_ix_j-r^2\delta_{ij}}{2r^5}\int x'_ix'_jJ_k\,d^3x' =\frac{Q_{ij}}{2r^5}\cdot\Bigl(-\frac12\Bigr)\sum_r\bigl(\varepsilon_{kir}m_{rj}+\varepsilon_{kjr}m_{ri}\bigr).\]

The two $\varepsilon$-terms contribute equally under the symmetric $\sum_{ij}Q_{ij}$ (swap $i\leftrightarrow j$ in the second), so

\[A^{(q)}_k=-\frac{1}{2r^5}\sum_{i,j,r}\varepsilon_{kir}Q_{ij}m_{rj},\]

the stated formula (with the dimensional caveat on the printed $1/c$: the dipole term is $\vec m\times\vec x/r^3$ with no extra $c$, and $m_{ij}$ has dimensions [dipole]$\times$[length], so no further $1/c$ can appear).

P21. Exercise 6.8.6 — The magnetic quadrupole fieldWilcox 2e §6.15, p.326

(a) From P20, show the magnetic quadrupole field can be written $$B^{(q)}_k=\frac{3}{2r^7}\sum_{i,j}s_{ij} \bigl(5x_ix_jx_k-\delta_{ik}r^2x_j-\delta_{jk}r^2x_i\bigr),\qquad s_{ij}\equiv\tfrac12(m_{ij}+m_{ji}).$$ (b) Show $s_{ij}$ has only 5 independent components, exactly like the electric quadrupole tensor. (c) By direct computation or by matching Exercise 6.7.5, find the $s_{ij}$ that reproduce P15's exterior field, confirming it is a pure magnetic quadrupole. Answer: (a) as stated (only the symmetric part of $m_{ij}$ survives the curl); (b) symmetric ($6$) and traceless ($-1$) $\Rightarrow5$; (c) $s_{11}=s_{22}=-\dfrac{8\pi\sigma_0a^5\omega}{45c}$, $s_{33}=+\dfrac{16\pi\sigma_0a^5\omega}{45c}$ (diagonal, azimuthally symmetric, traceless). Check: $B^{(q)}$ equals $\vec\nabla\times A^{(q)}$ numerically (including an $m_{ij}$ with antisymmetric part — which drops from the curl); $\mathrm{tr}\,s\approx0$; the (c) tensor from the direct surface integral matches the closed form to $10^{-8}$ and $B^{(q)}(s)$ equals P15's exterior field to $10^{-10}$ (test_p21_quadrupole_field).

Solution

(a) Take the curl of P20's $A^{(q)}$. Two structural facts do the work. First, split $m_{rj}=s_{rj}+a_{rj}$: the antisymmetric part $a_{rj}=\frac12\varepsilon_{rjl}v_l$ turns $-\frac{1}{2r^5}\varepsilon_{kir}Q_{ij}a_{rj}$ into $\vec\nabla\times$-exact-free content — explicitly it reduces to a term $\propto\vec\nabla(x_lv_l/r^3$-type$)$, i.e. a gradient, whose curl vanishes: only $s_{ij}$ enters $\vec B$. Second, with $\partial_l(x_ix_j/r^5)=\frac{\delta_{li}x_j+\delta_{lj}x_i}{r^5}-\frac{5x_ix_jx_l}{r^7}$ and $\partial_l r^{-3}=-3x_l/r^5$, the curl $B^{(q)}_k=\varepsilon_{klm}\partial_lA^{(q)}_m$ contracts (two $\varepsilon$'s again) to

\[B^{(q)}_k=\frac{3}{2r^7}\sum_{ij}s_{ij} \bigl(5x_ix_jx_k-\delta_{ik}r^2x_j-\delta_{jk}r^2x_i\bigr)\]

after using $\mathrm{tr}\,s=0$ to drop the $\delta_{ij}$ contractions. (The numeric identity check against $\vec\nabla\times A^{(q)}$, with a generic non-symmetric $m_{ij}$, certifies both facts.) (b) $s_{ij}=s_{ji}$ gives 6 components; $\mathrm{tr}\,s=\mathrm{tr}\,m=0$ (P20) removes one: 5, matching the electric quadrupole's count — the $\ell=2$ multiplicity $2\ell+1$. (c) For the $\cos\theta$ shell, $\vec K=\omega a\sigma_0\cos\theta\sin\theta\,\hat e_\phi$ and $\vec x\times\vec K=-a|K|\hat e_\theta$ on the surface, so

\[m_{33}=\frac2{3c}\oint(\vec x\times\vec K)_3x_3\,da =\frac2{3c}\,\omega a^5\sigma_0\,2\pi\int_0^\pi\cos^2\theta\sin^3\theta\,d\theta =\frac2{3c}\,\omega a^5\sigma_0\,2\pi\cdot\frac4{15} =\frac{16\pi\sigma_0a^5\omega}{45c},\]

and by azimuthal symmetry $+$ tracelessness $s_{11}=s_{22}=-\frac12s_{33}=-\frac{8\pi\sigma_0a^5\omega}{45c}$ (off-diagonals vanish by the $\phi$ integrals). Plugging into (a): e.g. on the axis $B^{(q)}_z=\frac{3}{2r^7}s_{33}\cdot3r^3=\frac{9s_{33}}{2r^4} =\frac{8\pi\sigma_0a^5\omega}{5c\,r^4}$, exactly P15's exterior $B_z(0,0,r)$. The full tensor match is the numeric check — P15's shell is a pure quadrupole (no dipole, and the $\ell\ge3$ moments vanish for this $K\propto P^1_2$ current).

P22. Exercise 6.9.1 — Dipole beside a straight wireWilcox 2e §6.15, p.326

A point magnetic dipole of arbitrary moment $\vec m$ sits at $(x_0,0,0)$ beside an infinite straight wire carrying current $I$ along the $z$ axis. Find the force $\vec F$ and torque $\vec N$ on the dipole. Answer: $$\vec F=-\frac{2I}{c\,x_0^2}\,\bigl(m_y\,\hat x+m_x\,\hat y\bigr),\qquad \vec N=\frac{2I}{c\,x_0}\,\bigl(-m_z\,\hat x+m_x\,\hat z\bigr).$$ Check: both vs quadrature over a small current loop of the same moment in the exact wire field ($10^{-5}$ for $\vec F$; the torque agrees to the loop's real $O(\varepsilon)$ finite-size term); $\vec N=\vec m\times\vec B$ exactly (test_p22_wire_dipole_force_torque).

Solution

The wire field is $\vec B=\frac{2I}{c\rho^2}(-y,\,x,\,0)$, so

\[\vec m\cdot\vec B=\frac{2I}{c}\,\frac{-m_xy+m_yx}{x^2+y^2}.\]

Force (6.170): $\vec F=\vec\nabla(\vec m\cdot\vec B)$ at $(x_0,0,0)$:

\[\partial_x(\vec m\cdot\vec B)\Big|_{(x_0,0,0)} =\frac{2I}{c}\Bigl[\frac{m_y}{x_0^2}-\frac{2x_0^2m_y}{x_0^4}\Bigr]=-\frac{2Im_y}{cx_0^2},\qquad \partial_y(\cdots)\Big|=\frac{2I}{c}\Bigl[\frac{-m_x}{x_0^2}\Bigr]=-\frac{2Im_x}{cx_0^2},\]

and $\partial_z=0$: $\vec F=-\frac{2I}{cx_0^2}(m_y,m_x,0)$. ✓ (Note the pattern: the $m_x$ part is pulled sideways, the $m_y$ part radially; an $\vec m\parallel\hat z$ dipole feels no force — $\vec m\cdot\vec B=0$ everywhere — but does feel a torque.) Torque (6.177): with $\vec B(x_0,0,0)=\frac{2I}{cx_0}\hat y$,

\[\vec N=\vec m\times\vec B=\frac{2I}{cx_0}\,\vec m\times\hat y =\frac{2I}{cx_0}\,(-m_z,\,0,\,m_x). \checkmark\]

The torque tries to align $\vec m$ with the local $\hat e_\phi=\hat y$; the force then pulls the aligned dipole toward the wire ($\vec m=m\hat y$: $\vec F=-\frac{2Im}{cx_0^2}\hat x$, attraction — a small co-circulating loop is drawn in, "likes attract").

P23. Exercise 6.9.2 — $\vec F=\vec\nabla(\vec m\cdot\vec B)$ from the loop forceWilcox 2e §6.15, pp.326–327

Starting from $\vec F=\frac{I}{c}\oint d\vec x\times\vec B(\vec x)$ and the first-order Taylor expansion $B_i(\vec x)\approx B_i(0)+\vec x\cdot\vec\nabla'B_i(\vec x')|_{\vec x'=0}$, re-derive $\vec F\approx\vec\nabla(\vec m\cdot\vec B)$ with $\vec m=\frac{I}{2c}\oint\vec x\times d\vec x$. Answer: derivation below (uses $\oint dx_j=0$, the antisymmetry $\oint x_ldx_j=-\oint x_jdx_l$, and $\vec\nabla\cdot\vec B=0$). Check: Biot–Savart quadrature of $\oint d\vec x\times\vec B$ for a small tilted loop in a distant-dipole external field equals $\vec\nabla(\vec m\cdot\vec B)$ by finite differences, $2\times10^{-5}$, both for the parametrized circle and for a polygon (test_p23_force_is_grad_mB).

Solution

Insert the expansion:

\[F_i=\frac Ic\,\varepsilon_{ijk}\oint dx_j\,B_k(\vec x) \approx\frac Ic\,\varepsilon_{ijk}\Bigl[B_k(0)\underbrace{\oint dx_j}_{0} +\partial'_lB_k\oint x_l\,dx_j\Bigr].\]

Around a closed loop $\oint d(x_lx_j)=0$ gives $\oint x_ldx_j=-\oint x_jdx_l$: the object is antisymmetric in $(l,j)$, so it is dual to the directed area,

\[\oint x_l\,dx_j=\sum_m\varepsilon_{ljm}\,S_m,\qquad \vec S\equiv\tfrac12\oint\vec x\times d\vec x=\frac{c}{I}\,\vec m .\]

(Contract: $\sum_{lj}\varepsilon_{ljm}\oint x_ldx_j=2S_m$ ✓.) Then

\[F_i=\frac Ic\,\varepsilon_{ijk}\varepsilon_{ljm}\,S_m\,\partial_lB_k =\frac Ic\bigl(\delta_{kl}\delta_{im}-\delta_{km}\delta_{il}\bigr)S_m\partial_lB_k =\frac Ic\Bigl[S_i\,\partial_kB_k-S_k\,\partial_iB_k\Bigr]\cdot(-1)\]

— care with the contraction: $\varepsilon_{ijk}\varepsilon_{ljm}=\varepsilon_{jki}\varepsilon_{jml} =\delta_{km}\delta_{il}-\delta_{kl}\delta_{im}$, so

\[F_i=\frac Ic\bigl[S_k\partial_iB_k-S_i\partial_kB_k\bigr] =m_k\partial_iB_k-m_i(\vec\nabla\cdot\vec B) =\partial_i(\vec m\cdot\vec B),\]

using $\vec\nabla\cdot\vec B=0$ (6.27) and constant $\vec m$. ✓ This is (6.170) re-derived at the level of a single rigid loop; no assumption $\vec\nabla\times\vec B=0$ was needed (that would further convert it to $(\vec m\cdot\vec\nabla)\vec B$, (6.171)).

P24. Exercise 6.10.1 — Surface torque $\Rightarrow\ \vec N=\vec m\times\vec B_0$; hemisphereWilcox 2e §6.15, pp.327–328

(a) Using the bound surface current $\vec K_{\rm eff}=c\vec M\times\hat n$ and the surface torque on a uniformly magnetized body in a uniform field, $$\vec N=\oint_S da\;\vec x\times\Bigl(\frac1c\vec K_{\rm eff}\times\vec B_0\Bigr),$$ show $\vec N=\vec m\times\vec B_0$ with $\vec m=\int d^3x\,\vec M$ (consistent with (6.177) — but now showing where on the body the torque acts). (b) A hemisphere of radius $a$ with uniform $\vec M=M_0\hat k$ sits in $\vec B_0=B_0\hat x$ (Fig. 6.31). Evaluate the torque. Answer: (a) proved below; (b) $\vec N=\frac{2\pi a^3M_0B_0}{3}\,\hat y$ (i.e. $\vec m\times\vec B_0$ with $\vec m=\frac{2\pi a^3}{3}M_0\hat k$; only the curved face carries $\vec K_{\rm eff}$). Check: the surface-torque quadrature over the dome equals $\vec m\times\vec B_0$ for both the given and a generic $\vec B_0$, $10^{-8}$ (test_p24_hemisphere_torque).

Solution

(a) With $\vec A\equiv\vec M$ (constant), $\hat n$ the outward normal, expand the double cross product $(\vec M\times\hat n)\times\vec B_0=\hat n\,(\vec M\cdot\vec B_0)-\vec M\,(\hat n\cdot\vec B_0)$:

\[\vec N=(\vec M\cdot\vec B_0)\oint da\,\vec x\times\hat n -\oint da\,(\hat n\cdot\vec B_0)\,\vec x\times\vec M .\]

First integral: $\oint\vec x\times\hat n\,da=-\int\vec\nabla\times\vec x\,d^3x=0$. Second: for constant $\vec B_0$ and $\vec f(\vec x)=\vec x\times\vec M$, the divergence theorem componentwise gives $\oint da\,(\hat n\cdot\vec B_0)f_i=\int d^3x\,(\vec B_0\cdot\vec\nabla)f_i$, and $(\vec B_0\cdot\vec\nabla)(\vec x\times\vec M)=\vec B_0\times\vec M$. Hence

\[\vec N=-\int d^3x\,\vec B_0\times\vec M=\Bigl(\int\vec M\,d^3x\Bigr)\times\vec B_0 =\vec m\times\vec B_0. \checkmark\]

So although the formula is the familiar dipole torque, it is delivered entirely by the $\vec K_{\rm eff}\times\vec B_0$ stress on the surface (for uniform $\vec M$ there is no volume current to push on). (b) $\vec m=\vec M\,V=\frac{2\pi a^3}{3}M_0\hat k$. On the flat face $\hat n=-\hat k\parallel\vec M$, so $\vec K_{\rm eff}=0$ there — the entire torque comes from the dome, where $\vec K_{\rm eff}=cM_0\sin\theta\,\hat e_\phi$. The quadrature over the dome alone indeed returns

\[\vec N=\vec m\times\vec B_0=\frac{2\pi a^3M_0B_0}{3}\,(\hat k\times\hat x) =\frac{2\pi a^3M_0B_0}{3}\,\hat y .\]
P25. Exercise 6.10.2 — Dipole centered in a spherical cavity / permeable sphereWilcox 2e §6.15, p.328

A point dipole $\vec m$ sits at the center of a vacuum sphere of radius $a$ carved out of an infinite medium of permeability $\mu$ (Fig. 6.32). (a) With the ansatz $$\vec A_{\rm in}=\frac{\vec m\times\vec r}{r^3}+\frac{C_1}{a^3}\,\vec m\times\vec r,\qquad \vec A_{\rm out}=C_2\,\frac{\vec m\times\vec r}{r^3},$$ find $C_{1,2}$ and the fields. (b) Same dipole at the center of a sphere of permeability $\mu$ surrounded by vacuum: find $\vec B$ inside and outside. [Hint: get (b) from (a) cheaply.] (c) Find the bound surface current $\vec K_b$ in (a) and show it has the same form as the free current of the rotating shell (Ex. 6.7.3), the two problems mapping into each other under $\sigma\omega a\leftrightarrow\frac{3c\,m}{4\pi a^3}\frac{\mu-1}{2\mu+1}$. Answer: (a) $C_1=\dfrac{\mu-1}{2\mu+1}$, $C_2=\dfrac{3\mu}{2\mu+1}$: $\vec B_{\rm in}=\vec B_{\rm dip}(\vec m)+\frac{2C_1}{a^3}\vec m$ (dipole plus a uniform field), $\vec B_{\rm out}=C_2\vec B_{\rm dip}(\vec m)$. (b) $C_1'=\dfrac{1-\mu}{2+\mu}$, $C_2'=\dfrac{3}{\mu+2}$ — the (a) result with $\mu\to1/\mu$. (c) $\vec K_b=cM_\theta\,\hat e_\phi$ with $M_\theta=\frac{\mu-1}{4\pi}\frac{C_2}{\mu}\frac{m}{a^3}\sin\theta$, i.e. $K_b\propto\sin\theta\,\hat e_\phi$ exactly like $K_f=\sigma\omega a\sin\theta\,\hat e_\phi$, with the stated correspondence (per unit $m$). Check: the closed-form $C$'s satisfy both boundary conditions algebraically and the assembled fields satisfy them numerically at many angles ($B_r$ continuous, $H_\theta$ continuous, $10^{-4}$ by finite differences); the $\mu\to1/\mu$ map verified; the $K_b$ coefficient formula checked (test_p25_dipole_cavity_and_sphere).

Solution

(a) $\vec\nabla\times(\vec m\times\vec r)=2\vec m$, so the ansatz fields are

\[\vec B_{\rm in}=\vec B_{\rm dip}+\frac{2C_1}{a^3}\vec m,\qquad \vec B_{\rm out}=C_2\,\vec B_{\rm dip},\]

with $\vec B_{\rm dip}$ the point-dipole field (6.152, $r\ne0$). For $\vec m=m\hat z$: $B_r=\frac{2m\cos\theta}{r^3}(\cdots)$, $B_\theta=\frac{m\sin\theta}{r^3}(\cdots)$, and the uniform piece adds $\frac{2C_1m}{a^3}(\cos\theta,-\sin\theta)$ in $(r,\theta)$. Boundary conditions at $r=a$: $B_r$ continuous (6.204) and $H_\theta$ continuous (6.205, no free surface current), with $\vec H_{\rm in}=\vec B_{\rm in}$ (vacuum), $\vec H_{\rm out}=\vec B_{\rm out}/\mu$:

\[\frac{2m}{a^3}(1+C_1)=\frac{2m}{a^3}C_2 \;\Rightarrow\;1+C_1=C_2;\qquad \frac{m}{a^3}(1-2C_1)=\frac{m}{\mu a^3}C_2 \;\Rightarrow\;\mu(1-2C_1)=C_2 .\]

Solving: $C_1=\frac{\mu-1}{2\mu+1}$, $C_2=\frac{3\mu}{2\mu+1}$. ✓ For $\mu>1$ the cavity field is boosted along $\vec m$ (the medium's magnetization adds a uniform field), and the far dipole is enhanced by $C_2>1$; $\mu\to\infty$: $C_1\to\frac12$, $C_2\to\frac32$. (b) Swapping which side is vacuum exchanges the roles of $\vec B$ and $\mu\vec H$: dividing both media's $\mu$'s by $\mu$ (allowed — only the ratio enters the BCs) turns (medium $\mu$ outside, vacuum inside) into (vacuum outside, $1/\mu$ inside)… run the same two conditions with $\vec H_{\rm in}=\vec B_{\rm in}/\mu$, $\vec H_{\rm out}=\vec B_{\rm out}$: $1+C_1'=C_2'$ and $\frac{1}{\mu}(1-2C_1')=C_2'$, whose solution is exactly (a) with $\mu\to1/\mu$: $C_1'=\frac{1-\mu}{2+\mu}$, $C_2'=\frac{3}{\mu+2}$. For $\mu>1$ the sphere now screens: $C_2'<1$, and the interior uniform correction opposes $\vec m$. (c) The medium's magnetization at $r=a^+$ is $\vec M=\chi_m\vec H_{\rm out}=\frac{\mu-1}{4\pi}\frac{C_2}{\mu}\vec B_{\rm dip}(\vec m)/1$… keeping the $\theta$ component (which is what survives in $\vec M\times\hat n$): $M_\theta=\frac{\mu-1}{4\pi}\frac{C_2}{\mu}\frac{m\sin\theta}{a^3}$. The bound current on the cavity wall (outward normal of the material is $-\hat r$) is

\[\vec K_b=c\,\vec M\times(-\hat r)=c\,M_\theta\,\hat e_\phi =\frac{3c\,m}{4\pi a^3}\,\frac{\mu-1}{2\mu+1}\,\sin\theta\,\hat e_\phi,\]

using $\frac{\mu-1}{4\pi}\frac{C_2}{\mu}=\frac{3(\mu-1)}{4\pi(2\mu+1)}$. This is precisely the rotating shell's $K_f=\sigma\omega a\sin\theta\,\hat e_\phi$ under $\sigma\omega a\leftrightarrow\frac{3cm}{4\pi a^3}\frac{\mu-1}{2\mu+1}$ — the cavity problem is Ex. 6.7.3's shell superposed on the bare dipole.

P26. Exercise 6.11.1 — Permeable sphere in a uniform fieldWilcox 2e §6.15, p.329

(a) Find $\Phi_m$ (hence $\vec B$, $\vec H$) for a sphere of permeability $\mu$ and radius $a$ in a uniform external field $\vec B_0$ — the quick route is electro/magnetostatic interchangeability applied to the dielectric sphere (Ex. 5.7.3). (b) Show the induced magnetization is $\vec M=\frac{3}{4\pi}\frac{\mu-1}{\mu+2}\,\vec B_0$. Answer: with $\vec B_0=B_0\hat z$, $$\Phi_m=\begin{cases}-\dfrac{3}{\mu+2}B_0\,r\cos\theta, & r<a,\\[1ex] -B_0\,r\cos\theta+\dfrac{\mu-1}{\mu+2}\,a^3B_0\,\dfrac{\cos\theta}{r^2}, & r>a,\end{cases}$$ so $\vec H_{\rm in}=\frac{3}{\mu+2}\vec B_0$ (uniform), $\vec B_{\rm in}=\frac{3\mu}{\mu+2}\vec B_0$, and outside $\vec B=\vec B_0+\vec B_{\rm dip}(m_{\rm ind})$ with $m_{\rm ind}=\frac{\mu-1}{\mu+2}a^3B_0$; (b) as stated. Check: interior uniformity and value, exterior dipole superposition, both boundary conditions, and $\Phi_m$ continuity, all verified numerically from the potential ($10^{-4}$ FD tolerance); the $M$ formula exact (test_p26_permeable_sphere).

Solution

In the source-free region $\vec H=-\vec\nabla\Phi_m$ with $\vec\nabla\cdot\vec B=0$, $\vec B=\mu\vec H$: mathematically identical to the dielectric problem under $\vec H\leftrightarrow\vec E$, $\vec B\leftrightarrow\vec D$, $\mu\leftrightarrow\epsilon$ (§6.11, (6.210)–(6.211)). The dielectric sphere in $\vec E_0$ (Ex. 5.7.3) has interior field $\frac{3}{\epsilon+2}E_0$ and exterior dipole $\frac{\epsilon-1}{\epsilon+2}a^3E_0$; transcribing gives the stated $\Phi_m$. Verify directly: both branches are harmonic; at $r=a$, $\Phi_m$ continuous ($-\frac{3}{\mu+2}=-1+\frac{\mu-1}{\mu+2}$ ✓ — this is $H_\theta$ continuity), and $B_r=\mu H_r$ inside vs $H_r$ outside: $\mu\frac{3}{\mu+2}B_0\cos\theta =\bigl[1+2\frac{\mu-1}{\mu+2}\bigr]B_0\cos\theta=\frac{3\mu}{\mu+2}B_0\cos\theta$ ✓. (b) $\vec M=\frac{\vec B-\vec H}{4\pi}$ inside:

\[\vec M=\frac{1}{4\pi}\Bigl(\frac{3\mu}{\mu+2}-\frac{3}{\mu+2}\Bigr)\vec B_0 =\frac{3}{4\pi}\,\frac{\mu-1}{\mu+2}\,\vec B_0. \checkmark\]

Sanity: $\mu\to\infty$ gives $B_{\rm in}\to3B_0$, $M\to\frac{3B_0}{4\pi}$ (the "perfectly permeable" saturation of the sphere geometry, demagnetizing factor $4\pi/3$); $\mu<1$ gives $M$ opposing $B_0$ (diamagnetic screening).

P27. Exercise 6.12.1 — Image currents: source in vacuum over a permeable half-spaceWilcox 2e §6.15, pp.329–330

A current distribution $\vec J(\vec x)$ sits in vacuum ($z>0$) above a semi-infinite slab of permeability $\mu\ne1$ filling $z<0$ (Fig. 6.33). Show that for $z>0$ the field is that of $\vec J$ plus an image current $$\vec J^(\vec x)=\bigl(a\,J_x(x,y,-z),\;a\,J_y(x,y,-z),\;b\,J_z(x,y,-z)\bigr), \qquad a=-b=\frac{\mu-1}{\mu+1},$$ and that for $z<0$ the field appears to come from $\vec J^{**}=c'\,\vec J$ at the source location, $c'=\dfrac{2\mu}{\mu+1}$ (vacuum kernel). Answer: as stated. Check:* for a tilted circular loop, the boundary-condition residuals ($B_z$ jump and $H_\parallel$ jump at $z=0$) vanish to $10^{-10}$ of the local field at several stations; the image force on a parallel loop (Eq. 6.237 form) is attractive for $\mu>1$, repulsive for $\mu<1$ (test_p27_image_source_in_vacuum).

Solution

Ansatz (mirroring the electrostatic (6.214)–(6.221)): $\vec B_{z>0}={\rm BS}[\vec J]+{\rm BS}[\vec J^]$ and $\vec B_{z<0}={\rm BS}[c'\vec J]$, with BS the vacuum Biot–Savart operator (6.24). The mirrored current with coefficients $(a,a,b)$, $b=-a$, is geometrically the mirror image of the circuit (current path reflected in $z=0$, which flips $dl_z$) scaled by $a$: for a planar horizontal loop this is a coaxial loop at $-z_0$ circulating in the same sense. Key mirror-symmetry facts at the plane $z=0$: the field of the mirror image of a current satisfies $B^_z(x,y,0)=+a\,B^J_z(x,y,0)$ and $\vec B^*_\parallel(x,y,0)=-a\,\vec B^J_\parallel(x,y,0)$ (reflect the Biot–Savart integrand; a mirror current's field is the mirror of the field with the pseudovector flip). Then the conditions: normal $\vec B$ continuous, and tangential $\vec H$ continuous with $\vec H_{z<0}=\vec B_{z<0}/\mu$:

\[(1+a)\,B^J_z=c'\,B^J_z,\qquad (1-a)\,B^J_\parallel=\frac{c'}{\mu}\,B^J_\parallel\]
\[\Rightarrow\quad 1+a=c',\qquad \mu(1-a)=c' \quad\Rightarrow\quad a=\frac{\mu-1}{\mu+1},\quad c'=\frac{2\mu}{\mu+1},\]

and $b=-a$ is forced by consistency for currents with vertical segments (the mirror flip of $J_z$ is what keeps $\vec\nabla\cdot\vec J^*=0$ and makes the parallel/normal field symmetries hold simultaneously). Limits: $\mu\to1$: no image ($a\to0$, $c'\to1$); $\mu\to\infty$: $a\to1$ (the "magnetic conductor" image, field lines forced normal to the interface); $\mu\to0$: $a\to-1$ (superconductor limit — see P31's boundary condition).

P28. Exercise 6.12.2 — Image currents: source embedded in the mediumWilcox 2e §6.15, p.330

Now the free current $\vec J(\vec x)$ is embedded inside the permeable half-space ($z>0$, permeability $\mu$), with vacuum at $z<0$. Assuming $z>0$ fields = (real $\vec J$ + image $\vec J^$, both in the medium) and $z<0$ fields = $\vec J^{}$ at the source location in vacuum, find the image coefficients. [Hint: adapt Exercise 6.12.1.] Answer: $\vec J^=\bigl(a'J_x,\,a'J_y,\,-a'J_z\bigr)(x,y,-z)$ with $$a'=-\frac{\mu-1}{\mu+1},\qquad \vec J^{}=\frac{2\mu}{\mu+1}\,\vec J,$$ where the $z>0$ fields carry the medium factor ($\vec B={\mu}\,{\rm BS}[\vec J+\vec J^]$) and the $z<0$ field is the plain vacuum ${\rm BS}[\vec J^{**}]$. Check:* BC residuals at $z=0$ for a tilted loop vanish to $10^{-10}$ (test_p28_image_source_embedded).

Solution

In an infinite medium $\mu$, a free current's field is $\mu$ times its vacuum field ($\vec\nabla\times\vec B=\frac{4\pi\mu}{c}\vec J_{\rm free}$ from (6.203)), so write $\vec B_{z>0}=\mu\bigl({\rm BS}[\vec J]+{\rm BS}[\vec J^*]\bigr)$, $\vec B_{z<0}={\rm BS}[c''\vec J]$. The same mirror relations as P27 now give, at $z=0$:

\[\text{(normal }B\text{):}\quad \mu(1+a')=c'';\qquad \text{(tangential }H\text{):}\quad \frac{\mu(1-a')}{\mu}=c''\;\Rightarrow\;1-a'=c''.\]

Solving: $a'=\frac{1-\mu}{1+\mu}=-\frac{\mu-1}{\mu+1}$, $c''=\frac{2\mu}{\mu+1}$. ✓ So the embedded source sees an image of the opposite sign relative to P27 (a co-circulating loop buried in iron is repelled from the surface toward the bulk), while the transmitted-side strength happens to be the same $2\mu/(\mu+1)$ — though evaluated with the vacuum kernel rather than the medium's. Both P27 and P28 reduce to the same physical field when $\mu\to1$.

P29. Exercise 6.12.3 — Dipole layer → current loop: the solid-angle image answerWilcox 2e §6.15, pp.330–331

Two coincident (spacing $\Delta d\to0$) flat circular sheets carrying $\pm\sigma$ form an electric dipole layer of strength $D=\sigma\Delta d$, parallel to and a distance $d$ above a semi-infinite dielectric $\epsilon$ (Fig. 6.34). Using the appropriate Green function, find $\vec E$ and $\vec D$ in both half-spaces (off the sheets), and show that $$\epsilon\Rightarrow\mu,\qquad D\Rightarrow\frac{I}{c}$$ turns the result into the $\vec B$ field of a current loop bounding the same circle above a permeable interface: $$\vec B=\frac Ic\Bigl[\vec\nabla\Omega_{\rm source} +\frac{\mu-1}{\mu+1}\vec\nabla\Omega_{\rm image}\Bigr]\ (z>0),\qquad \vec B=\frac Ic\,\frac{2\mu}{1+\mu}\,\vec\nabla\Omega_{\rm source}\ (z<0),$$ $\Omega_{\rm source/image}$ = solid angles of the source disk (at $z=d$) and its mirror (at $z=-d$), both with $\hat n'=+\hat z$. Answer: electrostatic side: $\Phi=-D[\Omega_{\rm src}+\lambda\Omega_{\rm img}]$ for $z>0$ ($\lambda=\frac{\epsilon-1}{\epsilon+1}$), $\Phi=-\frac{2}{\epsilon+1}D\,\Omega_{\rm src}$ for $z<0$; then $\vec E=-\vec\nabla\Phi=D\vec\nabla[\Omega_{\rm src}+\lambda\Omega_{\rm img}]$ above and $\vec E=\frac{2D}{\epsilon+1}\vec\nabla\Omega_{\rm src}$, $\vec D=\epsilon\vec E=\frac{2\epsilon D}{\epsilon+1}\vec\nabla\Omega_{\rm src}$ below. The substitution ($\vec E\to\vec H$, $\vec D\to\vec B$) gives the stated $\vec B$ — magnetostatics in source-free regions is electrostatics. Check: $\frac Ic[\vec\nabla\Omega_{\rm src}+\lambda\vec\nabla\Omega_{\rm img}]$ (numerical solid-angle gradients) equals the direct Biot–Savart field of the real + image loops for $z>0$, and the transmitted form matches the $c'$-loop field for $z<0$, $2\times10^{-4}$ (test_p29_solid_angle_representation).

Solution

Potential of a uniform dipole layer. A layer of moment density $D\hat n'$ on $S'$ has $\Phi(\vec x)=\int_{S'}da'\,D\,\hat n'\cdot\frac{\vec x-\vec x'}{|\vec x-\vec x'|^3} =-D\,\Omega(\vec x)$ in the book's sign convention (6.67) — e.g. just above a large layer $\Omega=-2\pi$ and $\Phi=+2\pi D$ ✓ (the standard layer jump $4\pi D$). Images. The dielectric half-space images a charge $q$ at height $h$ as $q^=-\lambda q$ at $-h$ ($\lambda=\frac{\epsilon-1}{\epsilon+1}$), and transmits $\frac{2}{\epsilon+1}q$. Image the layer sheet by sheet: the $+$ sheet (upper) maps to a $-\lambda\sigma$ sheet at the mirrored (lower) position, the $-$ sheet to $+\lambda\sigma$ above it — mirroring swaps the stacking, so the image layer has moment $+\lambda D$ along $+\hat z$ (two sign flips cancel). Hence for $z>0$, $\Phi=-D\Omega_{\rm src}-\lambda D\,\Omega_{\rm img}$, and below, $\Phi=-\frac{2D}{\epsilon+1}\Omega_{\rm src}$. Gradients give the stated $\vec E$; multiplying by $\epsilon$ below gives $\vec D=\frac{2\epsilon}{\epsilon+1}D\,\vec\nabla\Omega_{\rm src}$. Magnetic transcription.* In the source-free regions $\vec H=-\vec\nabla\Phi_m$ with the same boundary mathematics ($\vec H\leftrightarrow\vec E$, $\vec B\leftrightarrow\vec D$, $\mu\leftrightarrow\epsilon$). A current loop $I$ is the magnetic twin of a dipole layer of strength $D=I/c$ on any spanning surface (§6.5: $\vec B=\frac Ic\vec\nabla\Omega$ off the surface). Substituting:

\[z>0:\ \vec B=\vec H\,(\text{vacuum})=\frac Ic\vec\nabla\bigl[\Omega_{\rm src}+\tfrac{\mu-1}{\mu+1}\Omega_{\rm img}\bigr]; \qquad z<0:\ \vec B=\mu\vec H=\frac Ic\,\frac{2\mu}{1+\mu}\vec\nabla\Omega_{\rm src},\]

which is exactly P27's image system (image loop $\lambda I$, same circulation sense; transmitted loop $\frac{2\mu}{\mu+1}I$) — the numeric check closes that triangle.

P30. Exercise 6.12.4 — General Green-function representation of $\Phi_m$Wilcox 2e §6.15, p.331

Let $G(\vec x,\vec x';\epsilon)$ be the open-space electrostatic Green function in the presence of dielectrics, $\Phi(\vec x)=\int d^3x'\,G(\vec x,\vec x';\epsilon)\rho(\vec x')$. Introduce an electric dipole surface $S'$ with the dipole sources of Eq. (6.150) integrated over $S'$, and use P29's interchangeability ($\epsilon\Rightarrow\mu$, $D\Rightarrow I/c$) to argue $$\Phi_m(\vec x)=\frac Ic\int_{S'}da'\,\frac{\partial}{\partial n'}G(\vec x,\vec x';\mu), \qquad \vec H=-\vec\nabla\Phi_m,$$ for a loop of current $I$ bounding $S'$ (right-hand rule tying $\hat n'$ to $I$; valid in source-free regions, i.e. off $S'$). Answer: as stated. Check: with the half-space Green function ($G=\frac1g-\lambda\frac1{g_{\rm im}}$ above, $\frac{2}{\mu+1}\frac1g$ below), $-\vec\nabla\Phi_m$ reproduces the real+image loop field for $z>0$ and $\vec B=\mu\vec H$ matches the transmitted-loop field for $z<0$, $2\times10^{-4}$ (test_p30_green_function_representation).

Solution

A point dipole $\vec p$ at $\vec x'$ is the charge density $\rho=-\vec p\cdot\vec\nabla'\delta(\vec x-\vec x')$ (6.150). Feeding it through the linear relation $\Phi=\int G\rho$ and integrating by parts moves the gradient onto $G$:

\[\Phi_{\rm dip}(\vec x)=\vec p\cdot\vec\nabla'G(\vec x,\vec x') .\]

A dipole surface of density $D\hat n'$ then superposes to

\[\Phi(\vec x)=D\int_{S'}da'\,\hat n'\cdot\vec\nabla'G(\vec x,\vec x';\epsilon) =D\int_{S'}da'\,\frac{\partial G}{\partial n'},\]

the general-$G$ version of P29's $-D\Omega$ (for free space $G=1/|\vec x-\vec x'|$ and $\int\partial_{n'}(1/g)\,da'=-\Omega$ by (6.68) — signs consistent). Now transcribe: in regions with no free current the magnetostatic problem is the $\mu\leftrightarrow\epsilon$ electrostatic one (§6.11), a current loop is a dipole layer of strength $I/c$ on any spanning surface $S'$ (P29), so

\[\Phi_m(\vec x)=\frac Ic\int_{S'}da'\,\frac{\partial}{\partial n'}G(\vec x,\vec x';\mu),\qquad \vec H=-\vec\nabla\Phi_m,\]

with $\hat n'$ right-handed about the current. The payoff: any dielectric image/Green construction (plane, sphere, layered media, …) instantly generates the magnetostatic loop solution in matched permeable geometry — one scalar quadrature instead of three vector ones. The representation fails only on $S'$ itself, where the layer discontinuity ($\Phi_m$ jumps by $4\pi I/c$) encodes the multivaluedness of the loop's scalar potential — crossing $S'$ is how Ampère's law survives $\vec H=-\vec\nabla\Phi_m$.

P31. Exercise 6.12.5 — Image current in a superconducting sphereWilcox 2e §6.15, pp.331–332

Define a perfect electric conductor by $\vec E=\vec B=0$ inside (limits $\epsilon\to\infty$, $\mu\to0$). A magnetostatic current $\vec J(r,\theta,\phi)$ flows outside a perfectly conducting sphere of radius $a$ (Fig. 6.35). Show that adding the image current (defined for $r<a$) $$\vec J^(r,\theta,\phi)=-\Bigl(\frac ar\Bigr)^5\vec J\Bigl(\frac{a^2}{r},\theta,\phi\Bigr), \quad\text{equivalently}\quad \vec J^\Bigl(\frac{a^2}{r},\theta,\phi\Bigr)=-\Bigl(\frac ra\Bigr)^5\vec J(r,\theta,\phi),$$ makes $\vec B\cdot\hat n|_{r=a}=0$ — the magnetostatic analog of the grounded-sphere image (Ex. 3.3.3). Answer: as stated. For a coaxial ring at $(r_0,\theta_0)$ carrying $I$, the image is a ring at $(a^2/r_0,\theta_0)$ carrying $I^=-(r_0/a)\,I$. Check:* $\vec B\cdot\hat r$ on $r=a$ from ring + image ring vanishes to $10^{-6}$ of the local field at 8 surface stations; the coefficient map ring$\to$image verified from the $(a/r)^5$ density rule (test_p31_conducting_sphere_image).

Solution

Ring reduction. Decompose $\vec J$ into coaxial rings (the $\phi$-components; poloidal pieces follow the same scaling — see below). A ring at $(r_0,\theta_0)$ has, in spherical coordinates, only $A_\phi(r,\theta)$, and

\[\vec B\cdot\hat r=\frac{1}{r\sin\theta}\,\partial_\theta\bigl(\sin\theta\,A_\phi\bigr),\]

so $\vec B\cdot\hat r|_{r=a}=0\iff A_\phi(a,\theta)$ is $\theta$-independent $\iff A_\phi(a,\theta)=0$ (it must vanish at the poles). The ring potential expands as

\[A_\phi=\frac{2\pi I\,r_0\sin\theta_0}{c}\sum_\ell\frac{P^1_\ell(\cos\theta_0)P^1_\ell(\cos\theta)}{\ell(\ell+1)}\, \frac{r_<^\ell}{r_>^{\ell+1}},\]

(the (6.113) machinery with the source at $\theta_0$). Add an interior image ring at $r_1<a$, same $\theta_0$, current $I^$: for $r=a$ (outside both), each $\ell$ term of the sum* must vanish:

\[I\,r_0\sin\theta_0\,\frac{a^\ell}{r_0^{\ell+1}}\cdot\frac{1}{a^{\ell+1}}\Big/(\dots) +I^*\,r_1\sin\theta_0\,\frac{r_1^\ell}{a^{\ell+1}}\cdot\frac{1}{a^{\ell}}\Big/(\dots)=0 \;\Longrightarrow\; I^*\,r_1^{\ell+1}=-I\,\frac{a^{2\ell+1}}{r_0^{\ell}} .\]

An $\ell$-independent solution requires $r_1=a^2/r_0$ (then $r_1^{\ell+1}=a^{2\ell+2}/r_0^{\ell+1}$), giving

\[I^*=-\frac{r_0}{a}\,I \qquad\text{at } \Bigl(\frac{a^2}{r_0},\,\theta_0\Bigr)\]

— one image ring kills every multipole at once, exactly like the electrostatic sphere image. ✓ Density form. Write the ring as $\vec J=\frac{I}{r_0}\delta(r-r_0)\delta(\theta-\theta_0)\hat e_\phi$ and demand $\vec J^(r)=-(a/r)^5\vec J(a^2/r)$: the delta transforms as $\delta(a^2/r-r_0)=\frac{r^2}{a^2}\delta(r-a^2/r_0)$, and collecting factors returns precisely $I^=-(r_0/a)I$ at $r_1=a^2/r_0$ — the $(a/r)^5$ is the Jacobian bookkeeping $(a/r)^{2}$ (delta) $\times(a/r)^{3}$ (Kelvin scaling of a current density) that makes the rule ring-consistent and, applied componentwise, extends it to arbitrary $\vec J$ (same fifth power as the electrostatic image charge density $\rho^*=-(a/r)^5\rho(a^2/r)$ of Ex. 3.3.3). Physically: $\mu\to0$ expels flux (P27's $a\to-1$ image in the plane limit), and $\vec B\cdot\hat n=0$ is the superconductor (Type-1, Meissner) boundary condition.

P32. Exercise 6.12.6 — Force on a dipole near a permeable slabWilcox 2e §6.15, p.332

A point dipole $\vec m$ sits a distance $d$ above an infinite slab of permeability $\mu$ filling $z<0$ (Fig. 6.36); $\vec m$ points along $(\theta,\phi)$ measured from the surface normal $\hat z$. Find the force. Attractive or repulsive for $\mu>1$? Answer: $$\vec F=-\hat z\;\frac{3m^2\,(1+\cos^2\theta)}{16\,d^4}\;\frac{\mu-1}{\mu+1}:$$ independent of $\phi$, attractive (toward the slab) for $\mu>1$, repulsive for $\mu<1$. Check: closed form vs quadrature ($\oint d\vec l\times\vec B^*$ over a small loop realizing $\vec m$, against its P27 image loop), $2\times10^{-4}$ at several $\theta$; sign flip across $\mu=1$ and $\phi$-independence verified (test_p32_dipole_slab_force).

Solution

By P27, the field above the slab due to the slab is that of an image dipole: mirror the small current loop ($z\to-z$ flips the moment's parallel components — a pseudovector — and the image coefficient $a=\lambda$ scales it):

\[\vec m^*=\lambda\,\bigl(-m_x,\,-m_y,\,+m_z\bigr),\qquad \lambda=\frac{\mu-1}{\mu+1},\]

located at $(0,0,-d)$. The force on $\vec m$ is exact (no factor-$\frac12$ subtlety for forces: differentiate the field of the fixed image): $\vec F=\vec\nabla(\vec m\cdot\vec B^)$, with $\vec B^$ the image's dipole field. Along the axis joining them ($\hat z$, separation $s=z+d$):

\[\vec m\cdot\vec B^*(z)=\frac{3(\vec m\cdot\hat z)(\vec m^*\cdot\hat z)-\vec m\cdot\vec m^*}{(z+d)^3}.\]

With $\vec m=m(\sin\theta\cos\phi,\sin\theta\sin\phi,\cos\theta)$: $\vec m\cdot\vec m^=\lambda m^2(\cos^2\theta-\sin^2\theta)$ and $(\vec m\cdot\hat z)(\vec m^\cdot\hat z)=\lambda m^2\cos^2\theta$, so the numerator is $\lambda m^2(3\cos^2\theta-\cos^2\theta+\sin^2\theta) =\lambda m^2(1+\cos^2\theta)$ — $\phi$ drops out (rotational symmetry about the normal). Then

\[F_z=\partial_z\Bigl[\frac{\lambda m^2(1+\cos^2\theta)}{(z+d)^3}\Bigr]_{z=d} =-\frac{3\lambda m^2(1+\cos^2\theta)}{(2d)^4} =-\frac{3m^2(1+\cos^2\theta)}{16d^4}\,\frac{\mu-1}{\mu+1},\]

and the transverse components vanish on axis by symmetry (checked numerically). For $\mu>1$, $F_z<0$: attraction — likes attract, and the image co-circulates (P27). The pull is strongest for $\vec m\perp$ surface ($\theta=0$, factor 2) and weakest, but still attractive, for $\vec m\parallel$ surface (factor 1); a magnet never hangs repelled above iron, but does above a superconductor ($\mu\to0$: $F_z=+3m^2(1+\cos^2\theta)/16d^4$).

P33. Exercise 6.13.1 — Magnetization potential: volume + surface splitWilcox 2e §6.15, pp.332–333

A small dipole $d\vec m$ at $\vec x'$ contributes $d\vec A=\dfrac{d\vec m\times(\vec x-\vec x')}{|\vec x-\vec x'|^3}$. Show that for a volume magnetization ($d\vec m=\vec M\,d^3x'$) $$\vec A(\vec x)=\int_V d^3x'\,\frac{\vec\nabla'\times\vec M}{|\vec x-\vec x'|} -\oint_S da'\,\frac{\hat n'\times\vec M}{|\vec x-\vec x'|},$$ the volume and surface pieces being the effective currents $\vec J_{\rm eff}=c\vec\nabla\times\vec M$, $\vec K_{\rm eff}=c\vec M\times\hat n$ of (6.195)–(6.196). Answer: as stated. Check: the two sides agree for a smooth compactly supported $\vec M$ (surface term $\to0$; $10^{-5}$); for the uniformly magnetized sphere the surface-only form equals the closed-form $A_\phi$, and its curl gives $\frac{8\pi}{3}\vec M$ inside / the $m=\frac{4\pi a^3M_0}{3}$ dipole outside (test_p33_magnetization_potential_split).

Solution

Superpose:

\[\vec A=\int_Vd^3x'\,\vec M(\vec x')\times\frac{\vec x-\vec x'}{|\vec x-\vec x'|^3} =\int_Vd^3x'\,\vec M\times\vec\nabla'\frac{1}{|\vec x-\vec x'|},\]

since $\vec\nabla'(1/g)=+(\vec x-\vec x')/g^3$. Use the product rule $\vec\nabla'\times\bigl(\vec M/g\bigr) =\frac{1}{g}\vec\nabla'\times\vec M+\vec\nabla'(1/g)\times\vec M$, i.e.

\[\vec M\times\vec\nabla'\frac1g =\frac{\vec\nabla'\times\vec M}{g}-\vec\nabla'\times\Bigl(\frac{\vec M}{g}\Bigr).\]

Integrate; the second term is a total curl, converted by the curl theorem $\int_V\vec\nabla\times\vec F\,d^3x=\oint_S\hat n\times\vec F\,da$:

\[\vec A=\int_V\frac{\vec\nabla'\times\vec M}{g}\,d^3x' -\oint_S\frac{\hat n'\times\vec M}{g}\,da'. \checkmark\]

Reading through (6.42): the first term is $\frac1c\int\vec J_{\rm eff}/g$ with $\vec J_{\rm eff}=c\vec\nabla\times\vec M$; the second is $\frac1c\oint\vec K_{\rm eff}/g$ with $\vec K_{\rm eff}=c\vec M\times\hat n=-c\,\hat n\times\vec M$ ✓ — the dipole picture and the bound-current picture are the same object, split by one integration by parts. The two numeric regimes probe each piece separately: a smooth interior $\vec M$ (only the volume term) and the uniform sphere (only the surface term, $\vec K_{\rm eff}=cM_0\sin\theta\,\hat e_\phi$, whose field P13 already established).

P34. Exercise 6.13.2 — Split-sphere magnet (hemispheres magnetized $\pm\hat z$)Wilcox 2e §6.15, pp.333–334

A sphere of radius $a$ is magnetized $+M_0\hat z$ in its upper half and $-M_0\hat z$ in its lower half (Fig. 6.37). (a) Using the scalar-potential expression (6.255), find $\vec B$ far away ($r\gg a$). (b) Find $\Phi_m$ everywhere as a Legendre expansion (via the Coulomb expansion (4.225) and the explicit Legendre values of Ex. 4.9.1), of the form $$\Phi_m(r,\theta)=4\pi M_0a^2\sum_{n\ge0}\frac{r_<^{2n}}{r_>^{2n+1}}\,C_n\,P_{2n}(\cos\theta),$$ finding $C_n$ and checking consistency with (a). Answer: (a) leading far field is the pure $\ell=2$ (quadrupole) term $$\Phi_m\simeq\frac{\pi M_0a^4}{r^3}P_2(\cos\theta),\qquad \vec H=\vec B=-\vec\nabla\Phi_m$$ (no monopole, no dipole — the configuration is even under $z\to-z$). (b) $C_0=0$ and $$C_n=(-1)^{n+1}\,\frac{2n\,(2n-3)!!}{(2n+2)!!}\qquad(n\ge1),\quad C_1=\tfrac14,\ C_2=-\tfrac1{12},\dots$$ Caveat (book form): the sources are the outer-shell charge $\sigma_m=\vec M\cdot\hat n=M_0|\cos\theta'|$ plus the equatorial disk $\sigma_m=-2M_0$ (the jump of $M_z$ across $z=0$). The quoted $r_<^{2n}/r_>^{2n+1}$ form with these $C_n$ is exact outside ($r\ge a$), but its literal $r\le a$ branch is not the interior potential — the disk's sources extend from $r'=0$ to $a$, so the interior is only piecewise of power-law form. (E.g. $\Phi_m(0)=-2\pi M_0a\ne0$, while the book's form gives 0.) The corrected interior expansion is given below. Check: exterior series vs direct quadrature (shell $|\cos|$ + disk), $10^{-8}$; $C_1=\frac14$, $C_2=-\frac1{12}$ exact; corrected interior form vs quadrature ($2\times10^{-3}$, quadrature-limited); $\Phi_m(0)=-2\pi M_0a$; far field $=$ the $P_2$ term (test_p34_split_sphere).

Solution

Sources. $\vec\nabla\cdot\vec M=0$ within each hemisphere, but (6.255) needs all of $\vec M$'s divergence: across the equatorial plane $M_z$ jumps from $-M_0$ to $+M_0$, a magnetic surface charge $\sigma_m^{\rm disk}=-(M_z^+-M_z^-)=-2M_0$ on the disk $\rho'\le a$, $z'=0$; on the outer shell $\sigma_m^{\rm shell}=\vec M\cdot\hat n=M_0|\cos\theta'|$ (positive at both poles). Total magnetic charge: $2\pi a^2M_0-2M_0\pi a^2=0$ ✓. (a) Multipoles: both sources are even in $\cos\theta'$ → only even $\ell$; $\ell=0$ vanishes (zero net charge); the first survivor is $\ell=2$:

\[q_2=\underbrace{2\pi M_0a^4\int_{-1}^{1}P_2(x)|x|\,dx}_{\pi M_0a^4/2} +\underbrace{P_2(0)(-2M_0)\,2\pi\!\int_0^a\rho'^3d\rho'}_{+\pi M_0a^4/2} =\pi M_0a^4,\]

so $\Phi_m\simeq q_2P_2(\cos\theta)/r^3$ and $\vec B=-\vec\nabla\Phi_m$: $B_r=3\pi M_0a^4P_2/r^4$, $B_\theta=-\frac{\pi M_0a^4}{r^4}\partial_\theta P_2$ — a pure quadrupole falloff $1/r^4$ (compare P15/P21: same multipole order, different source). (b) Exterior. Expand each source with (4.225) ($r_>=r$, $r_<=r'$). Shell: $\int_0^1xP_{2n}(x)dx=(-1)^{n+1}\frac{(2n-3)!!}{(2n+2)!!}$ (Ex. 4.9.1 values) gives the coefficient $4\pi M_0a^2\,(-1)^{n+1}\frac{(2n-3)!!}{(2n+2)!!}\,\frac{a^{2n}}{r^{2n+1}}$. Disk: with $P_{2n}(0)=(-1)^n\frac{(2n-1)!!}{(2n)!!}$,

\[\Phi^{\rm disk}_{2n} =\frac{P_{2n}(\cos\theta)}{r^{2n+1}}\,P_{2n}(0)\,(-2M_0)\,\frac{2\pi a^{2n+2}}{2n+2} =4\pi M_0a^2\,(-1)^{n+1}\frac{(2n-1)!!}{(2n+2)!!}\,\frac{a^{2n}}{r^{2n+1}}P_{2n}.\]

Sum: $(2n-3)!!+(2n-1)!!=(2n-3)!!\,[1+(2n-1)]=2n\,(2n-3)!!$, hence

\[C_n=(-1)^{n+1}\frac{2n\,(2n-3)!!}{(2n+2)!!},\]

zero at $n=0$ and $C_1=2\cdot1/4!!\cdot(-1)^2\cdot(-1)!!=2/8=\frac14$ — matching (a): $4\pi M_0a^2C_1a^2/r^3=\pi M_0a^4/r^3$ ✓. Interior (corrected). The shell is still a pure $r^{2n}$ series inside (all its sources at $r'=a$), coefficient $2\pi M_0a^2\,I_{2n}\,r^{2n}/a^{2n+1}$ with $I_0=1$, $I_{2n}=C_n/n$ ($n\ge1$); but the disk potential at $r<a$ must be split at $\rho'=r$:

\[\Phi^{\rm disk}_{2n}(r)=-4\pi M_0P_{2n}(0)\,g_{2n}(r)P_{2n}(\cos\theta),\qquad g_\ell(r)=\frac{r}{\ell+2}+\frac{r}{\ell-1}\Bigl[1-\Bigl(\frac ra\Bigr)^{\ell-1}\Bigr] \ (\ell\ge2),\ \ g_0=a-\frac r2 .\]

At the center only $n=0$ survives: $\Phi_m(0)=2\pi M_0a-4\pi M_0a=-2\pi M_0a$ (shell pulls up, the stronger disk pulls down) — the direct-quadrature check confirms the corrected interior everywhere, and confirms that the book's $r\leftrightarrow a$ swap of the exterior form does not reproduce it.

P35. Exercise 6.13.3 — Bar magnet as two magnetic monopolesWilcox 2e §6.15, pp.334–335

(a) A long straight rod of arbitrary uniform cross-section has constant $\vec M=M_0\hat k$ and ends on a flat face $S$ (area $S$) in the $xy$-plane (Fig. 6.38). Show that far from that end (origin anywhere near it) $$\vec H(\vec x)\approx (M_0S)\,\frac{\vec x-\vec x''}{|\vec x-\vec x''|^3},$$ $\vec x''$ a representative point of $S$. (b) For a thin circular bar (radius $R$, length $L\gg R$, $\vec M=M_0\hat k$), find $\vec H$ valid far from both ends. Answer: (a) the face acts as a point "magnetic charge" $q_m=M_0S$; (b) $\vec H=M_0\pi R^2\Bigl[\dfrac{\vec x-\vec x_+}{|\vec x-\vec x_+|^3} -\dfrac{\vec x-\vec x_-}{|\vec x-\vec x_-|^3}\Bigr]$, $\vec x_\pm$ the face centers — the classic north/south monopole pair. Check: exact two-charged-disk $\vec H$ vs the monopole pair: agreement within the $O(R^2/s^2)$ finite-face residual (1%), with the residual falling faster than $1/3$ per distance doubling; near-face single-pole $1/s^2$ axis law exact (test_p35_bar_magnet_monopoles).

Solution

(a) In (6.255) the volume term dies ($\vec\nabla\cdot\vec M=0$ for uniform $\vec M$), leaving surface charges $\sigma_m=\vec M\cdot\hat n$: zero on the sides ($\hat n\perp\hat k$), $+M_0$ on the end face $S$, $-M_0$ on the far face. Near (but a few face-diameters away from) the near end, the far face's contribution is negligible, and

\[\Phi_m(\vec x)=M_0\int_S\frac{da'}{|\vec x-\vec x'|} \;\xrightarrow[\;|\vec x-\vec x''|\gg\sqrt S\;]{}\;\frac{M_0S}{|\vec x-\vec x''|},\]

the monopole term of the face's multipole expansion about any interior point $\vec x''$ (corrections are the face's dipole/quadrupole moments about $\vec x''$, down by powers of $\sqrt S/|\vec x-\vec x''|$). Hence $\vec H=-\vec\nabla\Phi_m=M_0S\,(\vec x-\vec x'')/|\vec x-\vec x''|^3$. ✓ This is how "magnetic poles" emerge from a pole-free theory: the end of a uniformly magnetized rod carries an effective surface charge $M_0$ whose far field is Coulombic in $\vec H$ (not in $\vec B$: inside the rod $\vec B=\vec H+4\pi\vec M$ carries the return flux). (b) Both ends visible: superpose $q_m=\pm M_0\pi R^2$ at $\vec x_\pm=(0,0,\pm L/2)$:

\[\vec H(\vec x)=M_0\pi R^2\Bigl[\frac{\vec x-\vec x_+}{|\vec x-\vec x_+|^3} -\frac{\vec x-\vec x_-}{|\vec x-\vec x_-|^3}\Bigr],\]

valid whenever the distance to each face $\gg R$. At $r\gg L$ this pair merges into a dipole $m=q_mL=M_0\pi R^2L=M_0V$ ✓ (the total moment).

P36. Exercise 6.13.4 — $H_z=-M_0\,\Omega$; magnetized cubeWilcox 2e §6.15, p.335

(a) A very long magnetized rod of arbitrary cross-section ($\vec M=M_0\hat k$, uniform) ends on a flat top face $S$ in the $xy$-plane (Fig. 6.39). Show that both inside and outside the material $$H_z(\vec x)=-M_0\,\Omega(\vec x),$$ $\Omega$ the solid angle subtended by $S$ at $\vec x$ (book convention (6.67)–(6.69)). (b) Apply (a) to find $H_z$ and $B_z$ at the center of a cube of side $b$ with uniform $\vec M=M_0\hat k$. Answer: (a) as stated; (b) each face subtends $|\Omega|=2\pi/3$ from the center, so $H_z=-\frac{4\pi M_0}{3}$ and $B_z=H_z+4\pi M_0=+\frac{8\pi M_0}{3}$ — at its exact center a cube demagnetizes like a sphere (factor $\frac{4\pi}{3}$, forced by the three-axis symmetry $\sum_i N_i=4\pi$). Check: $H_z$ from the arctan closed form of the square's solid angle vs direct two-face charged-sheet quadrature at interior and exterior points ($10^{-6}$); center values exact to $10^{-8}$; the face solid angle $2\pi/3$ from the closed form (test_p36_cube_solid_angle).

Solution

(a) As in P35, the only sources are $\sigma_m=+M_0$ on the top face (the sides carry none; the bottom is at $-\infty$), so $\Phi_m(\vec x)=M_0\int_S da'/|\vec x-\vec x'|$ and

\[H_z=-\partial_z\Phi_m=-M_0\,\partial_z\!\int_S\frac{da'}{|\vec x-\vec x'|} =-M_0\,\Omega(\vec x)\]

by exactly the identity (6.69) that defined $\Omega$. Nothing in the step distinguished inside from outside — the formula holds in both regions, with $\Omega$ jumping from $-2\pi$ (just above the face) to $+2\pi$ (just below, inside the material): $H_z$ jumps from $+2\pi M_0$ to $-2\pi M_0$ across the charged sheet, while $B_z=H_z+4\pi M_0$ (inside) stays continuous ✓. (b) The cube's two faces carry $\sigma_m=\pm M_0$ at $z=\pm b/2$; superposing two copies of (a):

\[H_z(\vec x)=-M_0\bigl[\Omega_{\rm top}(\vec x)-\Omega_{\rm bot}(\vec x)\bigr].\]

From the center, each of the six faces subtends the same magnitude, and a closed surface seen from inside subtends $4\pi$ total: $|\Omega|=4\pi/6=2\pi/3$ per face (the arctan closed form gives $4\arctan\frac{1}{\sqrt3}=\frac{2\pi}{3}$ ✓). Signs: viewed from below, $\Omega_{\rm top}=+2\pi/3$; from above, $\Omega_{\rm bot}=-2\pi/3$; so

\[H_z(0)=-M_0\Bigl(\frac{2\pi}{3}+\frac{2\pi}{3}\Bigr)=-\frac{4\pi M_0}{3}, \qquad B_z(0)=\frac{8\pi M_0}{3}.\]

The sphere gives the same $-\frac{4\pi}{3}\vec M$ everywhere inside ((6.263)); the cube only at special points — away from the center its $H_z=-M_0[\Omega_t-\Omega_b]$ varies (the checked quadrature shows it).

P37. Exercise 6.13.5 — Rod magnet in Bessel form; solenoid harmonizationWilcox 2e §6.15, pp.335–336

A rod magnet: uniform $\vec M=M_0\hat z$, circular cross-section of radius $a$, length $d$, origin at the center. (a) Via the magnetic scalar potential, show that for $-d/2<z<d/2$ $$H_\rho=4\pi M_0a\int_0^\infty dk\,J_1(ka)J_1(k\rho)\,e^{-kd/2}\sinh(kz),\qquad H_z=-4\pi M_0a\int_0^\infty dk\,J_1(ka)J_0(k\rho)\,e^{-kd/2}\cosh(kz).$$ (b) Harmonize with the solenoid of Ex. 6.6.1 through $\vec K_{\rm eff}=c\vec M\times\hat n$. Answer: (a) as stated; (b) the rod is the solenoid with $nI=cM_0$: $B_\rho^{\rm sol}=H_\rho^{\rm rod}$ and $B_z^{\rm sol}=H_z^{\rm rod}+4\pi M_0H(a-\rho)$, i.e. $\vec B=\vec H+4\pi\vec M$ holds integral-for-integral. Check: Bessel forms vs the two-charged-disk quadrature ($2\times10^{-4}$); the solenoid identification verified componentwise to $2\times10^{-6}$ including the step term (test_p37_rod_magnet_bessel).

Solution

(a) Sources: $\sigma_m=\pm M_0$ on the end disks at $z=\pm d/2$ (sides clean, volume clean). The charged-disk potential in Bessel form follows from the cylindrical Green expansion (6.70) and the disk integral (6.72):

\[\int_{\rm disk}\frac{da'}{|\vec x-\vec x'|} =2\pi a\int_0^\infty\frac{dk}{k}\,J_1(ka)J_0(k\rho)\,e^{-k|z-z_0|},\]

so

\[\Phi_m=2\pi M_0a\int_0^\infty\frac{dk}{k}J_1(ka)J_0(k\rho) \bigl[e^{-k|z-d/2|}-e^{-k|z+d/2|}\bigr].\]

For $|z|<d/2$: $e^{-k(d/2-z)}-e^{-k(d/2+z)}=2e^{-kd/2}\sinh(kz)$, giving

\[\Phi_m=4\pi M_0a\int_0^\infty\frac{dk}{k}J_1(ka)J_0(k\rho)\,e^{-kd/2}\sinh(kz).\]

Then $H_\rho=-\partial_\rho\Phi_m$ with $\partial_\rho J_0(k\rho)=-kJ_1(k\rho)$ gives the first stated integral, and $H_z=-\partial_z\Phi_m$ the second. ✓ (b) On the curved side, $\vec K_{\rm eff}=c\vec M\times\hat\rho =cM_0\,\hat e_\phi$: a solenoid sheet of strength $nI\leftrightarrow cM_0$. Ex. 6.6.1's field with that substitution:

\[B_\rho=4\pi M_0a\!\int\!J_1J_1e^{-kd/2}\sinh(kz)\,dk=H_\rho\ \checkmark,\qquad B_z=4\pi M_0H(a-\rho)-4\pi M_0a\!\int\!J_1J_0e^{-kd/2}\cosh(kz)\,dk =4\pi M_z+H_z\ \checkmark\]

— the two computations are the same field seen through the two decompositions: bound currents give $\vec B$ directly; magnetic charges give $\vec H$; they differ inside the material by exactly $4\pi\vec M$ (6.199), here visible as the Weber–Schafheitlin step term.

P38. Exercise 6.13.6 — Closed shell magnetized along its normalWilcox 2e §6.15, p.336

An extremely thin closed hollow shell (uniform thickness) has constant area magnetization $M_A$ ($M_A=M\,d$ for volume magnetization $M$ and thickness $d$) directed everywhere along the outward normal $\hat n'$ (Fig. 6.40). Show $$\Phi_m(\vec x)=\begin{cases}0 & \text{outside},\\ -4\pi M_A & \text{inside}.\end{cases}$$ (Alternative: argue $\vec B=0$ everywhere from the $\vec A$ field.) Answer: as stated; consequently $\vec H=-\vec\nabla\Phi_m=0$ on both sides and $\vec B=0$ everywhere ($\vec B=\vec H$ outside; inside the cavity $\vec B=\vec H=0$; within the thin shell material $\vec H=-4\pi\vec M$ normal to the wall, so $\vec B=\vec H+4\pi\vec M=0$ there too). The shell is magnetically invisible. Check: $\Phi_m$ quadrature over a sphere and over a cube: $-4\pi M_A$ inside, $0$ outside, to $10^{-6}$ (test_p38_closed_shell_normal_magnetization).

Solution

Route 1 (scalar potential). In (6.254) replace $\vec M\,d^3x'\to M_A\hat n'\,da'$:

\[\Phi_m(\vec x)=M_A\oint_S da'\,\hat n'\cdot\frac{\vec x-\vec x'}{|\vec x-\vec x'|^3}.\]

This is Gauss's-law geometry: the integrand is (minus) the closed-surface solid-angle density, and for a closed surface with outward normals

\[\oint_S da'\,\hat n'\cdot\frac{\vec x-\vec x'}{|\vec x-\vec x'|^3} =\begin{cases}0,&\vec x\ \text{outside}\\ -4\pi,&\vec x\ \text{inside}\end{cases}\]

(outside, the pierced cone contributions cancel in pairs; inside, the surface wraps the observation point once; the sign follows the book's (6.67) orientation — from inside, $\hat n'\cdot(\vec x-\vec x')<0$ over the whole shell). Hence $\Phi_m=0$ outside, $-4\pi M_A$ inside — constant in each region, so $\vec H=0$ in both. ✓ (Equivalently: the shell is a closed dipole layer, across which $\Phi_m$ drops by $4\pi M_A$; a closed constant-strength layer shifts the interior potential and nothing else.) Route 2 (vector potential). $\vec M\parallel\hat n'$ makes $\vec K_{\rm eff}=c\vec M\times\hat n'=0$ on both wall faces, and within the thin wall $\vec\nabla\times\vec M$ integrates to zero across the thickness for normal magnetization of a uniform shell (no net tangential circulation — all the "dipole needles" stand on end, and side-by-side needles carry counter-circulating molecular currents that cancel). With no effective currents anywhere, $\vec A=0$ and $\vec B=\vec\nabla\times\vec A=0$ everywhere; then $\vec H=\vec B-4\pi\vec M$ is $0$ outside and in the cavity, and $-4\pi M_A/d\cdot\hat n\cdot d$-worth across the wall — integrating $-\vec H\cdot d\vec\ell$ through the wall reproduces the $-4\pi M_A$ potential step. Both routes agree with the quadrature on the sphere and the cube — the shape never entered.

Run the worked code: cd MACRO_EM/MACRO_EM-06_magnetostatics/code && python3 magnetostatics.py

MACRO_EM-07 — Time Varying Fields I

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-07_time_varying_fields_i

MACRO_EM-09 — Plane Waves In Matter

Macroscopic Electrodynamics trunk · MACRO_EM/MACRO_EM-09_plane_waves_in_matter