For vectors , the Gram matrix isTwo finite vector families with the same Gram matrix are related by an isometry between their spans; in finite dimensions that isometry can be extended to a unitary map after completing orthonormal bases.
A real matrix product giving pairwise dot products of columns, for , or rows, for . It is a positive semidefinite matrix. The kernel of a Gram product is determined by the corresponding factor, which makes these products useful for converting a zero quadratic form into an exact null space condition.
For real vectors in a Euclidean inner product space, their Gram matrix satisfies the displayed identity by expanding the squared norm. Thus every Gram matrix is a positive semidefinite matrix, and it is a positive-definite matrix exactly when the vector family is linearly independent. The complex version replaces transposes by conjugate transposes and uses .
For , the Gram matrix of unit vectors with common distinct-pair inner product is . Its eigenvalues are on the all-ones direction and on its orthogonal complement. It is a positive-definite symmetric matrix exactly when , permitting a linearly independent realization in . An explicit construction takes the columns ofThe two orthogonal projections have product zero, so ; positive eigenvalues also make invertible. At either endpoint the corresponding eigenspace becomes a linear dependence.
The determinant of a Gram matrix is nonnegative and vanishes precisely when its vectors are linearly dependent. In Euclidean three-dimensional space, three column vectors form a square matrix , whose Gram matrix is . Its determinant is , the square of the scalar triple product and of the parallelepiped volume.
For a basis of a finite-dimensional inner product space with conjugate-linear first argument, define and . Then and . This is the inner-product representation of the dual basis; requiring the dual vectors to lie in the given span is essential.
For a matrix with independent standard normal entries, is a Gaussian empirical Gram matrix and has expectation equal to the identity. With mean known to be zero it is the raw empirical second moment. Subtracting a sample mean would give a different estimator. On any fixed unit vector its quadratic form is a chi-squared variable divided by .
For with independent standard Gaussian rows in dimension , combine a constant-radius sphere metric net, the quadratic form net bound, the chi-squared concentration inequality, and a union bound. This gives for a numerical . Taking larger than a constant times gives exponential decay in . The subspace is fixed, so no union over supports is needed.
If has entrywise maximum norm at most , every vector supported on at most coordinates satisfies . Thus the squared norm distortion is at most on all such sparse vectors. Use the quadratic inequality at , where a ratio would be undefined.