The direct sum is an
operation between
structures
A structure is an arrangement and organization of interrelated elements in a material object or system, or the object or system so organized. Material structures include man-made objects such as buildings and machines and natural objects such as ...
in
abstract algebra
In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures, which are set (mathematics), sets with specific operation (mathematics), operations acting on their elements. Algebraic structur ...
, a branch of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
. It is defined differently but analogously for different kinds of structures. As an example, the direct sum of two
abelian groups and
is another abelian group
consisting of the ordered pairs
where
and
. To add
ordered pairs
In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
, the sum is defined
to be
; in other words, addition is defined coordinate-wise. For example, the direct sum
, where
is
real coordinate space
In mathematics, the real coordinate space or real coordinate ''n''-space, of dimension , denoted or , is the set of all ordered -tuples of real numbers, that is the set of all sequences of real numbers, also known as '' coordinate vectors''.
...
, is the
Cartesian plane
In geometry, a Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called ''coordinates'', which are the signed distances to the point from two fixed perpendicular o ...
,
. A similar process can be used to form the direct sum of two
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
s or two
modules.
Direct sums can also be formed with any finite number of summands; for example,
, provided
and
are the same kinds of algebraic structures (e.g., all abelian groups, or all vector spaces). That relies on the fact that the direct sum is
associative
In mathematics, the associative property is a property of some binary operations that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement for express ...
up to Two Mathematical object, mathematical objects and are called "equal up to an equivalence relation "
* if and are related by , that is,
* if holds, that is,
* if the equivalence classes of and with respect to are equal.
This figure of speech ...
isomorphism
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
. That is,
for any algebraic structures
,
, and
of the same kind. The direct sum is also
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
up to isomorphism, i.e.
for any algebraic structures
and
of the same kind.
The direct sum of finitely many abelian groups, vector spaces, or modules is canonically
isomorphic
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
to the corresponding
direct product
In mathematics, a direct product of objects already known can often be defined by giving a new one. That induces a structure on the Cartesian product of the underlying sets from that of the contributing objects. The categorical product is an abs ...
. That is false, however, for some algebraic objects like nonabelian groups.
In the case where infinitely many objects are combined, the direct sum and direct product are not isomorphic even for abelian groups, vector spaces, or modules. For example, consider the direct sum and the direct product of (countably) infinitely many copies of the integers. An element in the direct product is an infinite sequence, such as (1,2,3,...) but in the direct sum, there is a requirement that all but finitely many coordinates be zero, so the sequence (1,2,3,...) would be an element of the direct product but not of the direct sum, while (1,2,0,0,0,...) would be an element of both. Often, if a + sign is used, all but finitely many coordinates must be zero, while if some form of multiplication is used, all but finitely many coordinates must be 1.
In more technical language, if the summands are
, the direct sum
is defined to be the set of tuples
with
such that
for all but finitely many ''i''. The direct sum
is contained in the
direct product
In mathematics, a direct product of objects already known can often be defined by giving a new one. That induces a structure on the Cartesian product of the underlying sets from that of the contributing objects. The categorical product is an abs ...
, but is strictly smaller when the
index set
In mathematics, an index set is a set whose members label (or index) members of another set. For instance, if the elements of a set may be ''indexed'' or ''labeled'' by means of the elements of a set , then is an index set. The indexing consists ...
is infinite, because an element of the direct product can have infinitely many nonzero coordinates.
Examples
The ''xy''-plane, a two-dimensional
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
, can be thought of as the direct sum of two one-dimensional vector spaces: the ''x'' and ''y'' axes. In this direct sum, the ''x'' and ''y'' axes intersect only at the origin (the zero vector). Addition is defined coordinate-wise; that is,
, which is the same as vector addition.
Given two structures
and
, their direct sum is written as
. Given an
indexed family
In mathematics, a family, or indexed family, is informally a collection of objects, each associated with an index from some index set. For example, a family of real numbers, indexed by the set of integers, is a collection of real numbers, wher ...
of structures
, indexed with
, the direct sum may be written
. Each ''A
i'' is called a direct summand of ''A''. If the index set is finite, the direct sum is the same as the direct product. In the case of groups, if the group operation is written as
the phrase "direct sum" is used, while if the group operation is written
the phrase "direct product" is used. When the index set is infinite, the direct sum is not the same as the direct product since the direct sum has the extra requirement that all but finitely many coordinates must be zero.
Internal and external direct sums
A distinction is made between internal and external direct sums though both are isomorphic. If the summands are defined first, and the direct sum is then defined in terms of the summands, there is an external direct sum. For example, if the real numbers
are defined, followed by
, the direct sum is said to be external.
If, on the other hand, some algebraic structure
is defined, and
is then defined as a direct sum of two substructures
and
, the direct sum is said to be internal. In that case, each element of
is expressible uniquely as an algebraic combination of an element of
and an element of
. For an example of an internal direct sum, consider
(the integers modulo six), whose elements are
. This is expressible as an internal direct sum
.
Types of direct sums
Direct sum of abelian groups
The direct sum of
abelian group
In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is commu ...
s is a prototypical example of a direct sum. Given two such
groups and
their direct sum
is the same as their
direct product
In mathematics, a direct product of objects already known can often be defined by giving a new one. That induces a structure on the Cartesian product of the underlying sets from that of the contributing objects. The categorical product is an abs ...
. That is, the underlying set is the
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets and , denoted , is the set of all ordered pairs where is an element of and is an element of . In terms of set-builder notation, that is
A\times B = \.
A table c ...
and the group operation
is defined component-wise:
This definition generalizes to direct sums of finitely many abelian groups.
For an arbitrary family of groups
indexed by
their
[
is the ]subgroup
In group theory, a branch of mathematics, a subset of a group G is a subgroup of G if the members of that subset form a group with respect to the group operation in G.
Formally, given a group (mathematics), group under a binary operation  ...
of the direct product that consists of the elements that have finite support, where, by definition, is said to have if is the identity element of for all but finitely many
The direct sum of an infinite family of non-trivial groups is a proper subgroup
In group theory, a branch of mathematics, a subset of a group G is a subgroup of G if the members of that subset form a group with respect to the group operation in G.
Formally, given a group (mathematics), group under a binary operation  ...
of the product group
Direct sum of modules
The ''direct sum of modules'' is a construction that combines several modules into a new module.
The most familiar examples of that construction occur in considering vector spaces
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called ''vectors'', can be added together and multiplied ("scaled") by numbers called ''scalars''. The operations of vector addition and sc ...
, which are modules over a field. The construction may also be extended to Banach spaces
In mathematics, more specifically in functional analysis, a Banach space (, ) is a complete normed vector space. Thus, a Banach space is a vector space with a metric that allows the computation of vector length and distance between vectors and ...
and Hilbert spaces
In mathematics, a Hilbert space is a real number, real or complex number, complex inner product space that is also a complete metric space with respect to the metric induced by the inner product. It generalizes the notion of Euclidean space. The ...
.
Direct sum in categories
An additive category
In mathematics, specifically in category theory, an additive category is a preadditive category C admitting all finitary biproducts.
Definition
There are two equivalent definitions of an additive category: One as a category equipped wit ...
is an abstraction of the properties of the category of modules. In such a category, finite products and coproducts
In category theory, the coproduct, or categorical sum, is a construction which includes as examples the disjoint union of sets and of topological spaces, the free product of groups, and the direct sum of modules and vector spaces. The coprod ...
agree, and the direct sum is either of them: cf. biproduct
In category theory and its applications to mathematics, a biproduct of a finite collection of objects, in a category with zero objects, is both a product and a coproduct. In a preadditive category the notions of product and coproduct coincide fo ...
.
General case:
In category theory
Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. Category theory ...
the is often but not always the coproduct in the category
Category, plural categories, may refer to:
General uses
*Classification, the general act of allocating things to classes/categories Philosophy
* Category of being
* ''Categories'' (Aristotle)
* Category (Kant)
* Categories (Peirce)
* Category ( ...
of the mathematical objects in question. For example, in the category of abelian groups, the direct sum is a coproduct. That is also true in the category of modules.
Direct sums versus coproducts in category of groups
However, the direct sum (defined identically to the direct sum of abelian groups) is not a coproduct of the groups and in the category of groups
In mathematics, the category Grp (or Gp) has the class of all groups for objects and group homomorphisms for morphisms. As such, it is a concrete category. The study of this category is known as group theory.
Relation to other categories
The ...
. Therefore, for that category, a categorical direct sum is often called simply a coproduct to avoid any possible confusion.
Direct sum of group representations
The direct sum of group representations generalizes the direct sum of the underlying modules by adding a group action
In mathematics, a group action of a group G on a set S is a group homomorphism from G to some group (under function composition) of functions from S to itself. It is said that G acts on S.
Many sets of transformations form a group under ...
. Specifically, given a group
A group is a number of persons or things that are located, gathered, or classed together.
Groups of people
* Cultural group, a group whose members share the same cultural identity
* Ethnic group, a group whose members share the same ethnic iden ...
and two representations and of (or, more generally, two -modules), the direct sum of the representations is with the action of given component-wise, that is,
Another equivalent way of defining the direct sum is as follows:
Given two representations and the vector space of the direct sum is and the homomorphism is given by where is the natural map obtained by coordinate-wise action as above.
Furthermore, if are finite dimensional, then, given a basis of , and are matrix-valued. In this case, is given as
Moreover, if and are treated as modules over the group ring
In algebra, a group ring is a free module and at the same time a ring, constructed in a natural way from any given ring and any given group. As a free module, its ring of scalars is the given ring, and its basis is the set of elements of the gi ...
, where is the field, the direct sum of the representations and is equal to their direct sum as modules.
Direct sum of rings
Some authors speak of the direct sum of two rings when they mean the direct product
In mathematics, a direct product of objects already known can often be defined by giving a new one. That induces a structure on the Cartesian product of the underlying sets from that of the contributing objects. The categorical product is an abs ...
, but that should be avoided since does not receive natural ring homomorphisms from and . In particular, the map sending to is not a ring homomorphism since it fails to send 1 to (assuming that in ). Thus, is not a coproduct in the category of rings
In mathematics, the category of rings, denoted by Ring, is the category whose objects are rings (with identity) and whose morphisms are ring homomorphisms (that preserve the identity). Like many categories in mathematics, the category of rings i ...
, and should not be written as a direct sum. (The coproduct in the category of commutative rings is the tensor product of rings.[, section I.11] In the category of rings, the coproduct is given by a construction similar to the free product
In mathematics, specifically group theory, the free product is an operation that takes two groups ''G'' and ''H'' and constructs a new The result contains both ''G'' and ''H'' as subgroups, is generated by the elements of these subgroups, an ...
of groups.)
The use of direct sum terminology and notation is especially problematic in dealing with infinite families of rings. If is an infinite collection of nontrivial rings, the direct sum of the underlying additive groups may be equipped with termwise multiplication, but that produces a rng, a ring without a multiplicative identity.
Direct sum of matrices
For any arbitrary matrices and , the direct sum is defined as the block diagonal matrix of and if both are square matrices (and to an analogous block matrix
In mathematics, a block matrix or a partitioned matrix is a matrix that is interpreted as having been broken into sections called blocks or submatrices.
Intuitively, a matrix interpreted as a block matrix can be visualized as the original matrix w ...
, if not).
Alternatively, the forms