A continuous electric current in a current carrying coil is divided into multiple electric current elements. Using the superposition principle and the Biot-Savart’s Law, each discrete element generates its own magnetic field and when it is integrated with each field that produces a resultant field and it is aligned parallel to the axis of the coil.