Skip to content

Mathematics · Ch 8 — Vectors

Scalar (Dot) Product of Vectors

7

Scalar (Dot) Product of Vectors

Geometric Definition

For two nonzero vectors a⃗\vec a and b⃗\vec b with the angle between them θ\theta (where 0≤θ≤π0\le\theta\le\pi, measured with both vectors drawn from a common initial point), the scalar product (or dot product) is the real number

a⃗⋅b⃗=∣a⃗∣ ∣b⃗∣cos⁡θ\vec a\cdot\vec b=|\vec a|\,|\vec b|\cos\theta

If either vector is 0⃗\vec 0, the angle is undefined and a⃗⋅b⃗\vec a\cdot\vec b is taken to be 00. Unlike vector addition, the dot product of two vectors is always a scalar, never a vector -- hence the name scalar product.

Geometrical Interpretation

∣b⃗∣cos⁡θ|\vec b|\cos\theta is the length of the projection of b⃗\vec b onto the line of a⃗\vec a (positive if θ\theta is acute, negative if θ\theta is obtuse, zero if θ=90°\theta=90°). So a⃗⋅b⃗=∣a⃗∣×(projection of b⃗ on a⃗)\vec a\cdot\vec b=|\vec a|\times(\text{projection of }\vec b\text{ on }\vec a): the dot product measures how much of one vector acts "along" the direction of the other, scaled by the first vector's own length.

Key Consequences of the Definition

  • Perpendicularity test: since cos⁡90°=0\cos90°=0, a⃗⋅b⃗=0  ⟺  a⃗⊥b⃗\vec a\cdot\vec b=0\iff\vec a\perp\vec b (for nonzero a⃗,b⃗\vec a,\vec b) -- the single most-used property of the dot product.
  • Same direction (θ=0\theta=0): a⃗⋅b⃗=∣a⃗∣∣b⃗∣\vec a\cdot\vec b=|\vec a||\vec b|; in particular a⃗⋅a⃗=∣a⃗∣2\vec a\cdot\vec a=|\vec a|^2, so ∣a⃗∣=a⃗⋅a⃗|\vec a|=\sqrt{\vec a\cdot\vec a}.
  • Opposite direction (θ=π\theta=\pi): a⃗⋅b⃗=−∣a⃗∣∣b⃗∣\vec a\cdot\vec b=-|\vec a||\vec b|.
  • Unit vectors along the axes: i^⋅i^=j^⋅j^=k^⋅k^=1\hat i\cdot\hat i=\hat j\cdot\hat j=\hat k\cdot\hat k=1 and i^⋅j^=j^⋅k^=k^⋅i^=0\hat i\cdot\hat j=\hat j\cdot\hat k=\hat k\cdot\hat i=0, since i^,j^,k^\hat i,\hat j,\hat k are mutually perpendicular unit vectors.
  • Commutativity: a⃗⋅b⃗=b⃗⋅a⃗\vec a\cdot\vec b=\vec b\cdot\vec a.
  • Distributivity over addition: a⃗⋅(b⃗+c⃗)=a⃗⋅b⃗+a⃗⋅c⃗\vec a\cdot(\vec b+\vec c)=\vec a\cdot\vec b+\vec a\cdot\vec c.

Component Formula -- Derivation

Let a⃗=a1i^+a2j^+a3k^\vec a=a_1\hat i+a_2\hat j+a_3\hat k and b⃗=b1i^+b2j^+b3k^\vec b=b_1\hat i+b_2\hat j+b_3\hat k. Using distributivity and the i^,j^,k^\hat i,\hat j,\hat k products above,

a⃗⋅b⃗=(a1i^+a2j^+a3k^)⋅(b1i^+b2j^+b3k^).\vec a\cdot\vec b=(a_1\hat i+a_2\hat j+a_3\hat k)\cdot(b_1\hat i+b_2\hat j+b_3\hat k).

Expanding, every cross term such as a1b2(i^⋅j^)a_1b_2(\hat i\cdot\hat j) or a2b3(j^⋅k^)a_2b_3(\hat j\cdot\hat k) vanishes because i^⋅j^=j^⋅k^=k^⋅i^=0\hat i\cdot\hat j=\hat j\cdot\hat k=\hat k\cdot\hat i=0, and every matching term such as a1b1(i^⋅i^)a_1b_1(\hat i\cdot\hat i) survives with coefficient 11. Only three terms remain:

a⃗⋅b⃗=a1b1+a2b2+a3b3\vec a\cdot\vec b=a_1b_1+a_2b_2+a_3b_3

Angle Between Two Vectors

Combining the geometric definition with the component formula gives the standard tool for finding the angle between two vectors: …

Figure 1Dot product as a projection

What this figure shows. Two vectors labelled a and b are drawn from a common initial point O, with the angle theta marked between them by a small arc at O. A dashed perpendicular is dropped from the tip of vector b onto the line containing vector a (extended if needed), meeting it at a labelled foot point N; the segment ON, measured along the direction of a, is highlighted as the projection of b onto a, of length |b|cos(theta), the quantity multiplied by |a| to give the scalar (dot) product a.b. A small inset shows theta obtuse, with the foot N lying on the opposite side of O from a …