Mini-Post: Dot Products and Cross Products, and their Equivalent Trig Things.
August 17, 2010
Okay, so, we know (or you should know!) what cross and dot products are for Euclidean spaces. We use them all the time! On the daily! So, I’m sure you’ve seen the equalities
where is the angle between the vectors and . Where do these equalities come from? Let’s find out.
The Dot Product.
Note that, in the picture above, we have constructed a triangle. Neat. Now, if you’re anybody who’s anybody, you are well aware of the Law of Cosines. Even though I know you can recite it from memory, let’s write it out explicitly below:
where is the angle opposite the side .
Well, we have a triangle here, so let’s apply this. We get:
But note that for any x. That’s convenient. We can rewrite this equality as
but we can reduce the left side
and so, we can rewrite this by replacing the left side of the original equation with this one. We get:
Reducing this, we get
And this is the equation that we’re used to havin’! Good.
For the cross product, we require three dimensions. So, every vector will be represented by: , where represent the unit vector in the direction, respectively. Note that this is exactly the same as saying , but this first way is the usual “physic” notation, and it is slightly easier to work with. We have the same picture as above in the dot product, and we want to show that
so, where’s a good place to start? Well, let’s write everything out.
Now, let’s distribute.
Okay, but what’s ? If you want to figure it out matrix-wise, you can, but it is just going to turn out to be zero. We get a lot of things crossing out because of this. We wind up having the significantly messier expression
which is a pretty nice deal, all things considered.
Okay, now, here’s the crazy part. I’m not going to do everything completely out, but you can write it out on paper if you’d like. From above, we have
and this, ugh, is equal to
BUT, we can make this much nicer. This is the part you might wanna scratch out on paper to see that it works:
from the dot product identity above, which gives us, finally:
and putting this all together, we get
which, after taking the square root of both sides (since the norm is always positive, we can do such a thing…), reduces to the significantly nicer:
which is what we’re used to.
I learned a kind of cute way to remember which product is cosine and which is sine; unfortunately, I don’t remember who taught it to me, so they’re gonna get absolutely no credit for it! Sad. Either way, I always say to myself:
which means that “cross product isn’t the cosine one…that’s the dot product.” If you have some other jingle or way to remember it, comment it!