In special relativity, the electric and magnetic fields transform under Lorentz transformations. This can be written in the form of a rank two tensor - the electromagnetic tensor. The 16 contravariant components of the electromagnetic tensor, using Minkowski metric convention (+ − − −), are written in terms of the electromagnetic four-potential and the four-gradient as: