01 / 21
\(N\)
\(S\)

Gauss's Law for
Magnetism

Discover why magnetic monopoles don't exist and how every magnetic field line that enters a closed surface must also leave it: \(\oint \vec{B} \cdot d\vec{A} = 0\).

Physics 2

What Is Magnetic Flux?

Before we state Gauss's law for magnetism, we need the concept of magnetic flux. For a surface \(A\), the magnetic flux is defined as:

Think of flux as counting field lines piercing a surface. Lines going "out" contribute positive flux; lines going "in" contribute negative flux.

Visualizing Flux Through a Surface

Closed Surface S Enters (−) Exits (+) Every line in = every line out

Why Does This Matter?

No Monopoles
Unlike electric charges, isolated north or south magnetic poles have never been observed.
Maxwell's Equations
Gauss's law for magnetism is one of the four Maxwell's equations that govern all of electromagnetism.
Practical Use
It constrains how magnetic fields behave, enabling predictions in motors, MRI machines, and electromagnetic wave theory.

The Law: \(\oint \vec{B} \cdot d\vec{A} = 0\)

1
\(\oint_S\) means integrate over an entire closed surface (a "Gaussian surface").
2
\(\vec{B}\) is the magnetic field vector at each point on the surface.
3
\(d\vec{A}\) is the outward-pointing area element: magnitude \(dA\), direction along the outward normal \(\hat{n}\).
4
\(= 0\) means no net magnetic "charge" (monopole) is ever enclosed.

Bar Magnet Inside a Gaussian Surface

\(S\)
\(N\)
Gaussian Surface S Field lines

Electric vs. Magnetic Gauss's Law

Gauss's Law (Electric) Gauss's Law (Magnetic)
Equation \(\oint \vec{E} \cdot d\vec{A} = \frac{q_{\text{enc}}}{\varepsilon_0}\) \(\oint \vec{B} \cdot d\vec{A} = 0\)
Right-hand side Can be nonzero Always zero
Source Electric charges (monopoles exist) No magnetic monopoles
Field lines Begin/end on charges Always form closed loops
Net flux Proportional to enclosed charge Zero for every closed surface

Dipoles vs. Monopoles

Electric Charges + − Can be isolated Magnetic Dipole
\(N\)
\(S\)
Cannot be isolated Cut it: you get two smaller dipoles

The Differential Form

Using the divergence theorem, we can rewrite the integral law as a local (point-by-point) statement:

Integral Form
\(\oint \vec{B} \cdot d\vec{A} = 0\)
Global statement over any closed surface.
Differential Form
\(\nabla \cdot \vec{B} = 0\)
Local statement valid at every point in space.

Both forms are equivalent: no sources or sinks of magnetic field exist anywhere.

How to Apply the Law

1
Choose a closed Gaussian surface. It can be any shape: sphere, cube, cylinder. It must be a completely closed surface.
2
Identify all faces or sections. Break the surface into parts where \(\vec{B}\) has a simple relationship to \(d\vec{A}\).
3
Compute flux through each face. Evaluate \(\int \vec{B} \cdot d\vec{A}\) on each section. Remember \(d\vec{A}\) points outward.
4
Sum all contributions. The total must equal zero. If given all but one face's flux, solve for the unknown.

Example 1: Uniform Field Through a Cube

A uniform magnetic field \(\vec{B} = B_0\,\hat{x}\) passes through a cube of side \(L\). Find the net magnetic flux through the cube.

\(\vec{B}\)
Side L Left face Right face

Example 2: Finding Unknown Flux

A closed surface has five faces. The magnetic flux through four of them is measured as: \(+3\), \(-5\), \(+7\), and \(-2\) Wb. What is the flux through the fifth face?

Example 3: Cylindrical Surface Around a Wire

A long straight wire carries current \(I\). We place a cylindrical Gaussian surface of radius \(r\) and length \(\ell\) centered on the wire. What is the net magnetic flux through the cylinder?

\(I\)
\(\vec{B}\) (circles wire) \(r\) Gaussian cylinder

Breaking a Magnet: Still No Monopoles

Original
\(N\)
\(S\)
↓ Break
\(N\)
\(S\)
\(N\)
\(S\)
Two complete dipoles Hypothetical Monopole?
\(N\) only
✕ Never observed Would violate
\(\nabla \cdot \vec{B} = 0\)

Common Mistakes

✕ Confusing the Two Gauss's Laws
Students sometimes incorrectly write \(\oint \vec{B} \cdot d\vec{A} = \mu_0 q_m\), analogous to the electric law. The correct value is always zero.
✕ Using Open Surfaces
The law requires a closed surface. Flux through a single flat disk is NOT guaranteed to be zero.
✕ Forgetting Outward Normal
\(d\vec{A}\) must always point outward. Getting the sign wrong flips the flux contribution of each face.

Summary: Key Takeaways

Concept Details
Integral form \(\oint \vec{B} \cdot d\vec{A} = 0\)
Differential form \(\nabla \cdot \vec{B} = 0\)
Physical meaning No magnetic monopoles exist
Field line behavior Always form closed loops
Surface requirement Must be closed (no holes)
Problem-solving use Constrains flux: if you know all but one face, solve for the unknown

Question 1 of 5

What does Gauss's law for magnetism, \(\oint \vec{B} \cdot d\vec{A} = 0\), tell us about the existence of magnetic monopoles?

Question 2 of 5

A closed surface encloses a bar magnet. The net magnetic flux through the surface is:

Question 3 of 5

A closed surface has six faces. The magnetic flux through five of them is: \(+4, -6, +2, +3, -1\) Wb. What is the flux through the sixth face?

Question 4 of 5

Which of the following is the differential (local) form of Gauss's law for magnetism?

Question 5 of 5

If you break a bar magnet in half, what happens?