Writings of the scalar product¶
Here are 3 different ways to write the dot product. Some are clearer than others but all 3 are found in the literature.
${\bf v} \,.\, {\bf w}$¶
In the worksheet that follows and in the lesson thereafter, there are many dot products that use the point. It is important to note the order in which operators are solved in a formula like
$$A \, {\bf v} \, . \, {\bf w}$$
- If we do $A ({\bf v} \, . \, {\bf w})$ then the result is a matrix.
- If we do $(A {\bf v} )\, . \, {\bf w}$ then the result is a real.
In the majority of cases and in particular in this course, the 2nd reading is the correct one.
Hazard¶
This writing is dangerous. Imagine multiplying our equation by $A^{-1}$. So we want to write
$$ A^{-1} \, A \, {\bf v} \, . \, {\bf w} = {\bf v} \, . \, {\bf w} $$
but it is false (in the second case) because we forget what the point of the scalar product relates to.
${\bf v}^T \, {\bf w}$¶
The matrix notation of the previous example is written
$${\bf v}^T A \, {\bf w}$$
In this case, you can do the calculations in any order you like. If we start with the first 2 we will have a horizontal vector, if we start with the last 2 we will have a vertical vector. This notation is less risky when making more complex calculations.
With matrix notation this risk does not exist since multiplying by $A^{-1}$ gives
$$ A^{-1} \, {\bf v}^T A \, {\bf w} $$
and we can clearly see that the A's are not simplified.
$<{\bf v}, {\bf w}>$¶
Another way to write the matrix product to avoid confusion is to use the signs < and > which gives <a, b> for the dot product between a and b. With this notation the error reading of the scalar product with the point disappears:
$$ A^{-1} \, < A \, {\bf v} \,, \, {\bf w}> $$
Sometimes parentheses are used instead of lower and upper but I find that less readable.