Magnetic Field

Build an Ampere path with one side inside the cylinder parallel to the axis, two sides perpendicular to the axis and the fourth outside again parallel to the axis (like a coil).
Now where is the length of the side inside.
The current passing through the area is , so that .