so we've looked at the two main vector operations of addition and scaling by a number and those are all the things we really need to be able to do to define what we mean by a vector the mathematical properties of vector has now we can move on to define two things the length of a vector also called its size and the dot product of a vector also called its its inner scalar or projection product the dot product is this huge and amazing concept in linear algebra with huge numbers of implications and we'll only be able
to touch on a few parts of here but enjoy it's one of the most beautiful parts of linear algebra so we'll need to find a vector initially this guy R we did it without reference to any coordinate system in fact the geometric object this thing just has two properties its length here and its direction which is going this way as opposed to this way or this way so irrespective of the coordinate system we decided to use we want to know how to calculate those two properties its length and the direction it's going after the coordinate
system that we use to define our use these two vectors I and J we can say that R is equal to a I plus BJ or is equal to a B the way we were writing it in the last video now if we want to know the length of our well we can draw a triangle right and then we can use Pythagoras systems we've got a i's going along this way and we've got B J's going along this way and if I and J are both of unit length those that the lengths of those is
just a here and B here where this vertical lines on either side means the size so then we can use Pythagoras theorem just for a triangle where we've got a there be there this length then from Pythagoras there will be the square root of a squared plus B squared and we can say that that's equal to the length of our it's the square root of a squared plus B squared so the length of our is equal to a B so ours that and the length of our we define to be equal to the square root
of a squared plus B squared now we've done this for two spatial directions defined by the univac ters I and J and those are vitals to each other but this definition of the size of the vector is more general than that it doesn't matter if the different components of the vector dimensions in space or even things with different physical units like bedrooms and bathrooms or length and time and price we still define the size of a vector through the sums of the squares of its components all Square rooted the next thing we're going to do
is define the dot product which is one way well may have several of multiplying two vectors together as we've got two vectors here R and s I'm gonna make this a bit more general actually I'm gonna give them components so I'm going to call it RI rj so R has a component I in this case 3 and a component J in this case 2 in the J directions and the I directions respectively an S we could do the same thing we can say S has components Si and SJ so then we define the dot product
and the dot product is just a number like 3 it doesn't have any Associated spatial dimension or direction along the vectors I and J well define the dot product R dot s to be equal to what happens if I multiply RI by si and add it to our J times s J so in this case that gives me in this case it gives me 3 there times minus 1 plus 2 times 2 so that gives me 3 plus 4 so I minus 3 plus 4 which is equal to 1 so the dot product of r
plus $1 in this case is -3 plus 4 which is 1 now we can go on to look at one property of the dot product which is that it's commutative so commutative which is spelled commutative and that means that our dot s is equal to s dot R it doesn't matter which way around we do it we can see that face simply cuz if we just switch that around we'd have si times RI plus SJ x RJ and that's going to be the same number so we can see immediately fairly trivially that the dot product
is commutative it doesn't matter which order we do it in now the second property we're going to prove is that the dot product is distributive over addition so if I have some third vector let's take some third vector T what being distributive means distributive means is that aa dot S Plus T is the same as r dot s plus r dot T that is we can multiply out this bracket in the way that we would if they were just numbers and we're going to prove this in in a general case for any dimension vectors so
we'll have a vector R is equal to components r1 r2 for eyes and J's all the way up to some dimension RN and s is some other vector s 1 s 2 all the way up to some bit s N and T is another one which is equal to t1 t2 all the way up to some component TN and then our dot s plus T it's going to be equal to r1 times s 1 plus t1 plus R 2 for the second dimension times s 2 plus t2 plus all the other dimensions plus our n
times SN plus TN if I multiply it out for all the dimensions and then I can just multiply out those brackets that's gonna be R 1 s 1 and plus R 1 T 1 plus now multiply this bracket R 2 s 2 plus R 2 T 2 plus all the dots are n SN plus R and T n and if I collect two together the RS term so I've got R 1 s 1 R 2 s 2 and RN s n so that's r dot s and if I collect all the T terms together I've
got r dot t so we've demonstrated that this distributive property is in fact true so it's also kind of obvious that if we multiply a vector through by a scalar so if we take a times s that's our other fundamental operation was multiplying by a scalar and then do the dot product on that so we do r dot a s then that's going to be equal to a times r dot s because if we just if we take this s here when we do this if we multiply s here through by a number a we're
just going to get the number a come out of all the components so that's going to be if we do it our I times a si + rj times a SJ it's the left-hand side and that's equal to a times r i SI + r j SJ so that is this property is called that it's associative over scalar multiplication over scalar that's the number a multiplication so we've got three properties we've got its associative over scalar multiplication the dot product is distributive and it's commutative now the last thing I need to do is draw the
link between the dot product and the size of the vector this is quite surprising if we take our and dot it with itself we get our I times RI plus rj x rj plus all the other components whatever they are so that's equal to RI squared plus RJ squared but we said that the size of the vector was the square root of that so our R is equal to the size of the vector squared so that is the size of the vector is just given in some senses by our dotted with itself which is quite
cool