# Product (mathematics)

Arithmetic operationsvte :
vte :
In mathematics, a product is the result of multiplication, or an expression that identifies objects (numbers or variables) to be multiplied, called factors. For example, 21 is the product of 3 and 7 (the result of multiplication), and $x\cdot (2+x)$ is the product of $x$ and $(2+x)$ (indicating that the two factors should be multiplied together). When one factor is an integer, the product is called a multiple.
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, is non-commutative, and so is multiplication in other algebras in general as well.
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

Originally, a product was and is still the result of the multiplication of two or more numbers. For example, 15 is the product of 3 and 5. The fundamental theorem of arithmetic states that every composite number is a product of prime numbers, that is unique up to the order of the factors.
With the introduction of mathematical notation and variables at the end of the 15th century, it became common to consider the multiplication of numbers that are either unspecified (coefficients and parameters), or to be found (unknowns). These multiplications that cannot be effectively performed are called products. For example, in the linear equation $ax+b=0,$ the term $ax$ denotes the product of the coefficient $a$ and the unknown $x.$
Later and essentially from the 19th century on, new binary operations have been introduced, which do not involve numbers at all, and have been called products; for example, the dot product. Most of this article is devoted to such non-numerical products.

## Product of a sequence

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). For example, the expression $\textstyle \prod _{i=1}^{6}i^{2}$ is another way of writing ⁠$1\cdot 4\cdot 9\cdot 16\cdot 25\cdot 36$⁠.
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 $\mathbb {Z} /N\mathbb {Z}$ can be added:
    $(a+N\mathbb {Z} )+(b+N\mathbb {Z} )=a+b+N\mathbb {Z}$
and multiplied:
    $(a+N\mathbb {Z} )\cdot (b+N\mathbb {Z} )=a\cdot b+N\mathbb {Z}$

### Convolution

Two functions from the reals to itself can be multiplied in another way, called the convolution.
If
    $\int \limits _{-\infty }^{\infty }|f(t)|\,\mathrm {d} t<\infty \qquad {\mbox{and}}\qquad \int \limits _{-\infty }^{\infty }|g(t)|\,\mathrm {d} t<\infty ,$
then the integral
    $(f*g)(t)\;:=\int \limits _{-\infty }^{\infty }f(\tau )\cdot g(t-\tau )\,\mathrm {d} \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:
    $\left(\sum _{i=0}^{n}a_{i}X^{i}\right)\cdot \left(\sum _{j=0}^{m}b_{j}X^{j}\right)=\sum _{k=0}^{n+m}c_{k}X^{k}$
with
    $c_{k}=\sum _{i+j=k}a_{i}\cdot b_{j}$

## 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) with very different meanings, while others have very different names (outer product, tensor product, Kronecker product) and yet convey essentially the same idea. A brief overview of these is given in the following sections.

### Scalar multiplication

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

### Scalar product

A scalar product is a bi-linear map:
    $\cdot :V\times V\rightarrow \mathbb {R}$
with the following conditions, that $v\cdot v>0$ for all $0\not =v\in V$.
From the scalar product, one can define a norm by letting $\|v\|:={\sqrt {v\cdot v}}$.
The scalar product also allows one to define an angle between two vectors:
    $\cos \angle (v,w)={\frac {v\cdot w}{\|v\|\cdot \|w\|}}$
In $n$-dimensional Euclidean space, the standard scalar product (called the dot product) is given by:
    $\left(\sum _{i=1}^{n}\alpha _{i}e_{i}\right)\cdot \left(\sum _{i=1}^{n}\beta _{i}e_{i}\right)=\sum _{i=1}^{n}\alpha _{i}\,\beta _{i}$

### 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 determinant:
    $\mathbf {u\times v} ={\begin{vmatrix}\mathbf {i} &\mathbf {j} &\mathbf {k} \\u_{1}&u_{2}&u_{3}\\v_{1}&v_{2}&v_{3}\\\end{vmatrix}}$

### 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
    $f(t_{1}x_{1}+t_{2}x_{2})=t_{1}f(x_{1})+t_{2}f(x_{2}),\forall x_{1},x_{2}\in V,\forall t_{1},t_{2}\in \mathbb {F} .$
If one only considers finite dimensional vector spaces, then
    $f(\mathbf {v} )=f\left(v_{i}\mathbf {b_{V}} ^{i}\right)=v_{i}f\left(\mathbf {b_{V}} ^{i}\right)={f^{i}}_{j}v_{i}\mathbf {b_{W}} ^{j},$
in which b$_V$ and b$_W$ denote the bases of V and W, and v$_i$ denotes the component of v on b$_V$$^i$, 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
    $g\circ f(\mathbf {v} )=g\left({f^{i}}_{j}v_{i}\mathbf {b_{W}} ^{j}\right)={g^{j}}_{k}{f^{i}}_{j}v_{i}\mathbf {b_{U}} ^{k}.$
Or in matrix form:
    $g\circ f(\mathbf {v} )=\mathbf {G} \mathbf {F} \mathbf {v} ,$
in which the i-row, j-column element of F, denoted by F$_{ij}$, is f$^j$$_i$, and G$_{ij}$=g$^j$$_i$.
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
    $A=(a_{i,j})_{i=1\ldots s;j=1\ldots r}\in \mathbb {R} ^{s\times r}$ and $B=(b_{j,k})_{j=1\ldots r;k=1\ldots t}\in \mathbb {R} ^{r\times t}$
their product is given by
    $B\cdot A=\left(\sum _{j=1}^{r}a_{i,j}\cdot b_{j,k}\right)_{i=1\ldots s;k=1\ldots t}\;\in \mathbb {R} ^{s\times t}$

### 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 ${\mathcal {U}}=\{u_{1},\ldots ,u_{r}\}$ be a basis of U, ${\mathcal {V}}=\{v_{1},\ldots ,v_{s}\}$ be a basis of V and ${\mathcal {W}}=\{w_{1},\ldots ,w_{t}\}$ be a basis of W. In terms of this basis, let $A=M_{\mathcal {V}}^{\mathcal {U}}(f)\in \mathbb {R} ^{s\times r}$ be the matrix representing f : U → V and $B=M_{\mathcal {W}}^{\mathcal {V}}(g)\in \mathbb {R} ^{r\times t}$ be the matrix representing g : V → W. Then
    $B\cdot A=M_{\mathcal {W}}^{\mathcal {U}}(g\circ f)\in \mathbb {R} ^{s\times t}$
is the matrix representing $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:
    $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.
For infinite-dimensional vector spaces, one also has the:
* Tensor product of Hilbert spaces
* Topological tensor product.
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:
* Hadamard product
* Kronecker product
* The product of tensors:
** Wedge product or exterior product
** Interior product
** Outer product
** Tensor product

## 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.
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:
* the Cartesian product of sets
* the direct product of groups, and also the semidirect product, knit product and wreath product
* the free product of groups
* the product of rings
* the product of ideals
* the product of topological spaces
* the Wick product of random variables
* the cap, cup, Massey and slant product in algebraic topology
* the smash product and wedge sum (sometimes called the wedge product) in homotopy
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:
* the fiber product or pullback,
* the product category, a category that is the product of categories.
* the ultraproduct, in model theory.
* the internal product of a monoidal category, which captures the essence of a tensor product.

## 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.