Can someone explain the concept of cross and dot product of vectors
ELI5: What is a dot product?
Why is the dot product useful?
ELI5 Dot products.
We are going to ELIKnowWhatAVectorIs
Let's say you have two unit vectors (thought of as arrows with length 1 coming from the origin). The dot product is a measurement of "how parallel/perpendicular are these vectors?"
If u dot v = 1, then the unit vectors are exactly parallel. (Try dotting <1,0> with <1,0>)
If u dot v = 0, then the unit vectors are exactly perpendicular (like <1,0> with <0,1>)
If u dot v = -1, then the unit vectors are antiparallel, parallel but in opposite directions (like <1,0> with <-1,0>)
If the vectors aren't unit length, like most vectors, then you have to multiply by the product of the lengths. The larger the dot product (compared to the product of the lengths), the closer the vectors are to parallel, or antiparallel.
For example, if you have a vector whose length is 3, and another vector whose length is 7, and their dot product is -21, then these vectors must be antiparallel.
Here's another case: If you have a vector of length 5 and a vector of length 9, and their dot product is 2, then the vectors are close to perpendicular, because 2 is a very small dot product compared to 45.
Let me know if this helps.
Let me add: generally, for various reasons, it is more useful to know when two vectors are perpendicular, which is good, because solving when an expression is equal to 0 is much easier than trying to solve for the product of the lengths if we don't know the lengths of the vectors. (Example: if I say the dot product of two vectors is 3, you don't know if that is a lot, or if it is very small, compared to the product of the lengths. But if I say the dot product is 0, you know they are perpendicular, no question.) Sometimes you will see statements "like ax+by+cz = 0, therefore such-and-such vectors are perpendicular"; in these cases, they are using a dot product.
More on reddit.comVideos
When do we use cross product and dot product? How is the right hand rule used to understand cross product? Why is the dot product of orthogonal vectors 0 while its cross product is 1? And when it's parallel, it's the other way around?
I'm currently in a Physics class and my prof barely taught this :(((