The dot product of two vectors is a scalar that measures how much they point in the same direction.

Two definitions

Algebraic (component-wise):

Geometric: let be the angle between and , . Then

The two definitions agree. Proof: apply the law of cosines to the triangle with sides ; the algebraic expression for matches the geometric one after expansion.

What it tells you

The geometric definition is the source of the dot product’s usefulness. The sign of alone classifies the angle:

  • Positive: acute (). Vectors point “mostly the same way.”
  • Zero: perpendicular (). The workhorse for orthogonality checks.
  • Negative: obtuse (). Vectors point “mostly opposite ways.”

Two nonzero vectors are perpendicular iff their dot product is zero. This is one of the most-used facts in vector calculus.

Properties

  • (magnitude squared).
  • (commutative).
  • (distributive).
  • .
  • Standard unit vectors: , , etc.

The component formula falls right out of these properties together with the orthonormality of .

Angle and projection

Solve the geometric formula for :

The scalar projection of onto is — the (signed) component of in the direction .

The vector projection is the actual shadow vector:

In physics and engineering

Work done by a force moving an object through displacement : . The dot product picks out the force component along motion. Perpendicular force components contribute nothing.

Power delivered by a force at velocity : .

Flux through a flat surface with constant field and unit normal : . The dot product extracts the component of the field that’s actually crossing the surface.

In vector calculus

The dot product is the integrand in the vector line integral — “work done by along .” It’s also the integrand in the Flux integral . The recurring theme: dot products convert vector quantities into scalar quantities that respect orientation.

The divergence is, formally, a “dot product” of the differential operator with the vector field . See Divergence.