# Magnetic field at boundary of electromagnet iron core

Assume you have an iron core in the interior of the solenoid. It is well known that the strength of the field should increase by a factor of several hundred inside the solenoid as a result of the iron core.

However, at the boundary between the iron core and the surrounding air, what happens to the magnetic field strength? Does it instantaneously (with respect to position) drop by a factor of several hundred, or is there a gradual drop (so that the magnetic field immediately surrounding the iron core is stronger than in the air outside)?

Solenoid has a core in the shape of a cylinder. When magnetized, such cylinder produces its own magnetic field $$\mathbf B$$, orders of magnitude stronger than the external field due to electric current, but this is apparent mostly near its poles - ends of the cylinder and it is also true inside the core.
This magnetic field of the core is continuous when crossing the pole face disks, but not so when crossing the cylindrical surface of the core such as near the core center. The field just outside the core and above the core center is quite weak, as opposed to the field inside just below the surface, which is strong. So there is a jump in $$\mathbf B$$ when crossing the cylindrical surface.
At the boundary of air and iron core, the following relations hold: $$\vec {n}\cdot(\vec {B_1}-\vec {B_2})=0,\quad [\vec {n},\vec {H_1}-\vec {H_2}]=0$$ $$\vec {n}$$ is normal to the surface of the core. The surface-normal induction component is continuous. The tangential component of the magnetic field is also continuous. In practice, in the case of a cylindrical core and with sufficiently tight winding, the magnetic field induction (measured in Tesla) at the ends will be as in a core. And on the lateral surface of the core (adjacent to the winding), the tangential component $$\vec {B}$$ changes abruptly.