The Biot-Savart law gives an expression for the net magnetic flux density () at a point due to a current through a differential length element.

where is the magnetic permeability constant (often of free space). To calculate the total magnetic field, we integrate over the wire.

Using the right-hand rule, we can determine the direction of .

Computations

To find the magnetic flux density, we take several steps that are very similar to our computation of the electric field.

  1. Choose an applicable coordinate system.
  2. Pick an arbitrary differentially small length element, and determine an expression for .
  3. Find the resulting expression for .
  4. Integrate over a suitable integral.

As always, points to the source, and points to the observation point.

Simple geometry

For a long straight wire:

For a semi-infinite straight wire:

At the centre of a circular arc with angle (we can use this to derive the other formulas):