Definition Let
a1,
a2,
a3, ... be a sequence of numbers, and let :P_m = \prod_{i=1}^m a_i = a_1 \cdots a_m be the product of the first
m elements of the sequence. Then :P_m = P_{m-1} a_m for all
m = 1, 2, ... provided that we use the convention P_0 = 1. In other words, a "product" with no factors at all evaluates to 1. Allowing a "product" with zero factors reduces the number of cases to be considered in many
mathematical formulas. Such a "product" is a natural starting point in
induction proofs, as well as in
algorithms. For these reasons, the "empty product is one" convention is common practice in mathematics and computer programming.
Relevance of defining empty products The notion of an empty product is useful for the same reason that the number
zero and the
empty set are useful: while they seem to represent quite uninteresting notions, their existence allows for a much shorter mathematical presentation of many subjects. For example, the empty products 0! = 1 (the
factorial of zero) and
x0 = 1 shorten
Taylor series notation (see
zero to the power of zero for a discussion of when
x = 0). Likewise, if
M is an
n ×
n matrix, then
M0 is the
n ×
n identity matrix, reflecting the fact that applying a
linear map zero times has the same effect as applying the
identity map. As another example, the
fundamental theorem of arithmetic says that every positive
integer greater than 1 can be written uniquely as a product of primes. However, if we do not allow products with only 0 or 1 factors, then the theorem (and its proof) become longer. More examples of the use of the empty product in mathematics may be found in the
binomial theorem (which assumes and implies that
x0 = 1 for all
x),
Stirling number,
König's theorem,
binomial type,
binomial series,
difference operator and
Pochhammer symbol.
Logarithms and exponentials Since logarithms map products to sums: : \ln \prod_i x_i = \sum_i \ln x_i they map an empty product to an
empty sum. Conversely, the exponential function maps sums into products: : e^{\sum_i x_i} = \prod_i e^{x_i} and maps an empty sum to an empty product. == Nullary Cartesian product ==