Gram–Schmidt process

Gram–Schmidt process

In mathematics, particularly linear algebra and numerical analysis, the Gram–Schmidt process is a method for orthogonalizing a set of vectors in an inner product space, most commonly the Euclidean space R"n". The Gram–Schmidt process takes a finite, linearly independent set "S" = {"v"1, …, "v""n"} and generates an orthogonal set "S"' = {"u"1, …, "u""n"} that spans the same subspace as "S".

The method is named for Jørgen Pedersen Gram and Erhard Schmidt but it appeared earlier in the work of Laplace and Cauchy. In the theory of Lie group decompositions it is generalized by the Iwasawa decomposition.

The application of the Gram–Schmidt process to the column vectors of a full column rank matrix yields the QR decomposition (it is decomposed into an orthogonal and a triangular matrix).

The Gram–Schmidt process

We define the projection operator by:mathrm{proj}_{mathbf{u,mathbf{v} = {langle mathbf{u}, mathbf{v} angleoverlangle mathbf{u}, mathbf{u} angle}mathbf{u} = {langle mathbf{u}, mathbf{v} angle} {mathbf{u}overlangle mathbf{u}, mathbf{u} angle}, where <u, v> denotes the inner product of the vectors u and v. This operator projects the vector v orthogonally onto the vector u.

The Gram–Schmidt process then works as follows:


-
| ||mathbf{u}_2 = mathbf{v}_2-mathrm{proj}_{mathbf{u}_1},mathbf{v}_2,
| ||mathbf{e}_2 = {mathbf{u}_2 over |mathbf{u}_2
-
| ||mathbf{u}_3 = mathbf{v}_3-mathrm{proj}_{mathbf{u}_1},mathbf{v}_3-mathrm{proj}_{mathbf{u}_2},mathbf{v}_3,
| ||mathbf{e}_3 = {mathbf{u}_3 over |mathbf{u}_3
-
| ||mathbf{u}_4 = mathbf{v}_4-mathrm{proj}_{mathbf{u}_1},mathbf{v}_4-mathrm{proj}_{mathbf{u}_2},mathbf{v}_4-mathrm{proj}_{mathbf{u}_3},mathbf{v}_4,
| ||mathbf{e}_4 = {mathbf{u}_4 over |mathbf{u}_4
-
| ||align="center"|vdots
| ||align="center"|vdots
-
| ||mathbf{u}_k = mathbf{v}_k-sum_{j=1}^{k-1}mathrm{proj}_{mathbf{u}_j},mathbf{v}_k,
| ||mathbf{e}_k = {mathbf{u}_kover |mathbf{u}_k The sequence u1, &hellip;, u"k" is the required system of orthogonal vectors, and the normalized vectors e1, &hellip;, e"k" form an ortho"normal" set.

To check that these formulas yield an orthogonal sequence, first compute &lang;u1, u2&rang; by substituting the above formula for u2: you will get zero. Then use this to compute &lang;u1, u3&rang; again by substituting the formula for u3: you will get zero. The general proof proceeds by mathematical induction.

Geometrically, this method proceeds as follows: to compute u"i", it projects v"i" orthogonally onto the subspace "U" generated by u1, &hellip;, u"i"−1, which is the same as the subspace generated by v1, &hellip;, v"i"−1. The vector u"i" is then defined to be the difference between v"i" and this projection, guaranteed to be orthogonal to all of the vectors in the subspace "U".

The Gram–Schmidt process also applies to a linearly independent infinite sequence {v"i"}"i". The result is an orthogonal (or orthonormal) sequence {u"i"}"i" such that for natural number "n":the algebraic span of v1, &hellip;, v"n" is the same as that of u1, &hellip;, u"n".

If the Gram–Schmidt process is applied to a linearly dependent sequence, it outputs the 0 vector on the ith step, assuming that mathbf{v_i} is a linear combination of mathbf{v_1}, mathbf{v_2}, ldots, mathbf{v_{i-1.

Example

Consider the following set of vectors in R2 (with the conventional inner product):S = leftlbracemathbf{v}_1=egin{pmatrix} 3 \ 1end{pmatrix}, mathbf{v}_2=egin{pmatrix}2 \2end{pmatrix} ight brace.

Now, perform Gram–Schmidt, to obtain an orthogonal set of vectors::mathbf{u}_1=mathbf{v}_1=egin{pmatrix}3\1end{pmatrix}: mathbf{u}_2 = mathbf{v}_2 - mathrm{proj}_{mathbf{u}_1} , mathbf{v}_2 = egin{pmatrix}2\2end{pmatrix} - mathrm{proj}_{({3 atop 1})} , {egin{pmatrix}2\2end{pmatrix = egin{pmatrix} -2/5 \6/5 end{pmatrix}.

We check that the vectors u1 and u2 are indeed orthogonal::langlemathbf{u}_1,mathbf{u}_2 angle = leftlangle egin{pmatrix}3\1end{pmatrix}, egin{pmatrix}-2/5\6/5end{pmatrix} ight angle = -frac65 + frac65 = 0.

We can then normalize the vectors by dividing out their sizes as shown above::mathbf{e}_1 = {1 over sqrt {10egin{pmatrix}3\1end{pmatrix}:mathbf{e}_2 = {1 over sqrt{40 over 25 egin{pmatrix}-2/5\6/5end{pmatrix} = {1oversqrt{10 egin{pmatrix}-1\3end{pmatrix}.

Numerical stability

When this process is implemented on a computer, the vectors u_k are often not quite orthogonal, due to rounding errors. For the Gram–Schmidt process as described above this loss of orthogonality is particularly bad; therefore, it is said that the (na&iuml;ve) Gram–Schmidt process is numerically unstable.

The Gram–Schmidt process can be stabilized by a small modification. Instead of computing the vector u"k" as: mathbf{u}_k = mathbf{v}_k - mathrm{proj}_{mathbf{u}_1},mathbf{v}_k - mathrm{proj}_{mathbf{u}_2},mathbf{v}_k - cdots - mathrm{proj}_{mathbf{u}_{k-1,mathbf{v}_k, it is computed as: mathbf{u}_k^{(1)} = mathbf{v}_k - mathrm{proj}_{mathbf{u}_1},mathbf{v}_k, : mathbf{u}_k^{(2)} = mathbf{u}_k^{(1)} - mathrm{proj}_{mathbf{u}_2} , mathbf{u}_k^{(1)}, ::: vdots : mathbf{u}_k^{(k-2)} = mathbf{u}_k^{(k-3)} - mathrm{proj}_{mathbf{u}_{k-2 , mathbf{u}_k^{(k-3)}, : mathbf{u}_k = mathbf{u}_k^{(k-2)} - mathrm{proj}_{mathbf{u}_{k-1 , mathbf{u}_k^{(k-2)}. This series of computations gives the same result as the original formula in exact arithmetic, but it introduces smaller errors in finite-precision arithmetic.

Algorithm

The following algorithm implements the stabilized Gram–Schmidt process. The vectors v1, &hellip;, v"k" are replaced by orthonormal vectors which span the same subspace.: for "j" from 1 to "k" do:: for "i" from 1 to "j" − 1 do::: mathbf{v}_j leftarrow mathbf{v}_j - mathrm{proj}_{mathbf{v}_{i , mathbf{v}_j ("remove component in direction" v"i"):: end for:: mathbf{v}_j leftarrow frac{mathbf{v}_j}{|mathbf{v}_j ("normalize"): end forThe cost of this algorithm is asymptotically 2"nk"2 floating point operations, where "n" is the dimensionality of the vectors harv|Golub|Van Loan|1996|loc=§5.2.8.

Alternatives

Other orthogonalization algorithms use Householder transformations or Givens rotations. The algorithms using Householder transformations are more stable than the stabilized Gram–Schmidt process. On the other hand, the Gram–Schmidt process produces the jth orthogonalized vector after the jth iteration, while orthogonalization using Householder reflections produces all the vectors only at the end. This makes only the Gram–Schmidt process applicable for iterative methods like the Arnoldi iteration.

References

*.
*.

External links

* [http://video.google.com/videoplay?docid=-2274442444593051761 MIT Linear Algebra Lecture on Orthogonal Matrices] at Google Video, from MIT OpenCourseWare
* [http://members.aol.com/jeff570/g.html Gram–Schmidt orthogonalization] on the [http://members.aol.com/jeff570/mathword.html Earliest known uses of some of the words of mathematics]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Procédé de Gram-Schmidt — En algèbre linéaire, dans un espace préhilbertien (c est à dire un espace vectoriel sur le corps des réels ou celui des complexes, muni d un produit scalaire), le procédé de Gram Schmidt[1] est un algorithme pour construire, à partir d une… …   Wikipédia en Français

  • Gram-Schmidt orthogonalization — /gram shmit /, Math. a process for constructing an orthogonal basis for a Euclidean space, given any basis for the space. [named after Jörgen Pedersen Gram (1850 1916), Danish mathematician, and Erhard Schmidt (1876 1959), German mathematician] * …   Universalium

  • Gram-Schmidt orthogonalization — /gram shmit /, Math. a process for constructing an orthogonal basis for a Euclidean space, given any basis for the space. [named after Jörgen Pedersen Gram (1850 1916), Danish mathematician, and Erhard Schmidt (1876 1959), German mathematician] …   Useful english dictionary

  • Jørgen Pedersen Gram — (June 27, 1850 April 29, 1916) was a Danish actuary and mathematician who was born in Nustrup, Duchy of Schleswig, Denmark and died in Copenhagen, Denmark.Important papers of his include On series expansions determined by the methods of least… …   Wikipedia

  • Erhard Schmidt — Infobox Scientist name = Erhard Schmidt field = Mathematics alma mater = Georg August University of Göttingen doctoral advisor = David Hilbert doctoral students = Salomon Bochner Richard Brauer Heinz HopfErhard Schmidt (January 13, 1876 –… …   Wikipedia

  • Orthogonalization — In linear algebra, orthogonalization is the process of finding a set of orthogonal vectors that span a particular subspace. Formally, starting with a linearly independent set of vectors {v1,...,vk} in an inner product space (most commonly the… …   Wikipedia

  • Orthonormal basis — In mathematics, particularly linear algebra, an orthonormal basis for inner product space V with finite dimension is a basis for V whose vectors are orthonormal.[1][2][3] For example, the standard basis for a Euclidean space Rn is an orthonormal… …   Wikipedia

  • Vector space — This article is about linear (vector) spaces. For the structure in incidence geometry, see Linear space (geometry). Vector addition and scalar multiplication: a vector v (blue) is added to another vector w (red, upper illustration). Below, w is… …   Wikipedia

  • Inner product space — In mathematics, an inner product space is a vector space with the additional structure of inner product. This additional structure associates each pair of vectors in the space with a scalar quantity known as the inner product of the vectors.… …   Wikipedia

  • Orthogonality — The line segments AB and CD are orthogonal to each other. Orthogonality occurs when two things can vary independently, they are uncorrelated, or they are perpendicular. Contents 1 Mathematics …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”