It just occurred to me that we have $$ \text{number} \cdot \text{number} = \text{number} \\ \text{matrix} \cdot \text{matrix} = \text{matrix} $$ but $$ \text{vector} \cdot \text{vector} = \text{number} $$ Why is that? Why is $\text{vector} \cdot \text{vector}$ not equal to another $\text{vector}$? Is that just a historical accident, that the sign "$\cdot$" is used that way for vectors, or is there a deeper reason for this difference in multiplication between numbers, matrices and vectors?
-
2We have the cross product (vector product) and the dot product (scalar product) between vectors. The former yields a vector, the latter yields a scalar. – StubbornAtom Jul 06 '18 at 20:18
-
4That's a dot product, and is not a typical multiplication. – Kaynex Jul 06 '18 at 20:18
-
17There are many types of products. You've just mentioned three of the most commonly used ones. That doesn't mean that there aren't other products which both make sense and are useful in some cases. – Arthur Jul 06 '18 at 20:20
-
4That's because the dot product is so defined. Not all laws of composition are internal. – Bernard Jul 06 '18 at 20:22
-
2Well, a number is a vector (of length $1$), isn't it? – Andrea Mori Jul 06 '18 at 20:40
-
You can easily have vector x vector = matrix, both by considering "scalars" as $1\times 1$ matrices and/or altering the order in which the matrix product of two vectors is taken. And that is apart from the other forms of product which may exist. A row vector times a compatible column vector gives a scalar. Change the order and column times row gives a square matrix depending on the size of the column (row). – Mark Bennet Jul 06 '18 at 21:12
-
1Don't forget matrix $\times$ vector = vector – Kai Jul 06 '18 at 22:23
-
1Are you asking about the historical context of this use of the dot symbol? Then you may have more luck getting an answer from History of Science and Mathematics SE. – Spencer Jul 07 '18 at 02:59
-
2There's also the Hadamard product that for vectors woks like $vector \cdot vector=vector$. – corey979 Jul 07 '18 at 15:03
6 Answers
Three kinds of vector products, along with what they produce:
- Dot product: $vector \cdot vector = scalar$
- Cross product: $vector \times vector = vector$
- Outer product: $vector \otimes vector = matrix$
So, it only produces a number (scalar) if it's a dot product.
It boils down to definitions.

- 26,319
-
So to have a consistent notation it would make sense to exchange the symbols for cross product and dot product, wouldn‘t it? – asmaier Jul 07 '18 at 07:26
-
@asmaier Do you mean exchange the definitions? Exchanging the symbols wouldn't make sense since you'd want the dot to mean dot product. – jamesdlin Jul 07 '18 at 08:40
-
1And it’s worth pointing out that there are many other definitions of ‘multiplication’ on vectors - if the vectors have rational components, then one could view any algebraic number field of the right degree as defining a multiplication. Complex numbers are an example over the reals. These are probably closer to the definition of multiplication that asmaier is thinking of, as they actually allow vectors to form a ring. – Nethesis Jul 07 '18 at 10:49
-
@jamesdlin No I mean exchanging the symbol, because "dot product" should really be called scalar product (after the result of the operation and not after the symbol) and the "cross product" should be called vector product for the same reason. Then a "dot" symbol would always describe a multiplication operation which returns the same type as the two input arguments for numbers, vectors and matrices (I believe this is also called a https://en.wikipedia.org/wiki/Binary_operation). – asmaier Jul 07 '18 at 20:52
When you say $\text{matrix} \cdot \text{matrix} = \text{matrix}$ you should say it all and write $$(n\times m)\text{matrix} \cdot (m\times k)\text{matrix} = (n\times k)\text{matrix}$$
Which, in the special case $n=k=1$, is one of the ways to encode the usual Euclidean inner product of $\Bbb R^n$ $$\langle v;w\rangle=v^T\cdot w$$
Now, this is not necessarily the only way to see it. In fact, inner products on vector space have a theory of their own as simmetric bilinear maps on a vector space (or hermitian sesquilinear maps on a $\Bbb C$-vector space). On the other hand, the product of matrices represents the way to calculate in coordinates the composition of linear maps. These two things inspect separated aspects of (structures on) vector spaces, so it is natural for them to behave differently, despite being both called "products": theoretically, they are "products" in different contexts.
-
2Is a 1 by 1 matrix really equivalent to a number? I mean, I can multiply a matrix by a number. But multiplying a matrix by a 1-by-1 matrix is not the same and might not even be possible, because the dimensions don't fit. – asmaier Jul 06 '18 at 21:10
-
3@asmaier Correct: the vector space action of the scalars over the matrices $\alpha\cdot(a_{ij})=(\alpha a_{ij})$ cannot be encoded as multiplication of a $(1\times 1)$ by a $(n\times n)$ matrix. Technically, you could do a trick of sort (namely, indetify $\alpha$ with $\alpha I_n$) but that would not solve the problem globally. In most cases it's more convenient to see scalar-vector products as completely different ones. – Jul 06 '18 at 21:17
A vector multiplied with a scalar returns a vector
A cross product with two vectors returns a vector
A dot product with two vectors returns a scalar
An outer product with two vectors returns a matrix (or tensor)
I’m assuming you mean dot product. The dot product can be though of as “the amount” of one vector in the direct of another vector. In that case it returns a scalar that can be thought of as the “amount” vector A points in the direction of vector B. (Assuming vector B is a unit vector).

- 818
Note that the product vector by vector is a special case of the product matrix by vector indeed given a $m$ by $n$ matrix $A$ and a $n$ by $1$ vector $v$ the product is a $m$ by $1$ vector $w$ and thus the product of a $1$ by $n$ vector $u$ by a $n$ by $1$ vector $v$ is a $1$ by $1$ matrix that is a number. Such kind of product is also known as dot product
$$u\cdot v= u^Tv=\sum u_iv_i$$
As noticed, in three dimensions we can also define the cross product by vectors which returns another vector.

- 154,566
-
1Is a 1 by 1 matrix really equivalent to a number? I mean, I can multiply a matrix by a number. But multiplying a matrix by a 1-by-1 matrix is not the same and might not even be possible, because the dimensions don't fit. – asmaier Jul 06 '18 at 21:10
-
The intention to assign a number to two vectors is to measure the angle — which is a number — between them and moreover one vector’s component of the other.

- 18,103
- 3
- 32
- 49
As others have said, there are many possible notions of product. The ones you have listed are among the most widely-used, and there are good reasons for that, but that does not mean that each one is the only possible product for its input type, or that they must have all the same properties.
In some sense, the question you really want to be asking is what is special about these particular products, where they come from, how they relate to one other, and why they have the properties in common that they do. These are slightly vague questions, but that doesn't mean they don't have good answers. Those answers contain the understanding that you were looking for when you asked this question.
I originally wrote a much longer answer containing some of that information, but it is perhaps best broken down so that you can work through it at your own pace.

- 924