Chapter 13 · Magnetic Effects of Current and Magnetism

13.1 The Biot–Savart Law and Ampère's Law

Every electric current is surrounded by a magnetic field. The Biot–Savart law builds that field from tiny current elements, $d\mathbf B=\frac{\mu_0}{4\pi}\frac{I\,d\mathbf l\times\hat{\mathbf r}}{r^2}$; Ampère's law, $\oint\mathbf B\cdot d\mathbf l=\mu_0 I_\text{enc}$, gets it in one line when there is symmetry — $\mu_0I/2\pi r$ beside a long wire, $\mu_0nI$ inside a solenoid.

In 1820 Hans Christian Ørsted noticed that a compass needle placed near a wire swung round whenever a current was switched on in the wire. Until then electricity and magnetism had seemed to be two separate subjects. Ørsted's observation showed that moving charges produce magnetic fields — and within a few months Biot, Savart and Ampère in Paris had measured how the field of a current depends on distance and on the shape of the wire. Every electromagnet, electric motor, loudspeaker, MRI scanner and particle accelerator rests on what they found.

In this section we learn to calculate the magnetic field of a current. The Biot–Savart law works like Coulomb's law: cut the wire into tiny pieces, find the field of each piece and add. We use it for straight wires, circular loops and arcs. Then we meet Ampère's circuital law, the magnetic partner of Gauss's law (§ 11.2): for currents with enough symmetry it gives the field of a long straight wire, a thick wire and a solenoid almost without calculation. The forces that these fields exert on moving charges and on other currents are the subject of § 13.2. We use current from § 12.1 and the vector product from § 2.2.

The magnetic field and the Biot–Savart law

An electric field is defined by the force on a charge at rest. A magnetic field is felt only by charges that move, and the force has an unusual direction: it is perpendicular both to the velocity of the charge and to the field. Experiments show that a charge $q$ moving with velocity $\mathbf v$ at a point where there is a magnetic field feels a force $\mathbf F=q\,\mathbf v\times\mathbf B$. This tells us what $\mathbf B$ is and how to measure it; the consequences of this force are worked out in § 13.2.

📘 Definition 13.1 — Magnetic field

The magnetic field $\mathbf B$ at a point is the vector for which a charge $q$ passing through the point with velocity $\mathbf v$ feels the force $\mathbf F=q\,\mathbf v\times\mathbf B$, of magnitude $F=qvB\sin\theta$, where $\theta$ is the angle between $\mathbf v$ and $\mathbf B$. Its SI unit is the tesla:

$$1\ \text{T}=1\ \frac{\text{N}}{\text{A m}}=1\ \frac{\text{N s}}{\text{C m}},\qquad[\mathbf B]=[\text{MT}^{-2}\text{A}^{-1}].$$

A smaller unit, the gauss, is still met: $1\ \text{G}=10^{-4}\ \text{T}$. Typical sizes: the Earth's field near its surface about $5\times10^{-5}\ \text{T}$; a fridge magnet about $5\ \text{mT}$; a hospital MRI scanner $1.5$–$3\ \text{T}$.

Like the electric field, $\mathbf B$ is drawn with field lines: the tangent gives the direction of $\mathbf B$ and their crowding its strength. Magnetic field lines of a current never start or stop — they form closed loops round the current. For a straight wire they are circles centred on the wire. Their sense is given by the right-hand thumb rule: grip the wire with the right hand, thumb along the current; the fingers curl the way $\mathbf B$ goes. In diagrams a field (or current) pointing out of the page is drawn ⊙ and one pointing into the page ⊗.

The Biot–Savart law. Any thin wire can be cut into tiny straight pieces $d\mathbf l$, each pointing along the current. The product $I\,d\mathbf l$ is called a current element. Measurements (and later theory) show that each current element contributes a small field, and the total field is the vector sum of all of them.

📐 Law 13.1 — The Biot–Savart law

A current element $I\,d\mathbf l$ of a steady current produces, at a point whose position relative to the element is $\mathbf r=r\,\hat{\mathbf r}$, the magnetic field

$$d\mathbf B=\frac{\mu_0}{4\pi}\,\frac{I\,d\mathbf l\times\hat{\mathbf r}}{r^2},\qquad dB=\frac{\mu_0}{4\pi}\,\frac{I\,dl\,\sin\theta}{r^2},$$

where $\theta$ is the angle between $d\mathbf l$ and $\mathbf r$, and $\mu_0=4\pi\times10^{-7}\ \text{T m/A}$ is the permeability of free space (so $\dfrac{\mu_0}{4\pi}=10^{-7}\ \text{T m/A}$ exactly enough for all JEE work). $d\mathbf B$ is perpendicular to both $d\mathbf l$ and $\mathbf r$. The field of the whole circuit is the vector sum (integral) of the contributions of all its elements — the superposition principle. The law holds in vacuum (and, to a very good approximation, in air).

Compare it with Coulomb's law for a small charge $dq$, $d\mathbf E=\dfrac{1}{4\pi\varepsilon_0}\dfrac{dq}{r^2}\hat{\mathbf r}$. Both are inverse-square laws and both obey superposition. But the source of $\mathbf E$ is a scalar (charge) and $d\mathbf E$ points along $\mathbf r$; the source of $\mathbf B$ is a vector (a current element) and $d\mathbf B$ points across $\mathbf r$. Because of the $\sin\theta$, a current element produces no field at points on its own line ($\theta=0$ or $180^\circ$) and the largest field at points perpendicular to it.

Field of a straight wire. Take a straight wire carrying current $I$ and a point $P$ at perpendicular distance $d$ from it. Let the foot of the perpendicular be $O$, and measure the position of an element by its distance $l$ from $O$, so that the line from the element to $P$ makes angle $\phi$ with the perpendicular $OP$: $l=d\tan\phi$, $dl=d\sec^2\phi\,d\phi$, $r=d\sec\phi$, and $\sin\theta=\cos\phi$. Every element gives $d\mathbf B$ in the same direction (perpendicular to the plane containing the wire and $P$), so the magnitudes simply add:

$$B=\frac{\mu_0I}{4\pi}\int\frac{dl\cos\phi}{r^2}=\frac{\mu_0I}{4\pi}\int\frac{d\sec^2\phi\cos\phi\,d\phi}{d^2\sec^2\phi}=\frac{\mu_0I}{4\pi d}\int_{-\phi_1}^{\phi_2}\cos\phi\,d\phi .$$
📐 Result 13.2 — Field of a straight current-carrying wire

A straight wire carrying current $I$ produces at a point $P$ at perpendicular distance $d$ from its line a field of magnitude

$$B=\frac{\mu_0I}{4\pi d}\left(\sin\phi_1+\sin\phi_2\right),$$

where $\phi_1$ and $\phi_2$ are the angles that the lines from $P$ to the two ends of the wire make with the perpendicular from $P$ (taken negative for an end on the same side of the foot as the other end). Special cases:

  • infinitely long wire ($\phi_1=\phi_2=90^\circ$): $\ B=\dfrac{\mu_0I}{2\pi d}$;
  • semi-infinite wire, with $P$ opposite its end ($\phi_1=0$, $\phi_2=90^\circ$): $\ B=\dfrac{\mu_0I}{4\pi d}$;
  • $P$ on the line of the wire or its extension: $\ B=0$.

The field lines are circles round the wire; the sense is given by the right-hand thumb rule.

🧭 Problem-solving strategy — Directions of magnetic fields
  1. Straight wire: grip it with your right hand, thumb along $I$; the fingers give $\mathbf B$. Above a wire carrying current to the right (in the page), $\mathbf B$ is out of the page (⊙); below it, into the page (⊗).
  2. Loop or arc: curl the fingers of the right hand along the current; the thumb gives $\mathbf B$ at the centre. Anticlockwise current as seen by you: $\mathbf B$ towards you (⊙).
  3. For several wires, find each field's direction first, then add them as vectors — fields from different wires are often perpendicular or opposite.
  4. Use $\dfrac{\mu_0}{4\pi}=10^{-7}$ and $\dfrac{\mu_0}{2\pi}=2\times10^{-7}\ \text{T m/A}$ to save time.
✏️ Example 1 — A long wire and a short one
(a) A long straight wire carries a current of $12\ \text{A}$. Find the magnetic field $4.0\ \text{cm}$ from it and compare it with the Earth's field ($\approx5\times10^{-5}\ \text{T}$). (b) A straight wire $6.0\ \text{cm}$ long carries the same current. Find the field at a point $4.0\ \text{cm}$ from its midpoint on the perpendicular bisector. (c) What is the field at a point $4.0\ \text{cm}$ beyond one end of the short wire, on its line?
(a) $B=\dfrac{\mu_0I}{2\pi d}=\dfrac{2\times10^{-7}\times12}{0.040}=6.0\times10^{-5}\ \text{T}=60\ \mu\text{T}$ — a little more than the Earth's field, which is why a compass near a wire carrying a few amperes is visibly deflected.
(b) Each end is $3.0\ \text{cm}$ along and $4.0\ \text{cm}$ across, at distance $5.0\ \text{cm}$: $\sin\phi_1=\sin\phi_2=\dfrac{3}{5}$. $B=\dfrac{10^{-7}\times12}{0.040}\times(0.6+0.6)=3.6\times10^{-5}\ \text{T}$.
(c) On the line of the wire every element has $\sin\theta=0$: $B=0$.
Check The short wire gives $60\%$ of the infinite-wire field: $(\sin\phi_1+\sin\phi_2)/2=0.6$. As the wire is made longer, $\sin\phi\to1$ and the two answers agree.
✏️ Example 2 — JEE level: square loop or circular loop?
A wire $40\ \text{cm}$ long carrying $5.0\ \text{A}$ is bent into a square loop. (a) Find the magnetic field at the centre of the square. (b) The same wire is bent into a circle instead. Find the field at its centre (use Result 13.3 below: $B=\mu_0I/2R$) and the ratio $B_\text{square}/B_\text{circle}$.
Find the field at the centre of the square before you open the solution:
One side Side $a=10\ \text{cm}$, distance from the centre $d=a/2=5.0\ \text{cm}$, and each end is seen at $45^\circ$: $B_1=\dfrac{\mu_0I}{4\pi(a/2)}\times2\sin45^\circ=\dfrac{\sqrt2\,\mu_0I}{2\pi a}$.
(a) By the curled-fingers rule all four sides give $\mathbf B$ the same way, perpendicular to the loop: $B=4B_1=\dfrac{2\sqrt2\,\mu_0I}{\pi a}=\dfrac{2\sqrt2\times4\pi\times10^{-7}\times5.0}{\pi\times0.10}=5.66\times10^{-5}\ \text{T}$.
(b) $2\pi R=0.40\ \text{m}$ gives $R=0.0637\ \text{m}$; $B=\dfrac{\mu_0I}{2R}=\dfrac{4\pi\times10^{-7}\times5.0}{2\times0.0637}=4.93\times10^{-5}\ \text{T}$. Ratio $\dfrac{5.66}{4.93}=1.15$ $\left(=\dfrac{8\sqrt2}{\pi^2}\right)$.
Why The corners of the square lie farther from the centre than a circle's wire, but the middles of the sides are closer ($5.0\ \text{cm}$ against $6.4\ \text{cm}$), and the near parts dominate an inverse-square law.

Two long parallel wires $10\ \text{cm}$ apart carry equal currents in the same direction. The magnetic field at the point midway between them is

Circular loops and arcs

Field at the centre. Take a circular loop of radius $R$ carrying current $I$. Every element $d\mathbf l$ is at the same distance $R$ from the centre and is perpendicular to the radius ($\sin\theta=1$), and every element's $d\mathbf B$ points the same way along the axis. So $B=\dfrac{\mu_0I}{4\pi R^2}\oint dl=\dfrac{\mu_0I}{4\pi R^2}\cdot2\pi R=\dfrac{\mu_0I}{2R}$. An arc that subtends an angle $\alpha$ (in radians) at the centre has length $R\alpha$ and so gives $\dfrac{\mu_0I\alpha}{4\pi R}$.

Field on the axis. Now take a point $P$ on the axis at distance $x$ from the centre. Every element is at distance $r=\sqrt{R^2+x^2}$ from $P$ and is still perpendicular to the line joining it to $P$, so $dB=\dfrac{\mu_0}{4\pi}\dfrac{I\,dl}{R^2+x^2}$. But now $d\mathbf B$ is tilted: it is perpendicular to that line, so it has a component along the axis, $dB\cos\beta$ with $\cos\beta=\dfrac{R}{\sqrt{R^2+x^2}}$, and a component perpendicular to the axis. The element diametrically opposite gives an equal and opposite perpendicular component, so all the perpendicular components cancel in pairs (Interactive 1 shows the pair). Only the axial parts survive:

$$B=\oint\frac{\mu_0}{4\pi}\frac{I\,dl}{R^2+x^2}\cdot\frac{R}{\sqrt{R^2+x^2}}=\frac{\mu_0IR}{4\pi(R^2+x^2)^{3/2}}\cdot2\pi R .$$
📐 Result 13.3 — Field on the axis of a circular current loop

A circular coil of $N$ closely wound turns of radius $R$, carrying current $I$, produces at a point on its axis at distance $x$ from its centre a field directed along the axis (sense by the curled-fingers rule) of magnitude

$$B=\frac{\mu_0NIR^2}{2\left(R^2+x^2\right)^{3/2}} .$$
  • At the centre ($x=0$): $\ B_0=\dfrac{\mu_0NI}{2R}$ — the largest value on the axis.
  • Far away ($x\gg R$): $\ B\approx\dfrac{\mu_0NIR^2}{2x^3}=\dfrac{\mu_0}{2\pi}\dfrac{NI\pi R^2}{x^3}$, falling as $1/x^3$ like the field of an electric dipole on its axis. The loop behaves as a magnetic dipole — the idea developed in § 13.3.
📐 Result 13.4 — Field at the centre of a circular arc

An arc of radius $R$ subtending an angle $\alpha$ (in radians) at its centre, carrying current $I$, produces at the centre

$$B=\frac{\mu_0I\alpha}{4\pi R}.$$

Semicircle ($\alpha=\pi$): $\dfrac{\mu_0I}{4R}$; quarter circle: $\dfrac{\mu_0I}{8R}$; full circle: $\dfrac{\mu_0I}{2R}$. Straight wires whose lines pass through the centre (radial leads) add nothing there.

🧭 Problem-solving strategy — Field at a point due to a bent wire
  1. Break the wire into straight pieces and circular arcs.
  2. Pieces whose line passes through the point contribute zero.
  3. Arc: $\dfrac{\mu_0I\alpha}{4\pi R}$. Straight piece: $\dfrac{\mu_0I}{4\pi d}(\sin\phi_1+\sin\phi_2)$; semi-infinite piece ending opposite the point: $\dfrac{\mu_0I}{4\pi d}$.
  4. Give each piece a direction (⊙ or ⊗) with the right-hand rule and add with signs; for pieces in different planes add as perpendicular vectors.
✏️ Example 3 — A flat coil, at its centre and along its axis
A flat circular coil of $100$ turns and radius $5.0\ \text{cm}$ carries a current of $0.50\ \text{A}$. Find the magnetic field (a) at its centre, (b) on its axis $5.0\ \text{cm}$ from the centre, (c) on its axis $12\ \text{cm}$ from the centre. (d) How good is the far-field formula $B\approx\mu_0NIR^2/2x^3$ in (c)?
(a) $B_0=\dfrac{\mu_0NI}{2R}=\dfrac{4\pi\times10^{-7}\times100\times0.50}{2\times0.050}=6.28\times10^{-4}\ \text{T}$.
(b) At $x=R$: $\dfrac{B}{B_0}=\dfrac{R^3}{(2R^2)^{3/2}}=\dfrac{1}{2\sqrt2}$, so $B=\dfrac{6.28\times10^{-4}}{2.83}=2.22\times10^{-4}\ \text{T}$.
(c) $R^2+x^2=0.0025+0.0144=0.0169\ \text{m}^2$, $(R^2+x^2)^{3/2}=0.13^3=2.197\times10^{-3}\ \text{m}^3$. $B=\dfrac{4\pi\times10^{-7}\times100\times0.50\times0.0025}{2\times2.197\times10^{-3}}=3.57\times10^{-5}\ \text{T}$.
(d) $\dfrac{\mu_0NIR^2}{2x^3}=\dfrac{1.571\times10^{-7}}{2\times1.728\times10^{-3}}=4.55\times10^{-5}\ \text{T}$ — $27\%$ too big. At $x=2.4R$ the coil is not yet "far away"; the $1/x^3$ law is good only for $x$ several times $R$.
✏️ Example 4 — JEE level: a hairpin
A long wire carrying $10\ \text{A}$ is bent into a hairpin: two long parallel straight arms joined by a semicircle of radius $5.0\ \text{cm}$, the arms being tangents to the semicircle at the ends of its diameter. Find the magnetic field at the centre $O$ of the semicircle.
Find the field at $O$ before you open the solution:
Pieces Semicircle: $\dfrac{\mu_0I}{4R}$. Each straight arm is semi-infinite and ends at a point opposite $O$, at perpendicular distance $R$: $\dfrac{\mu_0I}{4\pi R}$ each.
Directions Follow the current: along one arm, round the semicircle, back along the other arm. The current goes round $O$ in the same sense all the way, so (curled fingers) all three fields point the same way, perpendicular to the plane.
Total $B=\dfrac{\mu_0I}{4R}+\dfrac{2\mu_0I}{4\pi R}=\dfrac{\mu_0I}{4R}\left(1+\dfrac{2}{\pi}\right)=6.28\times10^{-5}\times1.637=1.03\times10^{-4}\ \text{T}$.
⏱ Shortcut Write every piece as a multiple of $\dfrac{\mu_0I}{4\pi R}$: semicircle $=\pi$, each semi-infinite arm $=1$, so $B=(\pi+2)\dfrac{\mu_0I}{4\pi R}$.

In Interactive 1 set $N=1$, $I=5.0\ \text{A}$ and $R=10\ \text{cm}$. The field at the centre is $31.4\ \mu\text{T}$. Predict the field on the axis at $x=10\ \text{cm}$ (one radius from the centre).

With $N=1$, $I=5.0\ \text{A}$, $R=10\ \text{cm}$ the readouts give $B_0=31.4\ \mu\text{T}$ and, at $x=10\ \text{cm}$, $B=11.1\ \mu\text{T}$, $B/B_0=0.354=1/2\sqrt2$, because $(R^2+x^2)^{3/2}=(2R^2)^{3/2}=2\sqrt2R^3$. The field falls to an eighth ($3.93\ \mu\text{T}$) only at $x=\sqrt3R=17.3\ \text{cm}$. Notice the two element-fields drawn at $P$: their sideways parts cancel, their axial parts add.
Interactive 1 — Field Along the Axis of a Current Loop

A circular coil (seen in perspective) carries current out of the page at the top (⊙) and into it at the bottom (⊗). The point $P$ moves along the axis — press Play or drag the $x$ slider. At $P$ you see the fields of the top and bottom elements: their sideways parts cancel, their axial parts add. The graph shows $B(x)$; the dashed curve is the far-field formula $\mu_0NIR^2/2x^3$.

5.0 A10 cm10 cm
centre $B_0$—
field at $P$—
$B/B_0$—
far-field formula—

A wire of fixed length carrying current $I$ is wound into a flat circular coil of one turn, and the field at its centre is $B$. The same wire is rewound into a flat coil of two turns with the same current. The field at the centre becomes

Ampère's circuital law

Go once round a long straight wire along a circle of radius $r$ centred on it. The field is tangent to the circle and has the same size $\dfrac{\mu_0I}{2\pi r}$ everywhere on it, so the sum of $\mathbf B\cdot d\mathbf l$ round the circle is $\dfrac{\mu_0I}{2\pi r}\times2\pi r=\mu_0I$ — independent of $r$. This is no coincidence. One can show that for any closed path, of any shape, round any set of steady currents, the same sort of sum depends only on the current threading the path.

📐 Law 13.5 — Ampère's circuital law

For steady currents, the line integral of the magnetic field round any closed path equals $\mu_0$ times the net current threading the path:

$$\oint\mathbf B\cdot d\mathbf l=\mu_0I_\text{enc}.$$
  • $\mathbf B$ is the total field at each point of the path, due to all currents, inside and outside.
  • $I_\text{enc}$ is the net current crossing any surface bounded by the path. Signs: curl the right-hand fingers in the direction you go round the path; currents along the thumb count positive, opposite ones negative.
  • Currents outside the path change $\mathbf B$ on the path but contribute nothing to the integral.
📘 Definition 13.2 — Amperian loop

An Amperian loop is an imagined closed path chosen to apply Ampère's law. To get a field from the law, choose it so that along each part of the path $\mathbf B$ is either tangent to the path with constant magnitude, or perpendicular to it (contributing zero), or zero.

Ampère's law plays the role for magnetism that Gauss's law plays for electrostatics. It is always true for steady currents, but — exactly like Gauss's law — it gives the field only when the symmetry of the current tells us the shape of the field lines in advance: infinitely long straight wires and cylinders (field lines are circles), long solenoids (field along the axis inside). For a single loop or a finite wire there is no such symmetry, and we use Biot–Savart.

A thick wire. A long straight cylindrical wire of radius $a$ carries current $I$ spread uniformly over its cross-section. By symmetry the field lines are circles centred on the axis. Take a circular Amperian loop of radius $r$:

📐 Result 13.6 — Field of a long straight cylindrical conductor

For an infinitely long straight wire of radius $a$ carrying current $I$ uniformly distributed over its cross-section,

$$B=\frac{\mu_0Ir}{2\pi a^2}\ \ (r\le a),\qquad B=\frac{\mu_0I}{2\pi r}\ \ (r\ge a).$$

$B$ is largest at the surface, $\dfrac{\mu_0I}{2\pi a}$. For a thin-walled hollow tube carrying current along its length, $B=0$ everywhere inside the hollow (no current enclosed) and $B=\mu_0I/2\pi r$ outside.

🧭 Problem-solving strategy — Using Ampère's law
  1. Check the symmetry: what shape must the field lines have? (Circles round a long straight current; straight lines along the axis inside a long solenoid.)
  2. Choose an Amperian loop through the point of interest that follows the field lines, or crosses them at right angles.
  3. Write $\oint\mathbf B\cdot d\mathbf l$ in terms of the unknown $B$ (for a circle of radius $r$: $B\cdot2\pi r$).
  4. Find the net enclosed current with signs — for non-uniform or partial cross-sections, enclosed current $=$ current density $\times$ enclosed area.
  5. Solve for $B$, and give its direction with the right-hand rule.
✏️ Example 5 — A thick wire and a coaxial cable
A long straight copper wire of radius $2.0\ \text{mm}$ carries $8.0\ \text{A}$ spread uniformly over its cross-section. (a) Find $B$ at $1.0\ \text{mm}$, $2.0\ \text{mm}$ and $4.0\ \text{mm}$ from its axis. (b) The wire is made the inner conductor of a coaxial cable: a thin cylindrical sheath of radius $5.0\ \text{mm}$ around it carries the same $8.0\ \text{A}$ back. Find $B$ at $3.0\ \text{mm}$ and at $6.0\ \text{mm}$ from the axis.
Inside $r=1.0\ \text{mm}$: $B=\dfrac{\mu_0Ir}{2\pi a^2}=\dfrac{2\times10^{-7}\times8.0\times1.0\times10^{-3}}{(2.0\times10^{-3})^2}=4.0\times10^{-4}\ \text{T}$.
Surface, outside $r=2.0\ \text{mm}$: $\dfrac{2\times10^{-7}\times8.0}{2.0\times10^{-3}}=8.0\times10^{-4}\ \text{T}$ (the maximum). $r=4.0\ \text{mm}$: $4.0\times10^{-4}\ \text{T}$ — the same as at $1.0\ \text{mm}$.
(b) At $3.0\ \text{mm}$ the loop encloses only the inner $8.0\ \text{A}$: $B=\dfrac{2\times10^{-7}\times8.0}{3.0\times10^{-3}}=5.3\times10^{-4}\ \text{T}$. At $6.0\ \text{mm}$ it encloses $8.0-8.0=0$: $B=0$.
Why it matters A coaxial cable keeps its magnetic field inside itself, so it neither disturbs nor picks up signals from nearby circuits — that is why it is used for antenna and TV leads.

In Interactive 2 set $I_1=+5\ \text{A}$, $I_2=-3\ \text{A}$, $I_3=+8\ \text{A}$ (positive = out of the page) and the loop radius to $2.5\ \text{cm}$, so that the loop surrounds wires 1 and 2 but not wire 3. After one full lap, what is $\oint\mathbf B\cdot d\mathbf l/\mu_0$?

The readouts show $I_\text{enc}=+2\ \text{A}$ and, after one lap, $\oint\mathbf B\cdot d\mathbf l/\mu_0=2.00\ \text{A}$ — only the enclosed currents count, with signs ($5-3$). Wire 3 makes the field on the loop very uneven (watch the running sum rise and fall near it), but its contributions cancel over a full lap. Now set the radius to $3.75\ \text{cm}$: the loop also encloses wire 3 and the integral jumps to $10.00\ \text{A}$.
Interactive 2 — Ampère's Law: Going Round the Loop

Three long wires cross the page (⊙ out, ⊗ in). The small arrows map their total field. A dashed circular Amperian loop is traversed anticlockwise by the tracer, which shows $\mathbf B$ there; the graph adds up $\mathbf B\cdot d\mathbf l/\mu_0$ as the tracer goes round. Whatever the field does on the way, after one lap the sum lands on the net enclosed current. Change the currents and the loop radius; press Play to run the tracer.

+5 A−3 A+8 A2.50 cm
$I_\text{enc}$—
$\oint\mathbf B\cdot d\mathbf l/\mu_0$ (one lap)—
$B$ at tracer—
running sum—

A closed loop surrounds a wire carrying $5\ \text{A}$ out of the page and another carrying $3\ \text{A}$ into the page. A third wire, carrying $10\ \text{A}$ out of the page, lies outside the loop. Going round the loop anticlockwise, $\oint\mathbf B\cdot d\mathbf l$ equals

The solenoid

A solenoid is a long wire wound in a tight helix — many circular turns side by side along a common axis. Each turn produces the loop field of Result 13.3. Inside, the fields of all the turns point the same way along the axis and add; just outside, the contributions of the near and far sides of the turns largely cancel. As the solenoid is made longer and the winding closer, the field inside becomes uniform and parallel to the axis and the field outside becomes negligible. Its field-line pattern — lines bunched and parallel inside, spreading out from one end and returning to the other — is just like that of a bar magnet, a link explored in § 13.3.

Field inside a long solenoid by Ampère's law. Let the solenoid have $n$ turns per unit length, each carrying current $I$. Take a rectangular Amperian loop $abcd$ with side $ab$ of length $h$ inside, parallel to the axis, side $cd$ outside, and the two short sides $bc$, $da$ perpendicular to the axis. On $ab$, $\mathbf B$ is along the path: contribution $Bh$. On $cd$, $B\approx0$. On $bc$ and $da$, $\mathbf B$ is perpendicular to the path inside (and zero outside): contribution zero. The loop is threaded by $nh$ turns, each carrying $I$:

$$Bh=\mu_0\,nh\,I\qquad\Longrightarrow\qquad B=\mu_0nI .$$

The result does not depend on where side $ab$ is placed inside, so the field is the same everywhere inside — on the axis and near the walls. It does not depend on the radius of the solenoid either.

📐 Result 13.7 — Field of a long solenoid

Inside a long, closely wound solenoid with $n=N/L$ turns per unit length carrying current $I$, the magnetic field is uniform, parallel to the axis (sense by the curled-fingers rule), and of magnitude

$$B=\mu_0nI=\frac{\mu_0NI}{L},$$

independent of the cross-section. Outside it, $B\approx0$. At either end, on the axis, the field is about half the inside value, $\tfrac12\mu_0nI$ (the turns lie on one side only). The result needs a solenoid whose length is much greater than its radius, and air (vacuum) inside; a soft-iron core multiplies the field greatly (§ 13.3).

Solenoids are how we make uniform magnetic fields to order: the electromagnets of relays, door locks and car starter switches, the field coils of MRI scanners (superconducting solenoids carrying hundreds of amperes), and the beam-steering magnets of accelerators.

✏️ Example 6 — JEE level: designing a solenoid
A solenoid is made by winding insulated wire of diameter $0.50\ \text{mm}$ in a single layer, turns touching, on a tube $40\ \text{cm}$ long and of radius $1.5\ \text{cm}$. (a) Find the number of turns per metre and the total number of turns. (b) What current gives a field of $5.0\ \text{mT}$ inside? (c) What is the field on the axis at the ends? (d) What length of wire is used?
Find the current in (b) before you open the solution:
(a) One turn per wire diameter: $n=\dfrac{1}{0.50\times10^{-3}}=2000\ \text{turns/m}$; $N=nL=2000\times0.40=800$.
(b) $I=\dfrac{B}{\mu_0n}=\dfrac{5.0\times10^{-3}}{4\pi\times10^{-7}\times2000}=1.99\ \text{A}$.
(c) About half: $2.5\ \text{mT}$.
(d) $800\times2\pi\times0.015=75.4\ \text{m}$.
Check The radius did not enter (b) — a fatter tube needs more wire (and a higher voltage for the same current), but gives the same field. Winding a second layer doubles $n$ and so doubles $B$ at the same current.
⚠️ JEE Main traps

1. Mixing up the constants. Long wire: $\dfrac{\mu_0I}{2\pi d}$. Centre of a loop: $\dfrac{\mu_0I}{2R}$ (no $\pi$). Arc: $\dfrac{\mu_0I\alpha}{4\pi R}$ with $\alpha$ in radians. Solenoid: $\mu_0nI$ with $n$ in turns per metre, not the total $N$.

2. Forgetting zero contributions. Straight pieces whose line passes through the point (radial leads, a wire pointing at the point) give $B=0$ there. A semi-infinite wire ending opposite the point gives $\mu_0I/4\pi d$ — half the infinite-wire value.

3. Adding magnitudes instead of vectors. Fix the direction (⊙/⊗) of every piece first. Two loops in perpendicular planes give $\sqrt{B_1^2+B_2^2}$; opposite currents in concentric loops subtract.

4. Misreading Ampère's law. $\oint\mathbf B\cdot d\mathbf l=0$ does not mean $\mathbf B=0$ on the loop — only that the net enclosed current is zero. And the law gives $B$ only when symmetry makes $B$ constant along the loop.

5. Thick wires. Inside a uniformly carrying wire $B\propto r$; outside $B\propto1/r$; the field at $r=a/2$ equals the field at $r=2a$. Inside a hollow tube, $B=0$.

A long solenoid is stretched to twice its length without changing its number of turns or its radius, and the current in it is doubled. The field inside it

Exercises

Take $\mu_0=4\pi\times10^{-7}\ \text{T m/A}$. Wires are in air.

I
The Biot–Savart law and straight wires.
  • 1 A current element of length $1.0\ \text{cm}$ carrying $10\ \text{A}$ lies at the origin pointing along $+x$. Find the field it produces at $(0,\ 0.50\ \text{m},\ 0)$ and its direction.
  • 2 Find the field of the same element at $(0.50\ \text{m},\ 0,\ 0)$.
  • 3 Find the field of the same element at $(0.30\ \text{m},\ 0.40\ \text{m},\ 0)$.
  • 4 At what distance from a long straight wire carrying $15\ \text{A}$ is the field $50\ \mu\text{T}$?
  • 5 Two long parallel wires $10\ \text{cm}$ apart carry $10\ \text{A}$ and $20\ \text{A}$ in the same direction. Find the field midway between them.
  • 6 For the wires of part 5, find the point between them where the field is zero (distance from the $10\ \text{A}$ wire, in cm).
  • 7 Find the midpoint field of part 5 if the currents are in opposite directions.
  • 8 A wire carrying $4.0\ \text{A}$ forms an equilateral triangle of side $12\ \text{cm}$. Find the field at its centroid.
1 $\theta=90^\circ$, $r=0.50\ \text{m}$: $dB=10^{-7}\times\dfrac{10\times0.010}{0.25}=4.0\times10^{-8}\ \text{T}$, along $\hat{\mathbf x}\times\hat{\mathbf y}=+\hat{\mathbf z}$.
2 The point lies on the line of the element: $\sin\theta=0$, $dB=0$.
3 $r=0.50\ \text{m}$, $\sin\theta=0.80$: $dB=10^{-7}\times\dfrac{0.10\times0.80}{0.25}=3.2\times10^{-8}\ \text{T}$, along $+z$.
4 $r=\dfrac{2\times10^{-7}\times15}{5.0\times10^{-5}}=0.060\ \text{m}=6.0\ \text{cm}$.
5 Between the wires the fields are opposite: $B=\dfrac{2\times10^{-7}(20-10)}{0.050}=4.0\times10^{-5}\ \text{T}$, in the direction of the $20\ \text{A}$ wire's field.
6 $\dfrac{10}{x}=\dfrac{20}{10-x}$ gives $x=3.33\ \text{cm}$ from the $10\ \text{A}$ wire.
7 The fields now add: $\dfrac{2\times10^{-7}\times30}{0.050}=1.2\times10^{-4}\ \text{T}$.
8 $d=\dfrac{a}{2\sqrt3}=0.0346\ \text{m}$, $\phi_1=\phi_2=60^\circ$: each side $\dfrac{10^{-7}\times4.0}{0.0346}\times2\sin60^\circ=2.0\times10^{-5}\ \text{T}$; three sides, same direction: $6.0\times10^{-5}\ \text{T}$ $\left(=\dfrac{9\mu_0I}{2\pi a}\right)$.
II
Circular loops and arcs.
  • 1 Find the field at the centre of a single circular loop of radius $8.0\ \text{cm}$ carrying $4.0\ \text{A}$.
  • 2 A flat coil of $200$ turns and radius $10\ \text{cm}$ is to give $2.0\ \text{mT}$ at its centre. Find the current needed.
  • 3 On the axis of the coil of part 2, at what distance from the centre is the field one-eighth of its central value?
  • 4 Find the field at the centre of a semicircular arc of radius $5.0\ \text{cm}$ carrying $10\ \text{A}$ (the straight leads are radial).
  • 5 A wire carrying $6.0\ \text{A}$ forms a quarter circle of radius $2.0\ \text{cm}$ with two radial leads. Find the field at the centre.
  • 6 Two concentric coplanar loops have radii $10\ \text{cm}$ and $20\ \text{cm}$. The inner one carries $3.0\ \text{A}$ clockwise. What current in the outer loop, and in which sense, makes the field at the centre zero?
  • 7 Two identical loops of radius $10\ \text{cm}$, each carrying $5.0\ \text{A}$, share a common centre but lie in perpendicular planes. Find the field at the centre.
  • 8 A given length of wire carrying a fixed current is wound first as a one-turn loop, then as a flat three-turn coil. Find the ratio of the fields at the centre.
  • 9 Show that for any coil, the field at the centre is $2\sqrt2$ times the field on the axis at a distance equal to the radius.
1 $B=\dfrac{\mu_0I}{2R}=\dfrac{4\pi\times10^{-7}\times4.0}{0.16}=3.14\times10^{-5}\ \text{T}$.
2 $I=\dfrac{2BR}{\mu_0N}=\dfrac{2\times2.0\times10^{-3}\times0.10}{4\pi\times10^{-7}\times200}=1.59\ \text{A}$.
3 $\left(\dfrac{R^2}{R^2+x^2}\right)^{3/2}=\dfrac18$ gives $R^2+x^2=4R^2$, $x=\sqrt3R=17.3\ \text{cm}$.
4 $B=\dfrac{\mu_0I}{4R}=\dfrac{4\pi\times10^{-7}\times10}{0.20}=6.28\times10^{-5}\ \text{T}$.
5 $\alpha=\pi/2$: $B=\dfrac{\mu_0I}{8R}=\dfrac{4\pi\times10^{-7}\times6.0}{0.16}=4.71\times10^{-5}\ \text{T}$; the radial leads add nothing.
6 Need $\dfrac{I_2}{R_2}=\dfrac{I_1}{R_1}$ with opposite senses: $I_2=3.0\times\dfrac{20}{10}=6.0\ \text{A}$ anticlockwise.
7 Each gives $\dfrac{\mu_0I}{2R}=3.14\times10^{-5}\ \text{T}$, at right angles: $B=\sqrt2\times3.14\times10^{-5}=4.44\times10^{-5}\ \text{T}$, at $45^\circ$ to each plane's normal.
8 $N\to3N$ and $R\to R/3$: $B\propto N/R$ grows by $9$. Ratio $1:9$.
9 $\dfrac{B_0}{B(R)}=\dfrac{(R^2+R^2)^{3/2}}{R^3}=2^{3/2}=2\sqrt2$, whatever $N$, $I$ and $R$.
III
Ampère's circuital law.
  • 1 A closed path encloses wires carrying $4\ \text{A}$ and $10\ \text{A}$ out of the page and $7\ \text{A}$ into the page. Find $\oint\mathbf B\cdot d\mathbf l$ going round anticlockwise.
  • 2 A long straight wire of radius $3.0\ \text{mm}$ carries $9.0\ \text{A}$ uniformly. Find $B$ at $1.0\ \text{mm}$ from its axis.
  • 3 Find $B$ at $6.0\ \text{mm}$ from the axis of the wire of part 2.
  • 4 At what distance outside the wire of part 2 is the field the same as in part 2? (in mm)
  • 5 A long thick pipe has inner radius $2.0\ \text{cm}$ and outer radius $3.0\ \text{cm}$ and carries $20\ \text{A}$ uniformly through its metal. Find $B$ at $1.0\ \text{cm}$ and at $2.5\ \text{cm}$ from the axis.
  • 6 A coaxial cable carries $5.0\ \text{A}$ out along its inner conductor (radius $1.0\ \text{mm}$) and back along its outer sheath (radius $6.0\ \text{mm}$). Find $B$ at $4.0\ \text{mm}$ and at $8.0\ \text{mm}$ from the axis.
  • 7 Ampère's law is true for a single circular loop. Explain why it does not help us find the field at the loop's centre.
  • 8 Around a circle of radius $5.0\ \text{cm}$ centred on a long wire, $\mathbf B$ is tangential with magnitude $40\ \mu\text{T}$. Find the current in the wire.
1 $I_\text{enc}=4+10-7=7\ \text{A}$: $\oint\mathbf B\cdot d\mathbf l=4\pi\times10^{-7}\times7=8.8\times10^{-6}\ \text{T m}$.
2 $B=\dfrac{\mu_0Ir}{2\pi a^2}=\dfrac{2\times10^{-7}\times9.0\times1.0\times10^{-3}}{9.0\times10^{-6}}=2.0\times10^{-4}\ \text{T}$.
3 $B=\dfrac{2\times10^{-7}\times9.0}{6.0\times10^{-3}}=3.0\times10^{-4}\ \text{T}$.
4 $\dfrac{\mu_0I}{2\pi r}=\dfrac{\mu_0Ir_1}{2\pi a^2}$ gives $r=\dfrac{a^2}{r_1}=\dfrac{9.0}{1.0}=9.0\ \text{mm}$.
5 At $1.0\ \text{cm}$ (in the hollow) nothing is enclosed: $B=0$. At $2.5\ \text{cm}$: $I_\text{enc}=20\times\dfrac{6.25-4}{9-4}=9.0\ \text{A}$, $B=\dfrac{2\times10^{-7}\times9.0}{0.025}=7.2\times10^{-5}\ \text{T}$.
6 At $4.0\ \text{mm}$: $\dfrac{2\times10^{-7}\times5.0}{4.0\times10^{-3}}=2.5\times10^{-4}\ \text{T}$. At $8.0\ \text{mm}$ the net enclosed current is zero: $B=0$.
7 There is no path on which $\mathbf B$ is known to be tangent with constant size (or perpendicular): the loop's field lines are not circles of known shape, so $\oint\mathbf B\cdot d\mathbf l$ cannot be written as $B\times$length. The law holds, but cannot be solved for $B$; use Biot–Savart.
8 $I=\dfrac{B\cdot2\pi r}{\mu_0}=\dfrac{4.0\times10^{-5}\times2\pi\times0.050}{4\pi\times10^{-7}}=10\ \text{A}$.
IV
Solenoids and harder problems.
  • 1 A solenoid $0.80\ \text{m}$ long has $2400$ turns and carries $1.5\ \text{A}$. Find the field inside.
  • 2 Find the field on the axis at one end of the solenoid of part 1.
  • 3 Insulated wire of diameter $0.40\ \text{mm}$ is close-wound in one layer to make a long solenoid. What current gives $12\ \text{mT}$ inside?
  • 4 The solenoid of part 3 is rewound on a tube of twice the radius, still in one close layer. How does the field for the same current change? What if a second layer is added?
  • 5 A long solenoid carrying $5.0\ \text{A}$ has a field of $6.28\ \text{mT}$ inside. Find the number of turns per metre.
  • 6 A long straight wire carrying $10\ \text{A}$ runs along the axis of a long solenoid with $1000$ turns per metre carrying $1.0\ \text{A}$. Find the magnitude of the total field at $1.0\ \text{cm}$ from the axis (inside the solenoid) and the angle it makes with the axis.
  • 7 In the Bohr model of hydrogen the electron goes round a circle of radius $0.53\times10^{-10}\ \text{m}$ about $6.6\times10^{15}$ times per second. Find the equivalent current and the magnetic field it produces at the nucleus.
  • 8 A very long wire carrying $10\ \text{A}$ is bent at a right angle into an L. Find the field at a point $5.0\ \text{cm}$ from the corner, on the extension of one arm beyond the corner.
1 $n=\dfrac{2400}{0.80}=3000\ \text{m}^{-1}$; $B=4\pi\times10^{-7}\times3000\times1.5=5.65\times10^{-3}\ \text{T}$.
2 About half: $2.83\times10^{-3}\ \text{T}$.
3 $n=\dfrac{1}{0.40\times10^{-3}}=2500\ \text{m}^{-1}$; $I=\dfrac{0.012}{4\pi\times10^{-7}\times2500}=3.82\ \text{A}$.
4 Twice the radius: $n$ is unchanged, so $B$ is unchanged (only more wire is used). A second layer doubles $n$, so $B$ doubles.
5 $n=\dfrac{B}{\mu_0I}=\dfrac{6.28\times10^{-3}}{4\pi\times10^{-7}\times5.0}=1.0\times10^{3}\ \text{turns/m}$.
6 $B_\text{sol}=4\pi\times10^{-7}\times1000\times1.0=1.26\times10^{-3}\ \text{T}$ (axial); $B_\text{wire}=\dfrac{2\times10^{-7}\times10}{0.010}=2.0\times10^{-4}\ \text{T}$ (round the axis). $B=\sqrt{1.257^2+0.20^2}\times10^{-3}=1.27\times10^{-3}\ \text{T}$, at $\tan^{-1}\dfrac{0.20}{1.257}=9.0^\circ$ to the axis — the field lines are helices.
7 $I=ef=1.6\times10^{-19}\times6.6\times10^{15}=1.06\times10^{-3}\ \text{A}$; $B=\dfrac{\mu_0I}{2r}=\dfrac{4\pi\times10^{-7}\times1.056\times10^{-3}}{2\times0.53\times10^{-10}}=12.5\ \text{T}$ — a huge field on the atomic scale.
8 The arm whose extension passes through the point gives zero. The other arm is semi-infinite and ends opposite the point at $5.0\ \text{cm}$: $B=\dfrac{\mu_0I}{4\pi d}=\dfrac{10^{-7}\times10}{0.050}=2.0\times10^{-5}\ \text{T}$.
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

E1. JEE Main · MCQ A very long straight insulated wire carrying current $I$ runs along a table. In the middle it is wound once into a circular loop of radius $R$ that touches the straight part, the current going round the loop and then continuing along the same straight line. The magnitude of the field at the centre of the loop is (A) $\dfrac{\mu_0I}{2R}\left(1-\dfrac1\pi\right)$ (B) $\dfrac{\mu_0I}{2R}$ (C) $\dfrac{\mu_0I}{2R}\left(1+\dfrac1\pi\right)$ (D) $\dfrac{\mu_0I}{\pi R}$

Pieces Loop: $\dfrac{\mu_0I}{2R}$. Straight wire (effectively infinite), at distance $R$ from the centre: $\dfrac{\mu_0I}{2\pi R}$.
Directions Let the straight current run to the right with the loop above it. Above the wire, its field points out of the page. At the bottom of the loop the current also moves to the right, so it goes round the centre anticlockwise: the loop's field also points out of the page. They add.
Answer (C) $\dfrac{\mu_0I}{2R}\left(1+\dfrac1\pi\right)$.
⏱ Shortcut Where the loop touches the straight wire, the currents run the same way; the two fields at the centre then always agree in direction.

E2. JEE Main · Numerical A solenoid $50\ \text{cm}$ long has $1000$ turns and carries a current of $2.0\ \text{A}$. The magnetic field inside it is $x\times10^{-4}\ \text{T}$. Find $x$. (Take $\pi=3.14$.) Give the answer to the nearest integer.

Turns per metre $n=\dfrac{1000}{0.50}=2000\ \text{m}^{-1}$.
Field $B=\mu_0nI=4\times3.14\times10^{-7}\times2000\times2.0=5.02\times10^{-3}\ \text{T}=50.2\times10^{-4}\ \text{T}$.
Answer $50$.
⏱ Shortcut The trap is using $N=1000$ for $n$: that gives $25$.

E3. JEE Main · MCQ A long straight wire of radius $a$ carries a steady current distributed uniformly over its cross-section. The ratio of the magnetic field at distance $a/2$ from the axis to that at distance $2a$ is (A) $1:4$ (B) $4:1$ (C) $1:2$ (D) $1:1$

Inside $B(a/2)=\dfrac{\mu_0I(a/2)}{2\pi a^2}=\dfrac{\mu_0I}{4\pi a}$.
Outside $B(2a)=\dfrac{\mu_0I}{2\pi(2a)}=\dfrac{\mu_0I}{4\pi a}$.
Answer (D) $1:1$.
⏱ Shortcut In units of the surface field: inside $r/a$, outside $a/r$ — both give $\tfrac12$.

E4. JEE Main · Numerical At a point on the axis of a circular coil of radius $8.0\ \text{cm}$ the magnetic field is one-eighth of its value at the centre of the coil. Find the distance of the point from the centre, in cm. Give the answer to the nearest integer.

Ratio $\dfrac{B}{B_0}=\dfrac{R^3}{(R^2+x^2)^{3/2}}=\dfrac18$, so $\sqrt{R^2+x^2}=2R$.
Distance $x=\sqrt3R=1.732\times8.0=13.9\ \text{cm}$.
Answer $14$.
⏱ Shortcut Fractions $1/8$ and $1/(2\sqrt2)$ correspond to $x=\sqrt3R$ and $x=R$; learn both.

E5. JEE Main · Numerical A closed loop carrying $5.0\ \text{A}$ is made of two circular arcs of radii $10\ \text{cm}$ and $20\ \text{cm}$, both centred at $O$ and each subtending $90^\circ$ there, joined by two radial straight pieces. The magnetic field at $O$ is $x\times10^{-7}\ \text{T}$. Find $x$ (take $\pi=3.14$). Give the answer to the nearest integer.

Pieces Radial pieces: zero. Round the loop the current goes one way along one arc and the other way along the other, so their fields at $O$ are opposite.
Field $B=\dfrac{\mu_0I(\pi/2)}{4\pi}\left(\dfrac1{a}-\dfrac1{b}\right)=\dfrac{\mu_0I}{8}\left(\dfrac{1}{0.10}-\dfrac{1}{0.20}\right)=\dfrac{4\times3.14\times10^{-7}\times5.0}{8}\times5.0=3.93\times10^{-6}\ \text{T}$.
Answer $39$.
⏱ Shortcut Adding the arcs instead of subtracting gives $118$ — the most common wrong entry.

E6. JEE Main · MCQ Two very long straight wires lie along the $x$- and $y$-axes (insulated where they cross) and carry equal currents $I$ in the $+x$ and $+y$ directions. The magnetic field at the point $(a,\ a,\ 0)$ is (A) zero (B) $\dfrac{\mu_0I}{2\pi a}$ (C) $\dfrac{\mu_0I}{\pi a}$ (D) $\dfrac{\sqrt2\,\mu_0I}{2\pi a}$

Wire on $x$-axis Distance $a$, current $+x$, point on the $+y$ side: $\mathbf B\propto\hat{\mathbf x}\times\hat{\mathbf y}=+\hat{\mathbf z}$, size $\dfrac{\mu_0I}{2\pi a}$.
Wire on $y$-axis Distance $a$, current $+y$, point on the $+x$ side: $\mathbf B\propto\hat{\mathbf y}\times\hat{\mathbf x}=-\hat{\mathbf z}$, same size.
Answer (A) zero.
⏱ Shortcut In the first and third quadrants the two fields cancel; in the second and fourth they add to $\mu_0I/\pi a$ (option C is the trap for the point $(a,-a,0)$).
🔬 Research–Teaching NexusResearch-tutored · optional, about 60 minutes

Research question. Does the magnetic field on the axis of a home-made coil really follow $B=\mu_0NIR^2/2(R^2+x^2)^{3/2}$, and how far from the coil can its field still be detected above the Earth's field?

Why it matters. Almost every smartphone contains a three-axis magnetometer (a Hall-effect or magnetoresistive chip) used as a compass. The same physics measures the fields of power cables near homes, guides the probes of MRI and navigation systems, and lets geophysicists find buried pipes and ore bodies. Knowing how a coil's field falls with distance (as $1/x^3$ far away) tells engineers how close electronics can safely sit to a transformer or a wireless charger.

What to do.

  1. Wind $20$–$50$ turns of insulated wire on a round tin or plastic pipe ($R\approx4$–$5\ \text{cm}$). Connect it through a resistor (about $10\ \Omega$) and an ammeter to a $1.5$–$3\ \text{V}$ battery pack.
  2. Install a free magnetometer app. Lay the phone flat, find where its sensor is (move a small magnet around it), and record the reading with the current off — this is the Earth's (and the room's) field.
  3. Hold the coil vertical with its axis passing through the sensor. Switch the current on and record the change in the field component along the axis for $x=0,\ 2,\ 4,\dots,20\ \text{cm}$.
  4. Plot your $\Delta B$ against $x$ together with the formula. Then plot $\log\Delta B$ against $\log x$ for the larger $x$ and find the slope.
  5. Reverse the current: does $\Delta B$ change sign but keep its size?

Tools: Insulated copper wire, a round former, battery pack, resistor, ammeter or multimeter, smartphone with a magnetometer app, ruler, spreadsheet.

Hand in: A table and graph of measured and predicted $\Delta B$ against $x$, the log–log slope for large $x$ with its uncertainty, and a paragraph on the main sources of error (sensor position, stray fields, battery voltage drift).

Going further. Wind a second identical coil and place it coaxially at a distance $R$ from the first, both carrying the same current. Measure the field along the axis between them. Why is it so nearly uniform there? (This arrangement is used to cancel the Earth's field in laboratories.)

Instructor note: with $N=30$, $I=0.2\ \text{A}$ and $R=5\ \text{cm}$ the centre field is about $75\ \mu\text{T}$, comfortably above phone noise (around $1\ \mu\text{T}$); readings become unreliable beyond $x\approx3R$, which is a good discussion point. Students often forget to subtract the background field or to keep the phone's orientation fixed. The log–log slope should approach $-3$.

🧪 Self-check quiz

0/5 correct

Q1. One tesla is equal to

Q2. The magnetic field well inside a long solenoid depends on

Q3. The radius of a circular loop is doubled while the current in it is kept the same. The field at its centre

Q4. For a closed path in a region with steady currents, $\oint\mathbf B\cdot d\mathbf l=0$. We can conclude that

Q5. Far from a small current loop, on its axis, the magnetic field varies with distance $x$ as