Either essay option suffices; both are developed here to make the two mathematical constructions available.
Diffusion for images. Model grey level as , initially , and use a Neumann boundary condition to avoid flux across an image boundary. The linear heat equation smooths the data. On its solution is convolution with the heat kernel, . Equivalently each Fourier mode is multiplied by , suppressing high frequencies and noise. With no flux, the mean is conserved and
The drawback is that sharp edges also contain high frequencies: a step becomes a transition of width comparable to . Running the heat equation backwards attempts sharpening but amplifies modes by and is ill-posed.
The Perona-Malik equation instead uses a decreasing diffusivity,
Small gradients are smoothed strongly and large ones less strongly. If and is a unit tangent to a level curve, then away from zero gradient,
The derivative of the flux, rather than just , controls forward parabolicity. Here becomes negative for : smoothing remains tangential but the normal direction can sharpen. This formal edge enhancement comes with forward-backward ill-posedness, so existence and stability of the unregularized continuum equation must not be presumed. One regularization uses as a smoothed edge detector while keeping the flux proportional to . For fixed positive , the coefficient is controlled by the smoothed data; under suitable bounds it stays positive and gives a regularized forward equation. It preserves edges through reduced cross-edge transport, without the same local backward-diffusion calculation.
Diffusion from a gradient energy connects these equations with variational regularization. If , its formal gradient flow is . Linear diffusion corresponds to . The displayed Perona-Malik equation corresponds to , which is nonconvex in the gradient for large . A convex alternative is total variation flow, with , interpreted through a subgradient at zero gradient. Adding squared data fidelity gives the formal evolution , whose equilibrium is the unique total variation denoising minimizer. Convex TV preserves sharp interfaces more effectively than the heat energy, but it may produce piecewise constant plateaux, known as staircasing in total variation denoising. A stopping time or fidelity weight controls the smoothing scale. Linear diffusion is stable but blurs edges; nonlinear diffusion must balance edge selectivity with parabolicity and regularization.
Wavelets on an interval. Simply restricting a whole-line orthonormal wavelet to destroys its orthogonality and generally its vanishing moments. Periodizing the basis restores orthogonality on the circle, but treats the two endpoints as neighbors. This is suitable for periodic data and can create an artificial endpoint jump for nonperiodic data.
A localized interval-adapted wavelet basis instead uses unchanged interior functions and finitely many special boundary wavelets at each endpoint. Start with a sufficiently regular compact support orthonormal Daubechies wavelet of order at least and choose a coarse level at which left and right boundary supports are disjoint. At each boundary, take appropriate finite combinations of the scaling functions that meet the endpoint, restricted to the interval. Choose these combinations to reproduce polynomials of degrees , remove dependencies, and orthonormalize the finite boundary Gram matrix. The choices must be compatible with refinement so that the resulting finite-dimensional spaces are nested; independent arbitrary orthonormalizations would not ensure this. Interior functions retain their whole-line filters, while the boundary functions use finite boundary refinement matrices.
For each level, choose an orthonormal basis of the orthogonal complement . It consists of interior wavelets and a bounded number of left and right boundary wavelets. Since the polynomial restrictions of degree less than belong to , every member of has vanishing moments. The compatible local boundary construction retains support diameter and the regularity of the interior construction. Boundary modification affects only finitely many functions at each level, so increasing resolution still makes the union dense in . Consequently, for a fixed coarse level ,
The coarse scaling functions together with all these wavelets form an orthonormal basis. This construction is the Cohen-Daubechies-Vial interval wavelet construction. It preserves localization, polynomial cancellation and stable coefficient extraction without imposing periodic or zero boundary data. The finite boundary refinement matrices also permit a fast transform; a mere restriction followed by one unrelated Gram-Schmidt process at each scale does not establish all these properties.
The linear least-squares problem is to choose minimizing the Euclidean norm of the residual:
For a QR decomposition , orthogonality of gives . If has full column rank and is in standard form with invertible upper-triangular , the minimizer solves .
Applying the Gram-Schmidt process to the columns of the given matrix yields
Indeed, is an orthogonal matrix and . Moreover,
Back substitution in the leading triangular system gives
so the unique least-squares solution is
The unused final transformed residual component is , so the minimum residual norm is .
At each point, apply the indefinite-signature version of the Gram-Schmidt process to any local coframe, choosing one timelike and three spacelike one-forms. This produces an orthonormal coframe in spacetime satisfying
It is unique only up to a local Lorentz transformation. The torsion-free connection 1-forms are then determined by Cartan's first structure equation and metric compatibility,
Cartan's second structure equation gives the curvature 2-forms
and contraction gives the Ricci tensor .
For the displayed metric, take
Then and . The nonzero connection forms are therefore
with . A second application of the structure equations gives
Equivalently,
so this is a constant sectional curvature spacetime with . In four dimensions,
The Vacuum Einstein equations with a cosmological constant are , and hence
The metric is the contracting flat slicing of de Sitter spacetime with curvature radius one.
Apply the Gram-Schmidt process to . The last resulting vector is nonzero, has degree exactly , and is orthogonal to every polynomial in .
Let the columns of be . The Gram-Schmidt process gives
Next,
so
For the final column,
and
Thus and . The reduced QR decomposition is
The columns of are orthonormal, and direct multiplication gives .
Use from i. Their inner products with are
Thus . Its values at are , so
By ii the three polynomials are orthogonal vectors, and normalizing gives
This orthonormal set is a basis of the three-dimensional vector space . It is the result of the Gram-Schmidt process applied to .
The first three output components equal , while the fourth is . Hence
Its outputs have component sum zero, and applying to any such output leaves it fixed. Thus
The first three columns give a basis of the image of a linear map:
They are linearly independent because their first three coordinates are the standard basis. Their span is precisely the three-dimensional hyperplane .
Apply the Gram-Schmidt process. First . Subtracting the projection from gives , of length . Subtracting both preceding projections from gives , of length . Therefore an orthonormal basis is
Their pairwise dot products vanish and each has length one. Although this image admits an orthonormal basis, itself is an oblique projection: its kernel is the fourth coordinate axis, which is not perpendicular to the image, and .
For a real symmetric matrix , find its real eigenvalues from , then solve for the corresponding eigenspaces. Distinct eigenspaces are orthogonal. Within each repeated eigenspace, apply the Gram-Schmidt process and normalize to obtain an orthonormal basis of eigenvectors.
Put these vectors in the columns of . The spectral theorem for real symmetric matrices guarantees a full basis, so and
This is the orthogonal diagonalization of and the associated orthogonal change of coordinates.
Choose a real unit eigenvector of the real symmetric matrix , with eigenvalue . Its orthogonal complement is an invariant subspace: for any with ,
The restriction of to this -dimensional space is again real and symmetric. Applying the same argument inductively produces an orthonormal basis of real eigenvectors. The base case is immediate. This proves the spectral theorem for real symmetric matrices without assuming that distinct eigenvalues are available.
One can also check that eigenvectors with different eigenvalues are automatically orthogonal: . Within a repeated eigenspace, the Gram-Schmidt process preserves the eigenvector property. Thus repeated eigenvalues cause no obstruction, and .
For a real square matrix, a QR factorization writes with an orthogonal matrix, , and an upper triangular matrix. If is invertible, so is , and
Compute and use back substitution; no matrix inverse needs to be formed.
Apply the Gram-Schmidt process to the columns . The first column has Euclidean norm two, giving and . For the second column,
For the third column,
This residual already has Euclidean norm one. Set and . Thus
The columns of are orthonormal, and matrix multiplication verifies .
Using precisely this QR factorization, transform the right-hand side:
Back substitution in gives
Therefore
Weak convergence means for every bounded linear functional . Norm convergence implies this by . The converse fails for coordinate unit vectors in : their norms are one, but pairing with any square-summable sequence tends to zero, so they are weakly null.
For the subsequence assertion apply Gram-Schmidt process to a countable dense subset to choose a countable orthonormal basis of the separable Hilbert space and a bound for the sequence. Repeated subsequence selection and diagonalization make every coefficient converge to a scalar . Bessel inequality gives for every , so exists in with norm at most . Pairings with finite linear combinations of the basis converge. Approximating any other test vector by such combinations and using the common norm bound proves . The finite-dimensional case uses the same argument with a finite basis.
Apply this to every subsequence of the bounded sequence. Any weakly convergent further subsequence has limit with , since interval indicators are tests. The permitted fact gives almost everywhere. If the whole sequence failed to converge weakly to zero, some fixed test functional and subsequence would stay a positive distance from zero. Its weakly convergent further subsequence would then contradict the preceding conclusion. Thus the entire sequence converges weakly to zero in .
The matrix is invertible almost surely. Indeed, successively sampled Gaussian columns have probability zero of lying in the proper linear subspace spanned by the previous columns. Thus the diagonal signs used above exist with probability one. Equivalently, apply the Gram-Schmidt process to the columns, always dividing each residual by its positive Euclidean norm; this produces directly.
To prove uniformity, fix . Each column of has density proportional to , so orthogonal transformations preserve its probability distribution. Column independence therefore gives .
The QR decomposition with positive diagonal is unique: if , then is both an orthogonal matrix and an upper triangular matrix, hence diagonal with entries . Its diagonal entries are positive, so it is the identity. It follows that the orthogonal factor of is . Therefore
By uniqueness of normalized Haar measure on the compact group , the returned matrix has exactly the required probability distribution. Reflection invariance gives each determinant sign probability , so the algorithm samples both components of the orthogonal group. The positive-diagonal correction is essential when a numerical QR decomposition chooses its own signs.
The Gram-Schmidt process constructs the vectors in order:
The empty sum at is zero. Each subtraction removes the projection onto one previous unit vector, so is orthogonal to their span. Linear independence of the inputs ensures in exact arithmetic, and normalization gives unit length.
In floating-point arithmetic, subtracting nearly equal projections can amplify roundoff and cause loss of orthogonality, especially for nearly dependent columns. Modified Gram-Schmidt, reorthogonalization, or Householder QR factorization can improve numerical behaviour; no implementation can remove the underlying sensitivity of nearly dependent input data.
The Gram-Schmidt process first gives , of norm two. Next , so
For the third column, both coefficients onto equal one, giving
These three nonzero vectors are mutually orthogonal and each has norm two. The resulting orthonormal basis is
The first column has norm two, giving . Its inner products with the second and third columns are both one. Subtracting from the second column leaves , of norm three, so . The inner product of with the third column is one. Subtracting from that column leaves , of norm two. Thus the Gram-Schmidt process gives
The columns of have unit norm and pairwise zero inner products, so . Direct multiplication verifies .
For independent columns in a real inner product space, the Gram-Schmidt process recursively forms
Each subtracts the orthogonal projections onto earlier normalized vectors. Their independence ensures . The resulting are orthonormal and preserve the span of every initial column set. Putting and for , with zeros below the diagonal, gives a QR decomposition with . Dependent input columns require omitting a zero residual or treating rank deficiency separately.
QR decomposition Created 2026-09-24 Updated 2026-10-14
A reduced QR decomposition of an matrix over the real numbers with full column rank, , writes , where is with orthonormal columns and is a upper triangular matrix with positive diagonal. Applying the Gram-Schmidt process to the columns of constructs and records the coefficients
This last column identity is exactly the matrix multiplication . The upper triangular matrix records that the th input uses only the first new directions, while its positive diagonal records the norms of the nonzero orthogonal projection residuals. Since , one also has ; denotes the transpose and the identity matrix. Over the complex numbers, use the conjugate transpose in these identities.
For the three-dimensional Gram-Schmidt process example, the exact matrices are
For example, the last column reconstructs as
The diagonal entries are approximately . Each is a norm of the new direction before it was scaled to length one.
For a linear least-squares problem, the orthogonal projection of onto the column space of is . Hence the minimizing coefficients solve the linear system by back substitution. Let consist of the first two columns of the example; its reduced factors are and the leading block of . For , the linear system is
Thus , agreeing with the orthogonal projection computed above, and the minimum Euclidean norm of is . The QR decomposition separates building an orthonormal basis from recovering coefficients in the original basis.[ref]
Smooth unitary frame for a Hermitian connection Created 2026-10-06 Updated 2026-10-14
A smooth positive Hermitian bundle metric admits local orthonormal frames by the smooth Gram-Schmidt process. In such a frame, metric compatibility gives for real vector fields , so the connection matrix is skew-Hermitian. The orthonormal frame is smooth; a holomorphic orthonormal frame is not generally available.
The last-column map has fiber , included as . Local completion of a unit vector by the Gram-Schmidt process gives local fiber bundle charts. Consequently it has the homotopy lifting property and the long exact sequence of homotopy groups of a fibration.