PHY 315 · Electricity and Magnetism I
Our notes
2 min readThe two laws of magnetostatics
- ∇·B = 0: no magnetic monopoles; field lines close on themselves. Integral form: ∮ B·da = 0 over any closed surface.
- 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
| Electrostatics | Magnetostatics |
|---|---|
| ∇·E = ρ/ε₀ | ∇·B = 0 |
| ∇×E = 0 | ∇×B = μ₀J |
| E = −∇V | B = ∇×A |
| Coulomb's law | Biot-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
-
Best pick University Physics Volume 2, 12.5 Ampère’s Law
(opens openstax.org in a new tab)
OpenStax, University Physics Volume 2, 12.5 Ampère’s Law, CC BY-NC-SA 4.0 · licence
-
University Physics Volume 2, 12.6 Solenoids and Toroids
(opens openstax.org in a new tab)
OpenStax, University Physics Volume 2, 12.6 Solenoids and Toroids, CC BY-NC-SA 4.0 · licence
-
Ampère's circuital law
(opens en.wikipedia.org in a new tab)
Wikipedia, Ampère's circuital law, CC BY-SA 4.0 · licence
-
Magnetic vector potential
(opens en.wikipedia.org in a new tab)
Wikipedia, Magnetic vector potential, CC BY-SA 4.0 · licence
-
NOUN PHY 403: Electrodynamics III
NOUN course book (PDF, about 0.9 MB). Magnetostatics, induction and Maxwell's equations.
(opens nou.edu.ng in a new tab)
-
OpenStax, University Physics Volume 2 (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, University Physics Volume 2 (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Electrodynamics: Introduction to the Magnetic Vector Potential
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
5.4.1 The Vector Potential
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
Ampere's Law & Magnetic Field of a Solenoid - Physics & Electromagnetism
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Physics 44 Magnetic Field Generated (11 of 28) Ampere's Law
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
8.02x - Lect 14 - Biot-Savart, div B = 0, High-voltage Power Lines, Leyden Jar revisited
50 min · ≈ 225 MB · about ₦126
(opens youtube.com in a new tab)
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.