PHYS 3305 · Electricity & Magnetism I · Texas Tech University
Overview
The first semester of the two-semester electricity and magnetism sequence for undergraduate physics majors. It covers static fields only, \(\mathbf E=\mathbf E(\mathbf r)\) and \(\mathbf B=\mathbf B(\mathbf r)\) with no time dependence, following Griffiths, Introduction to Electrodynamics, Chapters 1–6.
“Fields, not forces.” A field is fixed by its divergence, its curl and its boundary conditions, so every chapter follows the same pattern: find the sources, use symmetry, apply the integral theorem.
This chapter builds the toolkit: index notation to make identities mechanical, the three derivatives (gradient, divergence, curl), and the fundamental theorems that turn the field equations into integrals we can do.
1.1Notation: vectors and indices
A vector is a list of components along orthonormal basis vectors \(\hat e_1,\hat e_2,\hat e_3\):
Swapping any two indices flips the sign; cycling them does not: \(\epsilon_{ijk}=\epsilon_{jki}=\epsilon_{kij}=-\epsilon_{jik}\). The identity that makes everything else work is
Contracting once more gives \(\epsilon_{ijk}\epsilon_{ijn}=\delta_{jj}\delta_{kn}-\delta_{jn}\delta_{kj}=3\delta_{kn}-\delta_{kn}=2\delta_{kn}\), and contracting fully gives \(\epsilon_{ijk}\epsilon_{ijk}=6=3!\).
Read the indices around the circle: in the arrow direction (123, 231, 312) ε = +1; against it, −1.
The same method gives the triple product \(\mathbf A\cdot(\mathbf B\times\mathbf C)=\epsilon_{ijk}A_iB_jC_k=\mathbf B\cdot(\mathbf C\times\mathbf A)=\mathbf C\cdot(\mathbf A\times\mathbf B)\): cycling the vectors cycles the indices, which leaves ε unchanged.
1.2Derivatives: gradient, divergence, curl
Gradient
In 1D, \(df=\frac{df}{dx}dx\). In 3D a scalar function \(T(x,y,z)\) changes by
Writing the dot product as \(dT=|\nabla T|\,|d\mathbf l|\cos\theta\) shows what the gradient means. For a fixed step length, \(dT\) is largest when \(\theta=0\), so:
direction of \(\nabla T\): the direction in which T increases fastest;
magnitude \(|\nabla T|\): the slope along that direction.
Like \(df/dx=0\) in 1D, \(\nabla T=0\) marks a stationary point: a local maximum, a local minimum, or a saddle.
Both parts make sense: distance from the origin grows fastest straight outward, and at rate 1.
Where the slope vanishes the function can have a maximum, a minimum, or neither. In 3D the “neither” case is a saddle.
The del operatorThe gradient suggests treating \(\nabla=\big(\frac{\partial}{\partial x},\frac{\partial}{\partial y},\frac{\partial}{\partial z}\big)=\hat e_i\,\partial_i\) as a “vector”. It can act three ways: on a scalar (\(\nabla T\), the gradient), dotted with a vector (\(\nabla\cdot\mathbf A\), the divergence, a scalar), or crossed with a vector (\(\nabla\times\mathbf A\), the curl, a vector). It is not an ordinary vector, though: \(\mathbf A\cdot\nabla\) is an operator, not the number \(\nabla\cdot\mathbf A\).
Divergence and curl
Divergence: the sum of three partial derivatives, each along its own direction.
It measures how much the field rotates around a point. Each component \(A_x\) can still depend on all of \(x,y,z\).
Divergence measures flow out of (or into) a point; curl measures rotation around it. The last field has no curved arrows, but a paddle wheel placed in it spins, because the flow is faster on one side than the other.
\(\hat e_z\,\partial_x x=\hat e_z\): it still rotates
The last one is the surprise: no arrow curves, but a small paddle wheel placed in the flow would spin, because the arrows on one side are longer than on the other. Exercise 1 lets you check every row by integrating around a small square.
Exercise 1 · Divergence theorem and Stokes' theorem, locally
Shrink a loop and you get div and curl
Drag the square. The readout shows the net flux out of it and the circulation around it, each divided by the enclosed area. For a small loop those ratios are \(\nabla\cdot\mathbf F\) and \((\nabla\times\mathbf F)_z\). Try “shear”: nothing looks like it rotates, but the curl is \(-1\). For the two \(1/r\) fields, put the loop around the origin to find the delta function.
Product rules
For ordinary vectors, \(\mathbf A\cdot(\mathbf B\times\mathbf C)=\mathbf B\cdot(\mathbf C\times\mathbf A)\). With \(\nabla\) we cannot just shuffle, because the derivative acts on both factors: \(\nabla(fg)=(\nabla f)g+f\nabla g\). The six rules:
The curl of a cross product goes the same way, with one extra ε–δ step that produces the four terms.
Second derivatives
\(\nabla T\) is a vector, \(\nabla\cdot\mathbf A\) a scalar, \(\nabla\times\mathbf A\) a vector. Applying ∇ again gives five combinations. Two of them vanish identically, and those two are the reason potentials exist.
Why it matters later② says a curl-free field can be written as a gradient: \(\nabla\times\mathbf E=0\Rightarrow\mathbf E=-\nabla V\) (Chapter 2). ① says a divergence-free field can be written as a curl: \(\nabla\cdot\mathbf B=0\Rightarrow\mathbf B=\nabla\times\mathbf A\) (Chapter 5).
The other four faces work the same way; each face only sees the component normal to it.
1.4The fundamental theorems
The 1D fundamental theorem of calculus, \(\int_a^b\frac{df}{dx}dx=f(b)-f(a)\), says the integral of a derivative depends only on the boundary (the two endpoints), not on what \(f\) does in between. Each vector derivative has its own version.
Rotation over a surface adds up to the circulation around its edge.
Why the boundary is all that is left. All three theorems come from the same idea: chop the region into small pieces, apply the derivative's meaning on each small piece, and add up. Everything inside cancels between neighbors; only the boundary survives.
① Gradient (easiest). Along each short step, \(dT=\nabla T\cdot d\mathbf l\) is the change of T over that step. Adding the steps, every intermediate value appears once with + and once with −, so only \(T(\mathbf b)-T(\mathbf a)\) is left, whatever path you took.
② Divergence. For a small cell, the flux out is \((\nabla\cdot\mathbf A)\,d\tau\). Through a shared face, what leaves one cell enters its neighbor, so those fluxes cancel in the sum. Only the faces on the outer surface remain: \(\oiint_S\mathbf A\cdot d\mathbf a\).
③ Curl. For a small cell, the circulation around it is \((\nabla\times\mathbf A)\cdot d\mathbf a\). Neighboring cells run along a shared edge in opposite directions, so those pieces cancel. Only the outer edge remains: \(\oint_P\mathbf A\cdot d\mathbf l\).
Read backwards on a single tiny cell, this is also what the derivatives mean: \(\nabla\cdot\mathbf A\) is flux out per unit volume, and \((\nabla\times\mathbf A)\cdot\hat{\mathbf n}\) is circulation per unit area. Exercise 1 computes exactly that.
Start from Coulomb's law and superposition, then turn them into two statements about the field itself: its divergence (Gauss's law) and its curl (zero, so a potential exists).
2.1Coulomb's law and superposition
The field of a point charge \(q\) at \(\mathbf r'\), and of a collection of charges by superposition:
For a continuous distribution, replace \(q_i\) by a small piece of charge and sum by integrating:
Keep the two position vectors apart:
\(\mathbf r'\) (primed) is a source point: where the charge is. We integrate over it.
\(\mathbf r\) (unprimed) is the field point: where we want to know E. It stays fixed during the integration.
\(\mathbf r-\mathbf r'\) is the separation vector, pointing from the source to the field point. Its length sets the \(1/|\mathbf r-\mathbf r'|^2\) falloff, and its direction is the direction of that piece's contribution.
Each piece of charge \(\rho\,d\tau'\) at \(\mathbf r'\) contributes \(d\mathbf E\) at \(\mathbf r\), along \(\mathbf r-\mathbf r'\).
A line charge λ (constant) runs from \(y=-L\) to \(y=L\). Find E at height \(z\) above its midpoint.
Symmetry: the pieces at \(+y\) and \(-y\) have equal and opposite \(y\)-components, so only \(E_z\) survives. The piece \(\lambda\,dy\) at distance \(\sqrt{y^2+z^2}\) contributes
Check the limits. For \(z\gg L\): \(\mathbf E\to\frac{1}{4\pi\epsilon_0}\frac{2\lambda L}{z^2}\hat{\mathbf z}\), a point charge \(q=2\lambda L\). For \(z\ll L\): \(\mathbf E\to\frac{1}{4\pi\epsilon_0}\frac{2\lambda}{z}\hat{\mathbf z}=\frac{\lambda}{2\pi\epsilon_0 z}\hat{\mathbf z}\), the infinite wire (we will get this again in one line from Gauss's law).
Each element λ dy contributes dE along the line from it to P. Mirror-image elements cancel sideways.
Exercise 2 · 3D Superposition of point charges
Field lines and equipotential surfaces
Field lines (red) leave + charges and end on − charges, with the number of lines proportional to the charge. The translucent shells are equipotential surfaces (red: V > 0, blue: V < 0); field lines cross them at right angles, because \(\mathbf E=-\nabla V\). Drag to rotate.
Also: a 2D slice where you can drag, add and remove charges
2D slice: drag the charges yourself
Drag charges to move them; double-click one to remove it. Field lines (red) leave + charges and end on − charges, with the number of lines proportional to the charge. Equipotentials (grey) always cross field lines at right angles, because \(\mathbf E=-\nabla V\).
2.2Field lines, flux and Gauss's law
Draw field lines so their density tells the field strength. Lines start on + charges and end on − charges (or at infinity), so the number crossing a closed surface should depend only on the charge inside. The number crossing is the flux, \(\Phi=\iint\mathbf E\cdot d\mathbf a\).
Derivation
From Coulomb's law to Gauss's law
Point charge at the origin, sphere of radius r around it, \(d\mathbf a=r^2\sin\theta\,d\theta\,d\phi\,\hat{\mathbf r}\):
Apply the divergence theorem to the left side, \(\oiint\mathbf E\cdot d\mathbf a=\iiint(\nabla\cdot\mathbf E)\,d\tau\). This holds for any volume, so the integrands must be equal:
\[\nabla\cdot\mathbf E=\frac{\rho}{\epsilon_0}\]
The delta function hiding in step 4. In spherical coordinates \(\nabla\cdot\mathbf A=\frac{1}{r^2}\frac{\partial}{\partial r}(r^2A_r)+\dots\). For \(\mathbf A=\hat{\mathbf r}/r^2\):
when \(r\neq0\): \(\frac{1}{r^2}\frac{\partial}{\partial r}\big(r^2\cdot\frac{1}{r^2}\big)=0\);
but the flux through any sphere is \(4\pi\), so \(\iiint(\nabla\cdot\mathbf A)\,d\tau=4\pi\).
All the divergence is concentrated at the origin, where \(\mathbf A\) blows up. We write
Taking the divergence of Coulomb's integral then gives \(\nabla\cdot\mathbf E=\frac{1}{4\pi\epsilon_0}\iiint\rho(\mathbf r')\,4\pi\delta^3(\mathbf r-\mathbf r')\,d\tau'=\rho(\mathbf r)/\epsilon_0\) directly.
Coulomb vs GaussGauss's law was derived from Coulomb's law, but it is more general: it still holds for moving charges, where Coulomb's law fails, and it is one of Maxwell's equations. In statics it is also usually the easier way to find E, whenever there is enough symmetry.
Exercise 3 · 3D Field lines in space and Gauss's law
Count the lines that cross a closed surface
The same charges in real 3D space, with 20 field lines per unit charge. Drag to rotate. Slide the Gaussian sphere around: lines that pass through it go in and come back out, so only the charge inside changes the net count. That is \(\oiint\mathbf E\cdot d\mathbf a=Q_\text{enc}/\epsilon_0\), with flux counted in field lines.
2.3Using Gauss's law: symmetry first
Gauss's law gives one number, the total flux. To get the field everywhere, symmetry has to fix the direction of E and make its magnitude constant on the surface. The recipe:
Symmetry: which directions can E point, and which coordinates can it depend on?
Gaussian surface: choose one on which E is perpendicular and constant (or parallel, contributing nothing).
Flux: compute \(\oiint\mathbf E\cdot d\mathbf a\) (now just E times an area) and the enclosed charge.
Solve for E.
What symmetry allows (red) and forbids (grey ✗). A tilted arrow on the sphere would change if we rotated the sphere about the line to that point, but the sphere would not, so the arrow cannot be there. The same kind of argument (rotate, slide, or flip the charge, which leaves it unchanged) removes every component except the one shown.
Example
Uniformly charged sphere (charge Q, radius R)
Rotating about any axis through the center changes nothing, so \(E_\theta=E_\phi=0\) and \(E_r\) cannot depend on θ or φ: \(\mathbf E=E_r(r)\,\hat{\mathbf r}\).
Gaussian surface: a concentric sphere of radius r, where \(\oiint\mathbf E\cdot d\mathbf a=E\cdot4\pi r^2\).
\[\mathbf E=\begin{cases}\dfrac{1}{4\pi\epsilon_0}\dfrac{Q}{r^2}\,\hat{\mathbf r} & r>R\quad\text{(same as a point charge)}\\[2ex] \dfrac{1}{4\pi\epsilon_0}\dfrac{Q\,r}{R^3}\,\hat{\mathbf r} & r<R\quad\text{(grows linearly)}\end{cases}\]
For a thin shell of charge, \(Q_\text{enc}=0\) inside, so \(\mathbf E=0\) for \(r<R\).
Example
Infinite plane, charge density σ
Sliding along x or y changes nothing, so no \(x,y\) components and no \(x,y\) dependence: \(\mathbf E=E(z)\hat{\mathbf z}\). Flipping up ↔ down: \(E(-z)=-E(z)\).
Gaussian pillbox of area \(A\) straddling the plane. The side walls are parallel to E.
\[2EA=\frac{\sigma A}{\epsilon_0}\]
\[\mathbf E=\frac{\sigma}{2\epsilon_0}\,\hat{\mathbf n}\quad\text{(pointing away on both sides)}\]
Check by brute force (as in the exam problem): a ring of radius r has on-axis field \(\frac{1}{4\pi\epsilon_0}\frac{q\,z}{(z^2+r^2)^{3/2}}\). Summing rings \(q=\sigma\,2\pi r\,dr\) out to radius R:
Each ring contributes less as z grows, but more rings are “seen”, and the two effects cancel exactly.
Example
Long cylinder, \(\rho=ks\)
Rotation about the axis and sliding along it change nothing; flipping the cylinder end for end rules out \(E_z\). So \(\mathbf E=E(s)\hat{\mathbf s}\).
Gaussian surface: coaxial cylinder, radius s, length h. The end caps carry no flux.
\[E\cdot2\pi s h=\frac{1}{\epsilon_0}\int_0^{h}\!\!dz\int_0^{2\pi}\!\!d\phi\int_0^{s\,\text{or}\,R}ks'\,s'\,ds'\]
Outside it falls as \(1/s\), like the infinite wire, with \(\lambda=\frac{2}{3}\pi kR^3\).
Exercise 4 · 3D Symmetry first, then Gauss's law
The four-step recipe
① symmetry fixes the direction and what E can depend on → ② pick a Gaussian surface where E is constant → ③ compute the flux → ④ solve for E. Move the slider to grow the Gaussian surface (amber) and watch E on it follow the enclosed charge. Drag the 3D view to rotate it.
Rotations about the center change nothing, so \(\mathbf E=E(r)\,\hat{\mathbf r}\): no \(\theta\) or \(\phi\) components and no \(\theta,\phi\) dependence.
Gaussian surface: a concentric sphere of radius \(r\).
Flux \(=4\pi r^2E\). Enclosed charge is \(Q\) outside, \(Q\,r^3/R^3\) inside.
\(E=\dfrac{Q}{4\pi\epsilon_0}\dfrac{r}{R^3}\) for \(r<R\), \(E=\dfrac{Q}{4\pi\epsilon_0r^2}\) for \(r>R\): outside, the same as a point charge.
Same spherical symmetry: \(\mathbf E=E(r)\,\hat{\mathbf r}\).
Gaussian surface: a concentric sphere of radius \(r\).
\(E=0\) for \(r<R\) and \(E=\dfrac{Q}{4\pi\epsilon_0r^2}\) for \(r>R\). E jumps by \(\sigma/\epsilon_0\) at the surface.
Rotating about the axis or sliding along it changes nothing, and neither does flipping it end for end, so \(\mathbf E=E(s)\,\hat{\mathbf s}\).
Gaussian surface: a coaxial cylinder of radius \(s\) and length \(l\). The end caps carry no flux.
Flux \(=2\pi s l\,E\); \(\;Q_\text{enc}=\int_0^{s}k s'\,(2\pi s' l)\,ds'=\tfrac23\pi k l s^3\) inside.
\(E=\dfrac{k s^2}{3\epsilon_0}\) for \(s<R\), \(E=\dfrac{kR^3}{3\epsilon_0 s}\) for \(s>R\): outside it falls off like a line charge, \(1/s\).
Sliding in x or y changes nothing, so there are no x or y components: \(\mathbf E=E(z)\,\hat{\mathbf z}\). Flipping up ↔ down gives \(E(-z)=-E(z)\).
Gaussian surface: a pillbox of area \(A\) straddling the plane.
Flux \(=2EA=\sigma A/\epsilon_0\); the side walls carry none.
\(E=\dfrac{\sigma}{2\epsilon_0}\), the same at every distance. Summing rings gives the same answer: each ring contributes less as you move away, but you “see” more rings.
2.4The curl of E and the potential
Derivation
E is curl-free, so V exists
Point charge at the origin: in spherical coordinates \(d\mathbf l=dr\,\hat{\mathbf r}+r\,d\theta\,\hat{\boldsymbol\theta}+r\sin\theta\,d\phi\,\hat{\boldsymbol\phi}\), and only the radial part survives the dot product:
It depends only on the endpoints, so around a closed loop (\(r_a=r_b\)) it vanishes.
By Stokes, \(\iint(\nabla\times\mathbf E)\cdot d\mathbf a=\oint\mathbf E\cdot d\mathbf l=0\) for every surface, so \(\nabla\times\mathbf E=0\). Superposition extends it to any static charge distribution.
Define the potential with a reference point, usually \(V(\infty)=0\):
Then \(V(\mathbf b)-V(\mathbf a)=-\int_{\mathbf a}^{\mathbf b}\mathbf E\cdot d\mathbf l\). By the gradient theorem this also equals \(\int_{\mathbf a}^{\mathbf b}\nabla V\cdot d\mathbf l\), for any \(\mathbf a,\mathbf b\):
\[\mathbf E=-\nabla V\]
For a static E the work per charge from a to b does not depend on the path: that difference is \(-[V(\mathbf b)-V(\mathbf a)]\).
Properties of V
a scalar: one number per point, much easier to add up than vectors;
Outside the charges ρ = 0, so we may enlarge V as much as we like without changing W. On a sphere of radius r → ∞: \(V\sim1/r\), \(E\sim1/r^2\), area \(\sim r^2\), so the surface term \(\sim1/r\to0\):
Integrate only where there is charge (ρ ≠ 0). The energy is the work it took to assemble the charges: each bit of charge \(\rho\,d\tau\) sits at potential V, and the ½ corrects for counting every pair twice.
Integrate over all space, including empty space. Here the energy is stored in the field itself, with energy density \(u=\frac{\epsilon_0}{2}E^2\) wherever there is a field.
Same number, two picturesFor static charges the two always agree, so in electrostatics you can't tell which picture is “right”. The field picture is the one that survives: when fields move and carry energy away (electromagnetic waves, Chapter 9 next semester), the energy really is in the field. One caveat: the field form includes the self-energy of each point charge (infinite for a true point), which the discrete sum \(\frac12\sum q_iV(\mathbf r_i)\) leaves out; that is why \(\frac{\epsilon_0}{2}\int E^2\ge0\) always, while the discrete sum can be negative.
Example
Energy of a charged shell, two ways
On the charge, \(\tfrac12\iint\sigma V\,da\): all the charge sits at \(V=\frac{Q}{4\pi\epsilon_0R}\):
A conductor has an essentially unlimited supply of free charge. Put it in an external field and the charges move: positive along E, negative against it. They pile up on the surfaces and create their own field \(\mathbf E_\text{in}\), opposite to the external one. They keep moving until \(\mathbf E_\text{in}=-\mathbf E_\text{out}\) inside. At equilibrium:
\(\mathbf E=0\) inside the conductor.
\(\rho=0\) inside (Gauss's law with E = 0).
V is the same everywhere on the conductor (no field to integrate).
Any net charge sits on the surface.
Just outside, E is perpendicular to the surface (a tangential part would push charges along it).
Induced surface charge cancels the applied field inside the conductor.
Example
Field just outside: \(\sigma/\epsilon_0\), not \(\sigma/2\epsilon_0\)
Take a small pillbox through the surface, area a.
The inner face is in the conductor (E = 0); the side walls are perpendicular to E. Only the outer face counts: \(Ea=\sigma a/\epsilon_0\).
Twice the isolated sheet, because here all the flux leaves through one side.
Shielding (Faraday cage)
An empty cavity inside a conductor has E = 0, whatever the field outside. That is why a car is a safe place in a thunderstorm.
Charge in a cavity
Put q inside a cavity of a neutral conductor: −q is induced on the cavity wall and +q on the outer surface. Outside, \(\mathbf E=\frac{1}{4\pi\epsilon_0}\frac{q}{r^2}\hat{\mathbf r}\) for a spherical conductor, regardless of where q sits inside.
When charges are free to rearrange themselves (on a conductor), we don't know ρ in advance, so Coulomb's law and Gauss's law stop being useful. Instead we solve for V directly, using what we do know: its values on the boundaries. This chapter is about the properties of Laplace's equation and three ways to solve it.
3.1Laplace's equation and harmonic functions
From \(\nabla\cdot\mathbf E=\rho/\epsilon_0\) and \(\mathbf E=-\nabla V\): \(\nabla^2V=-\rho/\epsilon_0\). In a charge-free region,
Since any charge distribution outside the sphere is a superposition of point charges, the property holds for all of them.
Earnshaw's theoremA charge sitting in an electrostatic field would be in stable equilibrium only at a local minimum of its potential energy, i.e. of V (for q > 0). Harmonic functions have no local minima, so a charge cannot be held in stable equilibrium by electrostatic forces alone. Exercise 5 shows the saddle you get between two equal charges.
Exercise 5 · 3D The potential as a landscape
Hills, pits and saddles: what Laplace's equation allows
Height is \(V(x,y)\) in a plane; peaks are clipped so the surface stays readable. Since \(\mathbf E=-\nabla V\), field lines run straight downhill. Where \(\rho=0\), \(\nabla^2V=0\) forbids any local peak or pit, so the only bumps are the charges themselves. Drag to rotate.
3.2The uniqueness theorem
Proof
If V is specified on the boundary, the solution is unique
Suppose two solutions \(V_1\) and \(V_2\) both satisfy Laplace's equation in the region and match the boundary values: \(V_1(S)=V_2(S)\).
Their difference \(V_3=V_1-V_2\) also satisfies \(\nabla^2V_3=0\), with \(V_3(S)=0\).
A harmonic function takes its maximum and minimum on the boundary. Both are 0, so \(V_3=0\) everywhere.
Hence \(V_1=V_2\). The same argument extends to Poisson's equation:
The potential in a volume is uniquely determined if (a) ρ is given inside, and (b) V is given on the boundaries.
Why this is so usefulIt licenses guessing. If we can find any function that satisfies the equation with the right charges inside and the right boundary values, by whatever trick, it is the answer. The method of images is the most famous trick.
3.3The method of images
Problem: a point charge +q at \((0,0,a)\) above an infinite grounded conducting plane at \(z=0\). Find V for \(z>0\).
The +q induces negative charge on the plane, but we don't know how it is distributed, so we can't use Coulomb's law. We do know the boundary conditions:
\[V(z=0)=0,\qquad V\to0\text{ far away}\]
Find an analogy with the same charge in the region and the same boundary values: remove the conductor and put −q at \((0,0,-a)\). This dipole has V = 0 on the whole plane z = 0 (every point there is equidistant from +q and −q), and V → 0 at infinity.
Above the plane, the field of +q and its image is exactly the field with the conductor. Below, the real answer is E = 0.
Example
Everything about the grounded plane
Potential for \(z\ge0\), unique by the uniqueness theorem:
This is half of the energy of the real dipole, \(-\frac{1}{4\pi\epsilon_0}\frac{q^2}{2a}\): the field only fills half of space (z > 0); the region z < 0 has no field and no energy.
Two requirements: (1) the charges in the region of interest are unchanged (images must sit outside it), and (2) the boundary conditions are satisfied.
Two charges (Example 1.1): −2q at 2a and +q at a above the plane → images +2q at −2a and −q at −a.
Wedge of angle π/n (two grounded half-planes): reflect repeatedly; you get \(2n-1\) images (+q and −q alternating), and they close up consistently. n = 2 is the L-shaped corner with 3 images.
Wedge of angle 2π/3: the reflections land back inside the physical region. No image set satisfies the conditions; you have to use separation of variables.
Exercise 6 · Method of images
Mirrors for electric fields
Drag the charge. The hatched region is a grounded conductor. Turn on the image charges to see the fictitious charges that reproduce the field in the physical region. The readout checks that V = 0 everywhere on the conductor.
3.4Separation of variables in Cartesian coordinates
Problem: two infinite grounded conducting plates at \(y=0\) and \(y=a\). At \(x=0\) an insulated strip closes the slot, held at \(V=V_0\). Find V in the slot (\(0<y<a\), \(x>0\)).
There is no charge in the region, no obvious image, and Coulomb's law needs the unknown surface charges. The core idea: try writing V as a product of one-variable functions. This is not guaranteed to work, but when the boundaries line up with the coordinate axes it usually does.
The slot geometry: boundaries on lines of constant x and constant y.
Derivation
Solving the slot step by step
Nothing depends on z (symmetry along z), so \(V=V(x,y)\) and
A function of x alone plus a function of y alone can only vanish for all x, y if each is a constant:
\[\frac{1}{X}X''=C,\qquad\frac{1}{Y}Y''=-C\]
The variables are now separated. Each is \(f''=Cf\), with solutions \(Ae^{\sqrt C x}+Be^{-\sqrt C x}\) (C > 0), \(A\cos\sqrt{-C}x+B\sin\sqrt{-C}x\) (C < 0), or \(A+Bx\) (C = 0).
Choose the sign the boundary conditions need. Y must vanish at both \(y=0\) and \(y=a\), which takes oscillation: \(C=k^2>0\), so
\[Y=A\sin ky+B\cos ky,\qquad X=Ce^{kx}+De^{-kx}\]
Apply the three homogeneous conditions: \(V(y=0)=0\Rightarrow B=0\); \(V(x\to\infty)=0\Rightarrow C=0\); \(V(y=a)=0\Rightarrow\sin ka=0\Rightarrow k=n\pi/a\). Superpose all allowed n:
The last condition, \(V(0,y)=V_0\): \(\sum_nA_n\sin\frac{n\pi y}{a}=V_0\). Like expanding a vector in a basis, use completeness (any reasonable function can be written this way) and orthogonality:
Each term decays like \(e^{-n\pi x/a}\), so far from the strip only the n = 1 term matters. Near the strip many terms are needed, and the sum overshoots at the corners (Gibbs phenomenon). Exercise 7 builds the sum term by term.
Exercise 7 · Separation of variables
Building the solution term by term
Two grounded plates at \(y=0\) and \(y=a\), closed at \(x=0\) by a strip held at \(V_0\). The left panel is the boundary value \(V(0,y)\) from the partial sum; the right panel is \(V(x,y)\). Higher harmonics die off fastest (\(e^{-n\pi x/a}\)), so a few terms are enough away from the strip. The overshoot at the corners (Gibbs phenomenon) never goes away.
3.5Separation of variables in spherical coordinates
Derivation
The general azimuthally symmetric solution
Laplacian in spherical coordinates, assuming nothing depends on φ:
At large r the \(B_l\) terms vanish, so \(\sum A_lr^lP_l(\cos\theta)=-E_0r\cos\theta\). Matching Legendre polynomials: \(A_1=-E_0\), all other \(A_l=0\).
At \(r=R\): \(A_lR^l+B_l/R^{l+1}=0\) for each l, so \(B_l=-A_lR^{2l+1}\). Only \(B_1=E_0R^3\) survives.
Zero at the equator (cos θ = 0), largest at the poles (θ = 0, π).
Exact field lines (computed from the solution). Near the sphere they bend and hit the surface along r̂, at right angles, ending on the induced − charge below and starting again from the + charge above. Far away the induced dipole dies off as 1/r³ and the lines are straight and evenly spaced again: the uniform E₀.
In a conductor, charges are free. In a dielectric they are bound and can only shift a little, so each atom or molecule becomes a small dipole. Adding up all those dipoles gives bound charge, and the displacement field \(\mathbf D\) lets Gauss's law keep track of the free charge only.
4.1Conductors and dielectrics
Conductor (usually metals)
The binding energy of the outer electrons is small, so they become free and move through the whole material. In a field they move until \(\mathbf E=0\) inside (Chapter 2).
Dielectric (also called insulator)
The binding energy is large, so charges stay attached to their atoms or molecules. In a field the electron cloud shifts slightly against E and the nucleus along it: each atom becomes a small dipole pointing along E.
The material is still neutral overall, but the many little dipoles produce a field of their own. To describe them we need (1) the field of one dipole and (2) a way to add up a huge number of them: the polarization
\[\mathbf P=\text{dipole moment per unit volume}\]
The field pushes the nucleus along E (+qE) and pulls the electron cloud the other way (−qE). The two centers separate by a small distance d until the atom's own attraction balances the pull: an induced dipole p = qd. The cloud stays roughly round but becomes lopsided, with more charge on the side away from E. (Griffiths' simple model treats it as a rigid sphere that just shifts.) A symmetric stretch into an ellipse would give no dipole moment, since it keeps as much charge on one side of the nucleus as on the other.
4.2The electric dipole
Derivation
Potential of a dipole far away
Charges +q at \(\frac d2\hat{\mathbf z}\) and −q at \(-\frac d2\hat{\mathbf z}\):
For \(r\gg d\), expand: \(\frac{1}{r_\pm}\approx\frac1r\big(1\pm\frac{d}{2r}\cos\theta\big)\), so \(\frac{1}{r_+}-\frac{1}{r_-}\approx\frac{d\cos\theta}{r^2}\).
Define the dipole moment \(\mathbf p=q\,\mathbf d\) (from − to +):
Compare with the potential of ordinary surface and volume charge, \(\frac{1}{4\pi\epsilon_0}\oiint\frac{\sigma\,da'}{|\mathbf r-\mathbf r'|}+\frac{1}{4\pi\epsilon_0}\iiint\frac{\rho\,d\tau'}{|\mathbf r-\mathbf r'|}\). The polarized material acts exactly like the “bound charges”
Do they make sense? Picture a slab with uniform \(\mathbf P\) to the right. Inside, the + end of each dipole sits next to the − end of its neighbor, and they cancel. Only the ends don't cancel: a layer of + charge on the right face and − on the left. That is \(\sigma_b=\mathbf P\cdot\hat{\mathbf n}\) (positive where P points out of the surface).
If \(\mathbf P\) is uniform there is no charge in the volume. Volume bound charge appears only where \(\mathbf P\) is non-uniform: where the dipoles spread out (\(\nabla\cdot\mathbf P>0\)) they leave a net negative charge behind, hence the minus sign in \(\rho_b=-\nabla\cdot\mathbf P\).
Uniform polarization: interior charges cancel; only the surfaces are charged.Non-uniform polarization. Dipoles that straddle the dashed surface leave their + end outside and their − end inside. Net flux of P out of the surface, \(\oiint\mathbf P\cdot d\mathbf a=\iiint\nabla\cdot\mathbf P\,d\tau\), measures how much + charge has left, so the charge left inside is \(-\iiint\nabla\cdot\mathbf P\,d\tau\): hence \(\rho_b=-\nabla\cdot\mathbf P\).
4.4The displacement D and linear dielectrics
Derivation
Gauss's law for free charge
Split the total charge density into bound and free (everything else, e.g. charge we put on a conductor):
We usually control the free charge and not the bound charge, so this is the useful form. One caution: unlike E, \(\nabla\times\mathbf D=\nabla\times\mathbf P\) need not vanish, so D is not determined by its sources alone. Use it when symmetry makes D obvious.
Linear dielectrics: for many materials, P is proportional to E:
\(\epsilon_r=1+\chi_e\): relative permittivity, or dielectric constant. Vacuum: \(\chi_e=0\), \(\epsilon_r=1\). The bound charge always partially cancels the free charge's field, so E is reduced by \(\epsilon_r\).
This is the same distribution we already met: the conducting sphere in a uniform field (§3.5) had \(\sigma=3\epsilon_0E_0\cos\theta\). So we can reuse that answer with \(P_0=3\epsilon_0E_0\).
There, the induced charge alone produced \(+E_0r\cos\theta\) inside (cancelling the external \(-E_0r\cos\theta\)) and \(E_0\frac{R^3}{r^2}\cos\theta\) outside. Substituting \(E_0=P_0/3\epsilon_0\):
Outside: write \(\frac{P_0R^3}{3\epsilon_0r^2}\cos\theta=\frac{1}{4\pi\epsilon_0}\frac{\frac43\pi R^3P_0\cos\theta}{r^2}=\frac{1}{4\pi\epsilon_0}\frac{\mathbf p\cdot\hat{\mathbf r}}{r^2}\): a pure dipole with \(\mathbf p=\frac43\pi R^3\mathbf P\), the total dipole moment of the sphere.
Exercise 8 · 3D One surface charge, \(\sigma\propto\cos\theta\), two stories
Conducting sphere in a field vs. polarized sphere
The surface color shows the surface charge (red +, blue −). A conductor in \(\mathbf E_0\) builds up this charge to cancel the field inside. A uniformly polarized sphere carries exactly the same charge, \(\sigma_b=P\cos\theta\), so outside it is the same dipole. Compare E and D inside: E lines end on bound charge, but D lines close on themselves, because there is no free charge. Grey cones inside the dielectric show \(\mathbf P\). Drag to rotate.
Example
Line charge inside a dielectric cylinder
A long line charge λ sits on the axis of a linear dielectric cylinder (radius R, permittivity ε). Find D and E.
Only free charge (λ) counts for D, so \(D=\lambda/2\pi s\) inside and out. Bound charge: − next to the wire, + on the outer surface; equal and opposite in total.
Outside, E is exactly what it would be with no dielectric: the bound charge (negative right next to the wire, positive on the outer surface) adds up to zero.
Example
Conducting sphere with a dielectric shell
A metal sphere (radius a, charge Q) is surrounded by linear dielectric out to radius b. Find E, V, P, \(\sigma_b\), \(\rho_b\).
Free charge +Q sits on the metal (+). The dielectric's bound charge is − on its inner surface (r = a) and + on its outer surface (r = b), so the field between a and b is reduced by \(\epsilon_r\).
Gauss for D (free charge Q on the metal): \(\mathbf D=\frac{Q}{4\pi r^2}\hat{\mathbf r}\) for \(r>a\); \(\mathbf D=0\) inside the metal.
In the dielectric \(\mathbf P=\epsilon_0\chi_e\mathbf E=\frac{\epsilon_0\chi_eQ}{4\pi\epsilon r^2}\hat{\mathbf r}\), so \(\rho_b=-\nabla\cdot\mathbf P=0\) and
Moving charges make, and feel, magnetic fields. The structure mirrors Chapter 2: a force law, an integral for the field (Biot–Savart in place of Coulomb), then its divergence and curl, and finally a symmetry-plus-integral-law method (Ampère in place of Gauss).
Measuring the radius of a track in a known field measures the particle's momentum: this is how detectors do it.
If v has a component along B, that component is untouched and the motion is a helix. In a cyclotron accelerator, the E field across the gap between the two “D”s accelerates the particle and B bends it back around.
Derivation
Magnetic forces do no work
In time dt the charge moves \(d\mathbf l=\mathbf v\,dt\).
Magnetic forces change the direction of motion, never the speed.
Exercise 9 · Charged particle in a uniform B
Circles, helices, and no work done
The force (amber) is always perpendicular to the velocity (black), so the speed never changes. The velocity component along B is untouched; the perpendicular part goes around in a circle. Units: \(m=|q|=|\mathbf v|=1\). Drag to rotate the view.
5.2Currents
A moving line charge λ with velocity v is a current \(\mathbf I=\lambda\mathbf v\) (charge per unit time past a point). The force on a piece \(dq=\lambda\,dl\):
Steady currents (magnetostatics): nothing changes with time, \(\partial\rho/\partial t=0\), so \(\nabla\cdot\mathbf J=0\). A single charge moving at constant speed is not a steady current: the charge density changes at every point it passes.
5.3The Biot–Savart law
For steady currents, the magnetic field is (the analog of Coulomb's law):
with \(\mu_0=4\pi\times10^{-7}\,\mathrm{N/A^2}\). It only holds for steady currents.
Example
A straight wire segment
Point P at perpendicular distance d from the wire. Measure each element's position by the angle θ from the perpendicular: \(l'=d\tan\theta\), so \(dl'=\frac{d}{\cos^2\theta}d\theta\) and \(|\mathbf r-\mathbf r'|=\frac{d}{\cos\theta}\).
The cross product: \(|d\mathbf l'\times(\mathbf r-\mathbf r')|=dl'\,|\mathbf r-\mathbf r'|\cos\theta\), and every element gives B in the same direction (circling the wire). So
θ is measured from the perpendicular foot; the segment runs from θ₁ to θ₂.
Example
Force between two long wires
Wire 1 makes \(B_1=\frac{\mu_0I_1}{2\pi d}\) at wire 2, perpendicular to wire 2.
Force on a length L of wire 2: \(F=I_2B_1L\). Per unit length:
\[f=\frac{\mu_0I_1I_2}{2\pi d}\]
Direction: for parallel currents, \(I_2\hat{\mathbf z}\times B_1\) points toward wire 1, so parallel currents attract; antiparallel currents repel. (The opposite of like charges!)
Example
Ring of current, on its axis
Every element is at distance \(\sqrt{h^2+R^2}\) and \(d\mathbf l'\perp(\mathbf r-\mathbf r')\). By symmetry the parts of dB parallel to the plane cancel; only the z part, a fraction \(R/\sqrt{h^2+R^2}\), survives:
Substitute \(h=R\cot\theta\) (θ = angle at P between the +z axis and the rim of that ring): \(dh=-\frac{R}{\sin^2\theta}d\theta\) and \(h^2+R^2=\frac{R^2}{\sin^2\theta}\):
θ₂ and θ₁ are the angles to the rims of the two end rings (θ₂ at the +z end, θ₁ at the −z end, so \(\theta_1>\theta_2\) and B is positive). At the center of a solenoid of length L, \(\cos\theta_2=-\cos\theta_1=\frac{L/2}{\sqrt{(L/2)^2+R^2}}\).
Infinite solenoid: \(\theta_1=\pi\), \(\theta_2=0\), so \(B=\mu_0nI\). (Exercise 10 sums Biot–Savart for a real 10-turn coil.)
All angles are measured at P from the +z axis to the rim of a ring.
Exercise 10 · 3D Biot–Savart, summed numerically
Field lines of a wire, a ring, a Helmholtz pair and a solenoid
Each current path (amber, cones show the current direction) is cut into short pieces and \(\mathbf B=\frac{\mu_0}{4\pi}\int\frac{I\,d\mathbf l\times(\mathbf r-\mathbf r')}{|\mathbf r-\mathbf r'|^3}\) is summed directly. Magnetic field lines (teal) never start or end, because \(\nabla\cdot\mathbf B=0\): they close on themselves. Drag to rotate.
computing…
5.4Divergence and curl of B
Derivation
Ampère's law
Long straight wire, circular loop of radius r around it:
Any loop around the wire: \(d\mathbf l=dr\,\hat{\mathbf r}+r\,d\phi\,\hat{\boldsymbol\phi}+dz\,\hat{\mathbf z}\), so \(\mathbf B\cdot d\mathbf l=\frac{\mu_0I}{2\pi r}r\,d\phi=\frac{\mu_0I}{2\pi}d\phi\), and φ goes once around: \(\oint\mathbf B\cdot d\mathbf l=\mu_0I\). A loop not enclosing the wire has net Δφ = 0.
Many wires: B superposes, so \(\oint\mathbf B\cdot d\mathbf l=\mu_0I_\text{enc}\).
Stokes on the left, \(I_\text{enc}=\iint\mathbf J\cdot d\mathbf a\) on the right, any surface:
The vector in the curl is a gradient, \(-\nabla\frac{1}{|\mathbf r-\mathbf r'|}\), and the curl of a gradient is zero:
\[\nabla\cdot\mathbf B=0\]
Field lines of B never start or end. Together with Ampère's law these are the two Maxwell equations of magnetostatics.
5.5Using Ampère's law: symmetry first, again
The same recipe as Gauss's law (§2.3), with a loop in place of a closed surface:
Symmetry. Decide which way B can point and what it can depend on. Two tools: the symmetry of the current, and \(\nabla\cdot\mathbf B=0\) (no net flux out of any closed surface).
Choose the Ampère loop so that on each piece of it B is either constant and parallel to \(d\mathbf l\), or perpendicular to it (or zero).
Count the enclosed current \(I_\text{enc}\): the current through any surface bounded by the loop, with sign fixed by the right-hand rule.
Solve \(\oint\mathbf B\cdot d\mathbf l=\mu_0I_\text{enc}\) for B.
The four classic geometries are the line, plane, solenoid and toroid. Exercise 11 below lets you move the loop through each one.
Example ①
Long straight wire of radius a, uniform current I
Symmetry. Rotating about the axis or sliding along it changes nothing, so B depends only on s. A radial part \(B_s\) would send net flux out of a coaxial cylinder, violating \(\nabla\cdot\mathbf B=0\). A part along z is ruled out by Biot–Savart (\(d\mathbf B\perp\mathbf I\)). What is left: \(\mathbf B=B(s)\,\hat{\boldsymbol\phi}\).
Loop: a circle of radius s around the axis. B is constant on it and parallel to \(d\mathbf l\): \(\oint\mathbf B\cdot d\mathbf l=2\pi sB\).
Enclosed current: \(I\) outside; inside, the fraction of the area, \(I\,s^2/a^2\).
Linear inside, \(1/s\) outside: the same shape as E of a uniformly charged cylinder, but circling instead of radial.
Circular loops inside and outside the wire. On each, B is tangent and has the same size all the way around.
Example ②
Infinite sheet of surface current \(\mathbf K=K\hat{\mathbf x}\) in the xy-plane
Symmetry. Sliding in x or y changes nothing, so B depends only on z. Biot–Savart gives \(d\mathbf B\perp\mathbf K\), so no x part. Pair each current strip at +y with the one at −y: their z parts cancel. So \(\mathbf B=B_y(z)\,\hat{\mathbf y}\), and flipping the sheet over gives \(B_y(-z)=-B_y(z)\): opposite directions above and below.
Loop: a rectangle in the yz-plane, length L along y, straddling the sheet. The horizontal sides are parallel to B and each gives BL; the vertical sides are perpendicular to B and give nothing: \(\oint\mathbf B\cdot d\mathbf l=2BL\).
Enclosed current: the current crossing a width L of the sheet, \(KL\).
Independent of the height of the loop, just like \(E=\sigma/2\epsilon_0\) for a charged plane. B jumps by \(\mu_0K\) across the sheet.
Viewed along the current. The top and bottom of the loop each give BL; the sides give nothing.
Example ③
Long solenoid: the full symmetry argument
Dependence. Moving along z or rotating about the axis changes nothing, so \(\mathbf B=\mathbf B(r)\), a function of the distance from the axis only.
No radial part. A coaxial Gaussian cylinder would have \(\oiint\mathbf B\cdot d\mathbf a\neq0\), violating \(\nabla\cdot\mathbf B=0\). (Another way: flipping the solenoid end for end reverses the current and so must reverse \(B_r\), but the flipped solenoid is the same as the original rotated, which can't change \(B_r\). So \(B_r=0\).)
No φ part. A circular loop around the axis encloses no net current (the current circulates, it doesn't flow along z): \(2\pi rB_\phi=0\).
z part, inside. A rectangle entirely inside: \(B_1z-B_2z=0\Rightarrow B_1=B_2\). The field inside is uniform. Similarly the field outside is uniform, and since \(B\to0\) far away, B = 0 outside.
Straddling rectangle (one side in, one side out), enclosing \(nz\) turns: \(B_\text{in}z-0=\mu_0nIz\):
This is the “classical” way to make a uniform field. Real solenoids are finite, but the field near the center is still nearly uniform. Putting in a ferromagnetic core (iron, steel) amplifies and guides the field (Chapter 6).
A cut through the solenoid along its axis. The straddling loop encloses the wires on its lower side.
Example ④
Toroid: N turns wound on a ring, inner radius a, outer radius b
Symmetry. Rotating about the central axis changes nothing, so B depends on s and z only. Take a current element and its mirror image across the plane containing the axis and the field point: their s and z parts of dB cancel, the φ parts add. So \(\mathbf B=B(s,z)\,\hat{\boldsymbol\phi}\): the field lines are circles around the axis.
Loop: a circle of radius s about the axis, at any height. B is tangent and constant on it: \(\oint\mathbf B\cdot d\mathbf l=2\pi sB\).
Enclosed current (see the figure): ① in the hole, \(s<a\): nothing. ② inside the windings: the N inner legs, \(NI\). ③ outside, \(s>b\): N legs up and N legs down, \(NI-NI=0\).
\[\mathbf B=\begin{cases}\dfrac{\mu_0NI}{2\pi s}\,\hat{\boldsymbol\phi} & \text{inside the windings}\\[2ex]0 & \text{in the hole and outside}\end{cases}\]
The field is trapped inside the windings, whatever the shape of the cross-section. Unlike the solenoid, it is not uniform: it falls as \(1/s\) from the inner to the outer edge.
Top view. Each turn crosses this plane twice: up (⊙) at the inner edge, down (⊗) at the outer edge. Only loop ② encloses net current.
Gauss vs AmpèreBoth turn one integral number into a field only when symmetry fixes the direction and makes the magnitude constant on the surface or loop. For a single finite loop of wire, a finite solenoid or a short segment, the symmetry is not enough: fall back to Biot–Savart (§5.3).
Exercise 11 · 3D Symmetry first, then Ampère's law
The four classic current distributions
The current (red, cones show its direction), the field (teal), and the Ampère loop (amber). Move the slider to move or resize the loop and watch B on it follow the enclosed current. The plot on the right is B along the loop's path. Drag the 3D view to rotate it.
Rotations about the axis and slides along it change nothing; \(\nabla\cdot\mathbf B=0\) kills \(B_s\), and \(d\mathbf B\perp\mathbf I\) kills \(B_z\): \(\mathbf B=B(s)\,\hat{\boldsymbol\phi}\).
\(B=\mu_0Is/2\pi a^2\) inside, \(\mu_0I/2\pi s\) outside: B grows linearly, peaks at the surface, then falls as \(1/s\).
Sliding in x or y changes nothing; \(d\mathbf B\perp\mathbf K\) and the ±y pairing leave only \(B_y(z)\), with \(B_y(-z)=-B_y(z)\).
Loop: a rectangle across the sheet, in the plane perpendicular to K.
\(I_\text{enc}=KL\), whatever the height of the rectangle.
\(B=\mu_0K/2\) on both sides, opposite directions. Its size does not depend on the height: try it.
\(\mathbf B=B(s)\,\hat{\mathbf z}\): \(B_s=0\) from \(\nabla\cdot\mathbf B=0\), \(B_\phi=0\) because no net current flows along the axis.
Loop: a rectangle of length l along the axis, with a fixed width; the slider moves its inner side.
Both sides inside or both outside: \(I_\text{enc}=0\), so B is the same on the two sides. Straddling the wall: \(I_\text{enc}=nIl\).
B is uniform inside and uniform (= 0, since it vanishes far away) outside; straddling gives \(B=\mu_0nI\).
Mirror pairs of current elements cancel the s and z parts: \(\mathbf B=B(s,z)\,\hat{\boldsymbol\phi}\).
Loop: a circle of radius s about the central axis.
\(I_\text{enc}=0\) in the hole, \(NI\) inside the windings, \(NI-NI=0\) outside.
\(B=\mu_0NI/2\pi s\) inside the windings, zero everywhere else.
Exercise 12 · Field lines of a solenoid and a toroid
Finite solenoid and few-coil toroid
Solenoid: a cut through the axis, computed exactly from the rings (field lines are contours of the flux through each loop). Lines are evenly spaced inside, where the field is uniform; they leak out of the ends and spread out outside. Shorten it and the center field drops below \(\mu_0nI\). Toroid: the plane perpendicular to the beam. Each coil crosses it twice, current up (⊙) at the inner radius and down (⊗) at the outer. Between the walls the lines are circles with \(B=\mu_0NI/2\pi r\); with only a few coils the field ripples. Inside the hole and outside, B ≈ 0.
Applications: the CMS and ATLAS magnets
The two big general-purpose detectors at the LHC measure the momentum of charged particles the way §5.1 describes, from the radius of curvature in a known field, \(p=qBR\). Both chose the geometries we just solved with Ampère's law.
Example
CMS: one big solenoid, flux returned through steel
The Compact Muon Solenoid is built around a superconducting solenoid with a 6 m free bore, 12.5 m long, giving 3.8 T along the beam (designed for 4 T). The tracker and calorimeters sit inside it. Outside, about 10,000 t of steel, in three barrel layers and three endcap disks on each side, forms the return yoke.
Ideal estimate. The coil carries about 41.7 MA-turns at its design current, spread over 12.5 m:
Without the yoke. With \(L/D\approx2\), the solenoid formula of §5.3 at the center, with \(\cos\theta_2=-\cos\theta_1=\frac{L/2}{\sqrt{(L/2)^2+R^2}}\approx0.89\), gives \(B=\frac{\mu_0nI}{2}(\cos\theta_2-\cos\theta_1)\approx0.89\,\mu_0nI\): about 3.7 T. Toward the ends the field drops to about half, and the returning flux spreads through the whole cavern (left panel below).
With the yoke. \(\nabla\cdot\mathbf B=0\): every field line that crosses the bore must come back. Steel is a far easier path than air, so the yoke collects the returning flux. The field in the bore rises to about 0.98 of \(\mu_0nI\) and stays nearly uniform out to the ends (right panel).
The field in the steel. The flux through the bore, \(\Phi\approx B\,\pi R^2\approx3.8\times\pi(3)^2\approx110\ \text{Wb}\), has to return through a steel cross-section about twice as large, so B there is about 2 T and points the opposite way.
Muon tracks. In the bore a muon curves one way in the transverse plane. In the yoke the field is reversed, so it bends back the other way: the S-shaped tracks in CMS event displays. The muon chambers sit in the gaps between the steel layers, and the second bend gives a second momentum measurement.
Bonus. The steel also keeps the stray field out of the cavern, and it stops everything except muons. Stored energy: about 2.6 GJ (\(B^2/2\mu_0\approx5.7\ \text{MJ/m}^3\) at 3.8 T, times about 350 m³ of bore, is already 2 GJ; Chapter 7).
Computed field lines in a cut through the beam axis (dashed), for the same coil current. Both panels draw the same set of field lines (the same flux values), spaced evenly in radius at the center. Coil in amber, steel in grey. An axisymmetric model with linear steel; geometry simplified from CMS.
Example
ATLAS: a thin central solenoid, plus air-core toroids outside
ATLAS uses four magnets. In the middle, around the inner tracker, a thin solenoid; outside the calorimeters, three air-core toroids (no iron) for the muon spectrometer: one barrel toroid and two end-cap toroids.
Central solenoid: 2 T along the beam, 5.3 m long, 2.46 m bore, 7.73 kA. Ideal estimate of the winding density: \(n=B/\mu_0I\approx\frac{2}{(4\pi\times10^{-7})(7730)}\approx206\) turns per meter, about 1,100 turns. Cross-check: 9 km of conductor over a circumference of \(\pi\times2.5\ \text{m}\approx7.9\ \text{m}\) is also about 1,100 turns. Its flux returns through the steel of the hadronic calorimeter around it.
Barrel toroid: 8 racetrack coils, 25.3 m long, from about 9.4 m to 20.1 m in diameter, 20.5 kA each. From Example ④, \(B=\mu_0NI/2\pi s\), so the field falls by about a factor 2 from the inner to the outer edge. With only 8 coils it also ripples strongly in φ (try 8 coils in Exercise 12): from about 0.2 to 2.5 T, roughly 0.5 T typical.
Two fields, two bending planes. The solenoid's B is along the beam, so tracks curve in the transverse plane. The toroid's B circles the beam, so muons bend in the plane containing the beam (r–z). Exercise 13 shows both on one muon.
Why air-core? No iron in the muon's path means little multiple scattering, so the curvature is measured cleanly, and a toroid needs no return yoke: its field is already trapped inside the windings.
End-cap toroids: two more 8-coil toroids, 10.7 m in diameter and 5 m long, about 1 T, rotated relative to the barrel coils to fill the forward region.
Exercise 13 · 3D The ATLAS magnet system
A solenoid inside a toroid
Amber: the coils (cones show the current). Teal: B. Inside, the solenoid's field runs along the beam and returns through the calorimeter steel (grey). Outside, the toroid's field circles the beam between its 8 coils and is zero inside the coils' inner edge. The red track is a positive muon from the collision point: it curves in the transverse plane inside the solenoid, flies straight in between, and bends in the r–z plane inside the toroid. Schematic, not to scale (the toroid is really about 8 times larger than the solenoid). Drag to rotate.
Use that freedom to impose one more condition, a gauge. The Coulomb gauge is \(\nabla\cdot\mathbf A=0\). It is always possible: \(\nabla\cdot\mathbf A'=\nabla\cdot\mathbf A+\nabla^2\lambda\), so given any A, choose λ with
With \(\nabla\cdot\mathbf A=0\), step 1 becomes three Poisson equations, one per component:
\[\nabla^2\mathbf A=-\mu_0\mathbf J\]
We already know the solution of \(\nabla^2V=-\rho/\epsilon_0\): \(V=\frac{1}{4\pi\epsilon_0}\iiint\frac{\rho}{|\mathbf r-\mathbf r'|}d\tau'\). Swap \(\rho/\epsilon_0\to\mu_0\mathbf J\):
The magnetic version of Chapter 4. Atoms carry tiny current loops, i.e. magnetic dipoles. Normally they point every which way; an external field lines them up, and the aligned dipoles produce a field of their own. The bookkeeping mirrors polarization almost line by line, with bound currents in place of bound charges. This page grows as the lectures continue.
6.1From polarization to magnetization
For the E case (Chapter 4): an electric field stretches each atom into a small dipole along E, and the material acquires a polarization \(\mathbf P\).
The B case is similar, and more interesting. Each atom's electrons form tiny current loops, magnetic dipoles. Without an external field \(\mathbf B_0\) they are randomly aligned and cancel on average. With \(\mathbf B_0\), they line up (partly) along one direction, and the material acquires a magnetization
\[\mathbf M=\text{magnetic dipole moment per unit volume}\]
Atomic current loops and their moments m. Random, they cancel; aligned, they add up to M.
6.2A current loop in a magnetic field
Why do the atomic loops line up? Because a uniform field exerts no net force on a current loop, but it does exert a torque whenever the loop is tilted. Take a rectangular loop, sides a and b, current I, in a uniform \(\mathbf B_0\), with moment \(\mathbf m=I\mathbf a\) (magnitude \(Iab\), perpendicular to the loop by the right-hand rule).
Face-on to the field (\(\mathbf m\parallel\mathbf B_0\), here B₀ into the page): the four forces lie in the plane of the loop, pull it outward and cancel. No force, no torque.Tilted by θ, seen along the sides of length a: the two forces are still equal and opposite, but no longer on the same line. They form a couple.
Derivation
The torque on a tilted loop
Net force. \(\mathbf F=I\oint d\mathbf l\times\mathbf B_0=I\big(\oint d\mathbf l\big)\times\mathbf B_0=0\), since B₀ is uniform and \(\oint d\mathbf l=0\) for any closed loop. Whatever the tilt, the loop is not pushed anywhere.
The two sides of length b (in the plane of the right figure). Their forces \(I\,d\mathbf l\times\mathbf B_0\) point along the tilt axis, into and out of the page: equal, opposite, and along the same line. They cancel and give no torque.
The two sides of length a (⊗ and ⊙ in the right figure) stay perpendicular to B₀, so each feels \(F=IaB_0\), horizontal, in opposite directions. When the loop is tilted by θ, their lines of action are separated by the lever arm \(b\sin\theta\).
A couple's torque is one force times the separation of the two lines:
Direction. In the figure, the force on the upper side points right and on the lower side left: the loop turns clockwise, which swings m toward B₀. Both magnitude and direction are captured by
\[\mathbf N=\mathbf m\times\mathbf B_0\]
The torque vanishes at θ = 0 (m along B₀, stable) and is largest at θ = 90° (loop plane along B₀). So each atomic dipole is turned to point along the field: this is paramagnetism, and the aligned loops then add a field of their own.
6.3Magnetization and bound currents
Line by line, the same steps as for polarization (§4.2–4.3):
The same integration by parts that gave \(\sigma_b\) and \(\rho_b\) turns the integral over \(\mathbf M\) into the potential of ordinary currents: a bound volume current \(\mathbf J_b=\nabla\times\mathbf M\) and a bound surface current \(\mathbf K_b=\mathbf M\times\hat{\mathbf n}\).
Picture it, like P. If \(\mathbf M\) is uniform, neighboring atomic loops run in opposite directions where they touch, so the currents inside always cancel: \(\mathbf J_b=0\). Only the outermost segments are left, forming a current that flows around the surface: \(\mathbf K_b\).
Uniform magnetization: the atomic loops' currents cancel inside and add up to a surface current.
Coming nextThe field of the bound currents, the auxiliary field \(\mathbf H\) (the analog of D), linear media, and para-, dia- and ferromagnets.
The field of the bound currents, the auxiliary field \(\mathbf H\), linear media, and para-, dia-, and ferromagnets. The Chapter 6 page will be extended as these lectures happen.