# Direct sum of modules

__: Operation in abstract algebra__

**Short description**

In abstract algebra, the **direct sum** is a construction which combines several modules into a new, larger module. The direct sum of modules is the smallest module which contains the given modules as submodules with no "unnecessary" constraints, making it an example of a coproduct. Contrast with the direct product, which is the dual notion.

The most familiar examples of this construction occur when considering vector spaces (modules over a field) and abelian groups (modules over the ring **Z** of integers). The construction may also be extended to cover Banach spaces and Hilbert spaces.

See the article decomposition of a module for a way to write a module as a direct sum of submodules.

## Construction for vector spaces and abelian groups

We give the construction first in these two cases, under the assumption that we have only two objects. Then we generalize to an arbitrary family of arbitrary modules. The key elements of the general construction are more clearly identified by considering these two cases in depth.

### Construction for two vector spaces

Suppose *V* and *W* are vector spaces over the field *K*. The cartesian product *V* × *W* can be given the structure of a vector space over *K* (Halmos 1974) by defining the operations componentwise:

- (
*v*_{1},*w*_{1}) + (*v*_{2},*w*_{2}) = (*v*_{1}+*v*_{2},*w*_{1}+*w*_{2}) *α*(*v*,*w*) = (*α**v*,*α**w*)

for *v*, *v*_{1}, *v*_{2} ∈ *V*, *w*, *w*_{1}, *w*_{2} ∈ *W*, and *α* ∈ *K*.

The resulting vector space is called the *direct sum* of *V* and *W* and is usually denoted by a plus symbol inside a circle:
[math]\displaystyle{ V \oplus W }[/math]

It is customary to write the elements of an ordered sum not as ordered pairs (*v*, *w*), but as a sum *v* + *w*.

The subspace *V* × {0} of *V* ⊕ *W* is isomorphic to *V* and is often identified with *V*; similarly for {0} × *W* and *W*. (See *internal direct sum* below.) With this identification, every element of *V* ⊕ *W* can be written in one and only one way as the sum of an element of *V* and an element of *W*. The dimension of *V* ⊕ *W* is equal to the sum of the dimensions of *V* and *W*. One elementary use is the reconstruction
of a finite vector space from any subspace *W* and its orthogonal complement:
[math]\displaystyle{ \mathbb{R}^n = W \oplus W^{\perp} }[/math]

This construction readily generalizes to any finite number of vector spaces.

### Construction for two abelian groups

For abelian groups *G* and *H* which are written additively, the direct product of *G* and *H* is also called a direct sum (Mac Lane Birkhoff). Thus the Cartesian product *G* × *H* is equipped with the structure of an abelian group by defining the operations componentwise:

- (
*g*_{1},*h*_{1}) + (*g*_{2},*h*_{2}) = (*g*_{1}+*g*_{2},*h*_{1}+*h*_{2})

for *g*_{1}, *g*_{2} in *G*, and *h*_{1}, *h*_{2} in *H*.

Integral multiples are similarly defined componentwise by

*n*(*g*,*h*) = (*ng*,*nh*)

for *g* in *G*, *h* in *H*, and *n* an integer. This parallels the extension of the scalar product of vector spaces to the direct sum above.

The resulting abelian group is called the *direct sum* of *G* and *H* and is usually denoted by a plus symbol inside a circle:
[math]\displaystyle{ G \oplus H }[/math]

It is customary to write the elements of an ordered sum not as ordered pairs (*g*, *h*), but as a sum *g* + *h*.

The subgroup *G* × {0} of *G* ⊕ *H* is isomorphic to *G* and is often identified with *G*; similarly for {0} × *H* and *H*. (See *internal direct sum* below.) With this identification, it is true that every element of *G* ⊕ *H* can be written in one and only one way as the sum of an element of *G* and an element of *H*. The rank of *G* ⊕ *H* is equal to the sum of the ranks of *G* and *H*.

This construction readily generalises to any finite number of abelian groups.

## Construction for an arbitrary family of modules

One should notice a clear similarity between the definitions of the direct sum of two vector spaces and of two abelian groups. In fact, each is a special case of the construction of the direct sum of two modules. Additionally, by modifying the definition one can accommodate the direct sum of an infinite family of modules. The precise definition is as follows (Bourbaki 1989).

Let *R* be a ring, and {*M*_{i} : *i* ∈ *I*} a family of left *R*-modules indexed by the set *I*. The *direct sum* of {*M*_{i}} is then defined to be the set of all sequences [math]\displaystyle{ (\alpha_i) }[/math] where [math]\displaystyle{ \alpha_i \in M_i }[/math] and [math]\displaystyle{ \alpha_i = 0 }[/math] for cofinitely many indices *i*. (The direct product is analogous but the indices do not need to cofinitely vanish.)

It can also be defined as functions α from *I* to the disjoint union of the modules *M*_{i} such that α(*i*) ∈ *M*_{i} for all *i* ∈ *I* and α(*i*) = 0 for cofinitely many indices *i*. These functions can equivalently be regarded as finitely supported sections of the fiber bundle over the index set *I*, with the fiber over [math]\displaystyle{ i \in I }[/math] being [math]\displaystyle{ M_i }[/math].

This set inherits the module structure via component-wise addition and scalar multiplication. Explicitly, two such sequences (or functions) α and β can be added by writing [math]\displaystyle{ (\alpha + \beta)_i = \alpha_i + \beta_i }[/math] for all *i* (note that this is again zero for all but finitely many indices), and such a function can be multiplied with an element *r* from *R* by defining [math]\displaystyle{ r(\alpha)_i = (r\alpha)_i }[/math] for all *i*. In this way, the direct sum becomes a left *R*-module, and it is denoted
[math]\displaystyle{ \bigoplus_{i \in I} M_i. }[/math]

It is customary to write the sequence [math]\displaystyle{ (\alpha_i) }[/math] as a sum [math]\displaystyle{ \sum \alpha_i }[/math]. Sometimes a primed summation [math]\displaystyle{ \sum ' \alpha_i }[/math] is used to indicate that cofinitely many of the terms are zero.

## Properties

- The direct sum is a submodule of the direct product of the modules
*M*_{i}(Bourbaki 1989). The direct product is the set of all functions*α*from*I*to the disjoint union of the modules*M*_{i}with*α*(*i*)∈*M*_{i}, but not necessarily vanishing for all but finitely many*i*. If the index set*I*is finite, then the direct sum and the direct product are equal. - Each of the modules
*M*_{i}may be identified with the submodule of the direct sum consisting of those functions which vanish on all indices different from*i*. With these identifications, every element*x*of the direct sum can be written in one and only one way as a sum of finitely many elements from the modules*M*_{i}. - If the
*M*_{i}are actually vector spaces, then the dimension of the direct sum is equal to the sum of the dimensions of the*M*_{i}. The same is true for the rank of abelian groups and the length of modules. - Every vector space over the field
*K*is isomorphic to a direct sum of sufficiently many copies of*K*, so in a sense only these direct sums have to be considered. This is not true for modules over arbitrary rings. - The tensor product distributes over direct sums in the following sense: if
*N*is some right*R*-module, then the direct sum of the tensor products of*N*with*M*_{i}(which are abelian groups) is naturally isomorphic to the tensor product of*N*with the direct sum of the*M*_{i}. - Direct sums are commutative and associative (up to isomorphism), meaning that it doesn't matter in which order one forms the direct sum.
- The abelian group of
*R*-linear homomorphisms from the direct sum to some left*R*-module*L*is naturally isomorphic to the direct product of the abelian groups of*R*-linear homomorphisms from*M*_{i}to*L*: [math]\displaystyle{ \operatorname{Hom}_R\biggl( \bigoplus_{i \in I} M_i,L\biggr) \cong \prod_{i \in I}\operatorname{Hom}_R\left(M_i,L\right). }[/math] Indeed, there is clearly a homomorphism*τ*from the left hand side to the right hand side, where*τ*(*θ*)(*i*) is the*R*-linear homomorphism sending*x*∈*M*_{i}to*θ*(*x*) (using the natural inclusion of*M*_{i}into the direct sum). The inverse of the homomorphism*τ*is defined by [math]\displaystyle{ \tau^{-1}(\beta)(\alpha) = \sum_{i\in I} \beta(i)(\alpha(i)) }[/math] for any*α*in the direct sum of the modules*M*_{i}. The key point is that the definition of*τ*^{−1}makes sense because*α*(*i*) is zero for all but finitely many*i*, and so the sum is finite.In particular, the dual vector space of a direct sum of vector spaces is isomorphic to the direct product of the duals of those spaces. - The
*finite*direct sum of modules is a biproduct: If [math]\displaystyle{ p_k: A_1 \oplus \cdots \oplus A_n \to A_k }[/math] are the canonical projection mappings and [math]\displaystyle{ i_k: A_k \mapsto A_1 \oplus \cdots \oplus A_n }[/math] are the inclusion mappings, then [math]\displaystyle{ i_1 \circ p_1 + \cdots + i_n \circ p_n }[/math] equals the identity morphism of*A*_{1}⊕ ⋯ ⊕*A*_{n}, and [math]\displaystyle{ p_k \circ i_l }[/math] is the identity morphism of*A*_{k}in the case*l*=*k*, and is the zero map otherwise.

## Internal direct sum

Suppose *M* is some *R*-module, and *M*_{i} is a submodule of *M* for every *i* in *I*. If every *x* in *M* can be written in one and only one way as a sum of finitely many elements of the *M*_{i}, then we say that *M* is the **internal direct sum** of the submodules *M*_{i} (Halmos 1974). In this case, *M* is naturally isomorphic to the (external) direct sum of the *M*_{i} as defined above (Adamson 1972).

A submodule *N* of *M* is a **direct summand** of *M* if there exists some other submodule *N′* of *M* such that *M* is the *internal* direct sum of *N* and *N′*. In this case, *N* and *N′* are **complementary submodules**.

## Universal property

In the language of category theory, the direct sum is a coproduct and hence a colimit in the category of left *R*-modules, which means that it is characterized by the following universal property. For every *i* in *I*, consider the *natural embedding*

- [math]\displaystyle{ j_i : M_i \rightarrow \bigoplus_{i \in I} M_i }[/math]

which sends the elements of *M*_{i} to those functions which are zero for all arguments but *i*. Now let *M* be an arbitrary *R*-module and *f*_{i} : *M*_{i} → *M* be arbitrary *R*-linear maps for every *i*, then there exists precisely one *R*-linear map

- [math]\displaystyle{ f : \bigoplus_{i \in I} M_i \rightarrow M }[/math]

such that *f* o *j _{i}* =

*f*

_{i}for all

*i*.

## Grothendieck group

The direct sum gives a collection of objects the structure of a commutative monoid, in that the addition of objects is defined, but not subtraction. In fact, subtraction can be defined, and every commutative monoid can be extended to an abelian group. This extension is known as the Grothendieck group. The extension is done by defining equivalence classes of pairs of objects, which allows certain pairs to be treated as inverses. The construction, detailed in the article on the Grothendieck group, is "universal", in that it has the universal property of being unique, and homomorphic to any other embedding of a commutative monoid in an abelian group.

## Direct sum of modules with additional structure

If the modules we are considering carry some additional structure (for example, a norm or an inner product), then the direct sum of the modules can often be made to carry this additional structure, as well. In this case, we obtain the coproduct in the appropriate category of all objects carrying the additional structure. Two prominent examples occur for Banach spaces and Hilbert spaces.

In some classical texts, the phrase "direct sum of algebras over a field" is also introduced for denoting the algebraic structure that is presently more commonly called a direct product of algebras; that is, the Cartesian product of the underlying sets with the componentwise operations. This construction, however, does not provide a coproduct in the category of algebras, but a direct product (*see note below* and the remark on direct sums of rings).

### Direct sum of algebras

A direct sum of algebras [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] is the direct sum as vector spaces, with product

- [math]\displaystyle{ (x_1 + y_1) (x_2 + y_2) = (x_1 x_2 + y_1 y_2). }[/math]

Consider these classical examples:

- [math]\displaystyle{ \mathbf{R} \oplus \mathbf{R} }[/math] is ring isomorphic to split-complex numbers, also used in interval analysis.
- [math]\displaystyle{ \mathbf{C} \oplus \mathbf{C} }[/math] is the algebra of tessarines introduced by James Cockle in 1848.
- [math]\displaystyle{ \mathbf{H} \oplus \mathbf{H}, }[/math] called the split-biquaternions, was introduced by William Kingdon Clifford in 1873.

Joseph Wedderburn exploited the concept of a direct sum of algebras in his classification of hypercomplex numbers. See his *Lectures on Matrices* (1934), page 151.
Wedderburn makes clear the distinction between a direct sum and a direct product of algebras: For the direct sum the field of scalars acts jointly on both parts: [math]\displaystyle{ \lambda (x \oplus y) = \lambda x \oplus \lambda y }[/math] while for the direct product a scalar factor may be collected alternately with the parts, but not both: [math]\displaystyle{ \lambda (x,y) = (\lambda x, y) = (x, \lambda y). \! }[/math]
Ian R. Porteous uses the three direct sums above, denoting them [math]\displaystyle{ ^2 R,\ ^2 C,\ ^2 H, }[/math] as rings of scalars in his analysis of *Clifford Algebras and the Classical Groups* (1995).

The construction described above, as well as Wedderburn's use of the terms *direct sum* and *direct product* follow a different convention than the one in category theory. In categorical terms, Wedderburn's *direct sum* is a categorical product, whilst Wedderburn's *direct product* is a coproduct (or categorical sum), which (for commutative algebras) actually corresponds to the tensor product of algebras.

### Direct sum of Banach spaces

The direct sum of two Banach spaces [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] is the direct sum of [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] considered as vector spaces, with the norm [math]\displaystyle{ \|(x, y)\| = \|x\|_X + \|y\|_Y }[/math] for all [math]\displaystyle{ x \in X }[/math] and [math]\displaystyle{ y \in Y. }[/math]

Generally, if [math]\displaystyle{ X_i }[/math] is a collection of Banach spaces, where [math]\displaystyle{ i }[/math] traverses the index set [math]\displaystyle{ I, }[/math] then the direct sum [math]\displaystyle{ \bigoplus_{i \in I} X_i }[/math] is a module consisting of all functions [math]\displaystyle{ x }[/math] defined over [math]\displaystyle{ I }[/math] such that [math]\displaystyle{ x(i) \in X_i }[/math] for all [math]\displaystyle{ i \in I }[/math] and [math]\displaystyle{ \sum_{i \in I} \|x(i)\|_{X_i} \lt \infty. }[/math]

The norm is given by the sum above. The direct sum with this norm is again a Banach space.

For example, if we take the index set [math]\displaystyle{ I = \N }[/math] and [math]\displaystyle{ X_i = \R, }[/math] then the direct sum [math]\displaystyle{ \bigoplus_{i \in \N} X_i }[/math] is the space [math]\displaystyle{ \ell_1, }[/math] which consists of all the sequences [math]\displaystyle{ \left(a_i\right) }[/math] of reals with finite norm [math]\displaystyle{ \|a\| = \sum_i \left|a_i\right|. }[/math]

A closed subspace [math]\displaystyle{ A }[/math] of a Banach space [math]\displaystyle{ X }[/math] is **complemented** if there is another closed subspace [math]\displaystyle{ B }[/math] of [math]\displaystyle{ X }[/math] such that [math]\displaystyle{ X }[/math] is equal to the internal direct sum [math]\displaystyle{ A \oplus B. }[/math] Note that not every closed subspace is complemented; e.g. [math]\displaystyle{ c 0 }[/math] is not complemented in [math]\displaystyle{ \ell^\infty. }[/math]

### Direct sum of modules with bilinear forms

Let [math]\displaystyle{ \left\{ \left(M_i, b_i\right) : i \in I \right\} }[/math] be a family indexed by [math]\displaystyle{ I }[/math] of modules equipped with bilinear forms. The **orthogonal direct sum** is the module direct sum with bilinear form [math]\displaystyle{ B }[/math] defined by^{[1]}
[math]\displaystyle{ B\left({\left({x_i}\right),\left({y_i}\right)}\right) = \sum_{i\in I} b_i\left({x_i,y_i}\right) }[/math]
in which the summation makes sense even for infinite index sets [math]\displaystyle{ I }[/math] because only finitely many of the terms are non-zero.

### Direct sum of Hilbert spaces

If finitely many Hilbert spaces [math]\displaystyle{ H_1, \ldots, H_n }[/math] are given, one can construct their orthogonal direct sum as above (since they are vector spaces), defining the inner product as: [math]\displaystyle{ \left\langle \left(x_1, \ldots, x_n\right), \left(y_1, \ldots, y_n\right) \right\rangle = \langle x_1, y_1 \rangle + \cdots + \langle x_n, y_n \rangle. }[/math]

The resulting direct sum is a Hilbert space which contains the given Hilbert spaces as mutually orthogonal subspaces.

If infinitely many Hilbert spaces [math]\displaystyle{ H_i }[/math] for [math]\displaystyle{ i \in I }[/math] are given, we can carry out the same construction; notice that when defining the inner product, only finitely many summands will be non-zero. However, the result will only be an inner product space and it will not necessarily be complete. We then define the direct sum of the Hilbert spaces [math]\displaystyle{ H_i }[/math] to be the completion of this inner product space.

Alternatively and equivalently, one can define the direct sum of the Hilbert spaces [math]\displaystyle{ H_i }[/math] as the space of all functions α with domain [math]\displaystyle{ I, }[/math] such that [math]\displaystyle{ \alpha(i) }[/math] is an element of [math]\displaystyle{ H_i }[/math] for every [math]\displaystyle{ i \in I }[/math] and: [math]\displaystyle{ \sum_i \left\|\alpha_{(i)}\right\|^2 \lt \infty. }[/math]

The inner product of two such function α and β is then defined as: [math]\displaystyle{ \langle\alpha,\beta\rangle=\sum_i \langle \alpha_i,\beta_i \rangle. }[/math]

This space is complete and we get a Hilbert space.

For example, if we take the index set [math]\displaystyle{ I = \N }[/math] and [math]\displaystyle{ X_i = \R, }[/math] then the direct sum [math]\displaystyle{ \oplus_{i \in \N} X_i }[/math] is the space [math]\displaystyle{ \ell_2, }[/math] which consists of all the sequences [math]\displaystyle{ \left(a_i\right) }[/math] of reals with finite norm [math]\displaystyle{ \|a\| = \sqrt{\sum_i \left\|a_i\right\|^2}. }[/math] Comparing this with the example for Banach spaces, we see that the Banach space direct sum and the Hilbert space direct sum are not necessarily the same. But if there are only finitely many summands, then the Banach space direct sum is isomorphic to the Hilbert space direct sum, although the norm will be different.

Every Hilbert space is isomorphic to a direct sum of sufficiently many copies of the base field, which is either [math]\displaystyle{ \R \text{ or } \Complex. }[/math] This is equivalent to the assertion that every Hilbert space has an orthonormal basis. More generally, every closed subspace of a Hilbert space is complemented because it admits an orthogonal complement. Conversely, the Lindenstrauss–Tzafriri theorem asserts that if every closed subspace of a Banach space is complemented, then the Banach space is isomorphic (topologically) to a Hilbert space.

## See also

- Biproduct
- Indecomposable module
- Krull–Schmidt theorem – Mathematical theorem
- Split exact sequence

## References

- ↑ Milnor, J.; Husemoller, D. (1973).
*Symmetric Bilinear Forms*. Ergebnisse der Mathematik und ihrer Grenzgebiete.**73**. Springer-Verlag. pp. 4–5. ISBN 3-540-06009-X.

- Adamson, Iain T. (1972),
*Elementary rings and modules*, University Mathematical Texts, Oliver and Boyd, ISBN 0-05-002192-3. - Bourbaki, Nicolas (1989),
*Elements of mathematics, Algebra I*, Springer-Verlag, ISBN 3-540-64243-9. - Dummit, David S.; Foote, Richard M. (1991),
*Abstract algebra*, Englewood Cliffs, NJ: Prentice Hall, Inc., ISBN 0-13-004771-6. - Halmos, Paul (1974),
*Finite dimensional vector spaces*, Springer, ISBN 0-387-90093-4 - Mac Lane, S.; Birkhoff, G. (1999),
*Algebra*, AMS Chelsea, ISBN 0-8218-1646-2.

Original source: https://en.wikipedia.org/wiki/Direct sum of modules.
Read more |