Gram Schmidt Process-Linear Algebra-Lecture 30 Slides-Mathematics, Slides of Linear Algebra

Gram Schmidt Process, Orthogonal Sets, Orthonormal Set, Orthogonal Projection, Normalization, Linear Algebra, Lecture Slides, Yaroslav Vorobets, Mathematics, Texas A

Typology: Slides

2011/2012

Uploaded on 03/08/2012

francyne
francyne ๐Ÿ‡บ๐Ÿ‡ธ

4.7

(22)

267 documents

1 / 16

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
MATH 304
Linear Algebra
Lecture 30:
The Gram-Schmidt process (continued).
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Gram Schmidt Process-Linear Algebra-Lecture 30 Slides-Mathematics and more Slides Linear Algebra in PDF only on Docsity!

MATH 304

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:

  • vk = xk โˆ’ (ฮฑ 1 x 1 + ยท ยท ยท + ฮฑkโˆ’ 1 xkโˆ’ 1 ), 1 โ‰ค k โ‰ค n;
  • the span of v 1 ,... , vk is the same as the span of x 1 ,... , xk ;
  • vk is orthogonal to x 1 ,... , xkโˆ’ 1 ;
  • vk = xk โˆ’ pk , where pk is the orthogonal projection of the vector xk on the subspace spanned by x 1 ,... , xkโˆ’ 1 ;
  • โ€–vk โ€– is the distance from xk to the subspace spanned by x 1 ,... , xkโˆ’ 1.

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.