Ampère's Law (Part 2)
Time to actually solve problems with Ampère's law — because symmetry is your best friend when finding magnetic fields from wires and surface currents!
To really get the concept, there’s nothing quite like actually solving problems! You can prove it a hundred times and still not get it, but the moment you solve a problem~, the concept clicks~ right into place.
If what I said earlier doesn’t quite make sense, just sloooowly follow along with the problems here, and please!!! be sure to solve them again on your own lol
Earlier, we said that if electrostatics has Gauss’s law, then magnetostatics has Ampère’s law, and we learned Ampère’s law. Writing it out once more,

This is how we derived the relation.
Just like Gauss’s law, when there’s ‘symmetry’ you can use it verrry~~! usefully!!! (the keyword is symmetry)
An infinitely long wire
Alright, first let me show you the power of Ampère’s law. When you have to find the magnetic field at a distance $s$ from an infinitely long wire, instead of using the Biot-Savart law, let’s use Ampère’s law.

Just became super duper easy, didn’t it???
Alright, once more: ‘why were we able to use Ampère’s law?’
Because there was symmetry — the magnitude of the magnetic field is the same everywhere at distance $s$!!!
A uniform surface current
Let’s try a problem more applied than this.

Like this, when a surface current $\vec K = K\,\hat x$ flows uniformly on the $xy$-plane, find the magnetic field above the plane!!
Magnetic field from a current…. are you going to use the Biot-Savart law???
Nope~~~ before using that, let’s first check whether there’s symmetry. Why??? Because if I can use Ampère’s law, I wanna use it!

What’s drawn in blue there is the magnetic field each individual bit of surface current density creates. Now since it’s an infinite plane, everything at the same height will be the same, right!?!? (direction is ←) Alright, there’s symmetry!!!

Like this, let me set up a rectangular Amperian loop, lol. At the points on that loop, the magnitude of the magnetic field is all the same, right??
Now when we do the line integral aaall~~ the way around, since it’s a dot product, on the vertical sides it’s 90 degrees so it becomes 0, and what’s left in the line integral is above the plane and below the plane! Well then,

Crazy easy, isn’t it?!?!?! At least it seems easier than the Biot-Savart law lol
The solenoid
One more!!! Solenoid!!! We learned this a lot back in middle and high school too, but! lol Let’s examine it with Ampère’s law.

Find the magnetic field inside and outside a verrry long coil with a constant current $i$ flowing through it. We’ll use the ideal infinitely long solenoid: its outside field is zero. A real finite coil has a small outside field, especially near its ends. Let’s see how the ideal result follows!
First, model a very long, tightly wound coil carrying current $i$, with $n$ turns per unit length. So we can view it as a surface current density $K$ swirling round and round along the cylinder’s circumference.
The blue circular loop encloses no current, right?!?!?! But zero circulation alone does not prove the field is zero. For an infinitely long solenoid, symmetry makes the field axial; an outside rectangular loop makes that axial field constant, and the field vanishing far away fixes the constant to zero.
![]()

This time, to see what the magnetic field is like inside the coil, let’s set up the Amperian loop like the green loop!!!
(To take symmetry into account, up above we set it up as a circle and this time as a rectangle!!!)
Ah~ outside, the field is 0, and on the horizontal sides of the Amperian loop the dot product in the line integral is 0, so all of those vanish and only the magnetic field on the left vertical side is left:


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.