Dot Product vs. Inner Product
Learn to calculate the inner product, magnitude, and direction of a vector.
In the previous lessons, we described a (typical) vector as a collection of ordered sequences of numbers. In contrast, a generalized vector can be any object that is an element of a vector space. The dot product (also known as the scalar product) is defined for a pair of typical vectors, whereas the inner product is defined for generalized vectors. The result of both operations is a scalar.
Dot product
A dot product, of two vectors, may be defined algebraically and geometrically.
Algebraic definition
Algebraically, a dot product is defined as:
Example
Consider two vectors are and . Their dot product is
Geometric definition
Geometrically, a dot product is defined as
where, and are the magnitudes of vector and , respectively. This definition is useful to calculate the angle between two vectors.
Magnitude of a vector
The magnitude (also known as length) of a vector, , is defined as:
Example
Consider the vector . The magnitude of is
Angle between two vectors
The geometric definition of a dot product can be used to find the angle, , between two vectors, , as follows:
Example
Consider two vectors, are and , which have the magnitudes, , . The angle between them is
Get hands-on with 1400+ tech skills courses.