A solenoid is best understood as a coil of wire, which may or may not have a magnetic core inside. They find considerable use as inductors and in turn as transformers, which are a foundational electrical device.

Let’s define some important parameters. is the total number of turns for the entire coil. is the number of turns per unit length, and is the total length of the solenoid, such that:

Magnetic field

We usually use Ampère’s law to find the magnetic field for an infinite solenoid. Note that the field will go through the centre of the coil, i.e., for a coil in the direction, the field will be such that:

Our Amperian loop should be set as follows:1 Since the field is only non-zero within the solenoid, the only term that contributes anything in the contour integral is the line segment parallel to the field, such that:

Footnotes

  1. From Introduction to Electrodynamics, by David J. Griffiths.