Home / Learn / Exam prep / IIT JAM Physics / Lesson 4.5
All lessons

Module 4: Electricity and magnetism · Lesson 4.5 · about 45 min

Magnetic fields: Biot-Savart and Ampère

The Lorentz force and circular motion, the Biot-Savart law for wires, loops and arcs, Ampère's law for thick wires, solenoids, toroids and sheets, magnetic dipoles, the vector potential, and the superposition tricks top-rank questions use.

Key points, meanings and formulas on one page: choose "Save as PDF" in the print box.

Module 4 · about 45 minutes. By the end you will be able to predict the path of a charge in a magnetic field, get the field of wires, loops, arcs and polygons from the Biot-Savart law, use Ampère’s law for every symmetric current, treat a small loop as a magnetic dipole, and solve the “hole in a conductor” and “spinning charge” problems that decide top ranks.

Moving charges make magnetic fields that curl around them, and magnetic fields push sideways on moving charges; nothing is ever pushed along its own motion.

1. The Lorentz force

A charge q moving with velocity v→ through fields E→ and B→ feels

F→=q(E→+v→×B→)

The magnetic part is perpendicular to v→, so it does no work: it bends the path but never changes the speed. In a uniform field a charge moving at right angles to B→ goes round a circle:

qvB=mv2r ⇒ r=mvqB,ω=qBm,T=2πmqB

The period does not depend on the speed, which is how a cyclotron works. If the velocity has a part along B→, that part is untouched and the path becomes a helix of pitch v∥T.

Worked example. A proton at 2×105 m/s enters a 0.10 T field at 60∘ to it. The period is 2πm/(qB)=6.56×10−7 s; along the field it moves at vcos⁡60∘=105 m/s; pitch =6.56 cm. Using vsin⁡60∘ for the advance is the classic slip.

Crossed fields. With E→⟂B→, a particle goes straight only if v=E/B (a velocity selector), whatever its charge or mass. A particle starting from rest drifts at E→×B→/B2, along a cycloid, in the same direction for both signs of charge.

2. The Biot-Savart law

A short piece of wire dl→ carrying current I makes a field

dB→=μ04πIdl→×rˆr2,μ04π=10−7 T m/A

where rˆ points from the piece to the field point. Two things to notice: pieces pointing straight at the field point give nothing (dl→∥rˆ), and the field curls around the current by the right-hand rule (thumb along I, fingers along B→).

I dl
a short element of current: the source of B, as charge is the source of E
dl × r̂
B is perpendicular to both the current and the line to the point: it circles the wire
1/r²
each element's field falls off like Coulomb's law
μ₀
4π × 10⁻⁷ T m/A: sets the strength of magnetic effects
Physical meaning
Every bit of moving charge adds a little swirl of magnetic field around itself; the field of a whole circuit is the sum of the swirls.

The results you should know cold, all from that one law:

Current Field Where
Straight segment μ0I4πd(sin⁡α2−sin⁡α1) distance d, angles from the perpendicular
Infinite wire μ0I2πd
Semi-infinite wire, from its end μ0I4πd on the perpendicular through the end
Circular loop, centre μ0I2R an arc of angle θ gives θ2π of this
Circular loop, on axis μ0IR22(R2+z2)3/2

Try the figure. It adds up the Biot-Savart contributions of 72 small pieces per loop (no formula is built in) and draws the field lines in a slice through the axis. Compare the probe reading at the centre with μ0I/2R.

Field lines of a straight wire, a loop and a short solenoid, computed piece by piece from the Biot-Savart law. Dots: current out of the screen; crosses: into it.

Worked example: a hairpin. A semicircle of radius R with two long straight legs running off tangentially in the same direction. At the centre: the arc gives μ0I/(4R), and each leg is a semi-infinite wire whose end is at the foot of the perpendicular, giving μ0I/(4πR). All three point the same way:

B=μ0I4R(1+2π)

The legs carry opposite currents but sit on opposite sides of the centre, so their fields add, not cancel.

Worked example: a square loop of side a. Each side is a segment at distance a/2 seen under ±45∘: μ0I4π(a/2)⋅2sin⁡45∘. Four sides: B=22μ0Iπa, about 10% less than the circle that just fits inside the square (μ0I/a), because most of the square’s wire is further from the centre.

3. Ampère’s law

For steady currents, the circulation of B→ round any closed loop counts the current threading it:

∮B→⋅dl→=μ0Ienc,∇×B→=μ0J→,∇⋅B→=0

It is the magnetic partner of Gauss’s law, and it is useful in exactly the same way: only when symmetry lets B come out of the integral. The recipe: pick a loop along which B is constant and parallel (or perpendicular) to the path, then solve.

Current Amperian loop Field
Thick wire, uniform J circle μ0Is2πR2 inside, μ0I2πs outside
Coaxial cable circle μ0I2πs between, 0 outside
Long solenoid rectangle μ0nI inside, 0 outside
Toroid, N turns circle in the core μ0NI2πs
Sheet of current K rectangle through it μ0K2 either side

Worked example. A wire of radius R carries a current density J=J0s/R. The current inside radius s is ∫0sJ0s′R2πs′ds′=2πJ0s33R, so B=μ0J0s23R: it grows as s2 now, and B(R/2)/B(R)=1/4.

“A circular loop has nice symmetry, so use Ampère’s law.” Ampère’s law is true for the loop, but no Amperian path has a constant B along it, so it cannot give the field. The same goes for a finite straight segment. For those, use Biot-Savart. Ampère works only for infinite wires, ideal solenoids, toroids and sheets (and things built from them).

Real solenoids. A solenoid of finite length gives B=12μ0nI(cos⁡θ1+cos⁡θ2) on its axis, where the angles are the half-angles to its two ends. At the centre of one that is 20 cm long and 5 cm in radius this is 89% of μ0nI; at an end it is about half. The coil field designer shows how Helmholtz pairs, with B=(4/5)3/2μ0NI/R midway, fix that.

4. Magnetic dipoles

Far away, any small current loop looks the same: a magnetic dipole of moment m→=IA→ (area vector by the right-hand rule). Its field has the same shape as an electric dipole’s: on the axis μ04π2mr3, in its plane half that and reversed. In a uniform field it feels no net force but a torque τ→=m→×B→, with energy U=−m→⋅B→, lowest when aligned.

Spinning charges are dipoles. Cut the body into rings, find each ring’s current (charge × ω/2π) and area, and add:

  • Disc (σ, radius R): field at the centre μ0σωR/2.
  • Thin shell (charge Q): m=QωR2/3.
  • Uniform solid sphere: m=QωR2/5.

If charge is spread like mass, every ring has m/L=Q/(2M), so the whole body does too: the classical gyromagnetic ratio. The electron’s spin has about twice that.

5. The vector potential

Since ∇⋅B→=0, we can write B→=∇×A→. A→ is not unique: adding any gradient changes nothing. For a uniform B→=B0zˆ, the choices 12B0(−y,x,0), B0(0,x,0) and B0(−y,0,0) all work. In the Coulomb gauge (∇⋅A→=0), ∇2A→=−μ0J→: three Poisson equations, just like electrostatics. GATE and NET build on this; JAM asks you to recognise it.

6. Superposition tricks

A hole in a conductor. A long cylinder carries uniform current density J→, with an off-axis cylindrical hole whose axis is displaced by d→. Treat it as a full cylinder with +J→ plus a hole-sized one with −J→. Inside a solid cylinder B→=μ02J→×s→, so in the hole

B→=μ02J→×s→−μ02J→×(s→−d→)=μ02J→×d→

a uniform field, exactly like the uniform electric field in an off-centre cavity of a charged sphere (lesson 4.1).

  • F→=q(E→+v→×B→); magnetic force does no work. Circles: r=mv/qB, T=2πm/qB independent of speed.
  • Biot-Savart: dB→=μ04πIdl→×rˆr2. Know the segment, infinite wire, loop centre (arcs as fractions) and loop axis results.
  • Ampère: ∮B→⋅dl→=μ0Ienc, useful only for infinite wires, solenoids, toroids and sheets.
  • Parallel currents attract: F/L=μ0I1I2/2πd.
  • A small loop is a dipole m→=IA→: torque m→×B→, energy −m→⋅B→. Spinning shell QωR2/3, solid sphere QωR2/5.
  • B→=∇×A→ with gauge freedom; superpose ±J→ for holes.

Practise: exam questions on this lesson

These start easy and climb to top-rank level. Check each answer, then read the full solution. More on the magnetic fields practice page.

Next: lesson 4.6 puts magnetic materials into the picture (B, H and M), and lesson 4.7 lets the fields change in time: electromagnetic induction and inductance. For the electric side of the story, see electric fields and Gauss’s law. Iron cores and gaps are worked out in the magnetic circuit solver. For potentials, gauges and fields in matter at MSc level, see the GATE Physics course.

Check yourself

1A charged particle moves in a uniform magnetic field. What happens to its kinetic energy?
2Two long parallel wires carry currents in the same direction. What do they do?
3Inside a long straight wire carrying a uniform current, how does B depend on the distance s from the axis?

Sources

  • D. J. Griffiths, Introduction to Electrodynamics, 4th ed. (2017), chapter 5: magnetostatics
  • E. M. Purcell and D. J. Morin, Electricity and Magnetism, 3rd ed. (2013), chapter 6
  • H. C. Verma, Concepts of Physics, Part 2 (1993), chapters 34 and 35
  • IIT JAM Physics syllabus (Electricity and Magnetism section), published by the organising IIT each year

Your ticks stay in this browser. Save them as a file on the course home.

Updated 2026-11-22. Not affiliated with IIT or the JAM organising institute. Exam pattern as published for recent years: always check the official JAM website before the exam. All questions are original.