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 define
The 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, give
The 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. Then
Subtracting 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.
For a full three-dimensional calculation, use the ordinary dot product and the input vectors
The first two steps give
At the third step, the inner products are and . Consequently
The 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 has
For 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]
Haar projection Created 2026-10-06 Updated 2026-10-14
The Haar projection at level is the orthogonal projection onto the functions constant on level- dyadic intervals. On each cell it replaces by its cell average. This is the closest cellwise-constant approximation in the L2 norm, because choosing a constant on a cell minimizes at its cell average.
On , take the step function with values on successive quarter-intervals. At level zero, its Haar projection is the constant . At level one, it has values and on the two halves. At level two, it recovers the four original values exactly. With normalized Haar wavelets, these approximations are
The coefficients are L2 inner products, so they differ from the discrete vector coefficients by the factor . Their squared sum also has a direct meaning:
The approximation errors in squared L2 norm of are respectively : each added detail removes exactly its own squared coefficient from the error.
Figure 1.
Coarse mean, half-interval contrasts and quarter-interval details reconstruct the same four-step function
. Details.
The Haar projection can be expressed using level- Haar scaling functions, or through a coarse scaling family and the Haar wavelets at intermediate levels. On with lowest level zero, that coarse family is the single constant function . On the whole real line, use the integer translates of a coarse Haar scaling function instead; one global constant is not square-integrable. Refinement improves the representation while retaining the earlier coefficients.
Hardy space of the circle 2026-10-14
The Hardy space of the circle is the closed subspace of L2 space whose negative Fourier coefficients vanish. The orthogonal projection onto it is denoted . A continuous symbol defines a Toeplitz operator . For continuous , is compact: it is finite rank for Laurent polynomials, and uniform approximation extends the result.
For a finite-dimensional Hermitian operator with decreasing eigenvalues and integer , maximizing over positive contractions with trace gives the sum of its leading eigenvalues. In an orthonormal eigenbasis, the diagonal entries of lie in and sum to . Moving their weight to the largest eigenvalues can only increase the objective. An orthogonal projection onto their eigenvectors attains the maximum.
Hermitian inner product 2026-10-14
A Hermitian inner product is a Hermitian form on a complex vector space which has positive definiteness: for every nonzero vector . It is precisely a complex inner product. Only with this definiteness condition does
define a norm rather than a seminorm or an expression that may not be real. The standard Hermitian inner product on is ; positive weights give , with squared norm .[ref]
A Hermitian inner product need not have a real matrix. For instance, with the linear-first coordinate convention,
The last expression proves positive definiteness without a lengthy calculation of eigenvalues. For it gives , while for it gives . These unequal values expose why a silent switch to would change this particular Hermitian inner product: with these same entries it gives at . All entries must keep their roles from the matrix of a Hermitian form.
The Cauchy-Schwarz inequality for a Hermitian inner product states
Equality holds exactly when are linearly dependent, including when either is zero. For a nonzero , outline the proof by setting and . Then , and the Pythagorean theorem gives
Nonnegativity proves the inequality, while positive definiteness makes equality equivalent to . The scalar has no extra conjugate because the first argument is linear.[ref]
The Cauchy-Schwarz inequality also holds for a positive semidefinite Hermitian form, but equality need not imply linear dependence: for , the independent vectors and give . Equality then describes dependence after passing to the quotient vector space by the radical of a Hermitian form. The indefinite Hermitian form in Hermitian form shows that conjugate symmetry alone does not even guarantee the inequality.
For a worked orthogonal projection, take , and . Then , and , with and for the squared norms. The residual is perpendicular in this Hermitian inner product even though its ordinary real dot product with is . For complex , the same orthogonal projection uses ; rotating multiplies by , while rotating multiplies by . This combines geometric decomposition with sensitivity to the relative complex arguments of the multipliers.
Figure 1.
Analytical illustration: weighted orthogonal projection on a real slice and opposite changes of complex argument of its projection coefficient
. Details.
A Hermitian inner product therefore supplies more than a positive diagonal: orthogonality, orthogonal projection onto a span, and the triangle inequality for its norm make approximation and distance meaningful. For the function space of complex continuous functions on , has positive definiteness, because a nonzero continuous function has positive modulus on a small interval. The same construction turns overlap under integration into lengths and best approximation in finite-dimensional vector subspaces.
For every nonempty closed convex set in a Hilbert space and every in that space, there is a unique satisfying
Closedness and completeness let a limiting approximation attain the infimum; convexity prevents two different minimizers. The proof idea is to choose a sequence approaching the infimum. The parallelogram identity and the admissible midpoint make it a Cauchy sequence; applying the same identity to two putative minimizers proves uniqueness.
For a closed subspace of a Hilbert space, this nearest-point map is an orthogonal projection and is linear. For a general closed convex set it need not be linear: projecting the real line onto clips values below zero to zero and values above one to one. The theorem is therefore useful for both linear approximation and constrained nearest-point problems.[ref]
Closedness is essential even in familiar examples. For the open interval and , the distance infimum is zero but no nearest point exists. The same obstruction appears when approximating by finitely supported sequences: the infimum is zero, but the limit lies outside that subspace until we take its Hilbert space completion.
Hilbert space Created 2026-09-24 Updated 2026-10-14
A Hilbert space is a real or complex inner product space that is complete in the norm . Completeness means that every Cauchy sequence has a limit in the space: if its terms become arbitrarily close in this norm, they converge to an allowed vector. The inner product supplies lengths and orthogonality; completeness ensures that limiting approximation procedures do not leave the space.
Finite-dimensional Euclidean spaces are examples, but the same geometry also works for sequences and functions. In the l2 sequence space,
In the L2 space on with Lebesgue measure,
These formulas use the convention linear in the first argument. Elements of the L2 space are equivalence classes of square-integrable functions agreeing almost everywhere, so zero distance really identifies the same element. A vector can therefore be a whole function, and its squared length can measure an integrated squared error.
For example, approximating by is a nearest-point problem in this Hilbert space. The allowed approximations form the linear span of , and the orthogonal projection is the constant . Its residual is orthogonal to both allowed directions because its integral and its inner product with vanish. The geometry therefore identifies the best approximation without searching through every pair of coefficients.
This is useful whenever a complicated vector must be represented by a tractable collection of directions. Fourier series approximate functions with orthogonal oscillations; the Parseval identity relates the sum of squared coefficients to the squared norm. Least-squares solutions approximate attainable data using a linear operator. The Hilbert projection theorem explains why a nearest element exists and is unique for a nonempty closed convex set. Distinct application settings share the same geometry of useful components and orthogonal residuals. Casey Rodriguez's MIT lectures develop these connections between Hilbert spaces, Fourier series, and nearest-point problems.[ref]
A historical mathematical setting is David Hilbert's Grundzüge einer allgemeinen Theorie der linearen Integralgleichungen (1912). Its preface states that it reprints six communications published during 1904–1910 on linear integral equations. This provides a concrete source for the integral-equation setting associated with the name, while the abstract definition above incorporates later developments.[ref]
Householder transformation Created 2026-10-03 Updated 2026-10-14
A Householder transformation is a reflection that leaves every direction in a chosen hyperplane fixed and reverses its normal direction. For a real unit vector , its matrix is
To understand the formula, decompose any vector into its orthogonal projection onto the normal and a perpendicular component:
Then . Subtracting twice the normal component changes its sign while retaining everything parallel to the mirror. A nonzero normal gives the equivalent formula , so normalization can be deferred.
For example, take . Its mirror is the straight line , and
The midpoint of these two vectors is , which lies on the mirror; their connecting segment is parallel to its normal. Both vectors have Euclidean norm five.
Figure 1.
A Householder reflection reverses the normal component and preserves the mirror component
. The mirror is . The vector becomes ; their midpoint is the orthogonal projection onto the mirror. Details.
Several useful properties follow from this decomposition. The Householder reflection is a symmetric matrix and an orthogonal matrix:
Reflecting twice restores the original vector; Euclidean norms and inner products are preserved. The eigenvalue is along and on , so . A reflection reverses orientation even though it preserves lengths.
The computational payoff is that the mirror can be chosen to send a whole vector onto one coordinate axis, eliminating several entries at once. Householder QR decomposition repeats this operation on the remaining parts of successive columns. For a real symmetric matrix, applying the same Householder reflection on both sides gives a matrix similarity that preserves symmetry and eigenvalues; this is the basis of Householder tridiagonalization.
Alston S. Householder's 1958 paper Unitary Triangularization of a Nonsymmetric Matrix develops this elimination method. Its motivation includes reducing the arithmetic needed for triangularization while retaining the conditioning advantages of orthogonal transformations. [ref] Over the complex numbers, for a unit is Hermitian and unitary, with the star denoting the conjugate transpose; the coordinate-axis construction below is stated for real vectors.
For a connected graph, the Moore-Penrose inverse of its oriented incidence matrix satisfies , because this product is the orthogonal projection onto . Thus every signal decomposes into its constant mean and . Writing , a sub-Gaussian random vector noise gives a simultaneous bound on with scale .
Inner product Created 2026-09-24 Updated 2026-10-14
An inner product assigns a scalar to two vectors and supplies their lengths and orthogonality. Using the convention linear in the first argument, it satisfies
The resulting norm is . Over the real numbers, conjugation has no effect and the form is symmetric and bilinear. Over the complex numbers, it is sesquilinear; the convention linear in the second argument is also common, so formulas for coefficients must match the stated convention.
The Euclidean example is . For real and this gives , while and . If , then : perpendicularity becomes an algebraic equation. The Cauchy-Schwarz inequality gives , and in a real inner product space it makes the angle formula meaningful for nonzero vectors.
Different inner products express different measurements. The weighted example on gives , so its unit-length vectors lie on an ellipse. For functions, an integral such as supplies the geometry of the L2 space. This lets orthogonal projection and least-squares solutions apply to curves as well as coordinate lists.
For an idempotent linear map on a finite-dimensional real vector space, take any positive definite inner product on that space. The displayed new inner product is positive definite since its squared norm vanishes only if both and vanish. It makes the kernel of a linear map and image of a linear map orthogonal. Since , one has ; thus becomes an orthogonal projection.
Innovation process Created 2026-10-06 Updated 2026-10-14
An innovation measures the part of the current observation not predicted from past observations. The linear innovation process uses orthogonal projection onto the past linear span. A conditional expectation predictor can use nonlinear information; the two predictors agree for a Gaussian process.