Direct sums appear when a mathematical object is assembled from parts that are meant not to interfere with each other. In [Matroid theory](/page/Matroid%20Theory) this means that independent choices on disjoint ground sets can be made separately and then united. In [Module](/page/Module) and [Vector Space](/page/Vector%20Space) theory it means that elements have finite-support component decompositions. In additive Category theory it appears as the finite biproduct. These are related constructions, not instances of a single ambient definition valid in every setting.
The point of the name is the same across these contexts: the components remain separate enough that structure can be checked component by component. A set-theoretic union alone is too weak for this purpose, because it remembers membership but not algebraic addition, projection maps, or independence data. This page makes the matroid construction the unqualified definition, then records the standard algebraic and categorical versions that use the same notation.
## Definition
In matroid theory, the problem is to combine two independence systems without allowing an element from one ground set to affect independence in the other. Disjointness of the ground sets is the bookkeeping condition that makes the componentwise rule unambiguous.
[definition: Direct Sum]
Let $M_1$ and $M_2$ be matroids on disjoint ground sets $E_1$ and $E_2$. The direct sum $M_1 \oplus M_2$ is the matroid on $E_1 \cup E_2$ whose independent sets are
\begin{align*}
\mathcal{I}(M_1 \oplus M_2)
= \{I_1 \cup I_2 : I_1 \in \mathcal{I}(M_1),\ I_2 \in \mathcal{I}(M_2)\}.
\end{align*}
[/definition]
The disjointness hypothesis prevents an element from being asked to play two incompatible roles. With disjoint ground sets, independence is tested component by component and then assembled by union. The next versions are the concrete algebraic and categorical constructions that share the same separation principle but live in different formal settings.
## Algebraic and Categorical Versions
For an infinite family of modules, the full product allows elements with infinitely many nonzero coordinates, which is often too large for constructions built by adding finitely many summand elements. The direct-sum construction keeps the coordinate picture but imposes finite support, so each element is assembled from only finitely many components.
[definition: Direct Sum of Modules]
Let $R$ be a ring, let $I$ be an index set, and let $(M_i)_{i \in I}$ be a family of left $R$-modules. The external direct sum of the family is the $R$-module
\begin{align*}
\bigoplus_{i \in I} M_i
= \left\{(m_i)_{i \in I} \in \prod_{i \in I} M_i : m_i = 0 \text{ for all but finitely many } i\right\},
\end{align*}
with addition and scalar multiplication defined componentwise.
[/definition]
External direct sums build a new module from separate pieces, but many decompositions arise when submodules already live inside a fixed ambient module. The obstruction is overlap: sums of elements from the submodules must cover the ambient module, and they must do so without giving two different decompositions of the same element.
[definition: Internal Direct Sum]
Let $R$ be a ring, let $M$ be a left $R$-module, and let $(N_i)_{i \in I}$ be a family of submodules of $M$. The module $M$ is the internal direct sum of the submodules $(N_i)_{i \in I}$ if every $m \in M$ has a unique expression
\begin{align*}
m = \sum_{i \in I} n_i,
\end{align*}
where $(n_i)_{i \in I}$ is a finitely supported family with $n_i \in N_i$ for every $i \in I$.
[/definition]
The module definition is deliberately broad, but many readers first meet this construction in linear algebra. Before using bases, coordinate projections, and dimension counts, it is useful to name the vector-space specialization explicitly: it is the same direct-sum operation, now taken over a field and interpreted as a decomposition into independent linear pieces.
[definition: Direct Sum of Vector Spaces]
Let $k$ be a field and let $(V_i)_{i \in I}$ be a family of $k$-vector spaces. The direct sum $\bigoplus_{i \in I} V_i$ is the direct sum of the family as $k$-modules.
[/definition]
A central algebraic reason direct sums work is that in additive settings, an object can behave simultaneously like a coproduct and like a product. The coproduct viewpoint describes how maps out of the summands assemble into a map out of the whole, while the product viewpoint describes how maps into the summands are recovered from a map into the whole. The following definition isolates the categorical structure behind finite algebraic direct sums.
[definition: Finite Biproduct]
Let $\mathcal{C}$ be an additive category, and let $A_1, \ldots, A_n$ be objects of $\mathcal{C}$. A finite biproduct of $A_1, \ldots, A_n$ is an object $A$ together with morphisms
\begin{align*}
\iota_i &: A_i \to A
\end{align*}
and
\begin{align*}
\pi_i &: A \to A_i
\end{align*}
for $1 \le i \le n$ such that $\pi_i \circ \iota_i = \operatorname{id}_{A_i}$ for every $i$, such that $\pi_i \circ \iota_j = 0$ whenever $i \ne j$, and such that
\begin{align*}
\sum_{i=1}^n \iota_i \circ \pi_i = \operatorname{id}_A.
\end{align*}
The object $A$ is denoted by $A_1 \oplus \cdots \oplus A_n$.
[/definition]
This categorical version records the maps into and out of the summands and the identities that make the pieces independent. In additive categories it is often called a finite direct sum, but the name finite biproduct keeps its product-coproduct content visible.
## Equivalent Characterisations
The categorical definition above is compact, but its usefulness comes from the mapping property it encodes. Finite biproducts are designed so that specifying a map from the biproduct is the same as specifying compatible maps from each summand.
[quotetheorem:9351]
The mapping property has a second direction that is just as important in practice. When a homomorphism is meant to leave a direct sum, one should not have to define it on all finitely supported tuples at once; the useful question is whether componentwise maps assemble uniquely into a single homomorphism from the whole direct sum.
[quotetheorem:9352]
The universal properties describe maps, but internal decompositions require a separate test inside one ambient module. For submodules, writing $N_1+\cdots+N_n$ only guarantees that the pieces span their sum; the remaining obstruction is uniqueness of decomposition, which is controlled by whether a summand overlaps the sum of the others.
[quotetheorem:8505]
Examples are the fastest way to separate the two halves of the criterion. A coordinate decomposition shows both spanning and uniqueness, while a redundant spanning family shows why the symbol $\oplus$ cannot be used for every sum.
## Standard Examples
The cleanest direct sum is the decomposition of a coordinate vector space into axes. This example sets the pattern for basis decompositions, eigenspace decompositions, and coordinate projections throughout linear algebra.
[example: Coordinate Direct Sum]
Let $k$ be a field and let $V = k^3$. Define
\begin{align*}
E_1 = \{(a,0,0) : a \in k\}.
\end{align*}
Define
\begin{align*}
E_2 = \{(0,b,0) : b \in k\}.
\end{align*}
Define
\begin{align*}
E_3 = \{(0,0,c) : c \in k\}.
\end{align*}
We show that
\begin{align*}
k^3 = E_1 \oplus E_2 \oplus E_3.
\end{align*}
First, every vector of $k^3$ is a sum of one vector from each coordinate subspace. If $(a,b,c) \in k^3$, then $(a,0,0) \in E_1$, $(0,b,0) \in E_2$, and $(0,0,c) \in E_3$, and componentwise addition gives
\begin{align*}
(a,0,0) + (0,b,0) + (0,0,c) = (a+0+0,0+b+0,0+0+c) = (a,b,c).
\end{align*}
Thus
\begin{align*}
k^3 = E_1 + E_2 + E_3.
\end{align*}
To check uniqueness, suppose the same vector has a decomposition
\begin{align*}
(a,b,c) = u_1 + u_2 + u_3
\end{align*}
with $u_1 \in E_1$, $u_2 \in E_2$, and $u_3 \in E_3$. By the definitions of the three subspaces, there are scalars $\alpha,\beta,\gamma \in k$ such that
\begin{align*}
u_1 = (\alpha,0,0), \quad u_2 = (0,\beta,0), \quad u_3 = (0,0,\gamma).
\end{align*}
Substituting these expressions into the decomposition gives
\begin{align*}
(a,b,c) = (\alpha,0,0) + (0,\beta,0) + (0,0,\gamma) = (\alpha,\beta,\gamma).
\end{align*}
Equality of ordered triples gives $\alpha=a$, $\beta=b$, and $\gamma=c$, so
\begin{align*}
u_1 = (a,0,0), \quad u_2 = (0,b,0), \quad u_3 = (0,0,c).
\end{align*}
Therefore every vector has exactly one such decomposition, so $k^3$ is the internal direct sum of the three coordinate axes.
The associated projections are the coordinate maps
\begin{align*}
p_1(a,b,c) = (a,0,0), \quad p_2(a,b,c) = (0,b,0), \quad p_3(a,b,c) = (0,0,c).
\end{align*}
These maps recover precisely the three summands in the unique decomposition of $(a,b,c)$.
[/example]
The next example shows what breaks when spanning holds but uniqueness fails. This is the common pitfall: writing $M=N_1+N_2$ does not justify writing $M=N_1 \oplus N_2$.
[example: Sum That Is Not Direct]
Let $V = \mathbb{R}^2$, and define three subspaces by
\begin{align*}
L_1 = \operatorname{span}\{(1,0)\}.
\end{align*}
\begin{align*}
L_2 = \operatorname{span}\{(0,1)\}.
\end{align*}
\begin{align*}
L_3 = \operatorname{span}\{(1,1)\}.
\end{align*}
We show that $L_1+L_2+L_3=V$, but that this sum is not direct.
First, $L_1$, $L_2$, and $L_3$ span $V$. If $(x,y)\in \mathbb{R}^2$, then $(x,0)\in L_1$, $(0,y)\in L_2$, and $(0,0)\in L_3$, since $(0,0)=0(1,1)$. Componentwise addition gives
\begin{align*}
(x,0)+(0,y)+(0,0)=(x+0+0,0+y+0)=(x,y).
\end{align*}
Thus every vector of $V$ lies in $L_1+L_2+L_3$, so
\begin{align*}
V=L_1+L_2+L_3.
\end{align*}
The sum is not direct because the decomposition of a vector is not unique. The vector $(1,1)$ has the decomposition
\begin{align*}
(1,1)=(1,0)+(0,1)+(0,0).
\end{align*}
Here $(1,0)\in L_1$, $(0,1)\in L_2$, and $(0,0)\in L_3$. It also has the decomposition
\begin{align*}
(1,1)=(0,0)+(0,0)+(1,1).
\end{align*}
Here $(0,0)\in L_1$, $(0,0)\in L_2$, and $(1,1)\in L_3$. These two decompositions are different because their first components are $(1,0)$ and $(0,0)$, and $(1,0)\ne(0,0)$ in $\mathbb{R}^2$.
Therefore the subspaces span $V$, but they do not give unique component decompositions. Hence
\begin{align*}
V\ne L_1\oplus L_2\oplus L_3.
\end{align*}
[/example]
Infinite direct sums are where the distinction from products becomes visible. A direct sum only permits finite algebraic combinations, while a product permits arbitrary coordinate choices.
[example: Infinite Direct Sum Versus Product]
Consider the family $(\mathbb{Z})_{n \in \mathbb{N}}$ of abelian groups. Its product consists of all integer-valued sequences,
\begin{align*}
\prod_{n \in \mathbb{N}} \mathbb{Z}=\{(a_n)_{n \in \mathbb{N}} : a_n \in \mathbb{Z}\text{ for every }n\in\mathbb{N}\}.
\end{align*}
Its direct sum is the subgroup of finitely supported sequences,
\begin{align*}
\bigoplus_{n \in \mathbb{N}} \mathbb{Z}
= \{(a_n)_{n \in \mathbb{N}} \in \prod_{n \in \mathbb{N}} \mathbb{Z} : a_n = 0 \text{ for all but finitely many } n\}.
\end{align*}
The sequence $(1,1,1,\ldots)$ belongs to $\prod_{n \in \mathbb{N}} \mathbb{Z}$ because its $n$th coordinate is $1$, and $1\in\mathbb{Z}$ for every $n\in\mathbb{N}$. It does not belong to $\bigoplus_{n \in \mathbb{N}} \mathbb{Z}$: if it had finite support, then there would be a finite set $F\subseteq \mathbb{N}$ such that $a_n=0$ for every $n\notin F$. But for the sequence $(1,1,1,\ldots)$, one has $a_n=1$ for every $n\in\mathbb{N}$, so no coordinate outside $F$ can be $0$. Since $\mathbb{N}$ is infinite, there is some $n\notin F$, and then the same coordinate would have to satisfy both $a_n=0$ and $a_n=1$, impossible in $\mathbb{Z}$.
The canonical inclusion sends a finitely supported sequence to the same sequence regarded as an element of the product:
\begin{align*}
\iota\left((a_n)_{n\in\mathbb{N}}\right)=(a_n)_{n\in\mathbb{N}}.
\end{align*}
If $\iota$ were surjective, the product element $(1,1,1,\ldots)$ would be equal to $\iota(x)$ for some $x\in\bigoplus_{n\in\mathbb{N}}\mathbb{Z}$. Equality in the product is coordinatewise, so this would force $x=(1,1,1,\ldots)$, contradicting that $x$ has finite support. Therefore
\begin{align*}
\iota:\bigoplus_{n \in \mathbb{N}} \mathbb{Z} \to \prod_{n \in \mathbb{N}} \mathbb{Z}
\end{align*}
is not surjective. This is the essential difference between an infinite direct sum and an infinite product: the product allows infinitely many nonzero coordinates, while the direct sum does not.
[/example]
The matroid direct sum supplies a parallel example outside additive algebra. The same notation signals that independent choices are made separately and then combined.
[example: Direct Sum of Two Uniform Matroids]
Let $M_1 = U_{1,2}$ be the matroid on $E_1=\{a,b\}$ whose independent sets are the subsets of $E_1$ of size at most $1$, and let $M_2=U_{2,3}$ be the matroid on $E_2=\{c,d,e\}$ whose independent sets are the subsets of $E_2$ of size at most $2$. Since $E_1\cap E_2=\varnothing$, the direct sum $M_1\oplus M_2$ is defined on the ground set
\begin{align*}
E_1\cup E_2=\{a,b,c,d,e\}.
\end{align*}
We compute its independent sets from the definition of matroid direct sum. A set $I\subseteq E_1\cup E_2$ is independent in $M_1\oplus M_2$ exactly when it can be written as
\begin{align*}
I=I_1\cup I_2
\end{align*}
with $I_1\in\mathcal{I}(M_1)$ and $I_2\in\mathcal{I}(M_2)$. Because the ground sets are disjoint, any such decomposition must have
\begin{align*}
I_1=I\cap E_1
\end{align*}
and
\begin{align*}
I_2=I\cap E_2.
\end{align*}
Therefore $I$ is independent exactly when $I\cap E_1$ is independent in $U_{1,2}$ and $I\cap E_2$ is independent in $U_{2,3}$, which means
\begin{align*}
|I\cap E_1|\le 1
\end{align*}
and
\begin{align*}
|I\cap E_2|\le 2.
\end{align*}
For example, take $I=\{a,c,d\}$. Then
\begin{align*}
I\cap E_1=\{a,c,d\}\cap\{a,b\}=\{a\},
\end{align*}
so $|I\cap E_1|=1\le 1$. Also
\begin{align*}
I\cap E_2=\{a,c,d\}\cap\{c,d,e\}=\{c,d\},
\end{align*}
so $|I\cap E_2|=2\le 2$. Hence $\{a,c,d\}$ is independent in $M_1\oplus M_2$.
By contrast, take $J=\{a,b,c\}$. Then
\begin{align*}
J\cap E_1=\{a,b,c\}\cap\{a,b\}=\{a,b\},
\end{align*}
so $|J\cap E_1|=2>1$. Thus $J\cap E_1$ is not independent in $U_{1,2}$, and therefore $\{a,b,c\}$ is dependent in $M_1\oplus M_2$. The direct sum lets the $U_{1,2}$ and $U_{2,3}$ constraints be checked separately, then combines the two componentwise independence tests.
[/example]
## Properties
Finite biproducts are useful because their construction is canonical up to unique isomorphism. This means that the notation $A_1 \oplus \cdots \oplus A_n$ suppresses choices without losing information in additive categories.
[quotetheorem:4186]
Uniqueness up to isomorphism explains why the object is well defined, but computations also need a way to read morphisms through the summands. The relevant structural question is whether maps involving a direct sum split into componentwise Hom-set data, so that the assembled object can still be handled one summand at a time.
[quotetheorem:9353]
The Hom-set description explains how morphisms interact with a direct sum, but it does not by itself record the size of the resulting object.
For finite-dimensional vector spaces there is a sharper numerical test for directness. If the summands overlap only at zero, then choosing bases in the summands should give a basis of the whole space with no hidden linear relations. This motivates the dimension formula for direct sums, which turns the structural decomposition into a count of degrees of freedom.
[quotetheorem:3273]
Dimension is unavailable for many modules, so module theory often tracks structure through exact sequences instead. The natural question is whether exactness survives when many sequences are placed side by side; finite support is what keeps kernels and images compatible with the direct-sum construction.
[quotetheorem:9354]
The finite-support condition again matters. Kernels, images, and surjectivity can be checked componentwise, and the result remains inside the direct sum because only finitely many coordinates are active.
## Relationship to Other Concepts
In additive categories with finite biproducts, finite direct sums and finite Products are two universal descriptions of the same object. For infinite families, however, the two constructions generally diverge: the direct product permits arbitrary coordinate families, while the direct sum permits finite-support coordinate families. This distinction becomes central in module theory, representation theory, topology, and functional analysis.
In [Lie Algebra](/page/Lie%20Algebra) theory, the direct sum of Lie algebras is a componentwise construction: the underlying vector space is a direct sum and the bracket is computed component by component. This is a specialization, not the parent definition of this page. It expresses the same separation principle with the additional requirement that cross-brackets between different summands vanish.
In Representation theory, direct sums describe reducibility and decomposition into invariant subrepresentations. If a representation is a direct sum of smaller representations, its action can be studied componentwise. Semisimple representation theory is largely the study of when every representation decomposes into a direct sum of irreducible ones.
In module theory, internal direct sums are closely related to idempotent endomorphisms. A projection $p: M \to M$ with $p^2=p$ decomposes $M$ into the image and kernel of $p$:
\begin{align*}
M = \operatorname{im} p \oplus \ker p.
\end{align*}
This is the algebraic form of splitting an object into the part retained by a projection and the part killed by it.
Direct sums also clarify quotient constructions. If $M=N \oplus P$, then the quotient $M/N$ is naturally isomorphic to $P$. Thus a direct complement turns a quotient, which is usually defined by collapsing a submodule, into an explicitly visible summand.
## References
- Serge Lang, *Algebra* (2002).
- Saunders Mac Lane, *Categories for the Working Mathematician* (1998).
- David S. Dummit and Richard M. Foote, *Abstract Algebra* (2004).
- James Oxley, *Matroid Theory* (2011).
- [Module](/page/Module).
- [Vector Space](/page/Vector%20Space).
- Product.
Direct Sum
Also known as: direct sums, direct sum of modules, external direct sum, internal direct sum, biproduct