Step 1: Cut up the distribution into pieces B origin: center of the solenoid Step 2: Contribution of one piece one loop: Number of loops per meter: N/L.
Magnetic Field of a Solenoid