Dot Product

Lesson · Intermediate

Geometry: Coordinate Geometry

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

u→⋅v→=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

u→⋅v→=∣u→∣∣v→∣cos⁡θ\overrightarrow{u}\cdot\overrightarrow{v}=|\overrightarrow{u}||\overrightarrow{v}|\cos\theta

Therefore,

cos⁡θ=u→⋅v→∣u→∣∣v→∣\cos\theta=\frac{\overrightarrow{u}\cdot\overrightarrow{v}}{|\overrightarrow{u}||\overrightarrow{v}|}
Vectors u and v with angle theta between them