Classical Gram-Schmidt Created 2026-10-14 Updated 2026-10-31
Classical Gram-Schmidt computes all orthogonal projection coefficients from the original input , then subtracts their sum as in the displayed Gram-Schmidt process formula.
An orthonormal basis of the polynomial space need not be indexed by polynomial degree. Permuting the normalized Legendre polynomials, for example, preserves orthonormality but changes the degrees attached to the labels. Results about the number of polynomial roots of require the extra condition , or that the polynomials arise by applying the Gram-Schmidt process to in that order. Under this degree ordering, is orthogonal to every polynomial of lower polynomial degree because those earlier basis members span .
For a positive integration weight on a nondegenerate interval, this implies that has distinct polynomial roots in the open interval. If fewer than roots change sign there, multiply by the product of their linear factors. The product has constant nonzero sign except at its finitely many zeros, so its weighted integral cannot vanish, contradicting orthogonality to this lower-degree polynomial. The usual Gaussian quadrature construction therefore uses the degree-ordered family; arbitrary relabelling is not enough.
Euclidean orthonormal frame 2026-10-14
This is a frame of a real vector bundle with a positive-definite fiber metric for which the basis vectors are orthonormal. The Gram-Schmidt process applied to any smooth local frame produces such frames smoothly. They are distinguished from Lorentzian orthonormal frames, whose metric has mixed signature.
Gaussian polynomial operator 2026-10-31
On , equip polynomials with the inner productThe linear operatorpreserves the space of polynomials of polynomial degree at most . Integration by parts, whose boundary terms vanish by Gaussian decay, givesThus equals its adjoint on an inner product space. If a nonzero polynomial of degree is an eigenvector, its leading coefficient forces its eigenvalue to be .
One can construct all these eigenvectors without solving a differential equation. The one-dimensional space is invariant: for and , the displayed identity gives . Its unit vector of positive real leading coefficient is therefore an eigenvector of degree . These choices are exactly the Gram-Schmidt process applied to , producing normalized Hermite polynomials. Their first three members areEvery polynomial is a finite linear combination of these orthonormal eigenvectors.
Gram-Schmidt process Created 2026-09-24 Updated 2026-10-14
The Gram-Schmidt process turns a finite ordered family of linearly independent vectors in an inner product space over the real numbers into an orthonormal basis of their linear span. It keeps every successive linear span, so the first new vectors describe exactly the same directions as the first inputs. Its idea is geometric: remove the orthogonal projection onto directions already found, then divide the remaining vector by its norm. This makes a complicated basis easier to use without changing the vector subspace it describes.[ref]
Start with and . At step , use the previously obtained orthonormal set to defineThe sum is the orthogonal projection onto a finite-dimensional subspace , and is the orthogonal projection residual. Linear independence ensures : otherwise would already be a linear combination of earlier inputs. If the input family is linearly dependent, use only the retained orthonormal vectors in the sum and omit an input whenever its remainder is the zero vector; do not divide by zero. The retained outputs still form an orthonormal basis of the original linear span, but their number can be smaller than .
For a short verification, orthonormality makes every earlier inner product vanish:Also is minus a linear combination of earlier vectors, while is plus that same linear combination. These two inclusions, followed by division by a nonzero norm, giveThe argument also works in an inner product space over the complex numbers with the existing inner product convention, linear in the first argument: the coefficients remain . With the convention linear in the second argument, write instead.
For a first picture, take and in with the ordinary dot product. ThenSubtracting the diagonal component leaves an orthogonal direction; dividing by its norm makes its length one. If the second input were instead, its orthogonal projection would be the entire input and , revealing linear dependence.
Gram-Schmidt orthogonalization in : input vectors, subtraction of an orthogonal projection, and an orthonormal basis
. Details. For a full three-dimensional calculation, use the ordinary dot product and the input vectorsThe first two steps giveAt the third step, the inner products are and . ConsequentlyThe three numerator vectors have pairwise dot products and squared Euclidean norms . Thus the displayed outputs are indeed an orthonormal basis, and the three nonzero remainders also confirm linear independence of the inputs. Keeping the removed coefficients produces the QR decomposition below.
An immediate reward is a reusable orthogonal projection: once an orthonormal basis of a vector subspace is known, any vector hasFor the linear span of just the first two inputs in the three-dimensional example, gives . Its orthogonal projection residual is , visibly in the missing orthogonal direction. This is the geometry behind the linear least-squares problem.
The formulas above describe exact arithmetic. With floating-point arithmetic, subtracting an orthogonal projection nearly equal to the input can leave a small remainder; dividing by its small norm can magnify existing roundoff error. The Classical Gram-Schmidt and Modified Gram-Schmidt arrangements agree in exact arithmetic but can give different rounded results. Exact linear dependence and a small computed remainder therefore require different judgments in a numerical implementation.[ref]
https://nhigham.com/wp-content/uploads/2023/10/high95m.pdf. Higham, The Test Matrix Toolbox for Matlab, §8, p. 22
Hadamard determinant inequality 2026-10-14
For a square matrix with row vectors , the absolute determinant is at most the product of the Euclidean norms of its rows. If the rows are dependent the determinant is zero. Otherwise Gram-Schmidt process leaves the determinant unchanged and replaces each row by its component orthogonal to its predecessors. The resulting orthogonal rows have lengths no greater than the original rows, and their volume is their product. This proves the inequality; equality holds for mutually orthogonal rows.
Orthogonal diagonalization of a real symmetric matrix Created 2026-10-06 Updated 2026-10-14
A real symmetric matrix has real eigenvalues, orthogonal eigenspaces for distinct eigenvalues, and an orthonormal basis of eigenvectors. From diagonalizability, apply the Gram-Schmidt process within each eigenspace; all its linear combinations stay in that eigenspace. This gives with an orthogonal matrix and real diagonal .
Orthogonal polynomial Created 2026-09-24 Updated 2026-10-18
An orthogonal polynomial family chooses polynomials that do not overlap under a specified inner product. For real polynomials on an interval , use the weighted inner productAssume , the weight is measurable and positive almost everywhere, and its absolute moments are finite for every integer . These conditions make the integrals finite and give every nonzero polynomial positive squared norm. A sequence is an orthogonal polynomial family when has real coefficients and polynomial degree exactly , and for .[ref]
18 Orthogonal Polynomials. NIST Digital Library of Mathematical Functions; Koornwinder, Wong, Koekoek, Swarttouw and Reinhardt, NIST DLMF Chapter 18, §18.2(i), equations 18.2.1 and 18.2.1_5: interval orthogonality and finite absolute moments
Here and is the Kronecker delta. Orthogonality does not require : an orthonormal set is obtained only after replacing by . Multiplying each member by any nonzero real constant preserves orthogonality, but changes its norm and the corresponding expansion coefficient. The monic orthogonal polynomial convention instead fixes each leading coefficient to one.
The first four Legendre polynomials, named for Adrien-Marie Legendre, use on and the normalization :Their orthogonality and squared norms areThus their Gram matrix has a positive diagonal and zero entries elsewhere, although their function graphs cross and overlap on the page. Orthogonality measures an integral of products, rather than separation of function graphs.[ref]
The first four Legendre polynomials and their exact integral Gram matrix: orthogonal, with unequal squared norms
. Details. For these four polynomials, a short verification expands each product and uses and . For example, and . The same calculation gives the diagonal entries . More generally, apply the Gram-Schmidt process to the monomial basis : at step , subtract projections onto the earlier polynomials. The result retains its leading term, has degree , and has positive norm, proving existence without a differential equation. Different degrees also give linear independence, so form a basis of the polynomials of degree at most .
This basis turns least-squares solutions for functions into independent scalar calculations, as the decoupled coefficients of orthogonal polynomial projections show. In a spectral method, increasing the degree enlarges the approximation space while keeping earlier projection coefficients fixed. Weighted integrals also connect the same orthogonal polynomials to Gaussian quadrature: its nodes are polynomial roots of a member of the family. The projection problem minimizes an integrated squared error; Gaussian quadrature uses the family to choose evaluation points for an integral.
Orthogonal projection onto a finite-dimensional subspace Created 2026-09-24 Updated 2026-10-14
A finite-dimensional linear subspace of an inner product space has a unique closest vector to any given vector . This is its orthogonal projection . If is an orthogonal basis of , compute it one direction at a time:The inner product convention here is linear in its first argument, including over the complex numbers. For an orthonormal basis, each denominator is one. When consists only of the zero vector, the empty sum gives . The finite-dimensional formula is described in Francis Narcowich, Inner Products and Norms: minimization problems.
Take and , using the dot product. With ,The orthogonal projection residual has . To verify the best approximation directly, every candidate in the line is , andThe smallest squared Euclidean norm error is therefore , attained only at . The diagram connects the perpendicular residual to this one-variable quadratic polynomial.
The perpendicular residual identifies the closest point on a line and the unique minimum of the squared error
. Details. The general mechanism is the Pythagorean theorem in an inner-product space. For any , the vectors and are orthogonal, soMoving away from inside adds a nonnegative squared norm, which is zero only when . This proves both optimality and uniqueness.
The useful feature is separation of preparation from evaluation. Construct an orthonormal basis once with the Gram-Schmidt process, then obtain each new best approximation using inner products instead of a fresh optimization problem. When is the column space of a matrix, this gives linear least squares; when is spanned by orthogonal polynomials, it gives a least-squares polynomial in an orthogonal-polynomial basis. The ambient inner product space need not be a Hilbert space for this finite-dimensional construction. In an infinite-dimensional target linear subspace, existence requires additional hypotheses, supplied by orthogonal decomposition by a closed subspace.
Orthogonal projection residual Created 2026-10-14 Updated 2026-10-31
An orthogonal projection residual is the difference between a vector and its orthogonal projection onto a linear subspace . It is orthogonal to every vector in , so for all . The Gram-Schmidt process uses such residuals to remove directions already represented by earlier basis vectors.
This is an optimality condition as well as a geometric description. No permitted change within can remove a further orthogonal component of . In the preceding dot product example, is perpendicular to the line spanned by .
The selected inner product matters. Keep and the same line, but use the weighted Euclidean inner product with . The projection coefficient and residual becomeNow , although . The orthogonality is with respect to , so it need not look perpendicular in the ordinary drawing. The squared weighted error isThe weighted optimum reduces the first-coordinate error from to , at the cost of increasing the magnitude of the second-coordinate error from to . The weights express which errors are more costly.
Changing the inner product changes the closest point: a circle and a weighted error ellipse touch the same permitted line at different points
. Details. In linear least squares, residual orthogonality to the column space is expressed by the normal equations for linear least squares. With a weighted Euclidean inner product, the corresponding real-matrix equation is . This makes the choice of error measurement part of the mathematical model, rather than merely a plotting convention.
Orthogonal structure on a real vector bundle 2026-10-14
An orthogonal structure is a reduction of the transition functions of a real rank- vector bundle to the orthogonal group. Its orthonormal frames define a fiber metric, independent of the chosen frame because orthogonal transitions preserve the inner product. Conversely a fiber metric gives smooth orthonormal frames by the Gram-Schmidt process, with orthogonal transition matrices. This equivalence does not require the vector bundle to be globally trivial.
Construct the vectors inductively by the Gram-Schmidt process, proving its needed properties directly. Suppose form an orthonormal basis of , and putFor every , taking an inner product with gives . Also , because otherwise would lie in the linear span of its predecessors, contrary to linear independence. DefineIt lies in , has unit norm, and is orthogonal to every with , since those vectors lie in . Writing gives . The same identity shows that span , completing the induction, including the empty sum at .
For uniqueness, any candidate expands in the basis . Orthogonality to every earlier , hence to every earlier , makes its first coefficients zero. Thus . Unit norm forces , and forces the positive sign. This proves uniqueness in the Gram-Schmidt process with positive normalization without assuming a projection theorem or any other major orthogonalization result.
The Gram-Schmidt process subtracts projections onto directions already constructed and then normalizes. Define recursivelywhere the empty sum for is zero. Assuming the preceding are orthonormal, taking the inner product of with , , gives zero. Moreover : otherwise would belong to the span of , contrary to linear independence. Normalization is therefore legitimate and produces an orthonormal basis. At each stage the first constructed vectors have the same span as the first original vectors.
Use the inner product with . The required first vector already has squared norm . Apply the Gram-Schmidt process to followed by . Since , its orthogonal remainder is . Its squared norm is . Therefore an orthonormal basis containing the specified vector isThe second vector may also be replaced by its negative.
An orthonormal basis is a basis with , where is the Kronecker delta. Each vector has norm one and distinct vectors are orthogonal.
The Gram-Schmidt process starts from a basis and definesThe coefficients are in this order because the inner product is linear in its first argument. For , taking the inner product with gives . The residual cannot be zero: otherwise would belong to the linear span of , contradicting the initial basis. Normalization makes , while induction preservesThus the process produces an orthonormal basis of all of .
For the weighted inner product, . Start Gram-Schmidt process with the monomials and choose monic normalization:Its squared norm is . Next andThereforeSubtracting these orthogonal projections gives orthogonality by construction; independent nonzero rescalings would give equivalent unnormalized orthogonal polynomials.
The moments are . The Gram-Schmidt process first gives the constant . Removing the constant component of gives , with squared norm , hence .
For the quadratic, imposing orthogonality of to one and gives and . Thus , whose squared norm is . Taking positive leading coefficients, the first three orthonormal polynomials are
Extend the normalized vector to an orthonormal basis with , and extend to an orthonormal basis with . The Gram-Schmidt process provides such extensions. DefineThen and , so is unitary and . Construct on the second subsystem in the same way, sending to . ConsequentlyThus any two normalized product states on the same pair of subsystem spaces are local-unitary equivalent. The dimension and normalization requirements matter because a unitary preserves both its domain and vector norms.
Construct compatible choices in the nested spaces, rather than choosing unrelated orthonormal bases for different . Set and defineThe orthogonal complement is taken for the inner product from part (i). Since and , the space has dimension one and .
It is an invariant subspace. Indeed, if and , part (ii) givesbecause . Also . Hence . Any nonzero vector in this one-dimensional space is consequently an eigenvector. Choose a unit vector . It has polynomial degree exactly : membership in would make it orthogonal to itself and thus zero. Part (iii) now supplies its eigenvalue.
For , and , so the choices are pairwise orthogonal. We have provedAn explicit compatible construction is the Gram-Schmidt process on :The leading term of is , so it is never zero. This fixes the positive real leading coefficient and yields the normalized Hermite polynomials. For example, the Gaussian integral givesEvery polynomial is a finite linear combination of these eigenvectors, since form an orthonormal basis of for each .
Over the complex numbers, the fundamental theorem of algebra makes every irreducible polynomial factor equal to . Part (b)(iv) giveswith distinct eigenvalues. The primary decomposition theorem for linear maps consequently expresses as the direct sum of the actual eigenspaces , with no higher generalized eigenspaces needed. Part (ii) makes these summands mutually orthogonal.
Apply the Gram-Schmidt process to a basis within each eigenspace. Its linear combinations stay within that eigenspace, so all resulting vectors are still eigenvectors. Their union is orthonormal by part (ii) and spans by the primary decomposition theorem for linear maps. Thusfor an orthonormal basis of eigenvectors. This proves the finite-dimensional complex spectral theorem for normal operators by the requested decomposition argument.



