Canonical: https://knowlpedia.com/algebra-modules/direct-product-modules/

# Direct product of modules

The product of modules: all tuples with coordinatewise operations.

Given a family of \(R\)-[modules](https://knowlpedia.com/algebra-modules/module/) \((M_i)_{i\in I}\), their **direct product** is
\[
\prod_{i\in I} M_i=\{(m_i)_{i\in I}: m_i\in M_i\},
\]
with coordinatewise addition and scalar multiplication. As a set it is the [Cartesian product](https://knowlpedia.com/shared-foundations/cartesian-product/), and it satisfies the categorical product universal property: for every \(R\)-module \(X\), giving a homomorphism \(X\to \prod_i M_i\) is equivalent to giving a homomorphism \(X\to M_i\) for each \(i\).

As a diagram, with \(\pi_i\) the \(i\)-th coordinate projection, the maps \(f_i\) determine a unique \(f\) making each triangle commute:

```tikz-cd
X \arrow[r, dashed, "\exists!\,f"] \arrow[dr, "f_i"'] & \prod_{j\in I} M_j \arrow[d, "\pi_i"] \\
& M_i
```

## Remarks

For infinite \(I\), the product contains the [direct sum](https://knowlpedia.com/algebra-modules/direct-sum-modules/) and may also contain tuples with infinitely many nonzero coordinates. For example, \(\bigoplus_{n\ge1}\mathbb Z\) is strictly contained in \(\prod_{n\ge1}\mathbb Z\).

## Examples

- \(\prod_{n\ge 1}\mathbb Z\) is the set of all integer sequences, with no finiteness restriction.
- For modules \(M,N\), the product \(M\times N\) is the usual binary product with projections.
- If each \(M_i=0\), then the product is \(0\), even if \(I\) is infinite.
