Direct sums of modules

As is always the case with category-theoretic constructions, there is a construction exactly dual to that of the direct product of modules, called the direct sum of modules. It is characterized by the property dual to that of direct product. To reflect this duality, this note will be an entirely identical "dual" version of the note for direct products of modules.

Direct sum of two modules

First suppose M1 and M2 are two R-modules. Let M1⨁M2 denote the R-module whose elements consist of all formal combinations of the form m1+m2, with "component-wise" addition and scaling.[1] We have two "injection" module morphisms ji:Miβ†’M1⨁M2, which send an element mi∈Mi to the element m1+0M2 (for i=1) or 0M1+m2 (for i=2).

These data satisfy the usual universal property for a coproduct, in that it is universal among all such modules equipped with morphisms from M1 and M2. More precisely, for each module N and pair of module morphisms f1:M1β†’N and f2:M2β†’N there is a unique module morphism h:M1⨁M2β†’N such that the diagram below commutates:

Observe that, as an abelian group, M1⨁M2 is the usual direct sum (i.e., coproduct) of abelian groups; however, as a set, M1⨁M2 is not (bijective to) the usual disjoint union (i.e., coproduct) of sets.[2]


Direct sum of a finite collection of modules

Analogous to the above construction, for any finite collection of R-modules M1,…,Mn their direct sum is an R-module, denoted ⨁i=inMi, together with module morphisms ji:Mi→⨁i=1nMi, universal among all such data. As an abelian group, this is the usual direct sum of the corresponding abelian groups, with elements consisting of all formal sums of the form βˆ‘i=1nmi with mi∈Mi. The additive structure is defined "component-wise", as is the action of R.

The universal property is encoded in the commutative diagram below:


Direct sum of an arbitrary family of modules

Finally, suppose {Ms∣s∈S} is a family of R-modules indexed by some set S. Following the pattern we've established, the direct sum of this family is an R-module, denoted ⨁s∈SMs, together with module morphisms jt:Mt→⨁s∈SMs for every t∈S, universal among all such data. As an abelian group, this is the usual direct sum of the corresponding abelian groups.

The only difference here between this general case (which includes infinite sets) and the finite case is that the elements of the set ⨁s∈SMs are finite formal sums of elements of the form βˆ‘s∈Sms, with ms∈S (all but finitely many zero).


Suggested next notes

Sums of submodules
Direct products vs. direct sums vs. sums


  1. The choice of symbol is deliberate. The direct sum of modules is not the same as the direct sum of submodules of a given module, so the notation is use to distinguish the two constructions. However, both share the same universal property, only in different categories. Thus the desire to give both a "sum-like" notation. β†©οΈŽ

  2. More precisely, let U1:R-Modβ†’Ab and U2:R-Modβ†’Set denote the usual forgetful functors. Then U1(M1⨁M2)≃U1(M1)⨁U2(M2) but U2(M1⨁M2)≄U2(M1)βŠ”U2(M2). β†©οΈŽ