# Ampere's law of circular path when “bulging” out The picture shows a use of Ampere's law. A circular path is chosen.

$$\oint \vec B \bullet \mathrm{d}\vec l=\mu_0 I_{encl}$$

When using Ampere's law we are talking about the current enclosed. That means, the current through the surface enclosed by the path.

The text to the picture says:

For the plane circular area bounded by the circle, $I_{encl}$ is just the current $i_C$ in the left conductor. But the surface that bulges out to the right is bounded by the same circle, and the current through that surface is zero. So $\oint \vec B \bullet \mathrm{d} \vec l$ is equal to $\mu_0 I_{encl}$, and at the same time it is equal to zero! This is a clear contradiction.

(The topic is displacement current.)

I am confused of why they can simply let the area (the plane surface enclosed) bulge out like this. This means that the total current through any surfaces bounded by the same path must always be the same.

In the derivation earlier in the book of Ampere's law, only a plane surface was considered. What is the explanation that Ampere's law still applies when finding the line integral, nomatter the enclosed surface's shape in space?

Your book is absolutely correct. The root reason behind this is Stokes's theorem.

In differential form, the static version of Ampere's law would be written $$\nabla \times \vec{B} = \mu_0 \vec{J},$$ where $\vec{J}$ is the current density (per unit area).

Stokes's theorem is that for any surface bounded by a closed loop, we can write for any arbitrary vector field $\vec{A}\$ that: $$\oint \vec{A} \cdot d\vec{l} = \int (\nabla \times \vec{A}) \cdot d\vec{S},$$ where $d\vec{l}$ is a line element and $d\vec{S}$ is a surface element.

Hence the integral of the LHS of Ampere's law in differential form over a surface is equal to the closed line integral of the B-field around a loop that bounds that surface. Integrating the RHS over the same area gives you the current flowing through it.

The way it can be (sort) of proved is to imagine a little square. You can evaluate the line integral around this square as the sum of 4 separate integrals. It is easy to show that the integral of the curl of the B-field over the surface of the square is equal to sum of the 4 separate line integrals:

e.g. for a square of side $a$ in the $x,y$ plane, with $d\vec{S}=dx\ dy\ \vec{k}$ ($\vec{i},\vec{j},\vec{k}$ are Cartesian unit vectors), we can show that

$$\int (\nabla \times \vec{B})\cdot d\vec{S} = \int_{x=0}^{a} B_x(x,0,0)\ dx + \int^{a}_{y=0} B_y(a,y,0)\ dy + \int^{0}_{x=a} B_x(x,a,0)\ dx + \int^{0}_{y=a} B_y(0,y,0)\ dy$$

But the LHS is the summed 4 line integrals that make up the closed line integral around the square.

The next step is then to argue (i) that we could have done this with small squares in any plane. (ii) We can make up any surface by adding together lots of infinitesimally small squares. In that case what will happen is that the line integral terms of the sides that adjacent squares have in common will be opposed to each other and will cancel. The only line integral terms that remain will be those which bound the entire surface.

A surface made from lots of small squares. The interior line integral terms cancel at common edges, leaving on the exterior line integral that bounds the entire surface. The explanation of this is enclosed in Stoke's theorem. In the most general formulation, Stokes theorem asserts that $$\oint_{\partial\Omega}\alpha = \int_\Omega\text d\alpha$$ where $\partial\Omega$ is the boundary of the cycle $\Omega$ and $\text d\alpha$ is the exterior derivative of the form $\alpha$.

In the case of electromagnetism this specialises to $$\oint_{\partial S} \mathbf B\cdot\text d\mathbf l = \int_S\nabla\times\mathbf B\cdot\hat{\mathbf n}\ \text dS,$$ where $S$ is any surface with boundary and $\partial S$ is its boundary, which is a closed path. Now by Maxwell's equations, $\nabla\times\mathbf B = \mathbf J$, and the RHS then becomes the total current flowing across $S$.