The
Gram determinant or
Gramian is the determinant of the Gram matrix: \bigl|G(v_1, \dots, v_n)\bigr| = \begin{vmatrix} \langle v_1,v_1\rangle & \langle v_1,v_2\rangle &\dots & \langle v_1,v_n\rangle \\ \langle v_2,v_1\rangle & \langle v_2,v_2\rangle &\dots & \langle v_2,v_n\rangle \\ \vdots & \vdots & \ddots & \vdots \\ \langle v_n,v_1\rangle & \langle v_n,v_2\rangle &\dots & \langle v_n,v_n\rangle \end{vmatrix}. If v_1, \dots, v_n are vectors in \mathbb{R}^m then it is the square of the
n-dimensional volume of the
parallelotope formed by the vectors. In particular, the vectors are
linearly independent if and only if the parallelotope has nonzero
n-dimensional volume, if and only if Gram determinant is nonzero, if and only if the Gram matrix is
nonsingular. When the determinant and volume are zero. When , this reduces to the standard theorem that the absolute value of the determinant of
n n-dimensional vectors is the
n-dimensional volume. The volume of the
simplex formed by the vectors is . When v_1, \dots, v_n are linearly independent, the distance between a point x and the linear span of v_1, \dots, v_n is \sqrt{\frac}. Consider the moment problem: given c_1, \dots, c_n \in \mathbb C, find a vector v such that \left\langle v, v_i\right\rangle=c_i, for all 1 \leqslant i \leqslant n. There exists a unique solution with minimal norm:v=-\frac{1}{G\left(v_1, v_2, \ldots, v_n\right)} \det \begin{bmatrix} 0 & c_1 & c_2 & \cdots & c_n \\ v_1 & \left\langle v_1, v_1\right\rangle & \left\langle v_1, v_2\right\rangle & \cdots & \left\langle v_1, v_n\right\rangle \\ v_2 & \left\langle v_2, v_1\right\rangle & \left\langle v_2, v_2\right\rangle & \cdots & \left\langle v_2, v_n\right\rangle \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ v_n & \left\langle v_n, v_1\right\rangle & \left\langle v_n, v_2\right\rangle & \cdots & \left\langle v_n, v_n\right\rangle \end{bmatrix}The Gram determinant can also be expressed in terms of the
exterior product of vectors by :\bigl|G(v_1, \dots, v_n)\bigr| = \| v_1 \wedge \cdots \wedge v_n\|^2. The Gram determinant therefore supplies an
inner product for the space {{tmath|{\textstyle\bigwedge}^{\!n}(V)}}. If an
orthonormal basis ei, on is given, the vectors : e_{i_1} \wedge \cdots \wedge e_{i_n},\quad i_1 will constitute an orthonormal basis of
n-dimensional volumes on the space {{tmath|{\textstyle\bigwedge}^{\!n}(V)}}. Then the Gram determinant \bigl|G(v_1, \dots, v_n)\bigr| amounts to an
n-dimensional
Pythagorean theorem for the volume of the parallelotope formed by the vectors v_1 \wedge \cdots \wedge v_n in terms of its projections onto the basis volumes e_{i_1} \wedge \cdots \wedge e_{i_n}. When the vectors v_1, \ldots, v_n \in \mathbb{R}^m are defined from the positions of points p_1, \ldots, p_n relative to some reference point p_{n+1}, :(v_1, v_2, \ldots, v_n) = (p_1 - p_{n+1}, p_2 - p_{n+1}, \ldots, p_n - p_{n+1})\,, then the Gram determinant can be written as the difference of two Gram determinants, : \bigl|G(v_1, \dots, v_n)\bigr| = \bigl|G((p_1, 1), \dots, (p_{n+1}, 1))\bigr| - \bigl|G(p_1, \dots, p_{n+1})\bigr|\,, where each (p_j, 1) is the corresponding point p_j supplemented with the coordinate value of 1 for an (m+1)-st dimension. Note that in the common case that , the second term on the right-hand side will be zero. ==Constructing an orthonormal basis==