Vectors: Distance, angle, dot product and cross product
Dot product, angle and orthogonal projection
Dot product in 2D and 3D
We define the scalar product or dot product of vectors and in the coordinate plane as
We define the scalar product or standard dot product of v and in the coordinate plane we define as
Examples
This can be generalized to the -dimensional coordinate space .
The scalar (dot) product The scalar product or dot product of two vectors and in the -dimensional space , also referred to as the standard inner product, is defined as
Note that for a vector in it we have
Usually we just talk about the scalar product, dot product, or inner product if we mean the standard inner product and there is no possible confusion. The name dot product explains our choice of notation with a bold point. Other common formats that you may encounter in books and papers are and .
After all:
Properties of the dot product the dot product on has the following properties for all scalars and , and for all vectors , and :
- Symmetry:
- Linearity:
- Standard: The inner product of a vector with itself is the square of the length, ie, for each vector . The inner product is nonnegative and is equal to zero only if .
After all, using of the properties of the dot product we get
Geometric meaning of the dot product The dot product in the plane and in the space has the following geometrical meaning:
The inner product of two vectors and is equal to the product of the length of and the length of the projection of on the span of .
In other words, the orthogonal projection of vector on the span of vector is equal to .
With reference to the figure below, we have the following formula:
Conversely, we can define an angle between two vectors via the dot product (or more generally via an inner product).
Angle between two vectors The (short) angle between two nonzero vectors and is defined by the formula This angle is acute if , and obtuse if .
We also notice that means exactly that the vectors and are perpendicular to each other. We also say that the vectors and are orthogonal.
The following inequality is now evident in the plane and the space . This inequality, and herewith the concept of angle, generalizes to .
Cauchy-Schwarz inequality Let and be vectors in then
After all, if is the angle between the vectors and , then
Orthogonal projection on a plane Suppose that is a plane through the origin and spanned by two orthogonal direction vectors and . Then you can compute the projection of on as linear combination of and :