# Direct sum of modules

Template:Mergefrom {{#invoke:Hatnote|hatnote}}

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.

## 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 generalise 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 Template:Harv by defining the operations componentwise:

• (v1, w1) + (v2, w2) = (v1 + v2, w1 + w2)
• α (v, w) = (α v, α w)

for v, v1, v2V, w, w1, w2W, 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:

$V\oplus W$ 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 VW 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 VW 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 VW is equal to the sum of the dimensions of V and W.

This construction readily generalises 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 Template:Harv. Thus the cartesian product G × H is equipped with the structure of an abelian group by defining the operations componentwise:

• (g1, h1) + (g2, h2) = (g1 + g2, h1 + h2)

for g1, g2 in G, and h1, h2 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:

$G\oplus H$ 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 GH 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 GH 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 GH 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 Template:Harv.

Let R be a ring, and {Mi : i ∈ I} a family of left R-modules indexed by the set I. The direct sum of {Mi} is then defined to be the set of all sequences $(\alpha _{i})$ where $\alpha _{i}\in M_{i}$ and $\alpha _{i}=0$ 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 Mi such that α(i) ∈ Mi for all iI 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 $i\in I$ being $M_{i}$ .

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 $(\alpha +\beta )_{i}=\alpha _{i}+\beta _{i}$ 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 $r(\alpha )_{i}=(r\alpha )_{i}$ for all i. In this way, the direct sum becomes a left R-module, and it is denoted

$\bigoplus _{i\in I}M_{i}.$ ## Internal direct sum

{{#invoke:see also|seealso}} Suppose M is some R-module, and Mi 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 Mi, then we say that M is the internal direct sum of the submodules Mi Template:Harv. In this case, M is naturally isomorphic to the (external) direct sum of the Mi as defined above Template:Harv.

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

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

$j_{i}:M_{i}\rightarrow \bigoplus _{k\in I}M_{k}$ which sends the elements of Mi to those functions which are zero for all arguments but i. If fi : MiM are arbitrary R-linear maps for every i, then there exists precisely one R-linear map

$f:\bigoplus _{i\in I}M_{i}\rightarrow M$ such that f o ji = fi for all i.

Dually, the direct product is the product.

## 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 an abelian monoid in an abelian group.

## Direct sum of modules with additional structure

If the modules we are considering carry some additional structure (e.g. 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 notion of direct sum of algebras over a field is also introduced. 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 X and Y is the direct sum as vector spaces, with product

$(x_{1}+y_{1})(x_{2}+y_{2})=(x_{1}x_{2}+y_{1}y_{2}).$ Consider these classical examples:

$R\oplus R$ is ring isomorphic to split-complex numbers, also used in interval analysis.
$C\oplus C$ is the algebra of tessarines introduced by James Cockle in 1848.
$H\oplus H$ , 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: $\lambda (x\oplus y)=\lambda x\oplus \lambda y$ while for the direct product a scalar factor may be collected alternately with the parts, but not both:$\lambda (x,y)=(\lambda x,y)=(x,\lambda y)\!$ . Ian R. Porteous uses the three direct sums above, denoting them $^{2}R,\ ^{2}C,\ ^{2}H\!$ , as rings of scalars in his analysis of Clifford Algebras and the Classical Groups (1995). These direct sums also arise in the classification of composition algebras.

It is worth mentioning that the construction described above, as well as Wedderburn's use of the terms direct sum and direct product follow a different convention from 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 X and Y is the direct sum of X and Y considered as vector spaces, with the norm ||(x,y)|| = ||x||X + ||y||Y for all x in X and y in Y.

Generally, if Xi is a collection of Banach spaces, where i traverses the index set I, then the direct sum ⨁iI Xi is a module consisting of all functions x defined over I such that x(i) ∈ Xi for all iI and

$\sum _{i\in I}\|x(i)\|_{X_{i}}<\infty .$ 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 I = N and Xi = R, then the direct sum ⨁iNXi is the space l1, which consists of all the sequences (ai) of reals with finite norm ||a|| = ∑i |ai|.

A closed subspace A of a Banach space X is complemented if there is another closed subspace B of X such that X is equal to the internal direct sum $A\oplus B$ . Note that not every closed subspace is complemented, e.g. c0 is not complemented in $\ell ^{\infty }$ .

### Direct sum of modules with bilinear forms

Let {(Mi,bi : i ∈ I} be a family indexed by I of modules equipped with bilinear forms. The orthogonal direct sum is the module direct sum with bilinear form B defined by

$B\left({\left({x_{i}}\right),\left({y_{i}}\right)}\right)=\sum _{i\in I}b_{i}\left({x_{i},y_{i}}\right)$ in which the summation makes sense even for infinite index sets I because only finitely many of the terms are non-zero.

### Direct sum of Hilbert spaces

If finitely many Hilbert spaces H1,...,Hn are given, one can construct their orthogonal direct sum as above (since they are vector spaces), defining the inner product as:

$\langle (x_{1},...,x_{n}),(y_{1},...,y_{n})\rangle =\langle x_{1},y_{1}\rangle +...+\langle x_{n},y_{n}\rangle .$ The resulting direct sum is a Hilbert space which contains the given Hilbert spaces as mutually orthogonal subspaces.

If infinitely many Hilbert spaces Hi for i in I 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 Hi to be the completion of this inner product space.

Alternatively and equivalently, one can define the direct sum of the Hilbert spaces Hi as the space of all functions α with domain I, such that α(i) is an element of Hi for every i in I and:

$\sum _{i}\left\|\alpha _{(i)}\right\|^{2}<\infty .$ The inner product of two such function α and β is then defined as:

$\langle \alpha ,\beta \rangle =\sum _{i}\langle \alpha _{i},\beta _{i}\rangle .$ This space is complete and we get a Hilbert space.

For example, if we take the index set I = N and Xi = R, then the direct sum ⨁iN Xi is the space l2, which consists of all the sequences (ai) of reals with finite norm $\left\|a\right\|={\sqrt {\sum _{i}\left\|a_{i}\right\|^{2}}}$ . 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 (either R or C). 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: 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.