A quadrupole or quadrapole is one of a sequence of configurations of—for example—electric charge or current, or gravitational mass that can exist in ideal form, but it is usually just part of a multipole expansion of a more complex structure reflecting various orders of complexity.
The quadrupole moment tensor Q is a rank-two tensor (3x3 matrix) and is traceless (i.e. ). The quadrupole moment tensor has thus 9 components, but because of the symmetry and zero-trace property, only 5 of these are independent.
For a discrete system of point charges (or masses in the case of a gravitational quadrupole), each with charge (or mass ) and position relative to the coordinate system origin, the components of the Q matrix are defined by: