[Physics] Using Ampere’s Law for a Solenoid

electromagnetism

solenoid
(source: gsu.edu)

To calculate the magnetic field, a rectangle amperian loop was drawn, and since the sides of the rectangle are perpendicular to the magnetic field, and the top is too far away to have any field lines cross it, only BL makes a contribution.

equation
(source: gsu.edu)

I don't understand why this magnetic field is only contained within the solenoid. Shouldn't the magnetic field at any point on the amperian loop equal μnI, according to Ampere's law?

Best Answer

Solenoids of finite length do have a non-zero magnetic field outside. As the length increases, this magnetic field is significantly smaller than the magnetic field inside the solenoid. An ideal solenoid has infinite length and this magnetic field is zero. One is usually dealing with this idealisation. This is similar to assuming that there is no electric field outside a parallel plate capacitor. It is a fun (not necessarily easy) problem to estimate the ratio of the interior and exterior magnetic fields for a finite solenoid.