[Math] why do we use cosine as the expression of vector dot product

vectors

When we do vector products, we use two different methods.
One is the vector dot product, another is vector cross product.
The equation of the vector dot product is
$$\textbf A \cdot \textbf B =|\textbf A| | \textbf B| \cos\theta,$$
where $\theta$ is the angle between the vectors $\textbf A$ and $\textbf B$.

Why do we use cosine as the expression?

Best Answer

Let $\vec{\mathbf a} = (x_1, y_1) = (a \cos \alpha, a \sin \alpha)$

Let $\vec{\mathbf b} = (x_2, y_2) = (b \cos \beta, b \sin \beta)$

Then $\theta = |\beta - \alpha|$

By definition,

\begin{align} \vec{\mathbf a} \circ \vec{\mathbf b} &= x_1x_2 + y_1y_2 \\ &= ab(\cos \alpha \cos \beta + \sin \alpha \sin \beta) \\ &= ab \cos(\beta - \alpha)\\ &= ab \cos \theta \end{align}

(Note $\cos(\theta) = \cos(-\theta)$)

Related Question