Historical Context & Motivation
For centuries, electricity and magnetism were regarded as entirely separate phenomena — static electricity produced sparks and lightning, while magnetism was the province of lodestones and compass needles. The intellectual breakthrough that unified these two domains began almost by accident in a Copenhagen lecture hall in 1820, when Hans Christian Ørsted noticed a compass needle deflect as current flowed through a nearby wire. That single observation launched one of the most productive eras in the history of physics, linking the flow of charge to the generation of magnetic fields and ultimately leading to Maxwell's unified theory of electromagnetism.
The central question that emerged from Ørsted's observation is deceptively simple: given a wire carrying a steady current I, what is the precise magnitude and direction of the magnetic field B at every point in the surrounding space? Answering this question rigorously requires the Biot–Savart law for arbitrary geometries and Ampère's law for highly symmetric ones — the two mathematical pillars upon which this lesson is built.
Core Principles & Definitions
Before diving into calculations, it is essential to internalize several foundational principles that govern the magnetic fields generated by steady currents. These principles connect the microscopic motion of charge carriers to the macroscopic field geometry and establish the conceptual vocabulary needed throughout the lesson.
Moving Charges Create B Fields
Right-Hand Rule
Superposition Principle
Inverse-Distance Dependence
Visualizing the Magnetic Field
The magnetic field around a long, straight current-carrying wire forms concentric circles centered on the wire. The following diagram illustrates a cross-sectional view: the wire carries conventional current out of the page (represented by a dot), and the field lines circulate counterclockwise according to the right-hand rule. Notice that the spacing between field lines increases with distance, reflecting the 1/r decrease in field strength.
Several key features are visible in the diagram. First, every field line forms a closed loop — magnetic field lines never begin or end at a point, which is a direct consequence of Gauss's law for magnetism (∇ · B = 0). Second, the field is purely tangential: at any given point, B is perpendicular to the radial direction from the wire. Third, the diagram's symmetry — identical in every azimuthal direction — is precisely what makes Ampère's law so efficient for this geometry, as it allows us to pull B out of the line integral around any concentric circular Amperian loop.
Mathematical Framework
Two complementary laws allow us to calculate the magnetic field produced by current-carrying conductors. The Biot–Savart law is the general tool: it works for wires of any shape, though the integration can be challenging. Ampère's law is a special-purpose shortcut: when the current distribution has sufficient symmetry (infinite straight wire, solenoid, toroid), it yields the answer with far less effort.
The Biot–Savart Law
The cross product (d𝓁 × r̂) ensures that the contribution dB is always perpendicular to the plane defined by the current element and the line connecting it to the field point. For a straight wire of infinite length carrying current I, integrating the Biot–Savart law over the entire wire yields the well-known result for the field at perpendicular distance r.
Ampère's Law
Derivation: Infinite Straight Wire via Ampère's Law
Choose a circular Amperian loop of radius r centered on the wire. By the cylindrical symmetry of the problem, B has the same magnitude everywhere on this loop and is everywhere tangent to it. Therefore B · d𝓁 = B d𝓁 at every point, and the line integral becomes B × (2πr). Setting this equal to μ₀I and solving for B yields the fundamental result.
Common Wire Configurations
While the infinite straight wire is the canonical example, many practical and exam-relevant situations involve different conductor geometries. Each configuration produces a characteristic field pattern that can be derived from the Biot–Savart law or, when symmetry permits, from Ampère's law. The following diagram and table summarize the three most important configurations encountered in introductory physics.
| Configuration | Formula for B | Field Pattern | Best Method |
|---|---|---|---|
| Infinite Straight Wire | μ₀I / (2πr) | Concentric circles; magnitude falls as 1/r | Ampère's law |
| Circular Loop (center) | μ₀I / (2R) | Dipole-like; field along axis through center | Biot–Savart law |
| Circular Loop (on axis) | μ₀IR² / [2(R² + x²)³ᐟ²] | Axial field; falls off as 1/x³ for x ≫ R | Biot–Savart law |
| Solenoid (interior) | μ₀nI | Uniform and parallel to axis inside; ≈ 0 outside | Ampère's law |
| Toroid | μ₀NI / (2πr) | Confined to interior of torus; zero outside | Ampère's law |
Worked Example: Field from Two Parallel Wires
Two long, parallel wires are separated by a distance d = 20 cm. Wire 1 carries a current I₁ = 5.0 A to the right, and Wire 2 carries a current I₂ = 3.0 A also to the right. Determine the magnitude and direction of the net magnetic field at a point P located midway between the wires.
Biot–Savart Law vs. Ampère's Law
Students often wonder when to use the Biot–Savart law versus Ampère's law. The answer depends entirely on the symmetry of the problem. Ampère's law is computationally elegant but only yields a simple result when you can identify an Amperian loop along which B is constant and either parallel or perpendicular to d𝓁 everywhere. In the absence of such symmetry, you must resort to the Biot–Savart law, which works universally but often requires nontrivial integration.
| Feature | Biot–Savart Law | Ampère's Law |
|---|---|---|
| Generality | Works for any current distribution — finite wires, loops, arbitrary shapes | Requires high symmetry: infinite wires, solenoids, toroids |
| Mathematical form | Vector integral over current elements; involves cross products | Scalar line integral around a closed loop |
| Typical difficulty | Often requires careful parameterization and trigonometric integrals | Reduces to algebra once the correct loop is chosen |
| Direction info | Automatically gives direction via the cross product | Gives magnitude; direction found separately via the right-hand rule |
| Analogy | Like Coulomb's law for electric fields — fundamental but brute-force | Like Gauss's law for electric fields — elegant but needs symmetry |
Connection to Advanced Electromagnetism
Everything developed in this lesson applies to magnetostatics — the regime in which currents are steady and charge distributions do not change in time. When currents vary, the story becomes richer and more complex. Maxwell recognized that Ampère's original law was incomplete: a time-varying electric field also generates a magnetic field, captured by the displacement current term he added. This correction completed the set of equations now known as Maxwell's equations and predicted the existence of electromagnetic waves — light itself.
| Feature | This Lesson (Magnetostatics) | Advanced (Full Electrodynamics) |
|---|---|---|
| Currents | Steady (∂ρ/∂t = 0); fields do not change in time | Time-varying; fields are dynamic and coupled |
| Ampère's law | ∮ B · d𝓁 = μ₀I_enc | ∮ B · d𝓁 = μ₀I_enc + μ₀ε₀ dΦ_E/dt (includes displacement current) |
| Key result | Static B fields from wires, loops, and solenoids | Electromagnetic waves, radiation, and antenna theory |
| Mathematical tools | Vector calculus: line integrals, cross products | PDEs, wave equations, retarded potentials, tensor notation |
In your next courses — particularly in intermediate electromagnetism (often structured around Griffiths' textbook) — you will see how Faraday's law of induction and the displacement current generalize the concepts introduced here. The magnetic vector potential A (where B = ∇ × A) will become a central object, simplifying calculations and connecting deeply to quantum mechanics through the Aharonov–Bohm effect. For now, however, a thorough command of the Biot–Savart law and Ampère's law for steady currents provides the essential foundation upon which all of these advanced developments rest.
Practice Problems
Lesson Summary
This lesson established that moving charges (currents) produce magnetic fields, a discovery rooted in Ørsted's 1820 experiment. The direction of the field is determined by the right-hand rule, and the field lines form closed loops around the conductor. For an infinite straight wire, the magnitude obeys B = μ₀I / (2πr), derivable from either the Biot–Savart law or Ampère's law. The superposition principle allows the net field from multiple wires to be computed as the vector sum of individual contributions.
Key configurations include the straight wire (B ∝ 1/r), the circular loop (dipole field, B = μ₀I/2R at center), and the solenoid (uniform interior field B = μ₀nI). Two parallel wires interact via the force per unit length F/L = μ₀I₁I₂/(2πd), with parallel currents attracting and antiparallel currents repelling. These results form the magnetostatic foundation upon which Maxwell's full electromagnetic theory — including time-varying fields, electromagnetic waves, and modern technologies like MRI — is built.