# Product (mathematics)

In mathematics, a product is the result of multiplying, or an expression that identifies factors to be multiplied. Thus, for instance, 30 is the product of 6 and 5 (the result of multiplication), and ${\displaystyle x\cdot (2+x)}$ is the product of ${\displaystyle x}$ and ${\displaystyle (2+x)}$ (indicating that the two factors should be multiplied together).

The order in which real or complex numbers are multiplied has no bearing on the product; this is known as the commutative law of multiplication. When matrices or members of various other associative algebras are multiplied, the product usually depends on the order of the factors. Matrix multiplication, for example, and multiplication in other algebras is in general non-commutative.

There are many different kinds of products in mathematics: besides being able to multiply just numbers, polynomials or matrices, one can also define products on many different algebraic structures.

## Product of two numbers

### Product of two natural numbers

3 by 4 is 12

Placing several stones into a rectangular pattern with ${\displaystyle r}$ rows and ${\displaystyle s}$ columns gives

${\displaystyle r\cdot s=\sum _^r=\underbrace _}}=\sum _^s=\underbrace _}}}$

stones. Another approach to multiplication that applies also to real numbers is continuously stretching the number line from 0, so that the 1 is stretched to the one factor, and looking up the product, where the other factor is stretched to.

### Product of two integers

Integers allow positive and negative numbers. Their product is determined by the product of their positive amounts, combined with the sign derived from the following rule, which is a necessary consequence of demanding distributivity of the multiplication over addition, but is no additional rule.

${\displaystyle {\begin{|c|c c|}\hline \cdot &-&+\\\hline -&+&-\\+&-&+\\\hline \end}}$

In words, we have:

• Minus times Minus gives Plus
• Minus times Plus gives Minus
• Plus times Minus gives Minus
• Plus times Plus gives Plus

### Product of two fractions

Two fractions can be multiplied by multiplying their numerators and denominators:

${\displaystyle {\frac }\cdot {\frac }={\frac }}$

### Product of two real numbers

For a rigorous definition of the product of two real numbers see Construction of the real numbers.

### Product of two complex numbers

Two complex numbers can be multiplied by the distributive law and the fact that ${\displaystyle i^=-1}$, as follows:

${\displaystyle {\begin(a+b\,i)\cdot (c+d\,i)&=a\cdot c+a\cdot d\,i+b\cdot c\,i+b\cdot d\cdot i^\\&=(a\cdot c-b\cdot d)+(a\cdot d+b\cdot c)\,i\end}}$

#### Geometric meaning of complex multiplication

A complex number in polar coordinates.

Complex numbers can be written in polar coordinates:

${\displaystyle a+b\,i=r\cdot (\cos(\varphi )+i\sin(\varphi ))=r\cdot e^}$

Furthermore,

${\displaystyle c+d\,i=s\cdot (\cos(\psi )+i\sin(\psi ))=s\cdot e^,}$

from which one obtains

${\displaystyle (a\cdot c-b\cdot d)+(a\cdot d+b\cdot c)i=r\cdot s\cdot e^.}$

The geometric meaning is that the magnitudes are multiplied and the arguments are added.

### Product of two quaternions

The product of two quaternions can be found in the article on quaternions. However, in this case, ${\displaystyle a\cdot b}$ and ${\displaystyle b\cdot a}$ are in general different.

## Product of sequences

The product operator for the product of a sequence is denoted by the capital Greek letter pi (in analogy to the use of the capital Sigma as summation symbol). The product of a sequence consisting of only one number is just that number itself. The product of no factors at all is known as the empty product, and is equal to 1.

## Commutative rings

Commutative rings have a product operation.

### Residue classes of integers

Residue classes in the rings ${\displaystyle \mathbb /N\mathbb }$ can be added:

${\displaystyle (a+N\mathbb )+(b+N\mathbb )=a+b+N\mathbb }$

and multiplied:

${\displaystyle (a+N\mathbb )\cdot (b+N\mathbb )=a\cdot b+N\mathbb }$

### Convolution

The convolution of the square wave with itself gives the triangular function

Two functions from the reals to itself can be multiplied in another way, called the convolution.

If

${\displaystyle \int \limits _{-\infty }^{\infty }|f(t)|\,\mathrm t<\infty \qquad {\mbox}\qquad \int \limits _{-\infty }^{\infty }|g(t)|\,\mathrm t<\infty ,}$

then the integral

${\displaystyle (f*g)(t)\;:=\int \limits _{-\infty }^{\infty }f(\tau )\cdot g(t-\tau )\,\mathrm \tau }$

is well defined and is called the convolution.

Under the Fourier transform, convolution becomes point-wise function multiplication.

### Polynomial rings

The product of two polynomials is given by the following:

${\displaystyle \left(\sum _^a_X^\right)\cdot \left(\sum _^b_X^\right)=\sum _^c_X^}$

with

${\displaystyle c_=\sum _a_\cdot b_}$

## Products in linear algebra

There are many different kinds of products in linear algebra; some of these have confusingly similar names (outer product, exterior product) but have very different meanings. Others have very different names (outer product, tensor product, Kronecker product) but convey essentially the same idea. A brief overview of these is given here.

### Scalar multiplication

By the very definition of a vector space, one can form the product of any scalar with any vector, giving a map ${\displaystyle \mathbb \times V\rightarrow V}$.

### Scalar product

A scalar product is a bi-linear map:

${\displaystyle \cdot :V\times V\rightarrow \mathbb }$

with the following conditions, that ${\displaystyle v\cdot v>0}$ for all ${\displaystyle 0\not =v\in V}$.

From the scalar product, one can define a norm by letting ${\displaystyle \|v\|:={\sqrt }}$.

The scalar product also allows one to define an angle between two vectors:

${\displaystyle \cos \angle (v,w)={\frac {\|v\|\cdot \|w\|}}}$

In ${\displaystyle n}$-dimensional Euclidean space, the standard scalar product (called the dot product) is given by:

${\displaystyle \left(\sum _^\alpha _e_\right)\cdot \left(\sum _^\beta _e_\right)=\sum _^\alpha _\,\beta _}$

### Cross product in 3-dimensional space

The cross product of two vectors in 3-dimensions is a vector perpendicular to the two factors, with length equal to the area of the parallelogram spanned by the two factors.

The cross product can also be expressed as the formal[a] determinant:

${\displaystyle \mathbf ={\begin\mathbf &\mathbf &\mathbf \\u_&u_&u_\\v_&v_&v_\\\end}}$

### Composition of linear mappings

A linear mapping can be defined as a function f between two vector spaces V and W with underlying field F, satisfying[1]

${\displaystyle f(t_x_+t_x_)=t_f(x_)+t_f(x_),\forall x_,x_\in V,\forall t_,t_\in \mathbb .}$

If one only considers finite dimensional vector spaces, then

${\displaystyle f(\mathbf )=f\left(v_\mathbf } ^\right)=v_f\left(\mathbf } ^\right)=}_v_\mathbf } ^,}$

in which bV andbW denote the bases of V and W, and vi denotes the component of v on bVi, and Einstein summation convention is applied.

Now we consider the composition of two linear mappings between finite dimensional vector spaces. Let the linear mapping f map V to W, and let the linear mapping g map W to U. Then one can get

${\displaystyle g\circ f(\mathbf )=g\left(}_v_\mathbf } ^\right)=}_}_v_\mathbf } ^.}$

Or in matrix form:

${\displaystyle g\circ f(\mathbf )=\mathbf \mathbf \mathbf ,}$

in which the i-row, j-column element of F, denoted by Fij, is fji, and Gij=gji.

The composition of more than two linear mappings can be similarly represented by a chain of matrix multiplication.

### Product of two matrices

Given two matrices

${\displaystyle A=(a_)_\in \mathbb ^}$ and ${\displaystyle B=(b_)_\in \mathbb ^}$

their product is given by

${\displaystyle B\cdot A=\left(\sum _^a_\cdot b_\right)_\;\in \mathbb ^}$

### Composition of linear functions as matrix product

There is a relationship between the composition of linear functions and the product of two matrices. To see this, let r = dim(U), s = dim(V) and t = dim(W) be the (finite) dimensions of vector spaces U, V and W. Let ${\displaystyle {\mathcal }=\,\ldots ,u_\}}$ be a basis of U, ${\displaystyle {\mathcal }=\,\ldots ,v_\}}$ be a basis of V and ${\displaystyle {\mathcal }=\,\ldots ,w_\}}$ be a basis of W. In terms of this basis, let ${\displaystyle A=M_{\mathcal }^{\mathcal }(f)\in \mathbb ^}$ be the matrix representing f : U → V and ${\displaystyle B=M_{\mathcal }^{\mathcal }(g)\in \mathbb ^}$ be the matrix representing g : V → W. Then

${\displaystyle B\cdot A=M_{\mathcal }^{\mathcal }(g\circ f)\in \mathbb ^}$

is the matrix representing ${\displaystyle g\circ f:U\rightarrow W}$.

In other words: the matrix product is the description in coordinates of the composition of linear functions.

### Tensor product of vector spaces

Given two finite dimensional vector spaces V and W, the tensor product of them can be defined as a (2,0)-tensor satisfying:

${\displaystyle V\otimes W(v,m)=V(v)W(w),\forall v\in V^{*},\forall w\in W^{*},}$

where V* and W* denote the dual spaces of V and W.[2]

For infinite-dimensional vector spaces, one also has the:

The tensor product, outer product and Kronecker product all convey the same general idea. The differences between these are that the Kronecker product is just a tensor product of matrices, with respect to a previously-fixed basis, whereas the tensor product is usually given in its intrinsic definition. The outer product is simply the Kronecker product, limited to vectors (instead of matrices).

### The class of all objects with a tensor product

In general, whenever one has two mathematical objects that can be combined in a way that behaves like a linear algebra tensor product, then this can be most generally understood as the internal product of a monoidal category. That is, the monoidal category captures precisely the meaning of a tensor product; it captures exactly the notion of why it is that tensor products behave the way they do. More precisely, a monoidal category is the class of all things (of a given type) that have a tensor product.

### Other products in linear algebra

Other kinds of products in linear algebra include:

## Cartesian product

In set theory, a Cartesian product is a mathematical operation which returns a set (or product set) from multiple sets. That is, for sets A and B, the Cartesian product A × B is the set of all ordered pairs (a, b) where a ∈ A and b ∈ B.[3]

The class of all things (of a given type) that have Cartesian products is called a Cartesian category. Many of these are Cartesian closed categories. Sets are an example of such objects.

## Empty product

The empty product on numbers and most algebraic structures has the value of 1 (the identity element of multiplication) just like the empty sum has the value of 0 (the identity element of addition). However, the concept of the empty product is more general, and requires special treatment in logic, set theory, computer programming and category theory.

## Products over other algebraic structures

Products over other kinds of algebraic structures include:

A few of the above products are examples of the general notion of an internal product in a monoidal category; the rest are describable by the general notion of a product in category theory.

## Products in category theory

All of the previous examples are special cases or examples of the general notion of a product. For the general treatment of the concept of a product, see product (category theory), which describes how to combine two objects of some kind to create an object, possibly of a different kind. But also, in category theory, one has:

## Other products

• A function's product integral (as a continuous equivalent to the product of a sequence or as the multiplicative version of the (normal/standard/additive) integral. The product integral is also known as "continuous product" or "multiplical".
• Complex multiplication, a theory of elliptic curves.