Week 3: Preparation#
Reading Material#
Review: We recommend that you review the Mathematics 1a curriculum on vector spaces, spans, and bases
Reading: In Chapter 2, read Sections 2.1, 2.3 through 2.6, and 2.10
Python: Demo 3
Key Concepts#
Long Day will cover:
Vector spaces with inner product and norm
Inner product and norm in \(\mathbb{R}^n\) and \(\mathbb{C}^n\)
Inner product and norm in \(\mathsf M_{n\times m}(\Bbb R)\) and \(\Bbb R[Z]\)
Projections on the line
Orthonormal bases
The Gram-Schmidt procedure
Short Day will cover:
Orthogonal and unitary matrices
Projections on subspaces
The orthogonal complement
Preparatory Exercises#
I: Absolute Value in \(\mathbb{C}\)#
Calculate the absolute value of the following complex numbers:
\(2\)
\(3i\)
\(-2i\)
\(1-2i\)
\(-4-4i\)
If \(z=a + i b\), what is then the definition of \(|z|\)? Can \(|z|\) be negative? Is the absolute value \(|z|\) a norm on the vector space \(\mathbb{C}\)?
Answer
The answers to the last two questions are, respectively, no and yes.
II: 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
III: 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.
IV: 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.