Dot product
The dot product, also known as the scalar product or inner product, is an operation that takes two vectors and produces a scalar. Geometrically, we define the dot product of and with
where is the angle between the vectors in standard position. The dot product has a few useful properties that arise from the cosine term:
If | Then | Therefore |
---|---|---|
acute | ||
obtuse | ||
perpendicular |
Algebraically, we define the dot product in with
Essentially, we get the product of the first components, of the second components, etc., and then take the sum of the products. It works in the same way with and any other Euclidean space.
The dot product has a few properties that are worth committing to memory. First, the dot product of a vector with itself is equivalent to the square of its magnitude:
The dot product is commutative—order doesn’t matter:
It is distributive over addition:
It is associative over scalar multiplication:
Finally, any dot product with the zero vector produces the scalar zero: