1. Home
  2. Explore
  3. Physics
  4. Biot–Savart and Ampère’s Laws

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Biot–Savart and Ampère’s Laws

Biot–Savart Law and Ampère’s Law

Biot–Savart Law

The Biot–Savart law describes the infinitesimal magnetic field produced by an infinitesimal segment of a current-carrying wire. It was established experimentally and expresses how the field depends on the current, the segment’s orientation, and the observation point’s distance from it.

dB=μ04πI dL×r^r2d\mathbf{B} = \frac{\mu_0}{4\pi} \frac{I\,d\mathbf{L}\times\hat{\mathbf{r}}}{r^2}dB=4πμ0​​r2IdL×r^​

Here:

  • dBd\mathbf{B}dB is the infinitesimal magnetic field produced by the wire segment.

  • μ0\mu_0μ0​ is the magnetic permeability of free space, equal to 4π×10−7 T⋅m/A4\pi \times 10^{-7}\ \text{T}\cdot\text{m}/\text{A}4π×10−7 T⋅m/A.

  • III is the conventional current in the wire.

  • dLd\mathbf{L}dL is an infinitesimal length vector pointing along the current.

  • r^\hat{\mathbf{r}}r^ is a unit vector pointing from the wire segment toward the location where the field is being found.

  • rrr is the distance from the wire segment to that location.

The magnitude of the infinitesimal field is

dB=μ04πI dLsin⁡θr2,dB = \frac{\mu_0}{4\pi} \frac{I\,dL\sin\theta}{r^2},dB=4πμ0​​r2IdLsinθ​,

where θ\thetaθ is the angle between dLd\mathbf{L}dL and r^\hat{\mathbf{r}}r^. The cross product means that the field is perpendicular to both vectors. A current-carrying wire creates a magnetic field because electric current consists of moving electric charges; even a single moving charge produces a magnetic field.

Finding the direction of dBd\mathbf{B}dB

The cross product in the Biot–Savart law determines the direction of the field. A right-hand rule can be applied as follows:

  1. Point the fingers of the right hand along dLd\mathbf{L}dL, in the direction of conventional current.

  2. Curl the fingers toward r^\hat{\mathbf{r}}r^, the direction from the wire segment to the observation point.

  3. The thumb points in the direction of dBd\mathbf{B}dB.

The magnetic field direction is often represented using symbols for perpendicular directions:

  • A dot (∙\bullet∙) represents a vector coming out of the page, like the tip of an arrow moving toward the observer.

  • A cross (×\times×) represents a vector going into the page, like the fletching of an arrow moving away from the observer.

Example: Field around a straight wire

Consider a straight wire carrying current to the right.

  • At a point below the wire, r^\hat{\mathbf{r}}r^ points downward. The right-hand rule gives a field directed into the page.

  • At a point above the wire, r^\hat{\mathbf{r}}r^ points upward. The field is directed out of the page.

For a fixed infinitesimal segment, points along a line parallel to the wire can have the same field direction, while the field’s magnitude changes as the distance from the segment changes. In the Biot–Savart law, the distance appears in the denominator as r2r^2r2, so increasing rrr reduces the segment’s contribution to the field.

The field due to a complete wire is found by adding the contributions from all its infinitesimal segments. For an infinitely long, straight wire, the combined field has the same magnitude at every point the same perpendicular distance from the wire. Its magnitude decreases as the distance from the wire increases.

Right-hand rule for the field around a wire

A second, especially convenient right-hand rule gives the direction of the magnetic field surrounding an entire current-carrying wire:

  1. Point the right thumb in the direction of conventional current.

  2. The curled fingers show the direction of the magnetic field circling the wire.

For a wire carrying current to the right, the field is out of the page above the wire and into the page below it. Viewed along the wire, reversing the current reverses the field’s circulation: the field that was counterclockwise becomes clockwise, and vice versa.

Field of an infinitely long, straight wire

For an infinitely long, straight wire carrying current III, the magnetic-field magnitude at perpendicular distance rrr is

B=μ0I2πr.B=\frac{\mu_0 I}{2\pi r}.B=2πrμ0​I​.

This shows that the field is proportional to the current and inversely proportional to the distance from the wire. The field direction circles the wire according to the right-hand rule.


Ampère’s Law

Ampère’s law relates the magnetic field around a closed loop to the current passing through the loop. The imaginary closed path used in the law is called an Amperian loop.

∮B⋅ds=μ0Ienc\oint \mathbf{B}\cdot d\mathbf{s} = \mu_0 I_{\text{enc}}∮B⋅ds=μ0​Ienc​

Here:

  • ∮\oint∮ indicates an integral around a complete closed loop.

  • B\mathbf{B}B is the magnetic field.

  • dsd\mathbf{s}ds is an infinitesimal displacement along the Amperian loop.

  • IencI_{\text{enc}}Ienc​ is the net current enclosed by the loop.

  • μ0\mu_0μ0​ is the permeability of free space.

The dot product can also be written as B dscos⁡θB\,ds\cos\thetaBdscosθ, where θ\thetaθ is the angle between the magnetic field and the direction of the path segment. Thus, field components parallel to the path contribute to the integral; perpendicular components contribute zero.

Relationship to Gauss’s law

Ampère’s law has a useful analogy with Gauss’s law for electricity:

  • Gauss’s law integrates electric flux over a closed surface and relates it to the charge enclosed by that surface.

  • Ampère’s law integrates the magnetic field along a closed loop and relates it to the current enclosed by that loop.

Both laws are especially useful when symmetry makes the field’s magnitude or direction easy to describe along the chosen imaginary boundary.


Applying Ampère’s Law to a Long, Straight Wire

Consider an infinitely long, straight wire carrying current III. A circular Amperian loop of radius rrr is drawn concentrically around the wire.

The wire’s magnetic field circles it, so the field is tangent to the circular loop at every point. The field has the same magnitude everywhere on the loop because every point is the same distance rrr from the wire. Therefore, B\mathbf{B}B is parallel to dsd\mathbf{s}ds around the loop, and θ=0\theta=0θ=0.

Ampère’s law becomes

∮B ds=μ0I.\oint B\,ds = \mu_0 I.∮Bds=μ0​I.

Since BBB is constant along the loop, it can be taken outside the integral. The integral of dsdsds around a circle is its circumference, 2πr2\pi r2πr:

B∮ds=B(2πr)=μ0I.B\oint ds = B(2\pi r) = \mu_0 I.B∮ds=B(2πr)=μ0​I.

Solving for the magnetic-field magnitude gives

B=μ0I2πr.B=\frac{\mu_0 I}{2\pi r}.B=2πrμ0​I​.

This matches the result from the Biot–Savart law. Ampère’s law makes the derivation straightforward because the circular symmetry ensures a constant field magnitude and a simple loop integral.


Solenoids

A solenoid is a long, insulated wire wound many times into a hollow cylinder. An ideal solenoid is one whose length is much greater than its diameter. In the idealization, it is treated as effectively infinitely long; unless otherwise specified, solenoids are treated as ideal.

Each winding of the wire is a turn. In a cross-section of a solenoid, the currents on one side of the windings point out of the page, while the currents on the opposite side point into the page.

Magnetic-field direction and cancellation

The direction of the field produced by the currents in the windings follows the right-hand rule.

  • The currents on one side of the solenoid produce fields whose components perpendicular to the solenoid’s axis cancel in the ideal, infinitely long limit. Their axial components reinforce one another.

  • The currents on the opposite side also reinforce one another along the axis, in the same direction as the first side’s net field inside the solenoid.

  • Outside an ideal solenoid, the contributions cancel, so the magnetic field is zero in the idealization.

For the current direction shown in the source example, the field inside points along the solenoid’s axis to the right. Reversing the current reverses the field direction.

Magnetic field lines form closed loops. The ideal solenoid model represents the outside field as zero because any return-field contributions are treated as extending infinitely far away. A real, finite solenoid has a nonzero field outside, particularly near its ends.


Applying Ampère’s Law to an Ideal Solenoid

To find the field inside an ideal solenoid, choose a rectangular Amperian loop with:

  • One long side of length ℓ\ellℓ inside the solenoid, parallel to its magnetic field.

  • The opposite long side outside the solenoid.

  • Two short sides perpendicular to the field.

The closed-loop integral is the sum of the contributions from the four sides:

  • Inside side: The field is uniform and parallel to dsd\mathbf{s}ds, so this side contributes BℓB\ellBℓ.

  • Outside side: The ideal solenoid’s field is zero, so this side contributes zero.

  • Two short sides: Each is perpendicular to the field, so B⋅ds=0\mathbf{B}\cdot d\mathbf{s}=0B⋅ds=0 on each side.

Therefore, Ampère’s law reduces to

Bℓ=μ0Ienc.B\ell=\mu_0 I_{\text{enc}}.Bℓ=μ0​Ienc​.

If the Amperian loop encloses NNN turns, each carrying current III, the enclosed current is

Ienc=NI.I_{\text{enc}}=NI.Ienc​=NI.

Consequently,

Bℓ=μ0NI,B\ell=\mu_0 NI,Bℓ=μ0​NI,

and the field inside the solenoid is

B=μ0NℓI.B=\mu_0\frac{N}{\ell}I.B=μ0​ℓN​I.

Turn density

The turn density nnn is the number of turns per unit length. For a section of solenoid,

n=Nℓ.n=\frac{N}{\ell}.n=ℓN​.

If the turns are uniformly distributed throughout the full solenoid, the same density can be calculated using the total number of turns and the solenoid’s full length. The magnetic field inside an ideal solenoid is therefore

B=μ0nI.B=\mu_0 nI.B=μ0​nI.

The field is proportional to both the current and the turn density. Increasing the current or adding more turns per unit length increases the field. In the ideal model, the field is uniform inside the solenoid and zero outside it.


When These Laws Are Most Useful

Biot–Savart and Ampère’s laws describe magnetic fields produced by currents, but their usefulness depends on the geometry:

  • The Biot–Savart law can be applied to current elements and integrated over a wire’s shape. It is particularly useful for determining fields in geometries where the contributions can be evaluated directly.

  • Ampère’s law is most useful when high symmetry makes the field constant or makes its direction relative to the loop easy to determine. Examples include infinitely long, straight wires, ideal solenoids, conductive slabs, and cylindrical conductors carrying current density.

  • In typical applications, an Amperian loop is chosen to match the symmetry of the field so that portions of the loop either contribute simply to the integral or contribute zero.

Ampère’s law is one of Maxwell’s equations, which together describe electromagnetism.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent