The Gram–Schmidt process is an algorithm which takes as input an ordered basis? of an inner product space and produces as output an ordered orthonormal basis?.
In terms of matrices?, the Gram–Schmidt process is a procedure of factorization of a invertible matrix in the general linear group (or ) as a product where is an upper triangular matrix and is an orthonormal (or unitary) matrix; as such it is a special case of the more general Iwasawa decomposition? for a (connected) semisimple Lie group. Since the factorization depends smoothly on the parameters, the Gram–Schmidt procedure enables the reduction of the structure group of an inner product bundle (e.g., the tangent bundle of a Riemannian manifold or a Kähler manifold) from to orthogonal group (or the unitary group ).
In this section, “basis” is understood to signify an ordered independent set whose linear span is dense in a Hilbert space seen as a metric space. We will describe the Gram–Schmidt process as applied to a countable basis of an infinite-dimensional separable Hilbert space, although it would apply just as well to a well-ordered basis of any Hilbert space, separable or not.
The orthonormal basis produced as output is defined recursively as follows. We denote the normalization of a vector by . Put
where the sum on the right is understood to be empty (equal to ) in the case . A simple inductive argument shows that the are unit vectors orthogonal to each other, and that the span of is equal to the span of . Therefore is an orthonormal basis of .
A classic illustration of Gram–Schmidt is the production of the Legendre polynomials.
Let be the Hilbert space , equipped with the standard inner product defined by
By the Stone-Weierstrass theorem, the space of polynomials is dense in according to its standard inclusion, and so the polynomials form an ordered basis of .
Applying the Gram–Schmidt process, one readily computes the first few orthonormal functions:
The classical Legendre polynomials are scalar multiplies of the functions , adjusted so that ; they satisfy the orthogonality relations
where is the Kronecker delta?.
If we apply the Gram–Schmidt process to a well-ordered independent set whose closed linear span is not all of , we still get an orthonormal basis of the subspace . If we apply the Gram–Schmidt process to a dependent set, then we will eventually run into a vector whose norm is zero, so we will not be able to take . In that case, however, we can simply remove from the set and continue; then we will still get an orthonormal basis of the closed linear span. (This conclusion is not generally valid in constructive mathematics, since it relies on excluded middle applied to the statement that . However, it does work to discrete fields, such as the algebraic closure of the rationals, as seen in elementary undergraduate linear algebra.)
Many aspects of the Gram–Schmidt process can be categorified so as to apply to 2-Hilbert spaces. We will illustrate the basic idea with an example that was suggested to us by James Dolan.
Consider the category of complex representations of the symmetric group . (As a running example, we consider ; up to isomorphism, there are five irreducible representations
classified by the five Young diagrams of size 4. To save space, we denote these as , , , , .) The irreducible representations of form a -orthonormal basis in the sense that any two of them satisfy the relation
(where indicates a direct sum of copies of ). In fact, the irreducible representations are uniquely determined up to isomorphism by these relations.
There is however another way of associating representations to partitions or Young diagrams. Namely, consider the subgroup of permutations which take each row of a Young diagram or Young tableau of size to itself; this forms a parabolic subgroup? of , conjugate to one of type where is the length of the row of the Young diagram. The group acts transitively on the orbit space of cosets
and these actions give permutation representations of . Equivalently, these are representations which are induced from the trivial representation along inclusions of parabolic subgroups. We claim that these representations form a -basis of the representation ring, and we may calculate their characters using a categorified Gram–Schmidt process.
Given two such parabolic subgroups , in , the -inner product
may be identified with the free vector space on the set of double cosets . One may count the number of double cosets by hand in a simple case like . That is, for the 5 representations induced from the 5 parabolic subgroups corresponding to the 5 Young diagrams listed above, the dimensions of the 2-inner products are the sizes of the corresponding double coset spaces . These numbers form a matrix as follows (following the order of the partitions listed above):
To reiterate: this matrix is the decategorification (a matrix of dimensions) of a matrix of -inner products where the -entry is of the form
where the are induced from inclusions of parabolic subgroups. The are -linear combinations of irreducible representations which form a -orthonormal basis, and we may perform a series of elementary row operations which convert this matrix into an upper triangular matrix, and which will turn out to be the decategorified form of the 2-matrix with entries
where is the irreducible corresponding to the th Young diagram (as listed above). The upper triangular matrix is
and we read off from the columns the following decompositions into irreducible components:
The last representation is the regular representation of (because the parabolic subgroup is trivial). Since we know from general theory that the multiplicity of the irreducible in the regular representation is its dimension, we get as a by-product the dimensions of the from the expression for :
(the first of the is the trivial representation, and the last is the alternating representation).
The row operations themselves can be assembled as the lower triangular matrix
and from the rows we read off the irreducible representations as “virtual” (i.e., -linear) combinations of the parabolically induced representations :
which can be considered the result of the categorified Gram–Schmidt process.
It follows from these representations that the form a -linear basis of the representation ring . Analogous statements hold for each symmetric group .