# Contents

## Idea

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 $M$ in the general linear group ${\mathrm{GL}}_{n}\left(ℝ\right)$ (or ${\mathrm{GL}}_{n}\left(ℂ\right)$) as a product $M=UT$ where $T$ is an upper triangular matrix and $U$ 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 ${\mathrm{GL}}_{n}$ to orthogonal group ${O}_{n}$ (or the unitary group ${U}_{n}$).

## Gram–Schmidt process on Hilbert spaces

In this section, “basis” is understood to signify an ordered independent set whose linear span is dense in a Hilbert space $H$ seen as a metric space. We will describe the Gram–Schmidt process as applied to a $d$-dimensional Hilbert space for some cardinal $d$ with a basis ${v}_{0},{v}_{1},\dots$ consisting of $d$ vectors.

The orthonormal basis ${u}_{0},{u}_{1},\dots$ produced as output is defined recursively by a) subtracting the orthogonal projection to the closed subspace generated by all previous vectors and b) normalizing. We denote the orthogonal projection onto a closed subspace $A$ by ${\pi }_{A}:H\to A$ and the normalization $v/\parallel v\parallel$ of a vector $v\in H$ by $N\left(v\right)$. For ordinals $\alpha define

${u}_{\alpha }:=N\left({v}_{\alpha }-{\pi }_{\overline{span\left(\left\{{v}_{\beta }:\beta <\alpha \right\}\right)}}\left({v}_{\alpha }\right)\right)$u_\alpha := N\left(v_\alpha - \pi_\overline{\operatorname{span}\left(\left\{v_\beta \colon \beta \lt \alpha\right\}\right)}\left(v_\alpha\right)\right)

where the projection is known to exist, since $H$ is complete. This can be rewritten more explicitly using transfinite recursion as

${u}_{\alpha }=N\left({v}_{\alpha }-\sum _{\beta <\alpha }⟨{v}_{\alpha },{u}_{\beta }⟩{u}_{\beta }\right)$u_\alpha = N\left(v_\alpha - \sum_{\beta \lt \alpha} \langle v_\alpha, u_\beta\rangle u_\beta\right)

where the sum on the right is well defined by the Bessel inequality, i.e. only countably many coefficients are non-zero and they are square-summable. A simple (transfinite) inductive argument shows that the ${u}_{\alpha }$ are unit vectors orthogonal to each other, and that the span of $\left\{{u}_{\beta }:\beta <\alpha \right\}$ is equal to the span of $\left\{{v}_{\beta }:\beta <\alpha \right\}$ for $\alpha \le d$. Therefore ${u}_{0},{u}_{1},\dots$ is an orthonormal basis of $H$.

## Example of Legendre polynomials

A classic illustration of Gram–Schmidt is the production of the Legendre polynomials.

Let $H$ be the Hilbert space $H={L}^{2}\left(\left[-1,1\right]\right)$, equipped with the standard inner product defined by

$⟨f,g⟩={\int }_{-1}^{1}\overline{f\left(x\right)}g\left(x\right)dx$\langle f, g\rangle = \int_{-1}^1 \bar{f(x)} g(x) d x

By the Stone-Weierstrass theorem, the space of polynomials $ℂ\left[x\right]$ is dense in $H$ according to its standard inclusion, and so the polynomials $1,x,{x}^{2},\dots$ form an ordered basis of $H$.

Applying the Gram–Schmidt process, one readily computes the first few orthonormal functions:

${u}_{1}\left(x\right)=N\left(1\right)=1/2$u_1(x) = N(1) = 1/2
${u}_{2}\left(x\right)=N\left(x-0\right)=\sqrt{3/2}x$u_2(x) = N(x - 0) = \sqrt{3/2} x
${u}_{3}\left(x\right)=N\left({x}^{2}-⟨{x}^{2},1/2⟩1/2-0\right)=N\left({x}^{2}-1/3\right)=3\sqrt{5/2}/2\left({x}^{2}-1/3\right)$u_3(x) = N(x^2 - \langle x^2, 1/2\rangle 1/2 - 0) = N(x^2 - 1/3) = 3\sqrt{5/2}/2(x^2 - 1/3)

The classical Legendre polynomials ${P}_{n}\left(x\right)$ are scalar multiplies of the functions ${u}_{n}$, adjusted so that ${P}_{n}\left(1\right)=1$; they satisfy the orthogonality relations

$⟨{P}_{n},{P}_{m}⟩=\frac{2}{2n+1}{\delta }_{m,n}$\langle P_n, P_m\rangle = \frac{2}{2n + 1}\delta_{m, n}

where ${\delta }_{m,n}$ is the Kronecker delta?.

## Application to non-bases

If we apply the Gram–Schmidt process to a well-ordered independent set whose closed linear span $S$ is not all of $H$, we still get an orthonormal basis of the subspace $S$. If we apply the Gram–Schmidt process to a dependent set, then we will eventually run into a vector $v$ whose norm is zero, so we will not be able to take $N\left(v\right)$. In that case, however, we can simply remove $v$ 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 $\parallel v\parallel \ne 0$. However, it does work to discrete fields, such as the algebraic closure of the rationals, as seen in elementary undergraduate linear algebra.)

## Categorified Gram–Schmidt process

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 ${S}_{n}$. (As a running example, we consider ${S}_{4}$; up to isomorphism, there are five irreducible representations

${U}_{\left(4\right)},\phantom{\rule{thinmathspace}{0ex}}{U}_{\left(31\right)},\phantom{\rule{thinmathspace}{0ex}}{U}_{\left(22\right)},\phantom{\rule{thinmathspace}{0ex}}{U}_{\left(211\right)},\phantom{\rule{thinmathspace}{0ex}}{U}_{\left(1111\right)}$U_{(4)}, \, U_{(3 1)}, \, U_{(2 2)}, \, U_{(2 1 1)}, \, U_{(1 1 1 1)}

classified by the five Young diagrams of size 4. To save space, we denote these as ${U}_{1}$, ${U}_{2}$, ${U}_{3}$, ${U}_{4}$, ${U}_{5}$.) The irreducible representations ${U}_{i}$ of ${S}_{n}$ form a $2$-orthonormal basis in the sense that any two of them ${U}_{i},{U}_{j}$ satisfy the relation

$\mathrm{hom}\left({U}_{i},{U}_{j}\right)\cong {\delta }_{ij}\cdot ℂ$hom(U_i, U_j) \cong \delta_{i j} \cdot \mathbb{C}

(where $n\cdot ℂ$ indicates a direct sum of $n$ 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 $n$ to itself; this forms a parabolic subgroup of ${S}_{n}$, conjugate to one of type ${P}_{\left({n}_{1}\dots {n}_{k}\right)}={S}_{{n}_{1}}×\dots ×{S}_{{n}_{k}}$ where ${n}_{i}$ is the length of the ${i}^{\mathrm{th}}$ row of the Young diagram. The group ${S}_{n}$ acts transitively on the orbit space of cosets

${S}_{n}/{P}_{\left({n}_{1}\dots {n}_{k}\right)}$S_n/P_{(n_1 \ldots n_k)}

and these actions give permutation representations of ${S}_{n}$. Equivalently, these are representations ${V}_{i}$ 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 $P$, $Q$ in $G={S}_{n}$, the $2$-inner product

${\mathrm{hom}}_{G}\left(ℂ\left[G/P\right],ℂ\left[G/Q\right]\right)$hom_G(\mathbb{C}[G/P], \mathbb{C}[G/Q])

may be identified with the free vector space on the set of double cosets $P\G/Q$. One may count the number of double cosets by hand in a simple case like $G={S}_{4}$. That is, for the 5 representations ${V}_{1},\dots ,{V}_{5}$ induced from the 5 parabolic subgroups ${P}_{i}$ corresponding to the 5 Young diagrams listed above, the dimensions of the 2-inner products $\mathrm{hom}\left({V}_{i},{V}_{j}\right)$ are the sizes of the corresponding double coset spaces ${P}_{i}\{S}_{4}/{P}_{j}$. These numbers form a matrix as follows (following the order of the $5$ partitions listed above):

$\left(\begin{array}{ccccc}1& 1& 1& 1& 1\\ 1& 2& 2& 3& 4\\ 1& 2& 3& 4& 6\\ 1& 3& 4& 7& 12\\ 1& 4& 6& 12& 24\end{array}\right)$\left( \array {1 & 1 & 1 & 1 & 1 \\ 1 & 2 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 & 6 \\ 1 & 3 & 4 & 7 & 12 \\ 1 & 4 & 6 & 12 & 24 }\right)

To reiterate: this matrix is the decategorification (a matrix of dimensions) of a matrix of $2$-inner products where the $\left(ij\right)$-entry is of the form

${\mathrm{hom}}_{G}\left({V}_{i},{V}_{j}\right)\cong {V}_{i}^{*}{\otimes }_{G}{V}_{j}$hom_G(V_i, V_j) \cong V_i^* \otimes_G V_j

where the ${V}_{i}$ are induced from inclusions of parabolic subgroups. The ${V}_{i}$ are $ℕ$-linear combinations of irreducible representations ${U}_{i}$ which form a $2$-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

${\mathrm{hom}}_{G}\left({U}_{i},{V}_{j}\right)\cong {U}_{i}^{*}{\otimes }_{G}{V}_{j}$hom_G(U_i, V_j) \cong U_i^* \otimes_G V_j

where ${U}_{i}$ is the irreducible corresponding to the $i$th Young diagram (as listed above). The upper triangular matrix is

$\left(\begin{array}{ccccc}1& 1& 1& 1& 1\\ 0& 1& 1& 2& 3\\ 0& 0& 1& 1& 2\\ 0& 0& 0& 1& 3\\ 0& 0& 0& 0& 1\end{array}\right)$\left( \array {1 & 1 & 1 & 1 & 1 \\ 0 & 1 & 1 & 2 & 3 \\ 0 & 0 & 1 & 1 & 2 \\ 0 & 0 & 0 & 1 & 3 \\ 0 & 0 & 0 & 0 & 1} \right)

and we read off from the columns the following decompositions into irreducible components:

${V}_{1}\cong {U}_{1}$V_1 \cong U_1
${V}_{2}\cong {U}_{1}+{U}_{2}$V_2 \cong U_1 + U_2
${V}_{3}\cong {U}_{1}+{U}_{2}+{U}_{3}$V_3 \cong U_1 + U_2 + U_3
${V}_{4}\cong {U}_{1}+2{U}_{2}+{U}_{3}+{U}_{4}$V_4 \cong U_1 + 2 U_2 + U_3 + U_4
${V}_{5}\cong {U}_{1}+3{U}_{2}+2{U}_{3}+3{U}_{4}+{U}_{5}$V_5 \cong U_1 + 3 U_2 + 2 U_3 + 3 U_4 + U_5

The last representation ${V}_{5}$ is the regular representation of ${S}_{4}$ (because the parabolic subgroup is trivial). Since we know from general theory that the multiplicity of the irreducible ${U}_{i}$ in the regular representation is its dimension, we get as a by-product the dimensions of the ${U}_{i}$ from the expression for ${V}_{5}$:

$\mathrm{dim}\left({U}_{1}\right)=1,\phantom{\rule{thinmathspace}{0ex}}\mathrm{dim}\left({U}_{2}\right)=3,\phantom{\rule{thinmathspace}{0ex}}\mathrm{dim}\left({U}_{3}\right)=2,\phantom{\rule{thinmathspace}{0ex}}\mathrm{dim}\left({U}_{4}\right)=3,\phantom{\rule{thinmathspace}{0ex}}\mathrm{dim}\left({U}_{5}\right)=1$dim(U_1) = 1, \, dim(U_2) = 3, \, dim(U_3) = 2, \, dim(U_4) = 3, \, dim(U_5) = 1

(the first of the ${U}_{i}$ is the trivial representation, and the last ${U}_{5}$ is the alternating representation).

The row operations themselves can be assembled as the lower triangular matrix

$\left(\begin{array}{ccccc}1& 0& 0& 0& 0\\ -1& 1& 0& 0& 0\\ 0& -1& 1& 0& 0\\ 1& -1& -1& 1& 0\\ 2& -1& -2& 0& 1\end{array}\right)$\left( \array {1 & 0 & 0 & 0 & 0 \\ -1 & 1 & 0 & 0 & 0 \\ 0 & -1 & 1 & 0 & 0 \\ 1 & -1 & -1 & 1 & 0 \\ 2 & -1 & -2 & 0 & 1 } \right)

and from the rows we read off the irreducible representations as “virtual” (i.e., $ℤ$-linear) combinations of the parabolically induced representations ${V}_{i}$:

${U}_{1}\cong {V}_{1}$U_1 \cong V_1
${U}_{2}\cong -{V}_{1}+{V}_{2}$U_2 \cong -V_1 + V_2
${U}_{3}\cong -{V}_{2}+{V}_{3}$U_3 \cong -V_2 + V_3
${U}_{4}\cong {V}_{1}-{V}_{2}-{V}_{3}+{V}_{4}$U_4 \cong V_1 - V_2 - V_3 + V_4
${U}_{5}\cong 2{V}_{1}-{V}_{2}-2{V}_{3}+{V}_{5}$U_5 \cong 2 V_1 - V_2 - 2 V_3 + V_5

which can be considered the result of the categorified Gram–Schmidt process.

It follows from these representations that the ${V}_{i}$ form a $ℤ$-linear basis of the representation ring $\mathrm{Rep}\left({S}_{4}\right)$. Analogous statements hold for each symmetric group ${S}_{n}$.

Revised on May 31, 2012 06:10:18 by The User? (91.5.198.184)