Week 3: Preparation#
Reading Material#
We recommend that you read the textbook. Watching YouTube videos on the week’s topics can be useful, but it should not replace proper preparation for the week’s program and is not recommended as a standalone approach.
Read and study the following:
Long Day: Sections 2.3, 2.4 and 2.5
Short Day: Sections 2.6 and 2.10.
Python demo03
Key Concepts#
After reading, you should be able to explain the following key concepts:
Vector spaces with inner product and norm
\(\mathbb{R}^n\) and \(\mathbb{C}^n\)
Projections on the line
Projections on subspaces
Orthonormal bases
The Gram-Schmidt procedure
Orthogonal and unitary matrices
This week, we will explore these key concepts in great detail. We expect you to have familiarized yourself with these topics before lectures.
Preparatory Exercises#
I: Inner Product in \(\mathbb{R}^4\)#
Let \(\pmb{u} = (1, -2, 3, 4)\) and \(\pmb{v} = (-1, 0, 2, -3)\) be vectors in \(\mathbb{R}^4\) with the usual inner product defined.
Calculate \(\langle \pmb{u}, \pmb{v} \rangle\).
Compute the length (norm) of each vector.
Can an angle \(\theta\) between the two vectors be determined?
Hint
Use the definition of the inner product:
and of the norm:
Answer
Calculate \(\langle \pmb{u}, \pmb{v} \rangle\):
The length (norm) of each vector:
The angle \(\theta\) can be determined using the formula:
So the angle is approximately
II: An Orthonormal Basis in \(\mathbb{R}^5\)?#
Consider these vectors in \(\mathbb{R}^5\):
Question a#
Verify that the Gram-Schmidt procedure that orthonormalizes vectors produces the following result:
Answer
First we let
Then we normalize \(\pmb{w}_1\) to obtain the first orthonormal vector:
Now the next intermediate vector is determined by removing the component along \(\pmb{u}_1\) from \(\pmb{a}_2\):
We calculate the dot product:
We now have
Finally, we normalize \(\pmb{w}_2\) to obtain the next orthonormal vector:
We compute the norm:
Hence,
This is the wanted result.
Question b#
Does the resulting list of vectors \(\pmb{u}_1, \pmb{u}_2\) constitute an orthonormal basis for \(\mathbb{R}^5\)?
Answer
No. They are orthonormal but they do not constitute a basis for \(\mathbb{R}^5\) since there are only two vectors in the list. To be a basis for \(\mathbb{R}^5\), five linearly independent vectors are needed.
III: A Linear Map that is a Projection?#
Consider the linear map \(\mathrm{proj}_Y: \mathbb{R}^4 \to \mathbb{R}^4\) given by:
Question a#
Show that \(\mathrm{proj}_Y\) is a linear map.
Answer
Since \(\mathrm{proj}_Y(\pmb{x}) = P\pmb{x}\), and since matrix multiplication is linear, we have
Hence, \(\mathrm{proj}_Y\) is linear.
Question b#
Show that the vectors \((1,0,-1,0)\) and \((0,1,0,-1)\) are orthogonal to the rows in \(P\). What does this have to do with the null space/kernel of \(P\)?
Answer
The rows in \(P\) are:
(where \(r_3 = r_1\) and \(r_4 = r_2\)).
We see that
and
Since these vectors are orthogonal to all rows in \(P\), they are located within the null space of \(P\).
This exercise will be continued later in this exercise in Week 3: Closure.