---
title: Maxwell's equations in integral form, revisited
heading: The four laws as statements about flux through closed surfaces and circulation around closed loops, Gauss's laws for E and B, Faraday's law of induction, Ampère's law with the displacement current, and why a loop's circulation depends only on what passes through it
eyebrow: D8 · Lesson 1 · Maxwell's equations in integral form
xp: 40
---

::: hook
Physics II (B2 to B7) built Maxwell's four equations one experiment at a time. This course puts them to work: deriving waves, boundary conditions, transmission lines and antennas from them. It starts by restating them in the form that makes them measurable, as totals over surfaces and around loops. Each says that some total, the flux out of a closed surface or the circulation around a closed loop, equals what's inside, whatever the shape. That shape-independence is what the sim below lets you test.
:::

::: play
- The magnetic field around a long straight wire, seen end-on, and a circular loop of radius r centered a distance a from the wire.
- The readout is the field's **circulation** around the loop, $\oint\mathbf B\cdot d\mathbf l$, in units of $\mu_0I$.
- Wherever the loop sits and whatever its size, the circulation is $\mu_0I$ if the loop encloses the wire and exactly zero if it doesn't: Ampère's law.
:::

```sim plot
view: flow
x: x = -3..3
y: y = -2..2
slider: a = -2.5..2.5 step 0.05 = 0.5
slider: r = 0.2..1.5 step 0.05 = 1
dx: -y/(x^2 + y^2)/(2*pi)
dy: x/(x^2 + y^2)/(2*pi)
heads: on
dot: 0, 0 | label: wire, current out of the page
path: a + r*cos(u), r*sin(u) | over: u = 0..2*pi | work: W | label: loop
readout: circulation, in units of μ₀I = W | digits: 4
```

::: predict
## A long wire carries 10 A. How strong is its magnetic field 5 cm away?

- [ ] 4 µT
- [x] 40 µT
- [ ] 400 µT
- [ ] 4 mT

::: reveal
By symmetry the field is the same all around a circle centered on the wire, so Ampère's law gives $B \times 2\pi r = \mu_0I$ and $B = \mu_0I/2\pi r$ = 4π × 10⁻⁷ × 10/(2π × 0.05) = 4 × 10⁻⁵ T, 40 µT: comparable to the Earth's field, which is why a compass near a power cable can mislead.
:::
:::

::: nameit
## The four laws

$$\oint_S\mathbf E\cdot d\mathbf A = \frac{Q_\text{enc}}{\varepsilon_0} \qquad \text{(Gauss, electric)}$$

$$\oint_S\mathbf B\cdot d\mathbf A = 0 \qquad \text{(Gauss, magnetic: no monopoles)}$$

$$\oint_C\mathbf E\cdot d\mathbf l = -\frac{d}{dt}\int_S\mathbf B\cdot d\mathbf A \qquad \text{(Faraday)}$$

$$\oint_C\mathbf B\cdot d\mathbf l = \mu_0I_\text{enc} + \mu_0\varepsilon_0\frac{d}{dt}\int_S\mathbf E\cdot d\mathbf A \qquad \text{(Ampère–Maxwell)}$$

## What they say

- The electric flux out of any closed surface counts the charge inside it.
- Magnetic field lines never begin or end.
- A changing magnetic flux through a loop drives a circulating electric field around it: the EMF of every generator and transformer.
- A current, or a changing electric flux, through a loop drives a circulating magnetic field around it. Maxwell's **displacement current** $\varepsilon_0\,d\Phi_E/dt$ keeps Ampère's law consistent across the gap in a charging capacitor, where no charge flows, and it's what makes electromagnetic waves possible (lesson 4).

## Using them

With enough symmetry the integrals collapse to products: a field constant over a sphere, a cylinder or a circle. Without symmetry the laws still hold but no longer give the field directly; lesson 2 turns them into statements at each point that can be solved anywhere.
:::

::: example
## A 1 nC charge sits 10 cm from a point. What's the field there? A closed surface around it has an electric flux of 1000 V·m: what charge does it enclose?

::: solution
1. **Field from Coulomb's law.**
   $$\begin{aligned} E &= \frac{q}{4\pi\varepsilon_0 r^2} \\ &= \frac{10^{-9}}{4\pi \times 8.854 \times 10^{-12} \times 0.01} \\ &= 899\ \text{V/m} \end{aligned}$$
2. **Charge from the flux.** By Gauss's law the flux encloses
   $$\begin{aligned} Q &= \varepsilon_0\Phi_E \\ &= 8.854 \times 10^{-12} \times 1000 \\ &= 8.85\ \text{nC} \end{aligned}$$

**Answer:** the field is 899 V/m, and the surface encloses 8.85 nC.
:::
:::

::: example
## A 100-turn coil of 10 cm² sees its field fall by 0.5 T in 10 ms. What EMF does it produce? A 1 nF capacitor's voltage rises at 1 V/µs: what displacement current crosses its gap?

::: solution
1. **EMF from Faraday's law.**
   $$\begin{aligned} \text{EMF} &= NA\,\frac{\Delta B}{\Delta t} \\ &= 100 \times 10^{-3} \times \frac{0.5}{0.01} \\ &= 5\ \text{V} \end{aligned}$$
2. **Displacement current.** It equals the conduction current in the wires:
   $$\begin{aligned} I_d &= C\,\frac{dV}{dt} \\ &= 10^{-9} \times 10^{6} \\ &= 1\ \text{mA} \end{aligned}$$

**Answer:** the coil produces 5 V, and 1 mA of displacement current crosses the capacitor's gap.
:::
:::

::: example
## A long straight wire carries 10 A. What magnetic field does Ampère's law give 5 cm away?

::: solution
1. **Ampère's law around a circle.** Around a circle of radius r the field is constant, so
   $$B \cdot 2\pi r = \mu_0 I$$
2. **Solve for B.**
   $$\begin{aligned} B &= \frac{\mu_0 I}{2\pi r} \\ &= \frac{4\pi \times 10^{-7} \times 10}{2\pi \times 0.05} \\ &= 40\ \mu\text{T} \end{aligned}$$
3. **Compare with the Earth's field.** That's comparable to the Earth's field, which is why a compass near a current-carrying cable points the wrong way.

**Answer:** the field 5 cm from the wire is 40 µT.
:::
:::

::: check
given: I = 1 | 10 | 100; r = 1 | 5 | 20
answer: 2e-7*I/(r*1e-2)*1e6
unit: µT
tolerance: 0.5%

## A long wire carries {I} A. What's the magnetic field {r} cm from it?

::: right
Right. $\mu_0I/2\pi r$ = {answer} µT.
:::

::: misses
- [4e-7*pi*I/(r*1e-2)*1e6] Divide by the circle's circumference, 2πr.
- [any] Not yet. Ampère's law around a circle.
:::
:::

::: check
given: P = 100 | 1000 | 50000
answer: 8.8541878128e-12*P*1e9
unit: nC
tolerance: 0.5%

## The electric flux out of a closed surface is {P} V·m. What charge is inside?

::: right
Right. $\varepsilon_0\Phi_E$ = {answer} nC.
:::

::: misses
- [P/8.8541878128e-12*1e9] Multiply by $\varepsilon_0$: Gauss's law is $\Phi_E = Q/\varepsilon_0$.
- [any] Not yet. Gauss's law.
:::
:::

::: check
given: N = 10 | 100 | 500; A = 2 | 10 | 50; B = 0.1 | 0.5; t = 1 | 10
answer: N*A*1e-4*B/(t*1e-3)
unit: V
tolerance: 0.5%

## A {N}-turn coil of {A} cm² sees the field through it change by {B} T in {t} ms. What EMF does it develop?

::: right
Right. $NA\,\Delta B/\Delta t$ = {answer} V.
:::

::: misses
- [A*1e-4*B/(t*1e-3)] Each turn adds its own EMF: multiply by N.
- [any] Not yet. Faraday's law.
:::
:::

::: check
given: C = 0.1 | 1 | 10; s = 1 | 100 | 1000
answer: C*1e-9*s*1e6*1000
unit: mA
tolerance: 0.5%

## A {C} nF capacitor's voltage changes at {s} V/µs. What displacement current crosses its gap?

::: right
Right. $C\,dV/dt$ = {answer} mA.
:::

::: misses
- [any] Not yet. $\varepsilon_0\,d\Phi_E/dt$, which for a capacitor is $C\,dV/dt$.
:::
:::

::: check
kind: parts
given: I = 1 | 10 | 100; r = 1 | 5 | 20

## A long wire carries {I} A.

::: part
answer: 2e-7*I/(r/100)*1e6
unit: µT
tolerance: 0.5%

### What field does it make {r} cm away?

::: misses
- [any] $\mu_0I/(2\pi r)$.
:::
:::

::: part
answer: 2e-7*I/(2*r/100)*1e6
unit: µT
tolerance: 0.5%

### And twice as far?

::: misses
- [any] Half: B falls as 1/r.
:::
:::
:::

::: check
kind: parts
given: q = 1 | 10; r = 5 | 10 | 50

## A charge of {q} nC sits alone.

::: part
answer: 8.988e9*q*1e-9/(r/100)^2
unit: V/m
tolerance: 0.5%

### What field does it make {r} cm away?

::: misses
- [any] $q/(4\pi\varepsilon_0r^2)$.
:::
:::

::: part
answer: q*1e-9/8.854e-12
unit: V·m
tolerance: 0.5%

### What electric flux passes through any closed surface around it?

::: misses
- [any] $q/\varepsilon_0$.
:::
:::
:::

::: check
kind: parts
given: N = 10 | 100 | 500; A = 1 | 10 | 50; d = 0.1 | 0.5; t = 1 | 10

## A coil of {N} turns and {A} cm² sees its field change by {d} T in {t} ms.

::: part
answer: N*A*1e-4*d/(t/1000)
unit: V
tolerance: 0.5%

### What average EMF does it produce?

::: misses
- [any] $N A\,\Delta B/\Delta t$.
:::
:::

::: part
answer: A*1e-4*d*1000
unit: mWb
tolerance: 0.5%

### What is the change in flux through one turn?

::: misses
- [any] $A\Delta B$.
:::
:::
:::

::: explain
## Why does the circulation of B around a loop not depend on the loop's shape?

::: model
Ampère's law says the circulation of the magnetic field around any closed loop equals μ₀ times the current threading the loop, plus the displacement-current term. The field from a wire falls off as one over the distance, while the length of a loop's path at that distance grows in proportion, so stretching or moving a loop changes where it samples the field but not the total: the parts that go farther away pick up a weaker field over a proportionally longer path. If the loop encloses no current, the contributions going around one way exactly cancel those coming back, giving zero. Only what passes through the loop matters, which is what makes the integral laws so useful.
:::
:::

::: practice

::: check
given: I = 0.01 | 1000; r = 0.1 | 100
answer: 2e-7*I/(r*1e-2)*1e6
unit: µT
tolerance: 0.5%

## B from {I} A at {r} cm?

::: misses
- [any] $\mu_0I/2\pi r$.
:::
:::

::: check
given: N = 1 | 1000; A = 0.5 | 100; B = 0.01 | 2; t = 0.1 | 100
answer: N*A*1e-4*B/(t*1e-3)
unit: V
tolerance: 0.5%

## EMF: {N} turns, {A} cm², ΔB = {B} T in {t} ms?

::: misses
- [any] $NA\,\Delta B/\Delta t$.
:::
:::
:::
