Because ∇·B = 0, B = ∇ × A. A current loop is a magnetic dipole m = Ia with torque m × B, and a spinning charged shell has a uniform field (2/3)μ₀σωR inside.
What are you preparing for?We show the practice and previous year questions of your exam.
Start from zero: a potential for magnetism
In electrostatics, one scalar V gives the whole field E. Magnetic fields curl around currents, so no single scalar can do this everywhere. But B never has sources or sinks, and that opens a different door.
Any field with zero divergence is the curl of another field. For B that field is the vector potential A. It points along the currents that make it, which often makes it easier to find than B.
This chapter builds A for wires, solenoids and uniform fields, then uses it to study magnetic dipoles, spinning charged shells and magnetised spheres. Every one of these has been asked in recent UPSC papers.
Defining A (Geo 2025, IFoS 2025)
Definition. Because ∇⋅B=0, we may write B=∇×A. Adding any gradient to A leaves B unchanged, so we may also choose ∇⋅A=0, the Coulomb gauge.
Equation. Ampère's law becomes ∇×(∇×A)=−∇2A=μ0J. Each component obeys a Poisson equation, so by analogy with V,
A=4πμ0∫rJdV,dA=4πμ0rIdl
Geo 2025 q3a. For a single current element, dA points along dl and falls as r1, unlike dB, which is perpendicular to dl and falls as r21.
IFoS 2025 q6c: uniform field. Take A=21B×r with constant B. Then ∇⋅A=21[r⋅(∇×B)−B⋅(∇×r)]=0. And ∇×A=21[B(∇⋅r)−(B⋅∇)r]=21(3B−B)=B.
Analogy. Each line of electrostatics has a magnetic partner. ∇2V=−ε0ρ pairs with ∇2A=−μ0J. A point charge pairs with a current element, and 4πε01 with 4πμ0. Once this pattern is seen, most vector-potential integrals can be written down from a known electrostatic one.
Flux from A. Stokes' theorem gives Φ=∫B⋅da=∮A⋅dl. This line-integral route to the flux is often the quickest way to find A when there is symmetry.
Wires and solenoids (2025, IFoS 2024)
2025 q6a: finite wire. A wire of length L lies on the z-axis from −2L to 2L; P is at distance x from its midpoint. Then
For L ≫ x this becomes 2πμ0IlnxL. Taking the curl gives back B=2πxμ0I.
IFoS 2024 q6c: solenoid. By symmetry A circles the axis. Stokes' theorem says ∮A⋅dl equals the flux inside the loop.
Inside (s < R): 2πsA=μ0nIπs2, so Aϕ=2μ0nIs.
Outside (s > R): 2πsA=μ0nIπR2, so Aϕ=2sμ0nIR2.
Outside, B is zero but A is not; its curl vanishes there.
Check. In cylindrical coordinates Bz=s1∂s∂(sAϕ). Inside, s1∂s∂(2μ0nIs2)=μ0nI, as it should be. Outside, sAϕ is constant, so Bz=0.
The magnetic dipole
Far field of a loop. Expanding ∣r−r′∣1 as in the multipole expansion, the monopole term vanishes, because ∮dl=0. The leading term is
A=4πμ0r2m×r^,m=Ia
where a is the vector area of the loop.
Field. Taking the curl gives
B=4πr3μ0m(2cosθr^+sinθθ^)
the same shape as an electric dipole field. A small loop and a tiny bar magnet are indistinguishable from far away.
Torque and energy. In an external field, τ=m×B and U=−m⋅B. In a non-uniform field there is also a force ∇(m⋅B), which pulls magnets towards stronger fields.
No monopoles. The magnetic series starts at the dipole. No isolated magnetic charge has ever been found.
Atomic scale. An electron in the first Bohr orbit is a current loop with m=2meeℏ≈9.27×10−24 J T⁻¹, the Bohr magneton. Atoms are tiny magnetic dipoles, which is the starting point for magnetic materials.
Worked example. A circular coil of 100 turns and radius 5 cm carrying 2 A has m=100×2×π(0.05)2≈1.57 A m². At 1 m along its axis, B=2πr3μ0m≈3.1×10−7 T, about a hundredth of Earth's field.
Spinning charged shell (2023, Geo 2024)
Set-up. A shell of radius R with surface charge σ spins at angular velocity ω about z. The surface current is K=σv=σωRsinθϕ^.
Dipole moment (Geo 2024 q8b). A ring between θ and θ + dθ carries current dI=σωR2sinθdθ and has area πR2sin2θ. So
m=∫0ππσωR4sin3θdθ=34πσωR4
Vector potential (2023 q7c). The integral gives
A=3μ0Rσω×r(r≤R),A=3r3μ0R4σω×r(r≥R)
Results. Inside, A has the form 21B×r, so the field is uniform: B=32μ0σRω. Outside, A=4πμ0r3m×r with the m above. This is exactly a dipole at every r > R, not just far away.
Why it is exact. The surface current varies as sinθ, the pattern of a pure l = 1 term. No higher multipoles are present, so the outside field has no corrections at all. The same is true of the magnetised sphere in the next section.
Uniformly magnetised sphere (2018)
Bound current. Magnetisation M=M0z^ is equivalent to a surface current Kb=M×n^=M0sinθϕ^. That is the same pattern as the spinning shell, with σωR replaced by M0.
2018 q8b. With no free current, H=−∇ϕm.
Inside, ϕm=3M0z gives H=−3M0z^. Then B=μ0(H+M)=32μ0M0z^, uniform.
Outside, ϕm=3M0R3r2cosθ gives Hr=3r32M0R3cosθ and Hθ=3r3M0R3sinθ, with B=μ0H.
Reading the result. Outside is the field of a dipole m=34πR3M0, the total moment. Inside, H points against M; this is the demagnetising field, with factor 31 for a sphere.
Earth. To a first approximation, Earth's field is that of a magnetised sphere, tilted about 10° to the spin axis.
Numbers. A neodymium magnet has M ≈ 10⁶ A m⁻¹. A sphere of it has B=32μ0M≈0.84 T inside. Earth's dipole moment is about 8×1022 A m², which gives roughly 30 μT at the equator and 60 μT at the poles, a ratio of 2 exactly as the dipole formula predicts.
Deep dive: is A real?
Classical view. In classical physics only B exerts forces, and A is a convenience. Different gauges give different A for the same B.
Aharonov-Bohm. In 1959 Aharonov and Bohm predicted that electrons passing on either side of a long solenoid would shift their interference pattern when the current changes. The electrons never enter the field region; they travel only where B = 0 but A ≠ 0. The phase shift is ℏeΦ, set by the flux inside.
Confirmation. Tonomura's group in Japan confirmed it in 1986 with tiny shielded toroidal magnets. The effect now underlies flux quantisation in superconducting rings and SQUID magnetometers, which can measure fields from the human brain.
Gauge freedom. The same idea, that potentials carry more than fields, sits at the heart of modern particle physics. The forces of nature are all described by gauge potentials like A, and their freedom of choice fixes how particles interact.
Why A matters physically. In the Aharonov-Bohm effect, electrons passing outside a long solenoid, where B is zero, still show a shifted interference pattern. The shift depends on the line integral of A, which equals the enclosed flux. So the vector potential carries real physical information in quantum mechanics.
Vector potentials compared
Source
A
B
Uniform field
21B×r
B
Long wire
2πμ0IlnxLz^
2πxμ0I
Solenoid, inside
2μ0nIsϕ^
μ0nI
Solenoid, outside
2sμ0nIR2ϕ^
0
Dipole
4πμ0r2m×r^
dipole pattern
Spinning shell, inside
3μ0Rσω×r
32μ0σRω
Concept clarifications: commonly confused ideas
Writing a 15-mark answer
Question: "A spherical shell of radius R with uniform surface charge σ spins at angular velocity ω. Find its magnetic dipole moment and show that for r ≫ R its vector potential is that of a perfect dipole." (15 marks)
Surface current (2 marks).K=σωRsinθϕ^.
Dipole moment (5 marks). Rings; integrate sin3θ; 34πσωR4.
Vector potential (6 marks). Set up the integral with ω in the xz-plane; result outside.
Compare (2 marks). Match with 4πμ0r3m×r.
Examiner's tip. Put ω in the xz-plane and the field point on the z-axis to simplify the integral, then restore general directions with the vector form ω×r. State the symmetry argument explicitly; examiners reward it.
Mains practice: questions to try
These are practice questions written by us, not past papers. The UPSC questions on this topic are shown in the previous year questions panel.
#
Question
Marks
What it tests
1
Show that A=−Byx^ also gives a uniform field Bz^. Find the gauge function linking it to 21B×r.
10
gauge
2
Find the dipole moment of a uniformly charged disc of radius R spinning at ω.
10
dipole moment
3
A compass needle of moment 0.5 A m² sits in Earth's 40 μT field. Find the maximum torque and the work to reverse it.
5
torque, energy
4
Find B inside a sphere with magnetisation M=kr2z^.
15
bound currents
5
Find A for an infinite sheet of surface current K.
10
sheet
Quick revision
B=∇×A; Coulomb gauge; A=4πμ0∫rJdV.
Uniform field 21B×r; solenoid 2μ0nIs in, 2sμ0nIR2 out.
Finite wire: logarithm; long wire 2πμ0IlnxL.
Dipole A=4πμ0r2m×r^; τ=m×B; U=−m⋅B.
Spinning shell m=34πσωR4; inside B=32μ0σRω.
Magnetised sphere: B inside 32μ0M, H inside −3M.
Aharonov-Bohm: A matters in quantum physics.
Mains answer practice
Write your answer first, then open the points a good answer should cover.
Why can B be written as the curl of a vector potential A? Show that A is not unique and explain the Coulomb gauge.
Show answer points
∇·B = 0, so B = ∇×A
A + ∇λ gives the same B
choose ∇·A = 0 (Coulomb gauge)
then ∇²A = −μ₀J
A = (μ₀/4π)∫J/r dV, like Poisson for V
Show that A = ½ B × r gives a uniform field B and has zero divergence.
Show answer points
∇×(B × r) = B(∇·r) − (B·∇)r
= 3B − B = 2B
so ∇×A = B
∇·(B × r) = r·(∇×B) − B·(∇×r) = 0
Coulomb gauge satisfied
Find the vector potential inside and outside a long solenoid of radius R. Comment on A where B = 0.
Show answer points
∮A·dl = Φ
inside: A 2πs = μ₀nI πs², A = μ₀nIs/2
outside: A 2πs = μ₀nI πR², A = μ₀nIR²/(2s)
outside ∇×A = 0, so B = 0
A non-zero outside; relevant in Aharonov-Bohm effect
A circular coil of 100 turns and radius 5 cm carries 2 A in a field of 0.2 T at 30° to its axis. Find its magnetic moment, torque and potential energy.
Show answer points
m = NIπr² = 100 × 2 × π × 0.0025
m ≈ 1.57 A m²
τ = mB sin 30° ≈ 0.157 N m
U = −mB cos 30° ≈ −0.27 J
torque turns m towards B
Find the vector potential of a straight wire of length L carrying current I at a perpendicular distance x from its midpoint, and obtain B from it.