Submitted Successfully!
To reward your contribution, here is a gift for you: A free trial for our video production service.
Thank you for your contribution! You can also upload a video entry or images related to this topic.
Version Summary Created by Modification Content Size Created at Operation
1 handwiki -- 1564 2022-10-27 01:46:10

Do you have a full video?

# Confirm

Are you sure to Delete?
Cite
HandWiki. Gramian Matrix. Encyclopedia. Available online: https://encyclopedia.pub/entry/31485 (accessed on 14 June 2024).
HandWiki. Gramian Matrix. Encyclopedia. Available at: https://encyclopedia.pub/entry/31485. Accessed June 14, 2024.
HandWiki. "Gramian Matrix" Encyclopedia, https://encyclopedia.pub/entry/31485 (accessed June 14, 2024).
HandWiki. (2022, October 27). Gramian Matrix. In Encyclopedia. https://encyclopedia.pub/entry/31485
HandWiki. "Gramian Matrix." Encyclopedia. Web. 27 October, 2022.
Gramian Matrix

In linear algebra, the Gram matrix (or Gramian matrix, Gramian) of a set of vectors $\displaystyle{ v_1,\dots, v_n }$ in an inner product space is the Hermitian matrix of inner products, whose entries are given by $\displaystyle{ G_{ij}=\langle v_i, v_j \rangle }$. An important application is to compute linear independence: a set of vectors are linearly independent if and only if the Gram determinant (the determinant of the Gram matrix) is non-zero. It is named after Jørgen Pedersen Gram.

inner product space g_{ij}\langle linearly

## 1. Examples

For finite-dimensional real vectors in $\displaystyle{ \mathbb{R}^n }$ with the usual Euclidean dot product, the Gram matrix is simply $\displaystyle{ G = V^\mathrm{T} V }$, where $\displaystyle{ V }$ is a matrix whose columns are the vectors $\displaystyle{ v_k }$. For complex vectors in $\displaystyle{ \mathbb{C}^n }$, $\displaystyle{ G = V^H V }$, where $\displaystyle{ V^H }$ is the conjugate transpose of $\displaystyle{ V }$.

Given square-integrable functions $\displaystyle{ \{\ell_i(\cdot),\,i=1,\dots,n\} }$ on the interval $\displaystyle{ [t_0,t_f] }$, the Gram matrix $\displaystyle{ G=[G_{ij}] }$ is:

$\displaystyle{ G_{ij}=\int_{t_0}^{t_f} \ell_i(\tau)\bar{\ell_j}(\tau)\, d\tau. }$

For any bilinear form $\displaystyle{ B }$ on a finite-dimensional vector space over any field we can define a Gram matrix $\displaystyle{ G }$ attached to a set of vectors $\displaystyle{ v_1,\dots, v_n }$ by $\displaystyle{ G_{ij} = B(v_i,v_j) }$. The matrix will be symmetric if the bilinear form $\displaystyle{ B }$ is symmetric.

### 1.1. Applications

• In Riemannian geometry, given an embedded $\displaystyle{ k }$-dimensional Riemannian manifold $\displaystyle{ M\subset \mathbb{R}^n }$ and a coordinate chart $\displaystyle{ \phi:U\to M }$ for $\displaystyle{ (x_1,\ldots,x_k)\in U\subset\mathbb{R}^k }$, the volume form $\displaystyle{ \omega }$ on $\displaystyle{ M }$ induced by the embedding may be computed using the Gramian of the coordinate tangent vectors:
$\displaystyle{ \omega = \sqrt{\det G}\ dx_1\cdots dx_k,\quad G = \left[\left\langle \tfrac{\partial\phi}{\partial x_i},\tfrac{\partial\phi}{\partial x_j}\right\rangle\right]. }$

This generalizes the classical surface integral of a parametrized surface $\displaystyle{ \phi:U\to S\subset \mathbb{R}^3 }$ for $\displaystyle{ (x,y)\in U\subset\mathbb{R}^2 }$:

$\displaystyle{ \int_S f\ dA \ =\ \iint_U f(\phi(x,y))\, \left|\tfrac{\partial\phi}{\partial x}\,{\times}\,\tfrac{\partial\phi}{\partial y}\right|\, dx\, dy. }$
• If the vectors are centered random variables, the Gramian is approximately proportional to the covariance matrix, with the scaling determined by the number of elements in the vector.
• In quantum chemistry, the Gram matrix of a set of basis vectors is the overlap matrix.
• In control theory (or more generally systems theory), the controllability Gramian and observability Gramian determine properties of a linear system.
• Gramian matrices arise in covariance structure model fitting (see e.g., Jamshidian and Bentler, 1993, Applied Psychological Measurement, Volume 18, pp. 79–94).
• In the finite element method, the Gram matrix arises from approximating a function from a finite dimensional space; the Gram matrix entries are then the inner products of the basis functions of the finite dimensional subspace.
• In machine learning, kernel functions are often represented as Gram matrices.[1]
• Since the Gram matrix over the reals is a symmetric matrix, it is diagonalizable and its eigenvalues are non-negative. The diagonalization of the Gram matrix is the singular value decomposition.

## 2. Properties

### 2.1. Positive-Semidefiniteness

The Gram matrix is symmetric in the case the real product is real-valued; it is Hermitian in the general, complex case by definition of an inner product.

The Gram matrix is positive semidefinite, and every positive semidefinite matrix is the Gramian matrix for some set of vectors. The fact that the Gramian matrix is positive-semidefinite can be seen from the following simple derivation:

$\displaystyle{ x^\textsf{T} \mathbf{G} x = \sum_{i,j}x_i x_j\left\langle v_i,v_j \right\rangle = \sum_{i,j}\left\langle x_i v_i, x_j v_j \right\rangle = \left\langle \sum_i x_i v_i, \sum_j x_j v_j \right\rangle =\left\| \sum_i x_i v_i \right\|^2 \geq 0 . }$

The first equality follows from the definition of matrix multiplication, the second and third from the bi-linearity of the inner-product, and the last from the positive definiteness of the inner product. Note that this also shows that the Gramian matrix is positive definite if and only if the vectors $\displaystyle{ v_i }$ are linearly independent (that is, $\displaystyle{ \textstyle\sum_i x_i v_i \neq 0 }$ for all $\displaystyle{ x }$).[2]

### 2.2. Finding a Vector Realization

Given any positive semidefinite matrix $\displaystyle{ M }$, one can be decompose it as:

$\displaystyle{ M = B^* B }$,

where $\displaystyle{ B^* }$ is the conjugate transpose of $\displaystyle{ B }$ (or $\displaystyle{ M = B^\textsf{T} B }$ in the real case). Here $\displaystyle{ B }$ is a $\displaystyle{ k \times n }$ matrix, where $\displaystyle{ k }$ is the rank of $\displaystyle{ M }$. Various ways to obtain such a decomposition include computing the Cholesky decomposition or taking the non-negative square root of $\displaystyle{ M }$.

The columns $\displaystyle{ b^{(1)},\dots,b^{(n)} }$ of $\displaystyle{ B }$ can be seen as n vectors in $\displaystyle{ \mathbb{C}^k }$ (or k-dimensional Euclidean space $\displaystyle{ \mathbb{R}^k }$, in the real case). Then

$\displaystyle{ M_{ij} = b^{(i)} \cdot b^{(j)} }$

where the dot product $\displaystyle{ a \cdot b = \sum_{\ell=1}^k \overline{a_\ell} b_\ell }$ is the usual inner product on $\displaystyle{ \mathbb{C}^k }$.

Thus a Hermitian matrix $\displaystyle{ M }$ is positive semidefinite if and only if it is the Gram matrix of some vectors $\displaystyle{ b^{(1)},\dots,b^{(n)} }$. Such vectors are called a vector realization of $\displaystyle{ M }$. The infinite-dimensional analog of this statement is Mercer's theorem.

### 2.3. Uniqueness of Vector Realizations

If $\displaystyle{ M }$ is the Gram matrix of vectors $\displaystyle{ v_1,\dots,v_n }$ in $\displaystyle{ \mathbb{R}^k }$, then applying any rotation or reflection of $\displaystyle{ \mathbb{R}^k }$ (any orthogonal transformation, that is, any Euclidean isometry preserving 0) to the sequence of vectors results in the same Gram matrix. That is, for any $\displaystyle{ k \times k }$ orthogonal matrix $\displaystyle{ Q }$, the Gram matrix of $\displaystyle{ Q v_1,\dots, Q v_n }$ is also $\displaystyle{ M }$.

This is the only way in which two real vector realizations of $\displaystyle{ M }$ can differ: the vectors $\displaystyle{ v_1,\dots,v_n }$ are unique up to orthogonal transformations. In other words, the dot products $\displaystyle{ v_i \cdot v_j }$ and $\displaystyle{ w_i \cdot w_j }$ are equal if and only if some rigid transformation of $\displaystyle{ \mathbb{R}^k }$ transforms the vectors $\displaystyle{ v_1,\dots,v_n }$ to $\displaystyle{ w_1,\dots,w_n }$ and 0 to 0.

The same holds in the complex case, with unitary transformations in place of orthogonal ones. That is, if the Gram matrix of vectors $\displaystyle{ v_1,\dots,v_n }$ is equal to the Gram matrix of vectors $\displaystyle{ w_1,\dots,w_n }$ in $\displaystyle{ \mathbb{C}^k }$, then there is a unitary $\displaystyle{ k \times k }$ matrix $\displaystyle{ U }$ (meaning $\displaystyle{ U^* U = I }$) such that $\displaystyle{ v_i = U w_i }$ for $\displaystyle{ i = 1,\dots,n }$.[3]

### 2.4. Other Properties

• The Gram matrix of any orthonormal basis is the identity matrix.
• The rank of the Gram matrix of vectors in $\displaystyle{ \mathbb{R}^k }$ or $\displaystyle{ \mathbb{C}^k }$ equals the dimension of the space spanned by these vectors.[2]

## 3. Gram Determinant

The Gram determinant or Gramian is the determinant of the Gram matrix:

$\displaystyle{ G(x_1,\dots, x_n)=\begin{vmatrix} \langle x_1,x_1\rangle & \langle x_1,x_2\rangle &\dots & \langle x_1,x_n\rangle\\ \langle x_2,x_1\rangle & \langle x_2,x_2\rangle &\dots & \langle x_2,x_n\rangle\\ \vdots&\vdots&\ddots&\vdots\\ \langle x_n,x_1\rangle & \langle x_n,x_2\rangle &\dots & \langle x_n,x_n\rangle\end{vmatrix}. }$

If $\displaystyle{ x_1, \cdots, x_n }$ are vectors in $\displaystyle{ \mathbb{R}^n }$, 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.

The Gram determinant can also be expressed in terms of the exterior product of vectors by

$\displaystyle{ G(x_1,\dots,x_n) = \| x_1\wedge\cdots\wedge x_n\|^2. }$

### References

1. Lanckriet, G. R. G.; Cristianini, N.; Bartlett, P.; Ghaoui, L. E.; Jordan, M. I. (2004). "Learning the kernel matrix with semidefinite programming". Journal of Machine Learning Research 5: 27–72 [p. 29]. https://dl.acm.org/citation.cfm?id=894170.
2. Horn & Johnson 2013, p. 441, p.441, Theorem 7.2.10
3. (Horn Johnson), p. 452, Theorem 7.3.11
More
Information
Subjects:
Contributor MDPI registered users' name will be linked to their SciProfiles pages. To register with us, please refer to https://encyclopedia.pub/register :
View Times: 4.8K
Entry Collection:
Revision: 1 time (View History)
Update Date: 27 Oct 2022
1000/1000