The dot product, also known as the scalar product, is a mathematical operation that takes two vectors and returns a single scalar (a real number). It is used extensively in geometry, physics, and various fields of engineering.
Articles by others on the same topic
A dot product measures how much two Euclidean vectors point along each other. This article uses real Euclidean vectors in , with the usual Cartesian basis: multiply matching coordinates and add,The result is a scalar, while is the Euclidean norm. This real convention has no complex conjugation; for vectors over the complex numbers, use the convention specified in inner product.
For two nonzero Euclidean vectors, the same dot product records their angle through the cosine:Here is an inverse trigonometric function. The Cauchy-Schwarz inequality guarantees that the normalized ratio lies in . The zero vector has dot product zero with every vector, but its angle is undefined: the ratio would divide by zero. To outline the geometric identity, expand and compare with the law of cosines.[ref]
Take and . Their Euclidean norms are and , andThe unit vector selects the horizontal direction. The scalar projection says how far reaches along that direction; its vector projection is . Thus splits into an aligned part and an orthogonal projection residual.
The vector projection of onto the horizontal line is ; the orthogonal projection residual is and the angle is
. Details. For , the dot product proves orthogonality; both Euclidean norms are . For , : the scalar projection onto is , because reaches against that chosen direction. Its angle with is .
Keeping fixed and choosing of Euclidean norm gives . At angles , the dot products are . Positive values mean partial alignment, zero means orthogonality, and negative values mean a component against the other direction.
With Euclidean norms and , the dot product follows ; equal-length arrows show positive, zero, and negative alignment with
. Details. Most definitions tend to be bilinear forms.
We use the unqualified generally refers to the dot product of Real coordinate spaces, which is a positive definite symmetric bilinear form. Other important examples include:The rest of this section is about the case.
- the complex dot product, which is not strictly symmetric nor linear, but it is positive definite
- Minkowski inner product, sometimes called" "Minkowski dot product is not positive definite
The positive definite part of the definition likely comes in because we are so familiar with metric spaces, which requires a positive norm in the norm induced by an inner product.
The default Euclidean space definition, we use the matrix representation of a symmetric bilinear form as the identity matrix, e.g. in :so that:

