 A quadrupole field is shown in the lower figure on the right.Spherical harmonics can represent any scalar field (function of position) that satisfies certain properties.A magnetic field is a vector field, but if it is expressed in Cartesian components , each component is the derivative of the same scalar function called the "magnetic potential".