Path Independence in 3D
Kaplan §5.13 - the four theorems in space, and why removing a line is worse than removing a point.
Prereq: §5.6 Path Independence (2D) · §5.7 Multiply Connected Domains · §5.12 Stokes's Theorem
Two famous physical fields, each with zero curl. One has a global potential, the other doesn't. Why?
Newton, Maxwell, and Ampère all wrestled with exactly this distinction - gravity has a global potential, the magnetic field around a wire does not. The reason turns out to be topological, not algebraic.
Both fields satisfy $\nabla \times \mathbf{u} = \mathbf{0}$ wherever they're defined. Yet only one has a global potential. The difference is topological - and in 3D the rules differ from 2D in a beautiful way. Removing a single point from space is harmless. Removing a whole line is fatal.
The four theorems, now in space
In §5.6 we built a four-theorem package for path independence in the plane. Kaplan's §5.13 lifts the same four statements to space. The shapes of the theorems are identical - only $\mathbf{u}$ now has three components, and "curl" means the full 3-vector $\nabla \times \mathbf{u}$ instead of a single scalar.
Throughout, $\mathbf{u} = L\,\mathbf{i} + M\,\mathbf{j} + N\,\mathbf{k}$ is a vector field with continuous partials on a domain $D \subseteq \mathbb{R}^3$.
Before we re-state them: what do you expect changes in 3D, and what stays the same? Most of the structure transfers verbatim - same iff chains, same direction of implication. But one hypothesis gets sharper teeth in space than it had in the plane. Watch for which one.
Theorem I - same idea, more dimensions. Path independence is equivalent to the integrand being an exact differential.
Theorem II - closed loops are the test. Path independence is the same as every closed-loop integral vanishing.
Theorem III - the cheap necessary check. If a potential exists, the curl must be zero. (Three component equations now, instead of one.)
Theorem IV - the converse, and the one with sharper teeth. Curl-free plus simply connected forces a potential to exist. This is where 3D differs from 2D in a real way.
The proofs of I, II, III carry over from the plane with no essential change - Kaplan says so explicitly. The new content is in simply connected, and in the proof of Theorem IV, which now has to use Stokes's theorem in place of Green's. That's where the chapter's punchline lives.
What's genuinely new - holes have a dimension now
In the plane, "simply connected" basically meant "no holes": every closed curve bounds a disk that lies inside the domain. Removing a single point from $\mathbb{R}^2$ destroys simple connectivity - the unit circle around the missing origin can't be contracted to a point without sliding over it.
In space we have a third dimension to slide through, and that changes everything.
$\mathbb{R}^3 \setminus \{\text{point}\}$ - still simply connected
Any loop that "encircles" a missing point can drift sideways in the third dimension and shrink to a point. There's no obstruction. Theorem IV applies.
$\mathbb{R}^3 \setminus \{\text{line}\}$ - NOT simply connected
A loop linked through the missing line is stuck. There's no third dimension to slide along - the line blocks every direction. Theorem IV does not apply.
The pattern generalizes. In $\mathbb{R}^n$, the question is the codimension of what we removed: codimension means $n - (\text{dim of removed set})$. Loops are 1-dimensional, so they get pinned by obstructions of codimension 2 or higher.
- In $\mathbb{R}^2$, a missing point has codimension $2 - 0 = 2$ - it pins loops. Missing a line (codimension 1) typically just disconnects the plane.
- In $\mathbb{R}^3$, a missing point has codimension $3 - 0 = 3$ - too high to pin a loop, so it slides off. A missing line (codimension $3 - 1 = 2$) is the dangerous one. A missing surface (codimension 1) typically just disconnects space.
This is why the magnetic field around an infinite wire is the canonical 3D analogue of the plane vortex - the wire is a line, codimension 2, exactly the obstruction that blocks loops.
Theorem IV in 3D - the proof goes through Stokes
In the plane, Theorem IV used Green's theorem to convert "loop integral" into "double integral over the enclosed region." In space, the natural replacement is Stokes's theorem: a loop integral becomes a flux integral of the curl through any spanning surface.
That's the structural reason simple connectivity matters here. Kaplan's working definition of simply connected in 3D is exactly the property we need: every simple closed curve $C$ in $D$ is the boundary of a smooth orientable surface $S \subseteq D$. The interior of a sphere is simply connected; the interior of a torus is not. The interior of a sphere with finitely many points removed is still simply connected - because each missing point can be slid past, just as in card 2.
Proof sketch of Theorem IV. Suppose $D$ is simply connected and $\nabla \times \mathbf{u} = \mathbf{0}$ on $D$. Let $C$ be any simple closed curve in $D$. By the simply-connected hypothesis, there's a smooth orientable surface $S \subseteq D$ with boundary $C$. It turns out the entire proof is then one line of Stokes:
Every closed-curve integral in $D$ vanishes. By Theorem II this is path independence, and by Theorem I we get a potential $f$ with $\mathbf{u} = \nabla f$. Done.
Look at where the simply-connected hypothesis is doing its work. The whole proof is one line of Stokes - but Stokes only fires once we've produced the surface $S$ inside $D$. Drop simple connectivity, and we may still have curl-free $\mathbf{u}$ and a closed loop $C$, but no surface in $D$ for $C$ to bound. The integral equation still holds for any surface that does stay in $D$ - but if no such surface exists, we have nothing to say.
Two physical fields, two topologies
Let's make the codimension story concrete with the two fields from the hook.
Gravity - point singularity, no obstruction
A point mass at the origin produces the field
$$\mathbf{u} \;=\; -\,GM\,\frac{\hat{\mathbf{r}}}{r^2} \;=\; -\,GM\,\frac{x\,\mathbf{i} + y\,\mathbf{j} + z\,\mathbf{k}}{(x^2+y^2+z^2)^{3/2}}$$
defined on $D = \mathbb{R}^3 \setminus \{0\}$. We're missing one point; codimension 3; loops slide off; $D$ is simply connected. A direct calculation gives $\nabla \times \mathbf{u} = \mathbf{0}$. By Theorem IV, $\mathbf{u}$ is conservative and we can write it as a gradient. Sure enough,
$$f(x,y,z) \;=\; \frac{GM}{r} \;=\; \frac{GM}{\sqrt{x^2+y^2+z^2}} \quad\Longrightarrow\quad \nabla f = \mathbf{u}.$$
The lift work from $A$ to $B$ depends only on $r_A$ and $r_B$. Energy conservation in classical mechanics rests on exactly this fact.
Magnetic field around a wire - line singularity, real obstruction
An infinite straight wire along the $z$-axis carrying steady current produces a magnetic field of the form
$$\mathbf{u} \;=\; \frac{1}{x^2+y^2}\bigl(-y\,\mathbf{i} + x\,\mathbf{j}\bigr)$$
(times physical constants we suppress) defined on $D = \mathbb{R}^3 \setminus \{z\text{-axis}\}$. We're missing a line; codimension 2; loops can be pinned around it; $D$ is not simply connected.
One can compute $\nabla \times \mathbf{u} = \mathbf{0}$ at every point of $D$ (the field is the plane vortex copied along $z$). So Theorem III's necessary condition is satisfied. But Theorem IV does not apply - and indeed for the unit circle $C: x = \cos t,\, y = \sin t,\, z = 0$,
$$\oint_C \mathbf{u}\cdot d\mathbf{r} \;=\; \int_0^{2\pi}\!\!\frac{(-\sin t)(-\sin t) + (\cos t)(\cos t)}{1}\,dt \;=\; 2\pi \;\neq\; 0.$$
By Theorem II, the field is not path-independent on $D$. There is no single-valued potential. Ampère's law - the working tool of every electrical engineer - is exactly the statement that this integral is not zero: the line integral of $\mathbf{B}$ around any loop encircling the wire equals $\mu_0 I$, regardless of the loop's shape. The non-zero answer carries the current.
Same algebraic test ($\nabla \times \mathbf{u} = \mathbf{0}$). Different topology of $D$. Different verdict on whether a potential exists. This is the punchline of §5.13.
Finding a potential in 3D - one worked example
Suppose we've checked $\nabla \times \mathbf{u} = \mathbf{0}$ and $D$ is simply connected. Theorem IV guarantees a potential $f$ exists; we want to find it explicitly. We drilled the recipe in detail on topics/finding-potentials.html - here we focus on what's specific to 3D: a third integration, a third sanity check, three cancellations chained instead of two. Roughly speaking, every cancellation in the chain is one of the curl-zero equations cashing in.
Step 1. Integrate $L = 2xy - z^2$ in $x$:
$$f(x,y,z) \;=\; \int (2xy - z^2)\,dx \;=\; x^2 y - x z^2 \;+\; g(y, z).$$
Step 2. Compute $f_y = x^2 + g_y$. Set this equal to $M = x^2 + 2z$:
$$x^2 + g_y \;=\; x^2 + 2z \quad\Longrightarrow\quad g_y = 2z.$$
The $x^2$ cancels - exactly because $L_y = 2x = M_x$. Integrate in $y$: $g(y,z) = 2yz + h(z)$. Now
$$f(x,y,z) \;=\; x^2 y - x z^2 + 2yz + h(z).$$
Step 3. Compute $f_z = -2xz + 2y + h'(z)$. Set equal to $N = 2y - 2xz$:
$$-2xz + 2y + h'(z) \;=\; 2y - 2xz \quad\Longrightarrow\quad h'(z) = 0,\; h(z) = C.$$
So our potential is
Step 4 - verify. Compute the gradient:
- $f_x = 2xy - z^2 = L$ ✓
- $f_y = x^2 + 2z = M$ ✓
- $f_z = -2xz + 2y = 2y - 2xz = N$ ✓
Three checks, three matches. Done. Notice what happened: at step 2 the $x^2$ term cancelled (that was the $L_y = M_x$ equation), and at step 3 the $-2xz$ term cancelled (that was $L_z = N_x$). Curl-zero is the guarantee that those cancellations occur - no curl-zero, no recipe.
Summary - hypothesis traps
Reading off the four theorems is easy; the trap is forgetting which hypothesis applies on which side of the iff. Here's the punchlist.
| Setting | What "simply connected" means | Examples that work / break |
|---|---|---|
| 2D ($\mathbb{R}^2$) | No holes; every loop bounds a disk in $D$. | Disk, half-plane, all of $\mathbb{R}^2$ work. Punctured plane $\mathbb{R}^2 \setminus \{0\}$ breaks - the plane vortex. |
| 3D ($\mathbb{R}^3$) | Every loop bounds a smooth orientable surface in $D$. | Ball, half-space, $\mathbb{R}^3$, $\mathbb{R}^3$ minus finitely many points all work. $\mathbb{R}^3$ minus a line (or interior of a torus) breaks - the magnetic-wire field. |
The codimension rule of thumb in one line: In $\mathbb{R}^n$, removing something of dimension $\le n - 2$ destroys simple connectivity for loops; removing a hyperplane (codimension 1) typically just disconnects the space. In 2D both points and lines are obstructions; in 3D only lines and higher-dimensional curves and surfaces of codimension $\ge 2$ are. That's the geometric content of why 3D is genuinely more permissive than 2D.
And the workflow if we're handed a field in 3D and asked "is it conservative?":
- Compute $\nabla \times \mathbf{u}$. Nonzero anywhere? Not conservative. Stop.
- Curl is zero everywhere. Look at the domain $D$. Simply connected (ball, half-space, all of $\mathbb{R}^3$, $\mathbb{R}^3$ minus a few points)? Theorem IV gives conservativeness. Find $f$ by the three-step recipe.
- Domain is not simply connected (missing a line, the interior of a torus, …)? Test one loop around each hole. Nonzero on any loop ⇒ not conservative on $D$. (Locally, on every simply-connected sub-region, $\mathbf{u}$ still has a local potential.)
- Got a potential $f$? Any line integral becomes $f(B) - f(A)$. The path drops out completely.
Practice Problems - §5.13
From Kaplan, problems following §5.13.
- $\mathbf{k}$-component: $L_y - M_x$. We have $L_y = (y^2 - x^2)/(x^2+y^2)^2$ and $M_x = (y^2 - x^2)/(x^2+y^2)^2$. Equal.
- $\mathbf{i}$-component: $M_z - N_y = 0 - 0 = 0$.
- $\mathbf{j}$-component: $N_x - L_z = 0 - 0 = 0$.