The Gram-Schmidt Process 1

Similar documents
LINEAR ALGEBRA W W L CHEN

The Gram Schmidt Process

The Gram Schmidt Process

Inner products. Theorem (basic properties): Given vectors u, v, w in an inner product space V, and a scalar k, the following properties hold:

Math 224, Fall 2007 Exam 3 Thursday, December 6, 2007

MTH 2032 SemesterII

10 Orthogonality Orthogonal subspaces

Recall: Dot product on R 2 : u v = (u 1, u 2 ) (v 1, v 2 ) = u 1 v 1 + u 2 v 2, u u = u u 2 2 = u 2. Geometric Meaning:

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

Lecture 23: 6.1 Inner Products

Designing Information Devices and Systems II

Orthonormal Bases; Gram-Schmidt Process; QR-Decomposition

Practice Exam. 2x 1 + 4x 2 + 2x 3 = 4 x 1 + 2x 2 + 3x 3 = 1 2x 1 + 3x 2 + 4x 3 = 5

Section 6.2, 6.3 Orthogonal Sets, Orthogonal Projections

Vectors in Function Spaces

Assignment 1 Math 5341 Linear Algebra Review. Give complete answers to each of the following questions. Show all of your work.

Chapter 6: Orthogonality

Math 1180, Notes, 14 1 C. v 1 v n v 2. C A ; w n. A and w = v i w i : v w = i=1

Mathematica 3.0. we will not discuss all the possibilities for every command we illustrate.

6. Orthogonality and Least-Squares

Linear Algebra. and

MAT Linear Algebra Collection of sample exams

Inner Product Spaces

Linear algebra II Homework #1 solutions A = This means that every eigenvector with eigenvalue λ = 1 must have the form

Math 261 Lecture Notes: Sections 6.1, 6.2, 6.3 and 6.4 Orthogonal Sets and Projections

MA 265 FINAL EXAM Fall 2012

Linear algebra II Homework #1 due Thursday, Feb A =

Diagonalizing Matrices

Math 3191 Applied Linear Algebra

7 Bilinear forms and inner products

Lecture 20: 6.1 Inner Products

Inner Product Spaces 5.2 Inner product spaces

MATH 235: Inner Product Spaces, Assignment 7

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

MTH 2310, FALL Introduction

Lecture 10: Vector Algebra: Orthogonal Basis

Math 21b Final Exam Thursday, May 15, 2003 Solutions

MATH 304 Linear Algebra Lecture 34: Review for Test 2.

No books, no notes, no calculators. You must show work, unless the question is a true/false, yes/no, or fill-in-the-blank question.

SOLUTIONS TO EXERCISES FOR MATHEMATICS 133 Part 1. I. Topics from linear algebra

Vector Spaces. distributive law u,v. Associative Law. 1 v v. Let 1 be the unit element in F, then

Math 3191 Applied Linear Algebra

Chapter 4 Euclid Space

MAT2342 : Introduction to Applied Linear Algebra Mike Newman, fall Projections. introduction

LINEAR ALGEBRA 1, 2012-I PARTIAL EXAM 3 SOLUTIONS TO PRACTICE PROBLEMS

Math 314H Solutions to Homework # 3

There are two things that are particularly nice about the first basis

University of Leeds, School of Mathematics MATH 3181 Inner product and metric spaces, Solutions 1

LINEAR ALGEBRA QUESTION BANK

MATH 304 Linear Algebra Lecture 20: The Gram-Schmidt process (continued). Eigenvalues and eigenvectors.

Eigenvalues and Eigenvectors A =

Class notes: Approximation

Homework 5. (due Wednesday 8 th Nov midnight)

Assignment #9: Orthogonal Projections, Gram-Schmidt, and Least Squares. Name:

Functional Analysis Exercise Class

Math 215 HW #9 Solutions

Math Computer Lab 4 : Fourier Series

Ma 221 Eigenvalues and Fourier Series

The value of a problem is not so much coming up with the answer as in the ideas and attempted ideas it forces on the would be solver I.N.

MATH 304 Linear Algebra Lecture 23: Diagonalization. Review for Test 2.

Linear Algebra- Final Exam Review

MATH Spring 2011 Sample problems for Test 2: Solutions

MTH 309Y 37. Inner product spaces. = a 1 b 1 + a 2 b a n b n

Problem 1: Solving a linear equation

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

INNER PRODUCT SPACE. Definition 1

REAL LINEAR ALGEBRA: PROBLEMS WITH SOLUTIONS

March 27 Math 3260 sec. 56 Spring 2018

Math 350 Fall 2011 Notes about inner product spaces. In this notes we state and prove some important properties of inner product spaces.

MATH 115A: SAMPLE FINAL SOLUTIONS

Chapter 5 Eigenvalues and Eigenvectors

Conceptual Questions for Review

Worksheet 1.4: Geometry of the Dot and Cross Products

GQE ALGEBRA PROBLEMS

1. Subspaces A subset M of Hilbert space H is a subspace of it is closed under the operation of forming linear combinations;i.e.,

Worksheet for Lecture 25 Section 6.4 Gram-Schmidt Process

Math 18, Linear Algebra, Lecture C00, Spring 2017 Review and Practice Problems for Final Exam

Vectors. Vectors and the scalar multiplication and vector addition operations:

Section 6.4. The Gram Schmidt Process

5.) For each of the given sets of vectors, determine whether or not the set spans R 3. Give reasons for your answers.

Then x 1,..., x n is a basis as desired. Indeed, it suffices to verify that it spans V, since n = dim(v ). We may write any v V as r

x 3y 2z = 6 1.2) 2x 4y 3z = 8 3x + 6y + 8z = 5 x + 3y 2z + 5t = 4 1.5) 2x + 8y z + 9t = 9 3x + 5y 12z + 17t = 7

Linear Algebra Massoud Malek

SOLUTION KEY TO THE LINEAR ALGEBRA FINAL EXAM 1 2 ( 2) ( 1) c a = 1 0

MATH 260 LINEAR ALGEBRA EXAM III Fall 2014

PRACTICE PROBLEMS FOR THE FINAL

which arises when we compute the orthogonal projection of a vector y in a subspace with an orthogonal basis. Hence assume that P y = A ij = x j, x i

Cheat Sheet for MATH461

Linear Algebra Final Exam Study Guide Solutions Fall 2012

Dimension and Structure

Experiment # 3 The Gram-Schmidt Procedure and Orthogonal Projections. Student Number: Lab Section: PRA. Student Number: Grade: /20

235 Final exam review questions

Applied Linear Algebra in Geoscience Using MATLAB

(a) If A is a 3 by 4 matrix, what does this tell us about its nullspace? Solution: dim N(A) 1, since rank(a) 3. Ax =

1. General Vector Spaces

Linear Algebra problems

Math 24 Spring 2012 Sample Homework Solutions Week 8

Math Linear Algebra II. 1. Inner Products and Norms

6 Inner Product Spaces

Projections and Least Square Solutions. Recall that given an inner product space V with subspace W and orthogonal basis for

Transcription:

The Gram-Schmidt Process In this section all vector spaces will be subspaces of some R m. Definition.. Let S = {v...v n } R m. The set S is said to be orthogonal if v v j = whenever i j. If in addition v i = for each i then we say S is orthonormal. The goal of this section is to answer the following question. Given a basis for a vector space V how can we find an orthonormal basis for V? First we verify that an orthogonal set is linearly independent. Theorem.. Let {v...v n } R m be a set of nonzero vectors and suppose v v j = whenever i j. Then {v...v n } is linearly independent. Proof for n=4. Suppose c v + c v + c 3 v 3 + c 4 v 4 =. ) We shall solve for c by taking the dot product of both sides with v. v c v + c v + c 3 v 3 + c 4 v 4 ) = v c v v + c v v + c 3 v v 3 + c 4 v v 4 ) = c v + c + c 3 + c 4 = c v = Since v we have that c =. We shall solve for c by taking the dot product of both sides of ) with v. v c v + c v + c 3 v 3 + c 4 v 4 ) = v c v v + c v v + c 3 v v 3 + c 4 v v 4 ) = c + c v + c 3 + c 4 = c v = Since v we have that c =. Likewise c 3 = and c 4 =. Thus {v v v 3 v 4 } is linearly independent. c Michael C. Sullivan July 7 8

Problem. Write out the general proof for Theorem.. Theorem.3 The Gram-Schmidt Process). Let {u...u n } be a basis for a vector space V. Let v = u. For k =...n let v k = u k k i= v i u k v i v i v i and for k =...n let w i = v i v i. Then {v...v n } is an orthogonal basis for V and {w...w n } is an orthonormal basis for V. Explanation. Let s suppose n = 4 and write out the formulas. Of course v = u is straight forward. Recall from?? that the projection of u in the direction of v is proj v u = v u v v v. Thus in the formula below we project u in the direction of v and subtract this from u. What is left will be perpendicular to v. v = u v u v v v Next we project u 3 first in the direction of v and then in the direction of v. Subtracting these from u 3 produces a vector perpendicular to both v and v. v 3 = u 3 v u 3 v v u 3 v v v v v Finally we find the projections of u 4 in the directions of v v and v 3. Subtracting these from u 4 produces a vector perpendicular to v v and v 3. v 4 = u 4 v u 4 v v v v u 4 v v v v 3 u 4 v 3 v 3 v 3 Proof of Theorem.3. We check that v is perpendicular to v. v v = v u v ) u v = v u v u v v = v u v u = v v v v Next we check that v 3 is perpendicular to v. v v 3 = v u 3 v u 3 v v ) u 3 v = v v v v

v u 3 v u 3 v v v v v u 3 v v v v = v u 3 v u 3 = We used the fact that we already knew v v =. Now we check that v 3 is perpendicular to v. v v 3 = v u 3 v u 3 v v ) u 3 v = v u 3 v u 3 =. v v v v Again we used v v =. We can continue like this. Next we would show that v 4 is perpendicular to v v and v 3. The reader should be able to work this out and see that the calculations are similar to what we have just done. We use the Principle of Mathematical Induction to cover all positive integers n. Assume we know that v k is perpendicular to v...v k. Let v j {v...v k }. We will show v k v j =. v j v k = v j u k k i= v i u k v i v i v i ) = v j u k v j u k v j u k = k i= v i u k v i v i v j v i = since v j v i = unless i = j. Therefore {v...v n } is orthogonal. There are no zero vectors in it since the original vectors {u...u n } were linearly independent. Dividing each vector by its magnitude produces an orthonormal set. {[ Example [. ]} Find an orthonormal basis for the vector space spanned by 8. Answer. We don t need the Gram-Schmidt Process. These ] 4 vectors span R. We can just use the standard basis for R. Example. Find an orthonormal basis for the vector space spanned by. 3

Solution. Let v =. Then v = u v u v v v = u v = Next v 3 = u 3 v u 3 v v v v u 3 v v v = u 3 v 4 v = 3/ 3/ Dividing each of these by its length gives / / / / / / / / Problem. Find an orthonormal basis for each vector space with the given basis below. {[ ]} a. b. 3 c. 3 d. e. 3 3 f. 3 Problem 3. Find an orthonormal basis for the plane given by x+3y z =. 4

Problem 4. Consider w 3 x y = 3 4 8 z. a. Find the basis for the solution space produced by putting the matrix into reduced row echelon form. b. Find an orthonormal basis for the solution space. c. Find the transition matrix that will convert coordinates vectors with respect to the first basis into convert coordinates vectors with respect your orthonormal basis. Problem 5. Find orthonormal bases for the eigenspaces of 4. 4. Maple Command for the Gram-Schmidt Process Here is an example illustrating how to use Maple s GramSchmidt command. The command is part of the LinearAlgebra package. If you leave off the normalized option the GramSchmidt command will return an orthogonal set of vectors that have not been normalized. > GramSchmidt[<><><33>]normalized); /3 3 /3 3 /3 3 /5 5 /5 5 /5 5 /5 5 /5 / /5 / 5

. Inner Product Spaces [Optional] Definition.4. An Inner product space is a vector space V together with a function taking pairs of vectors to the reals with the properties listed below. The function is called an inner product and is denoted by vu. Let r R and let u v and w be in V. vv with equality holding only when v =. vu = uv. rvu = r vu. u + vw = uw + vw. The dot product in any subspace of R n is an example. Here is another. Let P be the set of all polynomials regarded as a vector space. For f and g in P define f g = fx)gx) dx. For example x + x + x = x + )x + x) dx = x3 + x + xdx = 4/3. The reader should check that this gives an inner product space. The results about projections orthogonality and the Gram-Schmidt Process carry over to inner product spaces. The magnitude of a vector v is defined as vv. Problem 6. In an inner product space prove that v ru = r vu. Problem 7. In an inner product space prove that v =. Problem 8. Let S = span {sinx) sinx) sin3x) sin4x)}. Let the inner product be f g = π fx)gx) dx. Show that S is orthogonal and hence forms a basis for S. Find an orthonormal basis for S. Hint: sinm + n)x) sinm n)x) sin mx sin nxdx = + + C m + n) m n) for m ±n. But you knew that! Problem 9. For the inner product used above for polynomials compute x x 3 x + x 5 + x 4 and x + 3x + x 3 x. 6

Problem. a. Find an orthonormal basis for P 4 with inner product above starting with the standard basis { x x x 3 x 4 }. b. Find the transition matrix that takes coordinate vectors with respect to the standard basis to coordinate vectors with respect to the basis you found. [ ] Problem. Let A =. For v and u in R 3 define v u = v T Au. [ ] [ ] a. Compute. [ ] [ 3 ] 5 b. Compute. c. Prove that is an inner product on R. 7