Inner Product
Projection Map
In , we consider a unit vector . We define the projection map onto the line containing vector as follows: For any vector in , such that is the signed distance from the origin to the foot of the perpendicular to the line containing from the arrowhead of . The sign is positive/negative if the vector from the origin to the foot of the perpendicular is in the same/opposite direction of , as shown in the applet below.
As illustrated by the applet below, is in fact a linear transformation. Therefore, it can be represented by an 1 x 2 matrix. Moreover, it can be shown that and , where . Hence, for any , we have
Inner Product
The definition of projection map can readily be generalized to or even i.e. suppose is a unit vector in . Then for any vector in , we define the projection map onto the line containing as follows:
Since the above definition is symmetric in and , this suggests that we should extend the definition to any vector , without the restriction that is a unit vector:
Definition: Given any vectors in , the real number is called the inner product (or dot product) of and , usually denoted by .
Remarks:
- If , then we can write , where is the unit vector in the direction of and is the length of the vector . Hence . Moreover, for any nonzero vector , is perpendicular to if and only if , or equivalently, .
- The geometric concept of the "angle between two vectors" is encoded in the inner product: Let and be two unit vectors in or , then , where is the angle between the two vectors. Therefore, in , we can define the "angle between two vectors" through inner product.
- and if and only if
Exercise
Let in .
Suppose are two vectors in .