Ripetizioni di AnalisiLinear algebraUnlockedITSearch

Worked examples · Sheet 3

Orthonormal bases with the Gram-Schmidt process

Theory used: Gram-Schmidt processGram-Schmidt in computationsOrthonormal basisNorm and distance

Go to: Exercise 1Exercise 2Exercise 3

Exercise 1

Find an orthonormal basis of the subspace , with and .

The vectors and are not proportional, therefore they are linearly independent and the Gram-Schmidt process applies. The first vector stays unchanged. From the second one subtracts its projection onto , which is itself because the coefficient equals . The vector is orthogonal to , as confirmed by the scalar product . Dividing each vector by its norm one obtains the orthonormal basis of .

Exercise 2

Apply the Gram-Schmidt process to the basis , , of and obtain an orthonormal basis.

At each step one subtracts from the next vector its projections onto the vectors already built. The vector obtained at the second step has fractional components, therefore it is replaced by the multiple ; the replacement is legitimate because the projection onto a vector does not change if the vector is multiplied by a nonzero number. At the third step one subtracts from its projections onto and onto , and here too one chooses the integer multiple . The three vectors are pairwise orthogonal, as checked with the scalar products , , . The final normalization gives the orthonormal basis of .

Exercise 3

Find an orthonormal basis of the subspace

The subspace is described by one homogeneous equation in four unknowns, therefore it has dimension . The vectors , , satisfy the equation and are linearly independent, because the matrix that has them as rows is in echelon form with three pivots; so they form a basis of . The Gram-Schmidt process applied to this basis gives the orthogonal vectors , , , which still belong to , since the sum of the components of each is zero. The norms are , and , and normalization gives the orthonormal basis of .

Contents