# Biot-Savart Law

The Biot–Savart law is named after Jean-Baptiste Biot and Félix Savart is an equation describing the magnetic field generated by an electric current who discovered this relationship in 1820. It relates the magnetic field to the magnitude, direction, length, and proximity of the electric current.

## Electric Current
### Electric currents (along closed curve)

The Biot–Savart law is used for computing the resultant magnetic field B at position r generated by a steady current I (for example due to a wire): a continual flow of charges which is constant in time and the charge neither accumulates nor depletes at any point. The law is a physical example of a line integral, being evaluated over the path C in which the electric currents flow. The equation in SI units is
Template:Equation box 1
where $d\mathbf {l}$ is a vector whose magnitude is the length of the differential element of the wire in the direction of conventional current, $\mathbf {r'} =\mathbf {r} -\mathbf {l}$, the full displacement vector from the wire element ($\mathbf {l}$) to the point at which the field is being computed ($\mathbf {r}$), and μ$_0$ is the magnetic constant. Alternatively:
    $\mathbf {B} (\mathbf {r} )={\frac {\mu _{0}}{4\pi }}\int _{C}{\frac {Id\mathbf {l} \times \mathbf {{\hat {r}}'} }{|\mathbf {r'} |^{2}}}$
where $\mathbf {{\hat {r}}'}$ is the unit vector of $\mathbf {r'}$. The symbols in boldface denote vector quantities.
The integral is usually around a closed curve, since electric currents can only flow around closed paths. An infinitely long wire (as used in the definition of the SI unit of electric current - the Ampere) is a counter-example.
To apply the equation, the point in space where the magnetic field is to be calculated is arbitrarily chosen ($\mathbf {r}$). Holding that point fixed, the line integral over the path of the electric currents is calculated to find the total magnetic field at that point. The application of this law implicitly relies on the superposition principle for magnetic fields, i.e. the fact that the magnetic field is a vector sum of the field created by each infinitesimal section of the wire individually.
There is also a 2D version of the Biot-Savart equation, used when the sources are invariant in one direction. In general, the current need not flow only in a plane normal to the invariant direction and it is given by $\mathbf {J}$. The resulting formula is:
    $\mathbf {B} (\mathbf {r} )={\frac {\mu _{0}}{2\pi }}\int _{C}\ {\frac {(\mathbf {J} \,dl)\times \mathbf {r} '}{|\mathbf {r} '|}}={\frac {\mu _{0}}{2\pi }}\int _{C}\ (\mathbf {J} \,dl)\times \mathbf {{\hat {r}}'}$

### Electric currents (throughout conductor volume)

The formulations given above work well when the current can be approximated as running through an infinitely-narrow wire. If the conductor has some thickness, the proper formulation of the Biot–Savart law (again in SI units) is:
Template:Equation box 1
or, alternatively:
    $\mathbf {B} (\mathbf {r} )={\frac {\mu _{0}}{4\pi }}\iiint _{V}\ {\frac {(\mathbf {J} \,dV)\times \mathbf {{\hat {r}}'} }{|\mathbf {r} '|^{2}}}$
where $dV$ is the volume element and $\mathbf {J}$ is the current density vector in that volume (in SI in units of A/m$^2$).
The Biot–Savart law is fundamental to magnetostatics, playing a similar role to Coulomb's law in electrostatics. When magnetostatics does not apply, the Biot–Savart law should be replaced by Jefimenko's equations.

### Constant uniform current

In the special case of a steady constant current I, the magnetic field $\mathbf {B}$ is
    $\mathbf {B} (\mathbf {r} )={\frac {\mu _{0}}{4\pi }}I\int _{C}{\frac {d\mathbf {l} \times \mathbf {{\hat {r}}'} }{|\mathbf {r'} |^{2}}}$
i.e. the current can be taken out of the integral.

### Point charge at constant velocity

In the case of a point charged particle q moving at a constant velocity v, Maxwell's equations give the following expression for the electric field and magnetic field:
    $\mathbf {E} ={\frac {q}{4\pi \epsilon _{0}}}{\frac {1-v^{2}/c^{2}}{(1-v^{2}\sin ^{2}\theta /c^{2})^{3/2}}}{\frac {\mathbf {{\hat {r}}'} }{|\mathbf {r} '|^{2}}}$
    $\mathbf {B} ={\frac {1}{c^{2}}}\mathbf {v} \times \mathbf {E}$
where $\mathbf {\hat {r}} '$ is the unit vector pointing from the current (non-retarded) position of the particle to the point at which the field is being measured, and θ is the angle between $\mathbf {v}$ and $\mathbf {r} '$.
When v$^2$ ≪ c$^2$, the electric field and magnetic field can be approximated as
    $\mathbf {E} ={\frac {q}{4\pi \epsilon _{0}}}\ {\frac {\mathbf {{\hat {r}}'} }{|\mathbf {r} '|^{2}}}$
    $\mathbf {B} ={\frac {\mu _{0}q}{4\pi }}\mathbf {v} \times {\frac {\mathbf {{\hat {r}}'} }{|\mathbf {r} '|^{2}}}$
These equations are called the "Biot–Savart law for a point charge" due to its closely analogous form to the "standard" Biot–Savart law given previously. These equations were first derived by Oliver Heaviside in 1888.