← Exercise library← All exercises for this theme
Theme 2 — Hilbert Spaces and Dirac Notation

Orthogonal projector onto a plane

Keywords: orthogonal projector · subspace · Gram--Schmidt · complementary projector · distance to a subspace · best approximation

Exercise 1 : Orthogonal projector onto a plane

In , viewed as a real subspace of equipped with the usual inner product, consider the plane spanned by the vectors and , together with the unit vector .

Question 1
Construct an orthonormal basis of , then find the matrix of the orthogonal projector onto .

Solution
The vectors and are not orthogonal, since . We apply the Gram–Schmidt procedure. First, . Next, , and

whose norm is , hence . The matrices of the two rank-one projectors are

and their sum is

Question 2
Verify that , and . Calculate , and show that . Interpret the result.

Solution
The matrix is real and symmetric, so . Its trace is , the dimension of . For the square, for example, we calculate the first entry: , and the second: ; the other entries follow by symmetry, and . This may also be obtained without calculation, from .

The vectors and are orthogonal to , since the sum of their components is zero: is the plane orthogonal to . We verify that . Now , where is the matrix all of whose entries are equal to , and is exactly the matrix . The projector onto is the complementary projector to the projector onto the orthogonal line: is an orthonormal basis of , and the closure relation reads .

Question 3
Calculate the orthogonal projection of the vector onto , then the distance from to the plane .

Solution
The simplest method is to use . We have , hence

We verify that this vector does belong to (the sum of its components is zero). The orthogonal component is , and the distance from to the plane is .

Question 4
Show that is the vector in closest to : for every , .

Solution
Write . The first vector belongs to , since is the projector onto , and the second belongs to , since and are in . These two vectors are orthogonal, and the Pythagorean theorem gives

with equality if and only if . Orthogonal projection yields the best approximation of a vector by a vector in the subspace: this is what justifies, in infinite dimension, approximating a function by the first terms of its expansion in a Hilbert basis.