Dot Product

Lesson · Intermediate

Algebra: Vectors

For vectors

u=(u1,u2,,un),v=(v1,v2,,vn)\overrightarrow{u}=(u_1,u_2,\ldots,u_n),\qquad \overrightarrow{v}=(v_1,v_2,\ldots,v_n)

the dot product is

uv=u1v1+u2v2++unvn\overrightarrow{u}\cdot\overrightarrow{v}=u_1v_1+u_2v_2+\cdots+u_nv_n

The result is a number, not a vector.

Geometric Interpretation

If θ is the angle between the two vectors, then

uv=uvcosθ\overrightarrow{u}\cdot\overrightarrow{v}=|\overrightarrow{u}||\overrightarrow{v}|\cos\theta

Therefore,

cosθ=uvuv\cos\theta=\frac{\overrightarrow{u}\cdot\overrightarrow{v}}{|\overrightarrow{u}||\overrightarrow{v}|}
Vectors u and v with angle theta between them