The dot product of two vectors is a scalar measuring 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
Most of the usefulness comes from the geometric definition. The sign of alone classifies the angle:
- Positive: acute (). Vectors point “mostly the same way.”
- Zero: perpendicular (). This is what you use for orthogonality checks.
- Negative: obtuse (). Vectors point “mostly opposite ways.”
Two nonzero vectors are perpendicular iff their dot product is zero. Probably the most-used fact 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 .” Same goes for the Flux integral . Either way, the dot product turns a vector quantity into a scalar that respects orientation.
The divergence is, formally, a “dot product” of the operator with the vector field .