There is an obvious way of adding two vectors to get another vector, and an obvious way of multiplying a vector by a scalar. Below we define a multiplication which has two vectors as its input, and its output is a scalar. We also define a multiplication which has a matrix and a vector as its input, and a vector as its output.
Let and .
(Vector vector) The scalar product (also dot product) of and is the real number
The symbol means “sum over all values of such that ”.
(Matrix vector) The product is defined to be the column vector , with coefficients
In other words, the -th coefficient of the column vector is the scalar product of the -th row of with .
Example 1.3.2.
Let and The product is defined and we have
Example 1.3.3.
Let and . Then
The multiplication of a matrix with a column vector is defined if and only if the size of the vector is equal to the number of columns of the matrix.
The terms “scalar product” and “scalar multiplication” refer to completely different things.
The length (or norm) of a vector is
If the angle between two vectors is called , then
In particular and are perpendicular to each other if and only if .
We omit the proof. ∎
Example 1.3.7.
Find the angle between the vectors
Solution: We compute the scalar product and lengths of and :
By Proposition 1.3.6, . Hence the angle between and is about 2.15 radians (or 123 degrees).
Example 1.3.8. (Differential operator)
Consider a degree poynomial
We may represent as an ()-dimensional column vector, , simply by recording the coefficients. Then differentiating this polynomial with respect to is the same as applying the Differential operator:
For example, when , the differential operator is . So if represents the polynomial , then one calculates
which represents the polynomial , as one would expect from calculus.