Question
A long solenoid has turns per unit length. Using Ampere’s circuital law, find the magnetic field inside it.
This is a standard derivation — it appears in CBSE Class 12 boards almost every year (3–5 marks) and is a conceptual foundation for problems in JEE Main.
Solution — Step by Step
We choose a rectangular loop PQRS with side PQ of length lying inside the solenoid (parallel to the axis), and side RS lying outside.
The reason for this shape: we need one side where is uniform and parallel to the path, and one side where (outside an ideal infinite solenoid).
Ampere’s circuital law states:
We split the line integral over all four sides:
- PQ (inside, parallel to axis):
- QR and SP (perpendicular to axis): , so contribution = 0
- RS (outside solenoid): , so contribution = 0
The entire integral reduces to .
The loop encloses a length of the solenoid. With turns per unit length, the number of turns inside the loop is .
Each turn carries current , so the total enclosed current is:
Substituting into Ampere’s law:
The length cancels cleanly — which is expected, since the field inside an ideal solenoid is uniform everywhere.
Why This Works
An ideal solenoid is essentially a stack of circular current loops packed tightly together. The field from adjacent turns partially cancels outside but adds up constructively inside — which is why for a long solenoid. This is the key assumption that makes the Amperian rectangle so powerful here.
The beauty of Ampere’s circuital law is that we don’t need to know the field geometry in detail — we just need to pick a loop where the integral is easy to evaluate. The rectangle works because it exploits the symmetry: the field is uniform and axial inside, and negligible outside.
Notice that depends only on (turns per unit length) and , not on the radius of the solenoid or its total length. A solenoid twice as wide but with the same and gives the same field inside.
Alternative Method
We can also write the formula using total turns and total length :
This form is more useful in numerical problems where total turns and length are given directly (common in JEE Main MCQs). Both are equivalent — use whichever matches the data given.
If the problem gives “number of turns per cm”, convert to per metre before substituting. turns/cm turns/m. Forgetting this unit conversion is a very common error in numericals.
Common Mistake
Many students write the Amperian loop integral as — treating all four sides as contributing each. This is wrong. Only the side inside the solenoid (PQ) contributes. QR and SP are perpendicular to (dot product = 0), and RS is outside where . Always analyse each side separately before adding.
A related error: confusing (turns per unit length) with (total turns). The formula uses . If you accidentally write without dividing by length, your answer will be off by a factor of — and it won’t even have the right units.