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

The Gram–Schmidt procedure in C3

Keywords: Gram--Schmidt · orthonormal basis · orthogonal projection · decomposition · Parseval's identity

Exercise 1 : The Gram–Schmidt procedure in C3

Consider in , equipped with the usual Hermitian inner product, the three vectors

Recall the principle of the Gram–Schmidt procedure: the first vector is normalised, then the projections of each subsequent vector onto the vectors already constructed are subtracted before it is normalised.

Question 1
Construct the first vector , then the second vector of the orthonormal basis.

Solution
We normalise , whose norm is : .

We then subtract from its projection onto . Since ,

We verify that . Its norm is , hence

Question 2
Construct the third vector and verify that the resulting family is orthonormal.

Hint
The bra associated with is : do not forget complex conjugation.

Solution
We calculate the two projections of :

We subtract these projections:

Component by component, using :

Its norm is , and we obtain

Let us verify orthogonality. First, . Moreover,

The three vectors are normalised by construction: they form an orthonormal basis of .

Question 3
Decompose the vector in the basis and verify Parseval's identity.

Solution
In an orthonormal basis, the components are obtained by projection: . The inner product is simply the complex conjugate of the first component of :

Parseval's identity gives . We may also verify the decomposition using the second component: , as required.

Question 4
Does the result depend on the order in which the vectors are processed? What would happen if the three vectors were linearly dependent?

Solution
Yes: processing the vectors in a different order generally produces a different orthonormal basis. The procedure guarantees only that, at each stage , the vectors span the same subspace as . If the vectors were linearly dependent, one of the vectors would be zero, because would already belong to the subspace spanned by the preceding vectors, and it could not be normalised: the procedure thus detects linear dependence.