Magnetostatics §
Magnetostatics is the regime of electromagnetism in which currents are steady (time-independent). The governing laws are Ampère’s law and Gauss’s law for magnetism (no magnetic monopoles).
Typical applications: permanent magnets, inductors, MRI magnets.
When it is relevant. Magnetostatics is the slow, static limit of Electrodynamics, the magnetic sibling of Electrostatics. It applies whenever the currents of interest are steady — or change so slowly that the fields they produce are essentially constant on the timescale of the problem. The criterion is the same as in electrostatics: the system’s size is small compared with the distance light travels in the relevant time, , so the time-derivative terms in Maxwell’s equations vanish. Under that condition the magnetic field is produced only by steady currents (and by the steady magnetization of materials), and the whole problem is governed by two vector equations. This is the regime behind the field of a straight wire, the uniform field inside a solenoid, the force between parallel conductors, and the field of a permanent magnet.
This page treats vacuum magnetostatics first: the permeability is the vacuum value throughout. How a material modifies the field — permeability, the auxiliary field , and the constitutive relation — is developed in Section 5 and in Electromagnetic Media.
Authoritative sources
- Maxwell, A Dynamical Theory of the Electromagnetic Field (1865)
- Biot–Savart law (Wikipedia)
- Griffiths, Introduction to Electrodynamics (Ch. 5, Magnetostatics)
Part of Electromagnetism; the static limit of Electrodynamics.
1. Biot–Savart law §
Definition. The magnetic field at a point due to a small steady current element is
where points from the element to the field point and is the distance. The total field of a steady current is the vector integral (superposition) of these contributions. The field is always perpendicular to the current element and to the line joining it to the field point, and it circulates around the current according to the right-hand rule.
Details
The idea, step by step.
-
A current element is the magnetic analogue of a point charge. Just as a point charge produces an electric field (Coulomb’s law, Electrostatics), a tiny piece of wire carrying current produces a magnetic field. The Biot–Savart law is the magnetic “Coulomb’s law”: it gives the field of the smallest source element, and everything else is built by superposition.
-
The cross product sets the direction. The factor means the field is perpendicular to both the current direction and the line to the field point. Curl the fingers of your right hand in the direction of the current; your thumb points along and your curled fingers show how circles the wire. This is why the field of a straight wire is a set of concentric circles around it.
-
Integrate to get the field of a real wire. For a long straight wire, every element contributes a field tangent to a circle of radius around the wire, and all contributions point the same way. Integrating around the whole wire gives the classic result
The field falls as (not as in electrostatics) because a wire is an extended source, not a point.
- Authoritative source. See the Biot–Savart law and Griffiths, Introduction to Electrodynamics, Ch. 5.
Example problem
A long straight wire carries a steady current . Find the magnetic field at a distance from the wire.
Solution
Use the integrated Biot–Savart result for a long straight wire:
The field circles the wire; at the point in question it is tangent to the circle of radius (right-hand rule).
2. Ampère’s law §
Definition. The line integral of the magnetic field around any closed loop equals times the net current threading the loop:
Ampère’s law is the integral form of the curl of the field — the magnetic counterpart of Gauss’s law in Electrostatics. It is exact for any closed loop, but it is a calculation tool only when the current distribution has enough symmetry.
Details
The idea, step by step.
-
The circulation counts the enclosed current. The line integral sums the component of the field along a closed path. Ampère’s law says this circulation depends only on how much current passes through the surface bounded by the path — currents outside the loop contribute nothing to the net circulation. It is a “current counter,” exactly as Gauss’s law is a “charge counter.”
-
Why the field of a straight wire satisfies it. Take a circular loop of radius around a long straight wire. By the right-hand rule is everywhere tangent to the loop and has constant magnitude , so the integral is . The enclosed current is , so , recovering from Section 1 — but without doing the Biot–Savart integral.
-
Symmetry turns it into a calculator. Choose an Ampèrian loop on which is either constant and parallel to or perpendicular to it (so it contributes nothing):
- Infinite straight wire (cylindrical symmetry): a coaxial circle gives .
- Long solenoid (a coil of turns per unit length): a rectangular loop straddling the wall gives a uniform interior field and (ideally) zero outside.
- Toroid (a coil wound on a ring, total turns): a circular loop of radius inside the core gives , and zero outside.
- Authoritative source. Ampère’s law is one of Maxwell’s equations; see Maxwell (1865) and Griffiths, Introduction to Electrodynamics, Ch. 5.
Example problem
A long solenoid has turns per metre and carries a current . Use Ampère’s law to find the magnetic field inside the solenoid.
Solution
Choose a rectangular Ampèrian loop with one side inside the solenoid (length ), parallel to the axis, and the other side far outside where . Inside, is uniform and parallel to the path, so the integral is . The loop threads turns, each carrying , so :
The field is uniform and axial inside, and (for an ideal long solenoid) zero outside.
3. Magnetic vector potential §
Definition. Because , the magnetic field is the curl of a vector potential :
where is the distance from the source element to the field point. The vector potential is the magnetic analogue of the electrostatic scalar potential (with ): it is a bookkeeping quantity whose derivative gives the field.
Details
The idea, step by step.
-
No monopoles force a vector potential. In electrostatics the field is conservative (), so it is the gradient of a scalar . In magnetostatics the field is solenoidal (, no magnetic monopoles), so it is the curl of a vector . The two static regimes are exact mirrors: a scalar potential whose gradient gives , and a vector potential whose curl gives .
-
The potential is a sum of scalars, then differentiate. For a steady current the vector potential at a point is just a scalar sum over the current elements, — far easier to add than the vector Biot–Savart field. Once you have , the field is its curl. This “sum, then differentiate” strategy parallels the electrostatic one and is the workhorse for more complicated geometries.
-
Gauge freedom. is not unique: adding the gradient of any scalar, , leaves unchanged. Only (and, in quantum mechanics, the line integral of ) is physically observable — the content of the Aharonov–Bohm effect.
- Authoritative source. See Griffiths, Introduction to Electrodynamics, Ch. 5 (vector potential), and Maxwell (1865).
Example problem
A long straight wire along the -axis carries current . Show that a vector potential reproduces the field of Section 1.
Solution
With and , the curl in cylindrical coordinates has only a $`\phi`-component:
This is exactly the field of the long straight wire. The arbitrary constant reflects the gauge freedom: shifting by a constant (or by the gradient of a scalar) does not change .
4. Magnetic force on currents §
Definition. A charge moving with velocity in a magnetic field feels the Lorentz force
For a steady current in a wire, the force on a segment is . Two long parallel wires carrying currents and a distance apart exert a force per unit length
on each other — attractive for currents in the same direction, repulsive for opposite currents.
Details
The idea, step by step.
-
The magnetic force is always sideways. The cross product means the force is perpendicular to both the velocity and the field, so it changes the direction of a moving charge but never its speed. A magnetic field does no work on a charge; it only bends the trajectory into a circle or helix. This is the origin of the circular field lines of Section 1 — a moving charge’s own field circles its path.
-
A current in a field feels a force. The charges drifting through a wire each feel ; summed over the wire this is . This is the principle behind the electric motor (a current-carrying coil in a field experiences a torque) and the Hall effect.
-
Parallel wires attract or repel. Wire 1 creates a circular field at the location of wire 2. The current in wire 2 then feels . The right-hand rule shows the force pulls the wires together when the currents flow the same way and pushes them apart when they oppose. This force per unit length is in fact the historical definition of the ampere.
- Authoritative source. See Griffiths, Introduction to Electrodynamics, Ch. 5 (force on currents), and Maxwell (1865).
Example problem
Two long parallel wires are apart and each carries a current of in the same direction. Find the force per unit length between them, and state whether it is attractive or repulsive.
Solution
Because the currents flow in the same direction, the force is attractive.
5. Magnetic materials: the H field and permeability §
Definition. In a material the magnetic response is described by the auxiliary field , related to by the constitutive relation
where is the permeability and the relative permeability of the material. Ampère’s law is then written in terms of the free current: . A permanent magnet is a material with a fixed magnetization that produces a field even with no external current.
Details
The idea, step by step.
-
Why a second field, H? In vacuum and the two are proportional, so either suffices. In a material, however, the total current that sources has two parts: the free current you drive through a wire, and the bound current from the material’s microscopic magnetic dipoles aligning. The field is defined so that Ampère’s law counts only the free current, , leaving the material’s response in the relation . This is the magnetic twin of the / split in Electromagnetic Media.
-
Permeability measures how easily a material “conducts” magnetic field. A vacuum has . A diamagnet has just below 1 (it weakly opposes the field); a paramagnet just above 1 (it weakly enhances it); a ferromagnet (iron, nickel, cobalt) has a large, field-dependent that can reach thousands, which is why an iron core multiplies the field of a solenoid by a large factor.
-
Permanent magnets are steady currents in disguise. A permanent magnet’s field comes from the alignment of atomic magnetic moments (electron spin and orbital motion). Macroscopically this is equivalent to a bound surface current flowing around the magnet, so the field of a bar magnet is exactly the field of a steady current loop — the dipole field of Section 6. Magnetostatics therefore describes a permanent magnet without any time dependence: the “current” is frozen into the material.
- Authoritative source. See Electromagnetic Media for the full constitutive treatment, and Griffiths, Introduction to Electrodynamics, Ch. 5 (magnetic materials).
Example problem
The solenoid of Section 2 ( turns/m, ) is filled with a core of relative permeability . Find the magnetic field inside.
Solution
Ampère’s law in terms of depends only on the free current, so is unchanged by the core:
The field is then multiplied by the permeability:
The iron core boosts the field from (air core) to about — a factor of .
6. Magnetic dipole moment and dipole field §
Definition. A small current loop of current and area has a magnetic dipole moment
directed normal to the loop by the right-hand rule. Far from the loop ( loop size), its field is that of a magnetic dipole; on the axis of the dipole,
Details
The idea, step by step.
-
A loop is the simplest magnetic dipole. A single current loop has no net “magnetic charge,” but its field is concentrated on one face and returns on the other — just like the north and south poles of a bar magnet. The strength and orientation of this dipole are captured by the single vector . More loops (a coil of turns) give .
-
The far field falls as 1/r³. Close to the loop the field is complicated, but far away only the dipole term survives and it decays as — faster than the of a wire or the of a point charge. On the axis the field is , pointing along .
-
Dipoles are everywhere. A bar magnet’s field is a dipole field (Section 5); the Earth’s magnetic field is, to first order, a dipole field from its core; and the magnetic moment of an electron is the quantum dipole that makes ferromagnetism possible. The dipole is the universal building block of magnetostatic fields.
- Authoritative source. See Griffiths, Introduction to Electrodynamics, Ch. 5 (magnetic dipole field), and Maxwell (1865).
Example problem
A circular loop of radius carries a current . Find its magnetic dipole moment and the field on its axis at .
Solution
The dipole moment is
On the axis, far from the loop (), the dipole field is
The field points along the dipole moment (out of the “north” face of the loop).
Interactive: field of a current loop and solenoid §
Trace the magnetic field of a single current loop or a solenoid (a stack of loops) using the Biot–Savart law. Use the sliders to change the current and the number of turns, and watch the field become uniform inside the solenoid and fringe out at the ends.
Related topics §
- Electrostatics: the electric static limit; the mirror image of this page (scalar potential vector potential, Gauss’s law Ampère’s law).
- Electrodynamics: the time-varying regime of which magnetostatics is the static limit; Faraday’s law and the displacement current that break the steady-current assumption.
- Electromagnetic Media: how permeability and the constitutive relation modify the vacuum results of Section 5.
- Electromagnetic Radiation: the far-field, propagating limit of the same Maxwell equations.
Part of Electromagnetism.
Quizz §
Test yourself
Problem. A long solenoid of radius has turns per metre and carries a current .
- What is the magnetic field at the centre of the solenoid?
- What is the magnetic flux through a circular cross-section of the solenoid (radius )?
- If the current is doubled, by what factor does the field energy stored per unit length change? (The magnetic energy density is .)
Solution
- Inside a long solenoid the field is uniform and axial (Section 2):
- The flux through a cross-section of radius is :
- The energy density is , and . Doubling the current doubles , so the energy density — and hence the stored energy per unit length — increases by a factor of .