Advanced Physics‹›⌂ 0:00 studied

Module 10 · 11 min read · Free chapter

Magnetic vector potential, magnetic dipoles, spinning shells and the uniformly magnetised sphere

In short

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\nabla\cdot\vec{B} = 0, we may write B⃗=∇×A⃗\vec{B} = \nabla\times\vec{A}. Adding any gradient to A leaves B unchanged, so we may also choose ∇⋅A⃗=0\nabla\cdot\vec{A} = 0, the Coulomb gauge.

Equation. Ampère's law becomes ∇×(∇×A⃗)=−∇2A⃗=μ0J⃗\nabla\times(\nabla\times\vec{A}) = -\nabla^2\vec{A} = \mu_0\vec{J}. Each component obeys a Poisson equation, so by analogy with V,

A⃗=μ04π∫J⃗rdV,dA⃗=μ04πI dl⃗r\vec{A} = \frac{\mu_0}{4\pi}\int\frac{\vec{J}}{r}dV, \qquad d\vec{A} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}}{r}

Geo 2025 q3a. For a single current element, dA points along dl⃗d\vec{l} and falls as 1r\dfrac{1}{r}, unlike dB, which is perpendicular to dl⃗d\vec{l} and falls as 1r2\dfrac{1}{r^2}.

IFoS 2025 q6c: uniform field. Take A⃗=12B⃗×r⃗\vec{A} = \dfrac{1}{2}\vec{B}\times\vec{r} with constant B⃗\vec{B}. Then ∇⋅A⃗=12[r⃗⋅(∇×B⃗)−B⃗⋅(∇×r⃗)]=0\nabla\cdot\vec{A} = \dfrac{1}{2}[\vec{r}\cdot(\nabla\times\vec{B}) - \vec{B}\cdot(\nabla\times\vec{r})] = 0. And ∇×A⃗=12[B⃗(∇⋅r⃗)−(B⃗⋅∇)r⃗]=12(3B⃗−B⃗)=B⃗\nabla\times\vec{A} = \dfrac{1}{2}[\vec{B}(\nabla\cdot\vec{r}) - (\vec{B}\cdot\nabla)\vec{r}] = \dfrac{1}{2}(3\vec{B} - \vec{B}) = \vec{B}.

Analogy. Each line of electrostatics has a magnetic partner. ∇2V=−ρε0\nabla^2V = -\dfrac{\rho}{\varepsilon_0} pairs with ∇2A⃗=−μ0J⃗\nabla^2\vec{A} = -\mu_0\vec{J}. A point charge pairs with a current element, and 14πε0\dfrac{1}{4\pi\varepsilon_0} with μ04π\dfrac{\mu_0}{4\pi}. 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⃗\Phi = \int\vec{B}\cdot d\vec{a} = \oint\vec{A}\cdot d\vec{l}. 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 −L2-\dfrac{L}{2} to L2\dfrac{L}{2}; P is at distance x from its midpoint. Then

Az=μ0I4π∫−L2L2dzz2+x2=μ0I4πln⁡x2+L24+L2x2+L24−L2A_z = \frac{\mu_0I}{4\pi}\int_{-\frac{L}{2}}^{\frac{L}{2}}\frac{dz}{\sqrt{z^2 + x^2}} = \frac{\mu_0I}{4\pi}\ln\frac{\sqrt{x^2 + \frac{L^2}{4}} + \frac{L}{2}}{\sqrt{x^2 + \frac{L^2}{4}} - \frac{L}{2}}

For L ≫ x this becomes μ0I2πln⁡Lx\dfrac{\mu_0I}{2\pi}\ln\dfrac{L}{x}. Taking the curl gives back B=μ0I2πxB = \dfrac{\mu_0I}{2\pi x}.

IFoS 2024 q6c: solenoid. By symmetry A circles the axis. Stokes' theorem says ∮A⃗⋅dl⃗\oint\vec{A}\cdot d\vec{l} equals the flux inside the loop.

  • Inside (s < R): 2πsA=μ0nIπs22\pi sA = \mu_0nI\pi s^2, so Aϕ=μ0nIs2A_\phi = \dfrac{\mu_0nIs}{2}.
  • Outside (s > R): 2πsA=μ0nIπR22\pi sA = \mu_0nI\pi R^2, so Aϕ=μ0nIR22sA_\phi = \dfrac{\mu_0nIR^2}{2s}.

Outside, B is zero but A is not; its curl vanishes there.

Check. In cylindrical coordinates Bz=1s∂∂s(sAϕ)B_z = \dfrac{1}{s}\dfrac{\partial}{\partial s}(sA_\phi). Inside, 1s∂∂s(μ0nIs22)=μ0nI\dfrac{1}{s}\dfrac{\partial}{\partial s}\left(\dfrac{\mu_0nIs^2}{2}\right) = \mu_0nI, as it should be. Outside, sAϕsA_\phi is constant, so Bz=0B_z = 0.

The magnetic dipole

Far field of a loop. Expanding 1∣r⃗−r⃗′∣\dfrac{1}{\lvert\vec{r} - \vec{r}'\rvert} as in the multipole expansion, the monopole term vanishes, because ∮dl⃗=0\oint d\vec{l} = 0. The leading term is

A⃗=μ04πm⃗×r^r2,m⃗=Ia⃗\vec{A} = \frac{\mu_0}{4\pi}\frac{\vec{m}\times\hat{r}}{r^2}, \qquad \vec{m} = I\vec{a}

where a⃗\vec{a} is the vector area of the loop.

Field. Taking the curl gives

B⃗=μ0m4πr3(2cos⁡θ r^+sin⁡θ θ^)\vec{B} = \frac{\mu_0m}{4\pi r^3}(2\cos\theta\,\hat{r} + \sin\theta\,\hat{\theta})

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⃗\vec{\tau} = \vec{m}\times\vec{B} and U=−m⃗⋅B⃗U = -\vec{m}\cdot\vec{B}. In a non-uniform field there is also a force ∇(m⃗⋅B⃗)\nabla(\vec{m}\cdot\vec{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=eℏ2me≈9.27×10−24m = \dfrac{e\hbar}{2m_e} ≈ 9.27 \times 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.57m = 100 \times 2 \times \pi(0.05)^2 ≈ 1.57 A m². At 1 m along its axis, B=μ0m2πr3≈3.1×10−7B = \dfrac{\mu_0m}{2\pi r^3} ≈ 3.1 \times 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⁡θ ϕ^\vec{K} = \sigma\vec{v} = \sigma\omega R\sin\theta\,\hat{\phi}.

Dipole moment (Geo 2024 q8b). A ring between θ and θ + dθ carries current dI=σωR2sin⁡θ dθdI = \sigma\omega R^2\sin\theta\,d\theta and has area πR2sin⁡2θ\pi R^2\sin^2\theta. So

m=∫0ππσωR4sin⁡3θ dθ=43πσωR4m = \int_0^\pi\pi\sigma\omega R^4\sin^3\theta\,d\theta = \frac{4}{3}\pi\sigma\omega R^4

Vector potential (2023 q7c). The integral gives

A⃗=μ0Rσ3ω⃗×r⃗(r≤R),A⃗=μ0R4σ3r3ω⃗×r⃗(r≥R)\vec{A} = \frac{\mu_0R\sigma}{3}\vec{\omega}\times\vec{r} \quad (r \le R), \qquad \vec{A} = \frac{\mu_0R^4\sigma}{3r^3}\vec{\omega}\times\vec{r} \quad (r \ge R)

Results. Inside, A has the form 12B⃗×r⃗\dfrac{1}{2}\vec{B}\times\vec{r}, so the field is uniform: B⃗=23μ0σRω⃗\vec{B} = \dfrac{2}{3}\mu_0\sigma R\vec{\omega}. Outside, A⃗=μ04πm⃗×r⃗r3\vec{A} = \dfrac{\mu_0}{4\pi}\dfrac{\vec{m}\times\vec{r}}{r^3} 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⁡θ\sin\theta, 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^\vec{M} = M_0\hat{z} is equivalent to a surface current K⃗b=M⃗×n^=M0sin⁡θ ϕ^\vec{K}_b = \vec{M}\times\hat{n} = M_0\sin\theta\,\hat{\phi}. That is the same pattern as the spinning shell, with σωR\sigma\omega R replaced by M0M_0.

2018 q8b. With no free current, H⃗=−∇ϕm\vec{H} = -\nabla\phi_m.

  • Inside, ϕm=M03z\phi_m = \dfrac{M_0}{3}z gives H⃗=−M03z^\vec{H} = -\dfrac{M_0}{3}\hat{z}. Then B⃗=μ0(H⃗+M⃗)=23μ0M0z^\vec{B} = \mu_0(\vec{H} + \vec{M}) = \dfrac{2}{3}\mu_0M_0\hat{z}, uniform.
  • Outside, ϕm=M0R33cos⁡θr2\phi_m = \dfrac{M_0R^3}{3}\dfrac{\cos\theta}{r^2} gives Hr=2M0R3cos⁡θ3r3H_r = \dfrac{2M_0R^3\cos\theta}{3r^3} and Hθ=M0R3sin⁡θ3r3H_\theta = \dfrac{M_0R^3\sin\theta}{3r^3}, with B⃗=μ0H⃗\vec{B} = \mu_0\vec{H}.

Reading the result. Outside is the field of a dipole m=43πR3M0m = \dfrac{4}{3}\pi R^3M_0, the total moment. Inside, H points against M; this is the demagnetising field, with factor 13\dfrac{1}{3} 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=23μ0M≈0.84B = \dfrac{2}{3}\mu_0M ≈ 0.84 T inside. Earth's dipole moment is about 8×10228 \times 10^{22} 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Φℏ\dfrac{e\Phi}{\hbar}, 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⃗\vec{A}, which equals the enclosed flux. So the vector potential carries real physical information in quantum mechanics.

Vector potentials compared

Source A⃗\vec{A} B⃗\vec{B}
Uniform field 12B⃗×r⃗\dfrac{1}{2}\vec{B}\times\vec{r} B⃗\vec{B}
Long wire μ0I2πln⁡Lx z^\dfrac{\mu_0I}{2\pi}\ln\dfrac{L}{x}\,\hat{z} μ0I2πx\dfrac{\mu_0I}{2\pi x}
Solenoid, inside μ0nIs2ϕ^\dfrac{\mu_0nIs}{2}\hat{\phi} μ0nI\mu_0nI
Solenoid, outside μ0nIR22sϕ^\dfrac{\mu_0nIR^2}{2s}\hat{\phi} 0
Dipole μ04πm⃗×r^r2\dfrac{\mu_0}{4\pi}\dfrac{\vec{m}\times\hat{r}}{r^2} dipole pattern
Spinning shell, inside μ0Rσ3ω⃗×r⃗\dfrac{\mu_0R\sigma}{3}\vec{\omega}\times\vec{r} 23μ0σRω\dfrac{2}{3}\mu_0\sigma R\omega

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)

  1. Surface current (2 marks). K⃗=σωRsin⁡θ ϕ^\vec{K} = \sigma\omega R\sin\theta\,\hat{\phi}.
  2. Dipole moment (5 marks). Rings; integrate sin⁡3θ\sin^3\theta; 43πσωR4\dfrac{4}{3}\pi\sigma\omega R^4.
  3. Vector potential (6 marks). Set up the integral with ω in the xz-plane; result outside.
  4. Compare (2 marks). Match with μ04πm⃗×r⃗r3\dfrac{\mu_0}{4\pi}\dfrac{\vec{m}\times\vec{r}}{r^3}.

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⃗\vec{\omega}\times\vec{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^\vec{A} = -By\hat{x} also gives a uniform field Bz^B\hat{z}. Find the gauge function linking it to 12B⃗×r⃗\dfrac{1}{2}\vec{B}\times\vec{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^\vec{M} = kr^2\hat{z}. 15 bound currents
5 Find A for an infinite sheet of surface current K. 10 sheet

Quick revision

  • B⃗=∇×A⃗\vec{B} = \nabla\times\vec{A}; Coulomb gauge; A⃗=μ04π∫J⃗rdV\vec{A} = \dfrac{\mu_0}{4\pi}\int\dfrac{\vec{J}}{r}dV.
  • Uniform field 12B⃗×r⃗\dfrac{1}{2}\vec{B}\times\vec{r}; solenoid μ0nIs2\dfrac{\mu_0nIs}{2} in, μ0nIR22s\dfrac{\mu_0nIR^2}{2s} out.
  • Finite wire: logarithm; long wire μ0I2πln⁡Lx\dfrac{\mu_0I}{2\pi}\ln\dfrac{L}{x}.
  • Dipole A⃗=μ04πm⃗×r^r2\vec{A} = \dfrac{\mu_0}{4\pi}\dfrac{\vec{m}\times\hat{r}}{r^2}; τ⃗=m⃗×B⃗\vec{\tau} = \vec{m}\times\vec{B}; U=−m⃗⋅B⃗U = -\vec{m}\cdot\vec{B}.
  • Spinning shell m=43πσωR4m = \dfrac{4}{3}\pi\sigma\omega R^4; inside B=23μ0σRωB = \dfrac{2}{3}\mu_0\sigma R\omega.
  • Magnetised sphere: B inside 23μ0M\dfrac{2}{3}\mu_0M, H inside −M3-\dfrac{M}{3}.
  • Aharonov-Bohm: A matters in quantum physics.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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.

    Show answer points
    • A along the wire
    • A_z = (μ₀I/4π)∫dz/√(x² + z²) from −L/2 to L/2
    • = (μ₀I/4π) ln[(√(x² + L²/4) + L/2)/(√(x² + L²/4) − L/2)]
    • B = −∂A_z/∂x
    • B = μ₀IL/[4πx√(x² + L²/4)], μ₀I/(2πx) for long wire
  6. A spherical shell of radius R with surface charge σ spins at angular velocity ω. Find its magnetic moment and the field inside.

    Show answer points
    • ring at θ: current dI = σωR² sin θ dθ
    • dm = dI πR² sin²θ
    • m = πσωR⁴∫sin³θ dθ = (4/3)πσωR⁴
    • inside B uniform = (2/3)μ₀σωR
    • outside: pure dipole field of m
  7. Find B and H inside a uniformly magnetised sphere of magnetisation M.

    Show answer points
    • bound surface current K_b = M sin θ φ̂
    • like a spinning shell with σωR = M
    • B_in = (2/3)μ₀M
    • H_in = B/μ₀ − M = −M/3
    • outside: dipole field of m = (4/3)πR³M
  8. Describe the Aharonov-Bohm effect and explain what it shows about the vector potential.

    Show answer points
    • electron beams pass on either side of a shielded solenoid
    • B = 0 on their paths, A ≠ 0
    • phase difference (e/ħ)∮A·dl = eΦ/ħ
    • interference fringes shift as Φ changes
    • A has physical meaning in quantum mechanics

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

Why can B be written as ∇ × A?

Because ∇·B = 0 everywhere.

What is A outside a long solenoid?

μ₀nIR²/(2s), non-zero though B = 0.

What is the field inside a magnetised sphere?

B = (2/3)μ₀M, uniform.

What does the Aharonov-Bohm effect show?

A has physical effects in quantum mechanics even where B = 0.

More in this module: Electricity and magnetism

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU BPHCT-133 Magnetic field and Ampère's law units
  2. OpenStax University Physics Volume 2, Chapter 12: Sources of magnetic fields
  3. MIT OpenCourseWare 8.07 Electromagnetism II, notes on the vector potential