00:02
In this question, we want to find the orthogonal projection of this vector onto the subspace spanned by v1 and v2, given here.
00:19
As you probably know from the textbook, or any other linear algebra textbook, the orthogonal projection of a vector onto the column space of a matrix is given by a simple formula, which is a times a transpose a inverse times a transpose u, where u is the vector you want to project and a is the column space of the matrix whose column space you want to project onto.
01:00
So since we want to project onto the span of these two vectors, we should create a matrix a, which has those two vectors as columns, because the column space of a matrix is just the span of its columns.
01:15
So now let's compute that formula for this projection, that is.
01:34
So first of all, let's calculate a transpose u.
01:40
That's the product i've written here in green.
01:44
The first entry will be the dot product of the first row of a transpose with u, so minus 1 minus 12 plus 1, and the second entry will be 2 2 4 dotted with 1 minus 6 1.
02:03
2 plus 4 minus 12.
02:05
Okay, so now we're one step there.
02:18
Notice that i factored the common scalar out of the vector to make the multiplication with these matrices and vectors more simple, simpler.
02:27
Now let's compute a transpose a.
02:35
So since a has two columns and a transpose has two rows, this will be a 2 by 2 matrix, and by definition of matrix multiplication, the diagonal entries will be the dot products of each column with itself, and the non -diagonal terms will be the dot product of the two columns together.
03:02
So the first diagonal entry is 1 plus 4 plus 1, the second is 4 plus 4 plus 16, and the off -diagonal terms are minus 2 plus 4 plus 4...