Skip to content
Tactiverge

Mathematical concepts

Dot product

Also called: scalar product · a · b · projection

Definition

The dot product of two vectors multiplies matching components and adds them; it also equals the product of their lengths and the cosine of the angle between them.

Picture it

The dot product asks how much two arrows point the same way. Perpendicular arrows give zero, parallel arrows give the full product of lengths, opposite arrows give a negative. Work done is the dot product of force and displacement.

The maths

a · b = a_x b_x + a_y b_y
a · b = |a| |b| cos θ
SI units used in this entry
QuantityUnitSymbol
ratiodimensionless1
energyjouleJ

Worked example

Find the angle between a = (3, 4) and b = (4, 3).

  1. a · b = 3 × 4 + 4 × 3 = 24
  2. |a| = |b| = 5
  3. cos θ = 24 / 25 = 0.96
  4. θ = acos 0.96 = 16.3°

Answerθ ≈ 16.3°.

✓ The 2 numbers in this answer are recomputed from scratch by an automated test.

Common misconceptions

  • Misconception: The dot product of two vectors is a number, not a vector.
  • Misconception: A zero dot product means perpendicular, not that either vector is zero (unless it is).