Divergence of B and No Magnetic Monopoles
~6 min read · Tier toggle changes depth (T1 plain · T2 standard · T3 rigour)
You should be comfortable with the Biot–Savart law for steady currents and the basic vector calculus identities, particularly the divergence operator and the properties of the curl of a gradient.
Why this matters
This result distinguishes magnetism from electrostatics at the most fundamental level.
In electrostatics, electric field lines begin on positive charges and end on negative charges. In magnetism, however, field lines form continuous closed loops. This lecture establishes the mathematical statement of this observation: the divergence of the magnetic field is zero everywhere. This is not merely an empirical rule but a direct consequence of the Biot–Savart law and the nature of steady currents. Understanding this constraint is essential for applying Ampère's law correctly and for later understanding why electromagnetic waves can propagate through empty space.
The Idea in Plain Language
Imagine a bar magnet. If you draw the magnetic field lines outside the magnet, they emerge from the north pole and curve around to enter the south pole. Inside the magnet, the lines continue from the south pole back to the north pole. There are no "ends" to these lines. You cannot find a point in space where a magnetic field line starts or stops. This is different from an electric field, where lines start on positive charges and stop on negative charges. The statement that magnetic field lines never begin or end is the physical content of the equation \(\nabla \cdot \mathbf{B} = 0\). It means that if you were to place a tiny closed surface anywhere in space, the total amount of magnetic field entering the surface must exactly equal the total amount leaving it. There is no "source" or "sink" of magnetic field inside the volume.
Mathematical Statement and Flux
The divergence of a vector field measures the net flux per unit volume. For the magnetic field \(\mathbf{B}\), the condition that there are no magnetic monopoles is expressed as:
By the divergence theorem, this local statement is equivalent to the global statement that the net magnetic flux through any closed surface \(S\) is zero:
Here, \(d\mathbf{A}\) is the vector area element pointing outward from the surface. The dot product \(\mathbf{B} \cdot d\mathbf{A}\) represents the flux of \(\mathbf{B}\) through that element. The integral sums this flux over the entire closed surface. The result being zero means that any field line entering the surface must exit it somewhere else. This is a topological constraint on the field lines: they must be closed loops or extend to infinity, but they cannot terminate in empty space.
Derivation from Biot–Savart
We do not assume \(\nabla \cdot \mathbf{B} = 0\) as a separate postulate. Instead, it follows from the Biot–Savart law for a steady current distribution. The magnetic field at a point \(\mathbf{r}\) due to a current element \(I d\mathbf{l}'\) at \(\mathbf{r}'\) is:
To find the divergence, note that \(\nabla\) acts on the field point \(\mathbf{r}\), so \(d\mathbf{l}'\) is a constant vector as far as \(\nabla\) is concerned. Using \(\nabla \cdot (\mathbf{A} \times \mathbf{C}) = \mathbf{C} \cdot (\nabla \times \mathbf{A}) - \mathbf{A} \cdot (\nabla \times \mathbf{C})\) with \(\mathbf{A} = d\mathbf{l}'\) (so \(\nabla\times\mathbf{A} = 0\)) and \(\mathbf{C} = (\mathbf{r} - \mathbf{r}')/|\mathbf{r} - \mathbf{r}'|^3\): this kernel is the gradient \(-\nabla(1/|\mathbf{r}-\mathbf{r}'|)\), and the curl of a gradient is zero. Both terms vanish, so \(\nabla\cdot d\mathbf{B} = 0\); summing over the whole current distribution gives \(\nabla \cdot \mathbf{B} = 0\) everywhere.
Comparison with Electrostatics
In electrostatics, Gauss's law states:
Here, \(\rho\) is the electric charge density. If \(\rho\) is non-zero, electric field lines can begin or end. This allows for the existence of electric monopoles (isolated charges). In contrast, the magnetic analogue has no source term. There is no magnetic charge density \(\rho_m\) such that \(\nabla \cdot \mathbf{B} = \mu_0 \rho_m\). The absence of such a term is what we mean by "no magnetic monopoles." This asymmetry is one of the key differences between electric and magnetic fields in classical electromagnetism. It implies that magnetic fields are always solenoidal (divergence-free), whereas electric fields are generally not.
The derivation
Absence of Magnetic Monopoles
The magnetostatic field produced by any bounded, steady current distribution through the Biot–Savart law is divergence-free everywhere: \( \nabla \cdot \mathbf{B} = 0 \) identically. Equivalently, the net magnetic flux through every closed surface vanishes, so magnetic field lines never begin or end, and no isolated magnetic charge (monopole) can act as a source of \( \mathbf{B} \).
A common misconception is that \(\nabla \cdot \mathbf{B} = 0\) implies \(\mathbf{B} = 0\). This is false. A field can have zero divergence but non-zero magnitude. For example, a uniform magnetic field \(\mathbf{B} = B_0 \hat{\mathbf{x}}\) has \(\nabla \cdot \mathbf{B} = 0\) but \(\mathbf{B} \neq 0\). The condition only restricts the *net flux*, not the local strength. Another subtle point is that while \(\nabla \cdot \mathbf{B} = 0\) holds for steady currents, it also holds for time-varying fields in full Maxwell's equations. The absence of magnetic monopoles is a fundamental law of nature, not just a magnetostatic approximation. C
Worked example
Problem. Consider a long, straight wire carrying a steady current \(I = 5.0\ \mathrm{A}\). Calculate the magnetic flux through a rectangular loop of dimensions \(a = 0.10\ \mathrm{m}\) and \(b = 0.20\ \mathrm{m}\), where the side of length \(b\) is parallel to the wire and the nearest side is at a distance \(d = 0.05\ \mathrm{m}\) from the wire. The wire lies in the plane of the loop.
- Recall that the magnetic field at a distance \(r\) from a long straight wire is \(B(r) = \frac{\mu_0 I}{2\pi r}\), directed azimuthally.
- Set up the flux integral. Let the wire lie along the \(z\)-axis and the loop in the \(xz\)-plane, its sides of length \(b\) parallel to the wire. The distance \(r\) varies from \(d\) to \(d+a\) across the width of the loop. The height of the loop is \(b\). The area element is \(dA = b\, dr\). The field is perpendicular to the plane of the loop, i.e. parallel to the area vector, so \(\mathbf{B} \cdot d\mathbf{A} = B(r)\, b\, dr\).
- Integrate: \(\Phi_B = \int_{d}^{d+a} \frac{\mu_0 I}{2\pi r} b\, dr = \frac{\mu_0 I b}{2\pi} \ln\left(\frac{d+a}{d}\right)\).
- Substitute values: \(\mu_0 = 4\pi \times 10^{-7}\ \mathrm{T\cdot m/A}\), \(I = 5.0\ \mathrm{A}\), \(b = 0.20\ \mathrm{m}\), \(d = 0.05\ \mathrm{m}\), \(a = 0.10\ \mathrm{m}\).
- Calculate: \(\Phi_B = \frac{(4\pi \times 10^{-7})(5.0)(0.20)}{2\pi} \ln\left(\frac{0.15}{0.05}\right) = (2 \times 10^{-7})(1.0) \ln(3) = 2 \times 10^{-7} \times 1.0986 \approx 2.20 \times 10^{-7}\ \mathrm{Wb}\).
Units check. \(\mu_0\) has units \(\mathrm{T\cdot m/A}\). \(I\) is \(\mathrm{A}\). \(b\) is \(\mathrm{m}\). The product \(\mu_0 I b\) has units \(\mathrm{T\cdot m^2}\). Since \(\mathrm{T} = \mathrm{Wb/m^2}\), the units are \(\mathrm{Wb}\). The logarithm is dimensionless. The result is in webers, which is correct for magnetic flux.
Three quick tests
- Is it possible for the magnetic field to be non-zero at a point while \(\nabla \cdot \mathbf{B} = 0\)?
Answer
Yes. A uniform magnetic field has zero divergence but non-zero magnitude. The divergence measures net flux, not local strength. - What is the magnetic flux through any closed surface in a region with no magnetic monopoles?
Answer
Zero. By the divergence theorem, \(\oint \mathbf{B} \cdot d\mathbf{A} = \int \nabla \cdot \mathbf{B}\, dV = 0\). - How does Gauss's law for magnetism differ from Gauss's law for electricity?
Answer
Gauss's law for electricity has a source term \(\rho/\epsilon_0\), allowing field lines to begin/end on charges. Gauss's law for magnetism has no source term, implying field lines form closed loops.
Problem set for PU-102 →
Each derivation in this unit ends with five graded problems with full solutions.
Lecture notes drafted with a local model and checked line by line by the editor; every number in the worked example was recomputed.