Historical Context & Motivation
The study of magnetic fields stretches back millennia, from the earliest observations of lodestone attracting iron to the sophisticated electromagnetic theory that underpins contemporary physics. Ancient Greek philosophers noted that certain stones found near the city of Magnesia in modern-day Turkey could attract iron filings, and Chinese navigators exploited this phenomenon in the magnetic compass as early as the eleventh century. Yet the leap from curiosity to quantitative science required centuries of painstaking experimentation, and it was not until the nineteenth century that physicists unified electricity and magnetism into a single coherent framework. Understanding this historical trajectory reveals why magnetic fields occupy such a central position in physics — they represent a paradigm shift from the idea of action at a distance to the modern concept of a field permeating space, mediating forces between charges and currents.
This rich history raises several interconnected questions that this lesson addresses: What exactly is a magnetic field, and how do we describe it mathematically? How do magnetic fields exert forces on moving charges and current-carrying conductors? And how does the superposition principle allow us to compute the net field produced by complex current distributions? These are the foundational questions of magnetostatics, and mastering them is prerequisite to understanding electromagnetic induction, Maxwell's equations, and ultimately the nature of light.
Core Principles & Definitions
A magnetic field, denoted B, is a vector field that assigns a magnitude and direction to every point in space, characterizing the influence that moving charges, electric currents, and magnetized materials exert on their surroundings. Unlike the electric field, which acts on charges regardless of their state of motion, the magnetic field produces a force only on charges in motion. The SI unit of magnetic field strength is the tesla (T), where 1 T = 1 kg·s−2·A−1. The older CGS unit, the gauss (G), relates by 1 T = 10⁴ G; the Earth's surface field is roughly 25–65 μT (0.25–0.65 G). Understanding the following core principles is essential before diving into the mathematics.
The Magnetic Field Vector B
Sources of Magnetic Fields
Magnetic Field Lines
Superposition Principle
Gauss's Law for Magnetism
Visualizing Magnetic Fields
A powerful way to build intuition for magnetic fields is to examine the field-line patterns produced by common sources. The diagram below illustrates the magnetic field of a bar magnet (equivalently, a magnetic dipole) alongside the field created by a long straight current-carrying wire. Notice that the bar magnet's field lines emerge from the north pole and loop back into the south pole, forming continuous closed curves. The wire's field lines, by contrast, form concentric circles centered on the wire, with the direction given by the right-hand rule: point the thumb of your right hand in the direction of conventional current, and your curled fingers indicate the circulation direction of B.
Several features of these diagrams deserve emphasis. First, the density of field lines in the bar-magnet diagram is greatest near the poles, reflecting the fact that the field magnitude is strongest there. Second, the field lines never cross — if they did, B would have two directions at that point, which is physically meaningless. Third, for the straight wire, the field magnitude decreases as 1/r, which is apparent from the increasing spacing of the concentric circles. This 1/r dependence contrasts with the 1/r² fall-off of the electric field from a point charge, and it arises because the wire is an extended, one-dimensional source rather than a zero-dimensional point source.
Mathematical Framework
The mathematical description of magnetic fields in the classical regime rests on two complementary formalisms: the Lorentz force law, which specifies how a given field acts on charges and currents, and the Biot–Savart law and Ampère's law, which specify how charges and currents produce the field. Together these equations fully describe magnetostatics — the regime of steady (time-independent) currents and fields.
Magnetic Fields from Common Sources
Applying the Biot–Savart law or Ampère's law to standard geometries yields canonical results that appear throughout physics and engineering. The table below summarizes the most important cases, and the following diagram illustrates the field inside a solenoid — one of the most useful field-producing devices because it generates a nearly uniform field over its interior volume.
| Source Geometry | Magnetic Field Expression | Key Features |
|---|---|---|
| Long straight wire | B = μ₀I / (2πr) | Concentric circles; falls off as 1/r; direction via right-hand rule |
| Circular loop (on axis) | B = μ₀IR² / [2(R² + x²)3/2] | Maximum at center (x = 0); resembles dipole field at large x |
| Infinite solenoid | B = μ₀nI (inside) | Uniform inside, ≈ 0 outside; n = turns per unit length |
| Toroid | B = μ₀NI / (2πr) (inside) | Confined to interior; N = total turns; B = 0 outside |
| Magnetic dipole (far field) | B ∝ μ₀m / (4πr³) | m = NIA (magnetic moment); falls off as 1/r³ |
The derivation of the solenoid field via Ampère's law is elegant. Choose a rectangular Amperian loop whose long side of length ℓ runs inside the solenoid parallel to the axis, and whose return path lies outside where B ≈ 0. The line integral then reduces to Bℓ = μ₀(nℓ)I, giving B = μ₀nI. This result is remarkable because it is independent of the position inside the solenoid and independent of the solenoid's radius — the field depends only on the turn density n and the current I. Real solenoids of finite length deviate from this ideal near their ends, where fringe fields emerge, but the approximation holds well over the central region.
Worked Example — Charged Particle in a Uniform Magnetic Field
A proton (q = 1.60 × 10⁻¹⁹ C, m = 1.67 × 10⁻²⁷ kg) enters a region of uniform magnetic field B = 0.50 T directed in the +z direction. The proton's velocity is v = 2.0 × 10⁶ m/s entirely in the +x direction. Determine the radius of the circular orbit, the cyclotron frequency, and the period of revolution.
Electric vs. Magnetic Fields — Parallels and Distinctions
Students often find it helpful to compare the magnetic field side by side with the electric field, since many of the mathematical structures are analogous while the physical behaviors differ profoundly. The table below highlights these parallels and distinctions, which become even more meaningful once you encounter Maxwell's equations and special relativity.
| Property | Electric Field E | Magnetic Field B |
|---|---|---|
| Source | Electric charges (static or moving) | Moving charges (currents) and changing E fields |
| Acts on | All charges, regardless of motion | Only charges in motion (F = qv × B) |
| Force direction | Parallel (or anti-parallel) to E | Perpendicular to both v and B |
| Work done | Can do positive or negative work; changes KE | Does zero work; changes direction only |
| Field lines | Begin on + charges, end on − charges (open) | Always closed loops (no monopoles) |
| Gauss's law | ∮ E · dA = Qenc / ε₀ | ∮ B · dA = 0 |
| SI unit | V/m (volt per meter) | T (tesla) |
Connections to Advanced Electromagnetism
The magnetostatic framework presented in this lesson is the starting point for a much deeper theory. Adding time dependence leads to Faraday's law of induction (a changing magnetic flux induces an EMF) and Maxwell's displacement current correction to Ampère's law. Together, these four Maxwell's equations unify electricity, magnetism, and optics. Special relativity further reveals that E and B are components of a single electromagnetic field tensor Fᵘᵛ, and what one observer calls a purely electric force, another observer in a different reference frame may interpret as partly magnetic.
| Concept | Magnetostatics (This Lesson) | Full Electrodynamics (Next Steps) |
|---|---|---|
| Ampère's law | ∮ B · dℓ = μ₀Ienc | ∮ B · dℓ = μ₀Ienc + μ₀ε₀ dΦE/dt |
| Faraday's law | Not applicable (∂B/∂t = 0) | ∮ E · dℓ = −dΦB/dt |
| Field energy | u = B² / (2μ₀) stored in field | Poynting vector S = (1/μ₀)(E × B) describes energy flow |
| Relativity | E and B treated as separate fields | Unified in the electromagnetic tensor Fᵘᵛ |
Looking ahead, the magnetic field also plays a pivotal role in quantum mechanics — orbital and spin magnetic moments of electrons determine atomic spectra and are the basis of magnetic resonance imaging (MRI). In condensed matter physics, the response of materials to applied B fields gives rise to phenomena ranging from diamagnetism and paramagnetism to the exotic quantum states of superconductors and topological insulators. Mastering the classical magnetic field concepts in this lesson prepares you for all of these advanced topics.
Practice Problems
Lesson Summary
The magnetic field B is a vector field produced by moving charges and currents that exerts a force only on charges in motion via the Lorentz force law F = qv × B. Because this force is always perpendicular to the velocity, it does zero work and changes direction but not speed — a fundamental distinction from the electric force. The Biot–Savart law and Ampère's law provide complementary methods for computing B from known current distributions, with Ampère's law being most efficient for geometries possessing high symmetry such as long wires, solenoids (B = μ₀nI), and toroids.
Magnetic field lines form closed loops — a manifestation of Gauss's law for magnetism (∮ B · dA = 0) and the absence of magnetic monopoles. Charged particles moving perpendicular to a uniform B trace circular orbits with radius r = mv / (qB) and a cyclotron frequency ω = qB / m that is independent of speed. These principles underpin technologies from velocity selectors and mass spectrometers to MRI machines and particle accelerators, and they serve as the foundation for the full time-dependent theory of electrodynamics described by Maxwell's equations.