Inabstract algebra, thedirect sum is a construction which combines severalmodules 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 acoproduct. Contrast with thedirect product, which is thedual notion.
The most familiar examples of this construction occur when consideringvector spaces (modules over afield) andabelian groups (modules over the ringZ ofintegers). The construction may also be extended to coverBanach spaces andHilbert spaces.
See the articledecomposition of a module for a way to write a module as a direct sum of submodules.
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.
SupposeV andW arevector spaces over thefieldK. TheCartesian productV ×W can be given the structure of a vector space overK (Halmos 1974, §18) by defining the operations componentwise:
forv,v1,v2 ∈V,w,w1,w2 ∈W, andα ∈K.
The resulting vector space is called thedirect sum ofV andW and is usually denoted by a plus symbol inside a circle:
It is customary to write the elements of an ordered sum not as ordered pairs (v,w), but as a sumv +w.
The subspaceV × {0} ofV ⊕W is isomorphic toV and is often identified withV; similarly for {0} ×W andW. (Seeinternal direct sum below.) With this identification, every element ofV ⊕W can be written in one and only one way as the sum of an element ofV and an element ofW. Thedimension ofV ⊕W is equal to the sum of the dimensions ofV andW. One elementary use is the reconstruction of a finite vector space from any subspaceW and its orthogonal complement:
This construction readily generalizes to anyfinite number of vector spaces.
Forabelian groupsG andH which are written additively, thedirect product ofG andH is also called a direct sum (Mac Lane & Birkhoff 1999, §V.6). Thus theCartesian productG ×H is equipped with the structure of an abelian group by defining the operations componentwise:
forg1,g2 inG, andh1,h2 inH.
Integral multiples are similarly defined componentwise by
forg inG,h inH, andn aninteger. This parallels the extension of the scalar product of vector spaces to the direct sum above.
The resulting abelian group is called thedirect sum ofG andH and is usually denoted by a plus symbol inside a circle:
It is customary to write the elements of an ordered sum not as ordered pairs (g,h), but as a sumg +h.
ThesubgroupG × {0} ofG ⊕H is isomorphic toG and is often identified withG; similarly for {0} ×H andH. (Seeinternal direct sum below.) With this identification, it is true that every element ofG ⊕H can be written in one and only one way as the sum of an element ofG and an element ofH. Therank ofG ⊕H is equal to the sum of the ranks ofG andH.
This construction readily generalises to anyfinite number of abelian groups.
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 twomodules. 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, §II.1.6).
LetR be a ring, and {Mi : i ∈ I} afamily of leftR-modules indexed by thesetI. Thedirect sum of {Mi} is then defined to be the set of all sequences where and forcofinitely many indicesi. (Thedirect product is analogous but the indices do not need to cofinitely vanish.)
It can also be defined asfunctions α fromI to thedisjoint union of the modulesMi such that α(i) ∈ Mi for alli ∈I and α(i) = 0 forcofinitely many indicesi. These functions can equivalently be regarded asfinitely supported sections of thefiber bundle over the index setI, with the fiber over being.
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 for alli (note that this is again zero for all but finitely many indices), and such a function can be multiplied with an elementr fromR by defining for alli. In this way, the direct sum becomes a leftR-module, and it is denoted
It is customary to write the sequence as a sum. Sometimes a primed summation is used to indicate thatcofinitely many of the terms are zero.
SupposeM is anR-module andMi is asubmodule ofM for eachi inI. If everyx inM can be written in exactly one way as a sum of finitely many elements of theMi, then we say thatM is theinternal direct sum of the submodulesMi (Halmos 1974, §18). In this case,M is naturally isomorphic to the (external) direct sum of theMi as defined above (Adamson 1972, p.61).
A submoduleN ofM is adirect summand ofM if there exists some other submoduleN′ ofM such thatM is theinternal direct sum ofN andN′. In this case,N andN′ are calledcomplementary submodules.
In the language ofcategory theory, the direct sum is acoproduct and hence acolimit in the category of leftR-modules, which means that it is characterized by the followinguniversal property. For everyi inI, consider thenatural embedding
which sends the elements ofMi to those functions which are zero for all arguments buti. Now letM be an arbitraryR-module andfi :Mi →M be arbitraryR-linear maps for everyi, then there exists precisely oneR-linear map
such thatf oji =fi for alli.
The direct sum gives a collection of objects the structure of acommutativemonoid, 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 anabelian group. This extension is known as theGrothendieck 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 theuniversal property of being unique, and homomorphic to any other embedding of a commutative monoid in an abelian group.
If the modules we are considering carry some additional structure (for example, anorm or aninner product), then the direct sum of the modules can often be made to carry this additional structure, as well. In this case, we obtain thecoproduct in the appropriatecategory of all objects carrying the additional structure. Two prominent examples occur forBanach spaces andHilbert spaces.
In some classical texts, the phrase "direct sum ofalgebras over a field" is also introduced for denoting thealgebraic structure that is presently more commonly called adirect product of algebras; that is, theCartesian product of theunderlying sets with thecomponentwise operations. This construction, however, does not provide a coproduct in the category of algebras, but a direct product (see note below and the remark ondirect sums of rings).
A direct sum ofalgebras and is the direct sum as vector spaces, with product
Consider these classical examples:
Joseph Wedderburn exploited the concept of a direct sum of algebras in his classification ofhypercomplex numbers. See hisLectures 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: while for the direct product a scalar factor may be collected alternately with the parts, but not both:Ian R. Porteous uses the three direct sums above, denoting them as rings of scalars in his analysis ofClifford Algebras and the Classical Groups (1995).
The construction described above, as well as Wedderburn's use of the termsdirect sum anddirect product follow a different convention than the one incategory theory. In categorical terms, Wedderburn'sdirect sum is acategorical product, whilst Wedderburn'sdirect product is acoproduct (or categorical sum), which (for commutative algebras) actually corresponds to thetensor product of algebras.
The direct sum of twoBanach spaces and is the direct sum of and considered as vector spaces, with the norm for all and
Generally, if is a collection of Banach spaces, where traverses theindex set then the direct sum is a module consisting of all functionsdefined over such that for all and
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 and then the direct sum is the space which consists of all the sequences of reals with finite norm
A closed subspace of a Banach space iscomplemented if there is another closed subspace of such that is equal to the internal direct sum Note that not every closed subspace is complemented; e.g. is not complemented in
Let be afamily indexed by of modules equipped withbilinear forms. Theorthogonal direct sum is the module direct sum with bilinear form defined by[1]in which the summation makes sense even for infinite index sets because only finitely many of the terms are non-zero.
If finitely manyHilbert spaces are given, one can construct their orthogonal direct sum as above (since they are vector spaces), defining the inner product as:
The resulting direct sum is a Hilbert space which contains the given Hilbert spaces as mutuallyorthogonal subspaces.
If infinitely many Hilbert spaces for 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 aninner product space and it will not necessarily becomplete. We then define the direct sum of the Hilbert spaces to be the completion of this inner product space.
Alternatively and equivalently, one can define the direct sum of the Hilbert spaces as the space of all functions α with domain such that is an element of for every and:
The inner product of two such function α and β is then defined as:
This space is complete and we get a Hilbert space.
For example, if we take the index set and then the direct sum is the space which consists of all the sequences of reals with finite norm Comparing this with the example forBanach 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 This is equivalent to the assertion that every Hilbert space has an orthonormal basis. More generally, every closed subspace of a Hilbert space iscomplemented because it admits anorthogonal complement. Conversely, theLindenstrauss–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.