...

/

Dot Product vs. Inner Product

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, xy\bold{x} \cdot \bold{y} of two vectors, x,yRn\bold{x}, \bold{y} \in \R^n may be defined algebraically and geometrically.

Algebraic definition

Algebraically, a dot product is defined as:

xy=j=0nxi×yi\bold{x} \cdot \bold{y} = \sum_{j=0}^{n} x_i\times y_i

Example

Consider two vectors x,yR2\bold{x}, \bold{y} \in \R^2 are x=[52]\bold{x}=\begin{bmatrix}5 \\ 2\end{bmatrix} ...