PYQ Vault

HSC Physics · Magnetic Fields due to Electric Current

Ampere's Law, the Solenoid and the Toroid

Ampere's circuital law, how a well chosen loop gives the field of a long wire, a coaxial cable, a long solenoid and a toroid without the Biot-Savart integration, and the formulas μ₀nI and μ₀NI/(2πr).

Why this matters

13 questions. Five were set in board papers: state and explain Ampere's circuital law (2018), obtain the field of a toroid (2023, 2026), find the field at the centre of a long solenoid (2025) and the field of a coaxial cable between and outside its conductors (2026). The textbook adds the use of the law in different cases, the sign of the current through an Amperian loop, the field inside a wire with uniform or varying current density, and the current needed in a toroid.

Concept 1 of 4: Ampere's circuital law

Walk round any closed loop and add up the field along your path. Ampere's law says the total depends only on the current that passes through the loop, not on the loop's shape or on currents outside it. When the currents are arranged with symmetry, you can choose a loop on which the field is the same everywhere, and then the field drops straight out.

Definition

  • Statement: the line integral of the magnetic field round any closed path is μ0\mu_0 times the net current passing through the area bounded by the path: ∮B⃗⋅dl⃗=μ0Ienclosed\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enclosed}.
  • The closed path is called an Amperian loop; it is imaginary and can have any shape.
  • Sign of a current: curl the fingers of the right hand along the direction in which the loop is traversed. A current along the stretched thumb is positive; one opposite to it is negative. Currents outside the loop are not counted.
  • Use: choose a loop on which B⃗\vec{B} has the same size everywhere and is along dl⃗d\vec{l} (or perpendicular to it). Then ∮B⃗⋅dl⃗=B×\oint \vec{B} \cdot d\vec{l} = B \times (length of the loop) and B follows at once.
  • The Biot-Savart law plays the role in magnetism that Coulomb's law plays in electrostatics; Ampere's law plays the role of Gauss's law.
  • Example: a circle of radius rr round a long straight wire gives B(2πr)=μ0IB(2\pi r) = \mu_0 I, so B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}.

Ampere's circuital law

∮B⃗⋅dl⃗=μ0Ienclosed\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enclosed}
  • dl⃗d\vec{l}small length of the Amperian loop, along the direction of travel
  • IenclosedI_{enclosed}net current passing through the loop

Worked example

Four long straight wires run perpendicular to the page. Three of them pass through a closed Amperian loop, carrying 5 A upwards, 3 A downwards and 2 A upwards. The fourth, carrying 4 A, lies outside the loop. Taking upwards as positive, find ∮B⃗⋅dl⃗\oint \vec{B} \cdot d\vec{l} round the loop.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2018 · Q. 6(ii)Easy

Example 1 · Magnetic Fields due to Electric Current · Ampere's Law, Solenoid and Toroid

State and explain Ampere's circuital law.

Reading a zero integral as a zero field

∮B⃗⋅dl⃗=0\oint \vec{B} \cdot d\vec{l} = 0 means the contributions round the loop add to zero. It does not mean B=0B = 0 at each point, unless symmetry makes B the same all round.

Getting the sign of the enclosed current wrong

The sign of each current comes from the right hand rule applied to the direction you go round the loop. Reversing the direction of travel reverses every sign.

Concept 2 of 4: Field of a long wire and a coaxial cable

Draw a circle round the axis of a wire or cable and ask how much current passes through it. Outside a wire that is the whole current; inside, only the part within the circle. In a coaxial cable the inner and outer conductors carry equal and opposite currents, so a circle outside both encloses nothing and the field there is zero.

Definition

  • Take a circle of radius rr about the axis; by symmetry BB is the same all round it and along it, so B(2πr)=μ0IenclosedB(2\pi r) = \mu_0 I_{enclosed}.
  • Outside a long wire: Ienclosed=II_{enclosed} = I, so B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}.
  • Inside a wire of radius aa with uniform current density JJ: Ienclosed=Jπr2=Ir2a2I_{enclosed} = J\pi r^2 = I\dfrac{r^2}{a^2}, so B=μ0Jr2=μ0Ir2πa2B = \dfrac{\mu_0 J r}{2} = \dfrac{\mu_0 I r}{2\pi a^2}. B grows in proportion to rr and is largest at the surface.
  • If JJ varies with rr, find IenclosedI_{enclosed} by adding the current in thin rings of area 2πr dr2\pi r\,dr.
  • Coaxial cable (core radius aa, outer conductor radius bb, equal and opposite currents): for a<r<ba < r < b, B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}; for r>br > b, Ienclosed=I−I=0I_{enclosed} = I - I = 0, so B=0B = 0. The field lines are circles about the axis.

Long wire and coaxial cable

B=μ0I2πr (outside),B=μ0Ir2πa2 (inside, uniform J)B = \frac{\mu_0 I}{2\pi r} \ (\text{outside}), \qquad B = \frac{\mu_0 I r}{2\pi a^2} \ (\text{inside, uniform } J)
  • rrradius of the Amperian circle, from the axis
  • aaradius of the wire
  • JJcurrent density, current per unit area

Worked example

A long straight wire of radius 2 mm carries a current of 10 A spread uniformly over its cross section. Find the magnetic field at 1 mm and at 4 mm from its axis.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · February · Q. 25Hard

Example 2 · Magnetic Fields due to Electric Current · Ampere's Law, Solenoid and Toroid

A coaxial cable consists of a central conducting core wire of radius 'a' and a coaxial cylindrical outer conductor of radius 'b'. The two conductors carry equal current in opposite directions, in and out of the plane of the paper. What will be the magnitude of magnetic induction B for (i) a<r<ba < r < b and (ii) b<rb < r ? What will be its direction? where 'r' is the radius of the Ampere's circular loop.

Using the whole current inside the wire

A circle inside the wire encloses only part of the current, Ir2/a2I r^2/a^2 for a uniform current. Using all of I gives the outside formula at a point where it does not apply.

Giving a direction where there is no field

Outside a coaxial cable the field is zero, so there is no direction to give. Between the conductors, give the direction as circles about the axis, by the right hand thumb rule.

Concept 3 of 4: Field of a long solenoid

A long, closely wound solenoid packs many turns side by side. Inside, their fields add up along the axis into a strong, even field; outside, they nearly cancel. So a rectangular loop with one side inside gets its whole line integral from that one side, and the field is just μ0 times the current per metre of winding.

Definition

Derivation outline (Ampere's law):

  • Take a rectangular Amperian loop with one side of length LL inside the solenoid, parallel to the axis, and the opposite side outside.
  • Outside an ideal solenoid B=0B = 0; on the two short sides B⃗\vec{B} is perpendicular to dl⃗d\vec{l}. So ∮B⃗⋅dl⃗=BL\oint \vec{B} \cdot d\vec{l} = BL.
  • With nn turns per unit length, the loop encloses nLnL turns, each carrying II: Ienclosed=nLII_{enclosed} = nLI.
  • BL=μ0nLIBL = \mu_0 nLI, so B=μ0nIB = \mu_0 nI, uniform inside and along the axis. n=N/(length)n = N/(\text{length}).
  • The diameter does not appear. A real solenoid of finite length has a uniform, strong field near its centre and a weaker one near its ends.

Long solenoid

B=μ0nI,n=NlengthB = \mu_0 n I, \qquad n = \frac{N}{\text{length}}
  • nnnumber of turns per metre of length
  • IIcurrent in the winding

Worked example

A solenoid 60 cm long has 600 turns and carries a current of 2.5 A. Find the magnetic field inside it.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 26Easy

Example 3 · Magnetic Fields due to Electric Current · Ampere's Law, Solenoid and Toroid

A solenoid of length π\pi m and 5 cm in diameter has a winding of 1000 turns and carries a current of 5A. Calculate the magnetic field at its centre along the axis.

Using N for n

nn is turns per metre, NN divided by the length in metres. Putting the total N into μ0nI\mu_0 nI makes the answer wrong unless the solenoid is exactly 1 m long.

Bringing the diameter into the answer

A question may give the diameter only to show the solenoid is long. It does not enter B=μ0nIB = \mu_0 nI.

Concept 4 of 4: Field of a toroid

A toroid is a solenoid bent round into a ring, like the tube inside a tyre. Its field lines run round inside the ring as circles and never leave it. A circle drawn inside the ring threads every turn once, so all N turns count. A circle drawn in the open middle threads none, and one drawn outside threads each turn twice in opposite directions, so the field there is zero.

Definition

Derivation outline (Ampere's law):

  • Take as the Amperian loop a circle of radius rr inside the core, concentric with the toroid. By symmetry BB is the same all round it and along it: ∮B⃗⋅dl⃗=B(2πr)\oint \vec{B} \cdot d\vec{l} = B(2\pi r).
  • Each of the NN turns passes through this circle once, so Ienclosed=NII_{enclosed} = NI.
  • B(2πr)=μ0NIB(2\pi r) = \mu_0 NI, so B=μ0NI2πrB = \dfrac{\mu_0 NI}{2\pi r}.
  • With n=N2πrn = \dfrac{N}{2\pi r} turns per unit length, B=μ0nIB = \mu_0 nI, as for a long solenoid.
  • B∝1/rB \propto 1/r, so unlike a solenoid the field is not the same across the cross section of the core.
  • In the open space inside the ring and outside the toroid, Ienclosed=0I_{enclosed} = 0, so B=0B = 0.

Toroid

B=μ0NI2πrB = \frac{\mu_0 N I}{2\pi r}
  • NNtotal number of turns
  • rrradius of the circle inside the core (the mean radius)

Worked example

A toroid of mean radius 20 cm has 1500 turns and carries a current of 0.8 A. Find the magnetic field inside its core along the mean circle.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · June · Q. 31(i)Moderate

Example 4 · Magnetic Fields due to Electric Current · Ampere's Law, Solenoid and Toroid

Obtain an expression for magnetic induction of a toroid of N no. of turns about an axis passing through its centre and perpendicular to plane.

Taking the field of a toroid as uniform

B=μ0NI/(2πr)B = \mu_0 NI/(2\pi r) changes with r across the core. The field is uniform only along one circle of the core.

A derivation with no Amperian loop named

Say which loop you chose (the circle of radius r inside the core), why B is constant on it, and why Ienclosed=NII_{enclosed} = NI. The formula alone earns only a small part of the marks.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

  • Ampere's circuital law

    Ampere's circuital law

    ∮B⃗⋅dl⃗=μ0Ienclosed\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enclosed}
  • Field of a long wire and a coaxial cable

    Long wire and coaxial cable

    B=μ0I2πr (outside),B=μ0Ir2πa2 (inside, uniform J)B = \frac{\mu_0 I}{2\pi r} \ (\text{outside}), \qquad B = \frac{\mu_0 I r}{2\pi a^2} \ (\text{inside, uniform } J)
  • Field of a long solenoid

    Long solenoid

    B=μ0nI,n=NlengthB = \mu_0 n I, \qquad n = \frac{N}{\text{length}}
  • Field of a toroid

    Toroid

    B=μ0NI2πrB = \frac{\mu_0 N I}{2\pi r}

Watch out for (8)

Test yourself on Magnetic Fields due to Electric Current

9 past MH HSC 12 questions from this chapter, timed at 14 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.