UNIHIVE

Study Hub UNIPORT PHY 315

PHY 315 · Electricity and Magnetism I

Ampère's law, div B = 0 and the vector potential

The two laws of magnetostatics, fields of solenoids and toroids, and the vector potential A.

Our notes

2 min read

The two laws of magnetostatics

  1. ∇·B = 0: no magnetic monopoles; field lines close on themselves. Integral form: ∮ B·da = 0 over any closed surface.
  2. Ampère's law: ∇×B = μ₀J, or ∮ B·dl = μ₀I_enc round any closed loop.

Using Ampère's law

Like Gauss's law, it gives B easily only with symmetry.

Long straight wire: a circle of radius s: B 2πs = μ₀I → B = μ₀I/(2πs). ✓ (agrees with Biot-Savart)

Inside a thick wire of radius a with uniform current: I_enc = I s²/a² → B = μ₀Is/(2πa²), rising linearly from the centre.

Long solenoid (n turns per metre): a rectangular loop with one side inside: BL = μ₀nIL → B = μ₀nI inside, uniform, and about zero outside.
Example: n = 1,000 turns/m, I = 2.0 A: B = 4π × 10⁻⁷ × 1,000 × 2 = 2.51 × 10⁻³ T.

Toroid (N turns): B = μ₀NI/(2πs) inside, zero outside.

Infinite current sheet (surface current K, A/m): B = μ₀K/2 on each side, opposite directions.

Comparison with electrostatics

ElectrostaticsMagnetostatics
∇·E = ρ/ε₀∇·B = 0
∇×E = 0∇×B = μ₀J
E = −∇VB = ∇×A
Coulomb's lawBiot-Savart law

The vector potential

Because ∇·B = 0, B can be written as a curl: B = ∇×A.

  • In the Coulomb gauge (∇·A = 0), Ampère's law becomes ∇²A = −μ₀J: three Poisson equations, one for each component.
  • Solution: A = (μ₀/4π) ∫ J dτ / r (like the potential of a charge distribution).
  • A is not unique: adding the gradient of any scalar leaves B unchanged (gauge freedom).

Example: A uniform field B = B₀ẑ can come from A = ½B₀(−y, x, 0). Check: ∇×A = (0, 0, ½B₀ + ½B₀) = (0, 0, B₀). ✓
Flux through a loop = ∮ A·dl (by Stokes' theorem).

Boundary conditions for B

At a surface current K: B⊥ is continuous; B∥ jumps by μ₀K (perpendicular to K).

Exams usually ask

  • State the laws of magnetostatics in integral and differential forms.
  • Use Ampère's law for wires, solenoids, toroids and sheets.
  • Find A for a given B and check it.

Common mistake

Applying Ampère's law to a short wire segment. The law needs a closed current path and enough symmetry for B to be constant on the loop.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All PHY 315 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.