Ampère's Law

If electrostatics has Gauss's law, magnetostatics has Ampère's law — the line integral of B around any closed loop just gives μ₀i_in, no matter the path!

Today we’re going to learn about Ampère’s law hahahaha

To say it up front: if electrostatics has Gauss’s law, then magnetostatics has Ampère’s law hehe^^

Cross-section of a straight wire carrying current out of the page, with the perpendicular distance from the wire marked

A current $i$ is flowing through an infinitely long wire poking out through the monitor. The magnetic field at a distance $s$ away, we found that in the previous post, right??? With the Biot-Savart law?!?!!

At a point to the right of the wire, the magnetic field points tangentially around the wire

It forms like this, boom~ right???? I’ll skip the calculation we did before and just write the result.

Equation from the original notes

A circular integration contour centered on the wire, with counterclockwise tangential magnetic-field arrows

Adding up the field around a circle

From here on it’s important hahaha, okay okay okay okay okay. At every point a distance $s$ away, the magnetic field will be like the above, right??? Ahh~~~ so I’m going to add up aaaall the magnetic fields at the points of radius $s$.

Equation from the original notes

Huh???? What the???

Then let’s also check an infinitely long wire that doesn’t pass through the center of the circle.

A circular integration contour with the current-carrying wire displaced from its center

Like this case:

Equation from the original notes

Of course this would be the same, right?

But how do I go around that circle and add this up…

An off-center current inside a circular contour, with magnetic-field arrows whose directions and magnitudes vary along the contour

Ah, first, looking at it qualitatively: on the part of the curve close to the wire, big~ $B$’s get added, but the integration interval is short, and far from the wire, small $B$’s get added but the integration interval is long. Anyway, it comes out the same as when the wire is at the center of the circle, so in this case too:

Equation from the original notes

Ampère’s law

So what I want to say is, you can find the line integral $\oint \vec B\cdot d\vec l$ by using, as a yardstick, the (constant current $i$, infinitely long) wire that passes through that closed curve. Namely

Equation from the original notes

The current that passes through!! is what!!! you need to look at to figure it out.

Actually, this and Gauss’s law in electrostatics

Equation from the original notes

are really very similar, aren’t they?

Now, in Gauss’s law we called the closed surface enclosing the charge the Gaussian surface, right? Here, the curve enclosing the current that passes through is called the Amperian loop^^

Alright, let’s follow that equation of Ampère’s law a bit further.

Equation from the original notes

Equation from the original notes

Divergence of B

Oho, then let’s look at divergence $\vec B$ too!!! Let’s just slap the del operator ($\nabla$) onto $\vec B$! First I’ll express $\vec B$ in terms of $\vec J$!! How??? Like this: $i\,d\vec l=\vec J\,d\tau$! And if we slap the del operator on that

Equation from the original notes

This is what we get! But since we introduced the primed coordinate system, we need to clean this up first. The $\vec B$ at some point is determined by the $\vec J$ at another point. So what I’m saying is, the variables of the $\vec B$ function and the variables of the $\vec J$ function are different. Because the $\vec J$ at the point $(x,y,z)$ is not what makes the $\vec B$ at that point.

$\vec B(x,y,z)$ //// $\vec J(x',y',z')$

Since we set it up like this, $\vec\eta=(x-x')\,\hat{\mathbf i}+(y-y')\,\hat{\mathbf j}+(z-z')\,\hat{\mathbf k}$.

Alright, then the volume integral is where we slap an integral on $\vec J$’s variables, right? So $d\tau'=dx'\,dy'\,dz'$. Now let’s do the integral again:

Equation from the original notes

Alright, this means, listen…

Divergence $\vec B$ being 0 is the no-magnetic-charge law in the electromagnetism we are using. Isolated magnetic monopoles have not been experimentally established; this derivation is not a proof that they are impossible.

Can an N pole or an S pole ever exist by itself???

They always come together, right? That’s sort of what it means, apparently.


Heads-up. The figures here are the original notes, slips and all. A few things to watch for:

  • In the derivation of $\nabla\cdot\vec B = 0$, the $\nabla$ in front of the integral and inside it should be the divergence $\nabla\cdot$, and the product rule needs its dots too: $\nabla\cdot\left(\vec J\times\frac{\hat{\eta}}{\eta^2}\right) = \frac{\hat{\eta}}{\eta^2}\cdot(\nabla\times\vec J) - \vec J\cdot\left(\nabla\times\frac{\hat{\eta}}{\eta^2}\right)$. Both terms are zero, so the result $\nabla\cdot\vec B = 0$ stands.

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.