









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Gram Schmidt Process, Orthogonal Sets, Orthonormal Set, Orthogonal Projection, Normalization, Linear Algebra, Lecture Slides, Yaroslav Vorobets, Mathematics, Texas A
Typology: Slides
1 / 16
This page cannot be seen from the preview
Don't miss anything!










Linear Algebra Lecture 30: The Gram-Schmidt process (continued).
Orthogonal sets
Let V be a vector space with an inner product. Definition. Nonzero vectors v 1 , v 2 ,... , vk โ V form an orthogonal set if they are orthogonal to each other: ใvi , vj ใ = 0 for i 6 = j. If, in addition, all vectors are of unit norm, โvi โ = 1, then v 1 , v 2 ,... , vk is called an orthonormal set.
Theorem Any orthogonal set is linearly independent.
The Gram-Schmidt orthogonalization process
Let V be a vector space with an inner product. Suppose x 1 , x 2 ,... , xn is a basis for V. Let v 1 = x 1 ,
v 2 = x 2 โ ใx 2 , v 1 ใ ใv 1 , v 1 ใ
v 1 ,
v 3 = x 3 โ ใx 3 , v 1 ใ ใv 1 , v 1 ใ
v 1 โ ใx 3 , v 2 ใ ใv 2 , v 2 ใ
v 2 ,
.................................................
vn = xn โ
ใxn, v 1 ใ ใv 1 , v 1 ใ v 1 โ ยท ยท ยท โ
ใxn, vnโ 1 ใ ใvnโ 1 , vnโ 1 ใ vnโ 1.
Then v 1 , v 2 ,... , vn is an orthogonal basis for V.
Any basis x 1 , x 2 ,... , xn
Orthogonal basis v 1 , v 2 ,... , vn
Properties of the Gram-Schmidt process:
Problem. Let ฮ be the plane in R^3 spanned by vectors x 1 = (1, 2 , 2) and x 2 = (โ 1 , 0 , 2). (i) Find an orthonormal basis for ฮ . (ii) Extend it to an orthonormal basis for R^3.
x 1 , x 2 is a basis for the plane ฮ . We can extend it to a basis for R^3 by adding one vector from the standard basis. For instance, vectors x 1 , x 2 , and x 3 = (0, 0 , 1) form a basis for R^3 because โฃโฃ โฃ โฃโฃ โฃ
Using the Gram-Schmidt process, we orthogonalize the basis x 1 = (1, 2 , 2), x 2 = (โ 1 , 0 , 2), x 3 = (0, 0 , 1):
v 1 = x 1 = (1, 2 , 2),
v 2 = x 2 โ
ใx 2 , v 1 ใ ใv 1 , v 1 ใ
v 1 = (โ 1 , 0 , 2) โ
v 3 = x 3 โ
ใx 3 , v 1 ใ ใv 1 , v 1 ใ
v 1 โ
ใx 3 , v 2 ใ ใv 2 , v 2 ใ
v 2
Problem. Find the distance from the point y = (0, 0 , 0 , 1) to the subspace ฮ โ R^4 spanned by vectors x 1 = (1, โ 1 , 1 , โ1), x 2 = (1, 1 , 3 , โ1), and x 3 = (โ 3 , 7 , 1 , 3).
Let us apply the Gram-Schmidt process to vectors x 1 , x 2 , x 3 , y. We should obtain an orthogonal system v 1 , v 2 , v 3 , v 4. The desired distance will be |v 4 |.
x 1 = (1, โ 1 , 1 , โ1), x 2 = (1, 1 , 3 , โ1), x 3 = (โ 3 , 7 , 1 , 3), y = (0, 0 , 0 , 1).
v 1 = x 1 = (1, โ 1 , 1 , โ1),
v 2 = x 2 โ
ใx 2 , v 1 ใ ใv 1 , v 1 ใ v 1 = (1, 1 , 3 , โ1)โ
v 3 = x 3 โ
ใx 3 , v 1 ใ ใv 1 , v 1 ใ
v 1 โ
ใx 3 , v 2 ใ ใv 2 , v 2 ใ
v 2
= (โ 3 , 7 , 1 , 3) โ
Problem. Find the distance from the point z = (0, 0 , 1 , 0) to the plane ฮ that passes through the point x 0 = (1, 0 , 0 , 0) and is parallel to the vectors v 1 = (1, โ 1 , 1 , โ1) and v 2 = (0, 2 , 2 , 0).
The plane ฮ is not a subspace of R^4 as it does not pass through the origin. Let ฮ 0 = Span(v 1 , v 2 ). Then ฮ = ฮ 0 + x 0.
Hence the distance from the point z to the plane ฮ is the same as the distance from the point z โ x 0 to the plane ฮ 0.
We shall apply the Gram-Schmidt process to vectors v 1 , v 2 , z โ x 0. This will yield an orthogonal system w 1 , w 2 , w 3. The desired distance will be |w 3 |.
v 1 = (1, โ 1 , 1 , โ1), v 2 = (0, 2 , 2 , 0), z โ x 0 = (โ 1 , 0 , 1 , 0).
w 1 = v 1 = (1, โ 1 , 1 , โ1),
w 2 = v 2 โ
ใv 2 , w 1 ใ ใw 1 , w 1 ใ
w 1 = v 2 = (0, 2 , 2 , 0) as v 2 โฅ v 1.
w 3 = (z โ x 0 ) โ
ใz โ x 0 , w 1 ใ ใw 1 , w 1 ใ w 1 โ
ใz โ x 0 , w 2 ใ ใw 2 , w 2 ใ w 2
= (โ 1 , 0 , 1 , 0) โ
|w 3 | =
Modifications of the Gram-Schmidt process
Another modification is a recursive process which is more stable to roundoff errors than the original process. Suppose x 1 , x 2 ,... , xn is a basis for an inner product space V. Let w 1 = (^) โxx^11 โ , v 2 = x 2 โ ใx 2 , w 1 ใw 1 , v 3 = x 3 โ ใx 3 , w 1 ใw 1 ,
................................................. vn = xn โ ใxn, w 1 ใw 1. Then w 1 , v 2 ,... , vn is a basis for V , โw 1 โ = 1, and w 1 is orthogonal to v 2 ,... , vn. Now repeat the process with vectors v 2 ,... , vn, and so on.