Part of the linear algebra notes
Pretty familiar with these so wont take too many notes
In matrix algebra, “column” vectors are one-column matrices, and “row” vectors are one-row matrices. Vector sums are matrix sums, vector scaling is matrix scaling, and the dot product corresponds to transposing one matrix and performing matrix multiplication with the other. In this way, matrix algebra is like a superset of vector algebra, you can encode vector algebra in matrix algebra.
Vectors where one component is 1 and all the other components are 0, aka the column vectors of the identity matrix.
Pointer in the direction of x, flip the bird in the direction of y, and the thumb is in the direction of z. There’s two choices for a z that’s perpendicular to both x and y, so the right hand rule decides for you.
This is more accurately a right hand convention. The left-handed coordinate system isn’t wrong, it’s just a mirror image of the right-hand system.
where denotes the length of and , and is the angle between the vectors. (Two vectors always define a plane, so it always makes sense to talk about the angle between two vectors.)
This looks like the law of cosines and it’s not a coincidence (TODO fill this in, went over it in class)
Vectors are perpendicular when they have 90 degrees between them. Cosine of 90 degrees is 0. So the dot product of perpendiculuar vectors is 0 exactly when the vectors are perpendicular.
The projection of a vector onto a vector is denoted . (In other words, the function that projects vectors onto is written as .)
Book goes through this nice derivation:
If , then is a vector in the direction of and with its own length . So you can write as
where is q normalized to 1 unit, i.e. . This way the length of the vector is entirely determined by the term, not the length of q.
From the picture you can see that . This is just right-triangle stuff from high school, nothing to do with the dot product
So you can write as
If you don’t know you can compute it with the dot product:
So you can write as
and then cancel the s leaving
TODO typeset this better lol