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.
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.
1. The Lorentz force
A charge moving with velocity through fields and feels
The magnetic part is perpendicular to , 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 goes round a circle:
The period does not depend on the speed, which is how a cyclotron works. If the velocity has a part along , that part is untouched and the path becomes a helix of pitch .
Worked example. A proton at m/s enters a 0.10 T field at to it. The period is s; along the field it moves at m/s; pitch cm. Using for the advance is the classic slip.
Crossed fields. With , a particle goes straight only if (a velocity selector), whatever its charge or mass. A particle starting from rest drifts at , along a cycloid, in the same direction for both signs of charge.
2. The Biot-Savart law
A short piece of wire carrying current makes a field
where points from the piece to the field point. Two things to notice: pieces pointing straight at the field point give nothing (), and the field curls around the current by the right-hand rule (thumb along , fingers along ).
- 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 | distance , angles from the perpendicular | |
| Infinite wire | ||
| Semi-infinite wire, from its end | on the perpendicular through the end | |
| Circular loop, centre | an arc of angle gives of this | |
| Circular loop, on axis |
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 .
Worked example: a hairpin. A semicircle of radius with two long straight legs running off tangentially in the same direction. At the centre: the arc gives , and each leg is a semi-infinite wire whose end is at the foot of the perpendicular, giving . All three point the same way:
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 . Each side is a segment at distance seen under : . Four sides: , about 10% less than the circle that just fits inside the square (), because most of the square’s wire is further from the centre.
3. Ampère’s law
For steady currents, the circulation of round any closed loop counts the current threading it:
It is the magnetic partner of Gauss’s law, and it is useful in exactly the same way: only when symmetry lets come out of the integral. The recipe: pick a loop along which is constant and parallel (or perpendicular) to the path, then solve.
| Current | Amperian loop | Field |
|---|---|---|
| Thick wire, uniform | circle | inside, outside |
| Coaxial cable | circle | between, 0 outside |
| Long solenoid | rectangle | inside, 0 outside |
| Toroid, turns | circle in the core | |
| Sheet of current | rectangle through it | either side |
Worked example. A wire of radius carries a current density . The current inside radius is , so : it grows as now, and .
“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 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 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 ; at an end it is about half. The coil field designer shows how Helmholtz pairs, with midway, fix that.
4. Magnetic dipoles
Far away, any small current loop looks the same: a magnetic dipole of moment (area vector by the right-hand rule). Its field has the same shape as an electric dipole’s: on the axis , in its plane half that and reversed. In a uniform field it feels no net force but a torque , with energy , lowest when aligned.
Spinning charges are dipoles. Cut the body into rings, find each ring’s current (charge ) and area, and add:
- Disc (, radius ): field at the centre .
- Thin shell (charge ): .
- Uniform solid sphere: .
If charge is spread like mass, every ring has , so the whole body does too: the classical gyromagnetic ratio. The electron’s spin has about twice that.
5. The vector potential
Since , we can write . is not unique: adding any gradient changes nothing. For a uniform , the choices , and all work. In the Coulomb gauge (), : 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 , with an off-axis cylindrical hole whose axis is displaced by . Treat it as a full cylinder with plus a hole-sized one with . Inside a solid cylinder , so in the hole
a uniform field, exactly like the uniform electric field in an off-centre cavity of a charged sphere (lesson 4.1).
- ; magnetic force does no work. Circles: , independent of speed.
- Biot-Savart: . Know the segment, infinite wire, loop centre (arcs as fractions) and loop axis results.
- Ampère: , useful only for infinite wires, solenoids, toroids and sheets.
- Parallel currents attract: .
- A small loop is a dipole : torque , energy . Spinning shell , solid sphere .
- with gauge freedom; superpose 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
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.