# Cross and dot products?

1. Jan 21, 2010

### cdotter

What is significance of the trig functions in both the cross and the dot product? I understand what the dot and cross products are, how they work, and what they give...but I don't understand why the dot product uses cosine and the cross product uses sine?

2. Jan 21, 2010

### cdotter

Actually never mind. I'm reading some proofs and my trig skills are rusty, so it doesn't make any sense. I know how to use cross/dot products and what they do, so that's close enough for me.

3. Jan 21, 2010

### vela

Staff Emeritus
Let's assume you define the dot product as $A\cdot B = A_xB_x+A_yB_y+A_zB_z$. You can easily show that rotations don't affect the dot product. If you have two vectors A and B and rotate the system so they are now A' and B', you'll get the same result for the dot product using either pair, i.e. $A\cdot B=A'\cdot B'$. So you can always perform a rotation so that A points along the x-axis, so that A = |A|(1,0,0). The dot product will therefore equal $A\cdot B = |A|B_{x}$. Now $B_{x}$ is just the projection of B onto the x-axis, which, using basic trig, is $B_{x} = |B|\cos \theta$, where $\theta$ is the angle B makes with the x-axis, which is also the angle between A and B. So you get $A\cdot B = |A||B|\cos\theta$.

The dot product is a special case of what's called an inner product. The definition above is the inner product for plain old three-dimensional Euclidean space, but other spaces are characterized by having a different inner product. If you have two vectors A and B in such a space, you can use

$$\cos\theta=\frac{\langle A,B\rangle}{\sqrt{\langle A,A\rangle}\sqrt{\langle B,B\rangle}}$$

where $\langle A,B\rangle$ is the inner product of A and B, to define angles in this space. In this case, the cosine is there by definition.