# Magnetic field

In physics, a**magnetic field**is an entity produced by moving electric charges (electric currents) that exerts a force on other moving charges. (The quantum-mechanical spin of a particle produces magnetic fields and is acted on by them as though it were a current; this accounts for the fields produced by "permanent" ferromagnets.)

A magnetic field is a vector field: it associates with every point in space a vector that may vary in time. The direction of the field is the equilibrium direction of a compass needle placed in the field.

Magnetic field is usually denoted by the symbol **B**. Historically, **B** was called the **magnetic flux density** or the **magnetic induction**, and **H** (= **B** / μ) was called the magnetic field, and this terminology is still often used to distinguish the two in the context of magnetic materials (non-trivial μ). Otherwise, however, this distinction is often ignored, and *both* symbols are frequently referred to as the magnetic field. (Some authors call **H** the *auxiliary field*, instead.)

## Formal definition

Like the electric field, the magnetic field can be defined by the force it produces:

**Lorentz force law**. The simplest mathematical statement describing how magnetic fields are produced makes use of vector calculus. In free space:

**J**is current, ∂ is the partial derivative,

*ε*

_{0}is the permittivity,

**E**is the electric field and

*t*is time. The first equation is known as Ampère;'s law with Maxwell's correction. The second term of this equation (Maxwell's correction) disappears in static or quasi-static systems. The second equation is a statement of the observed non-existence of magnetic monopoles. These are two of Maxwell's equations.

## Properties

Maxwell did much to unify static electricity and magnetism, producing a set of four equations relating the two fields. However, under Maxwell's formulation, there were still two distinct fields describing different phenomena. It was Albert Einstein who showed, using special relativity, that electric and magnetic fields are two aspects of the same thing (a rank-2 tensor), and that one observer may perceive a magnetic force where a moving observer perceives an electrostatic force. Thus, using relativity, magnetic forces may be predicted from knowledge of electrostatic forces alone. The equations given above are valid under relativity—indeed, their validity without relativity is questionable.

Technically, the magnetic field isn't a vector according to the formal definition, it is a pseudovector: it gains an extra sign flip under improper rotations of the coordinate system. (The distinction is important when using symmetry to analyze magnetic-field problems.) This is a consequence of the fact that **B** is related to two true vectors by a cross product (e.g. in the Lorentz force law).

See also electromagnetism, magnetism, electromagnetic field, electric field, Maxwell's equations