Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Examples  



1.1  Applications  







2 Properties  



2.1  Positive-semidefiniteness  





2.2  Finding a vector realization  





2.3  Uniqueness of vector realizations  





2.4  Other properties  







3 Gram determinant  





4 Constructing an orthonormal basis  





5 See also  





6 References  





7 External links  














Gram matrix






Català
Čeština
Deutsch
Ελληνικά
Español
Français

Italiano
עברית
Nederlands

Polski
Slovenščina
Српски / srpski
Українська

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Inlinear algebra, the Gram matrix (orGramian matrix, Gramian) of a set of vectors in an inner product space is the Hermitian matrixofinner products, whose entries are given by the inner product .[1] If the vectors are the columns of matrix then the Gram matrix is in the general case that the vector coordinates are complex numbers, which simplifies to for the case that the vector coordinates are real numbers.

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.

Examples

[edit]

For finite-dimensional real vectors in with the usual Euclidean dot product, the Gram matrix is , where is a matrix whose columns are the vectors and is its transpose whose rows are the vectors . For complex vectors in , , where is the conjugate transposeof.

Given square-integrable functions on the interval , the Gram matrix is:

where is the complex conjugateof.

For any bilinear form on a finite-dimensional vector space over any field we can define a Gram matrix attached to a set of vectors by. The matrix will be symmetric if the bilinear form is symmetric.

Applications

[edit]

Properties

[edit]

Positive-semidefiniteness

[edit]

The Gram matrix is symmetric in the case the inner 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:

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 are linearly independent (that is, for all ).[1]

Finding a vector realization

[edit]

Given any positive semidefinite matrix , one can decompose it as:

,

where is the conjugate transposeof (or in the real case).

Here is a matrix, where is the rankof. Various ways to obtain such a decomposition include computing the Cholesky decomposition or taking the non-negative square rootof.

The columns of can be seen as n vectors in (ork-dimensional Euclidean space , in the real case). Then

where the dot product is the usual inner product on .

Thus a Hermitian matrix is positive semidefinite if and only if it is the Gram matrix of some vectors . Such vectors are called a vector realizationof. The infinite-dimensional analog of this statement is Mercer's theorem.

Uniqueness of vector realizations

[edit]

If is the Gram matrix of vectors in then applying any rotation or reflection of (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 orthogonal matrix , the Gram matrix of is also .

This is the only way in which two real vector realizations of can differ: the vectors are unique up to orthogonal transformations. In other words, the dot products and are equal if and only if some rigid transformation of transforms the vectors to 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 is equal to the Gram matrix of vectors in then there is a unitary matrix (meaning ) such that for .[3]

Other properties

[edit]

Gram determinant

[edit]

The Gram determinantorGramian is the determinant of the Gram matrix:

If are vectors in 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 n > m the determinant and volume are zero. When n = m, this reduces to the standard theorem that the absolute value of the determinant of n n-dimensional vectors is the n-dimensional volume. The Gram determinant is also useful for computing the volume of the simplex formed by the vectors; its volume is Volume(parallelotope) / n!.

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

When the vectors are defined from the positions of points relative to some reference point ,

then the Gram determinant can be written as the difference of two Gram determinants,

where each is the corresponding point supplemented with the coordinate value of 1 for an -st dimension.[citation needed] Note that in the common case that n = m, the second term on the right-hand side will be zero.

Constructing an orthonormal basis

[edit]

Given a set of linearly independent vectors with Gram matrix defined by , one can construct an orthonormal basis

In matrix notation, , where has orthonormal basis vectors and the matrix is composed of the given column vectors .

The matrix is guaranteed to exist. Indeed, is Hermitian, and so can be decomposed as with a unitary matrix and a real diagonal matrix. Additionally, the are linearly independent if and only if is positive definite, which implies that the diagonal entries of are positive. is therefore uniquely defined by . One can check that these new vectors are orthonormal:

where we used .

See also

[edit]

References

[edit]
  1. ^ a b c Horn & Johnson 2013, p. 441, p.441, Theorem 7.2.10
  • ^ 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].
  • ^ Horn & Johnson (2013), p. 452, Theorem 7.3.11
  • [edit]
    Retrieved from "https://en.wikipedia.org/w/index.php?title=Gram_matrix&oldid=1235306553"

    Categories: 
    Systems theory
    Matrices
    Determinants
    Analytic geometry
    Kernel methods for machine learning
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    All articles with unsourced statements
    Articles with unsourced statements from February 2022
     



    This page was last edited on 18 July 2024, at 17:04 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki