Orthogonalization: the Gram-Schmidt procedureVectors > Basics | Scalar product, Norms | Projection on a line | Orthogonalization | Hyperplanes | Linear functions | Application
A basis is said to be orthogonal if if . If in addition, , we say that the basis is orthonormal. Example: An orthonormal basis in . The collection of vectors , with forms an orthonormal basis of . What is orthogonalization?Orthogonalization refers to a procedure that finds an orthonormal basis of the span of given vectors. Given vectors , an orthogonalization procedure computes vectors such that where is the dimension of , and That is, the vectors form an orthonormal basis for the span of the vectors . Basic step: projection on a lineA basic step in the procedure consists in projecting a vector on a line passing through zero. Consider the line where is given, and normalized (). The projection of a given point on the line is a vector located on the line, that is closest to (in Euclidean norm). This corresponds to a simple optimization problem: The vector , where is the optimal value, is referred to as the projection of on the line . As seen here, the solution of this simple problem has a closed-form expression: Note that the vector can now be written as a sum of its projection and another vector that is orthogonal to the projection: where and are orthogonal. The vector can be interpreted as the result of removing the component of along . Gram-Schmidt procedureThe Gram-Schmidt procedure is a particular orthogonalization algorithm. The basic idea is to first orthogonalize each vector w.r.t. previous ones; then normalize result to have norm one. Case when the vectors are independentLet us assume that the vectors are linearly independent. The GS algorithm is as follows. Gram-Schmidt procedure:
The GS process is well-defined, since at each step (otherwise this would contradict the linear independence of the 's). General case: the vectors may be dependentIt is possible to modify the algorithm to allow it to handle the case when the 's are not linearly independent. If at step , we find , then we directly jump at the next step. Modified Gram-Schmidt procedure:
On exit, the integer is the dimension of the span of the vectors . |