I was thinking about some stuffs while taking a piss… I imagined something in my head without really taking it seriously. Then suddenly BAM!! I realized that actually this thing might work, it turns out that I found another application of the Awesome Technique! Holy sh*t, I felt like it was a piss which would determine the fate of the world.

Here is the problem (actually I made it up after I found the solution):

Most electrodynamics textbooks simply state that the magnetic field outside a solenoid is negligibly small without giving clear reasonings\. How small is negligibly small? We need to know exactly what are the cases where we can still safely neglect the external field of a solenoid! Otherwise when the time comes we may accidentally neglect some important terms!

Okay, let’s welcome our guest star today:

A long solenoid with length , and cross sectional area . Such that .

Our mission is to calculate the magnetic field outside of a solenoid, at a point with a distance from the axis of the solenoid with . And not too close to any of the ends of the solenoid. Because, you know, things get insane there.

Now here is the time when the hero comes in, let’s use special technique! We need to make a bada$$ loop so that the flux through this loop due to the solenoid’s outer field depends only on and . Does such kind of loop really exist?? Indeed there is a way to do that, by combining two current loops. It is kind of hard to describe, so I’ll just show you how it looks like.

The flux through this loop due to the solenoid’s outer field is

Note that there is a component of which is parallel to the loop, but don’t worry about that. Since we already chosen a point where , we can only have field lines with small slopes. Which means that compared to is like an ant compared to an elephant.

On the other hand the awesome loop also produces it’s own magnetic field , we can neglect the field due to the “connecting wires” because they are so tiny. So basically this field is just the difference of magnetic field due to circular loops of radius and . The magnetic field due to one ring only is

The difference of magnetic flux through the whole solenoid due to two such rings with slightly different radius is

Kick out all the constant factors!

Integrate!

The square root of blah blah blah makes me sick, anyone will get tired of seeing this. So let’s take the first order approximation using . But actually we HAVE to do this, because we have used the approximation once when calculating the field due to the ring, we should be consistent. Here we go

Taking the differential

Then using the mutual inductance symmetry relation

Finally we get

This only holds at the points which aren’t near the ends of the solenoid, so is about the same order as . In other words is in the order of . We can check that if then is vanishingly small.

That was seriously cool, I thought we would never be able to calculate solenoid’s outer magnetic field analytically. My computer is about to explode because of the awesomeness.