{
  "id": "direct-sum",
  "title": "Direct sum",
  "lang": "en",
  "source_lang": "en",
  "summary": "A construction that combines vector spaces or modules as independent components, with unique decomposition and finite support in the algebraic infinite case.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Algebraic direct sum",
    "External direct sum",
    "Internal direct sum"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/direct-sum/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/direct-sum/",
      "json": "https://aiwiki.page/zh/direct-sum.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The direct sum, denoted by \\(\\oplus\\), combines vector spaces or modules into a structure whose elements have uniquely determined components. It can be understood either as a construction of a new space from given spaces, called an external direct sum, or as a decomposition of an existing space into subspaces, called an internal direct sum. For infinitely many components, the algebraic construction requires each element to have only finitely many nonzero components. (math.stanford.edu)"
    },
    {
      "heading": "External direct sums",
      "text": "Let \\(V\\) and \\(W\\) be vector spaces over the same field \\(F\\). Their external direct sum is the set\n\n\\[V\\oplus W=\\{(v,w):v\\in V,\\ w\\in W\\},\\]\n\nwith componentwise operations:\n\n\\[(v,w)+(v',w')=(v+v',w+w'),\\qquad a(v,w)=(av,aw).\\]\n\nThus, for two spaces, the underlying set is their Cartesian product. The construction does not require \\(V\\) and \\(W\\) to be subspaces of a common ambient space. Each becomes a subspace of the new space through the canonical inclusions\n\n\\[\\iota_V(v)=(v,0),\\qquad \\iota_W(w)=(0,w).\\]\n\nEvery element then has the unique decomposition\n\n\\[(v,w)=\\iota_V(v)+\\iota_W(w).\\]\n\nThe same construction applies to any finite family of vector spaces or modules over a fixed ring. (math.stanford.edu)"
    },
    {
      "heading": "Internal direct sums",
      "text": "For subspaces \\(U,W\\subseteq V\\), their ordinary sum is\n\n\\[U+W=\\{u+w:u\\in U,\\ w\\in W\\}.\\]\n\nThis sum is direct when every element has exactly one such expression. Equivalently,\n\n\\[U\\cap W=\\{0\\}.\\]\n\nWriting\n\n\\[V=U\\oplus W\\]\n\nasserts both that \\(U+W=V\\) and that the decomposition is unique. Indeed, if \\(u+w=u'+w'\\), then\n\n\\[u-u'=w'-w\\in U\\cap W;\\]\n\na zero intersection therefore forces \\(u=u'\\) and \\(w=w'\\). The addition map\n\n\\[U\\oplus_{\\mathrm{external}}W\\longrightarrow V,\\qquad (u,w)\\longmapsto u+w\\]\n\nis then an isomorphism. (linear.pugetsound.edu)\n\nFor several subspaces, uniqueness means that\n\n\\[u_1+\\cdots+u_n=0,\\qquad u_i\\in U_i,\\]\n\nimplies \\(u_i=0\\) for every \\(i\\). Pairwise zero intersections alone are insufficient for three or more summands. For example, the three lines in \\(\\mathbb R^2\\) spanned by \\((1,0)\\), \\((0,1)\\), and \\((1,1)\\) intersect pairwise only at zero, but\n\n\\[(1,0)+(0,1)-(1,1)=0\\]\n\nis a nontrivial relation between them. This illustrates the stronger uniqueness requirement in the definition. (cfm.brown.edu)"
    },
    {
      "heading": "Bases, dimension, and complements",
      "text": "If \\(V=U\\oplus W\\), the union of a basis of \\(U\\) and a basis of \\(W\\) is a basis of \\(V\\). Consequently, in finite dimensions,\n\n\\[\\dim V=\\dim U+\\dim W.\\]\n\nMore generally, for finite-dimensional subspaces,\n\n\\[\\dim(U+W)=\\dim U+\\dim W-\\dim(U\\cap W).\\]\n\nThe intersection term measures the overlap that prevents an ordinary sum from being direct. (linear.pugetsound.edu)\n\nA subspace \\(W\\) satisfying \\(V=U\\oplus W\\) is called a complement of \\(U\\). In finite-dimensional spaces, complements can be obtained by extending a basis of \\(U\\) to a basis of \\(V\\) and taking the span of the added vectors. Complements need not be unique. Nor does a direct sum require orthogonality: that additional notion depends on an inner product. In a finite-dimensional inner-product space,\n\n\\[V=U\\oplus U^\\perp,\\]\n\nwhere \\(U^\\perp\\) is the orthogonal complement of \\(U\\). (linear.pugetsound.edu)\n\nA decomposition also determines a linear projection:\n\n\\[P(u+w)=u.\\]\n\nIt satisfies \\(P^2=P\\), has image \\(U\\), and has kernel \\(W\\). When \\(W=U^\\perp\\), this is the orthogonal projection onto \\(U\\); otherwise it is generally an oblique projection. (math.umd.edu)"
    },
    {
      "heading": "Infinite algebraic direct sums",
      "text": "For a family \\((M_i)_{i\\in I}\\) of modules over a ring \\(R\\), the algebraic direct sum is\n\n\\[\\bigoplus_{i\\in I}M_i = \\left\\{(m_i)\\in\\prod_{i\\in I}M_i: m_i=0\\text{ for all but finitely many }i\\right\\}.\\]\n\nAddition and scalar multiplication are componentwise. The finite-support condition ensures that each element is a finite sum of elements from the individual components. (math.stanford.edu)\n\nThe direct product \\(\\prod_i M_i\\), by contrast, permits unrestricted families of coordinates. The two constructions coincide for a finite index set. Their canonical inclusion is proper when infinitely many \\(M_i\\) are nonzero. For example,\n\n\\[\\bigoplus_{n=1}^{\\infty}\\mathbb R\\]\n\nconsists of eventually zero real sequences, whereas \\(\\prod_{n=1}^{\\infty}\\mathbb R\\) contains all real sequences, including \\((1,1,1,\\ldots)\\). (math.stanford.edu)"
    },
    {
      "heading": "Universal property",
      "text": "The direct sum is characterized by a universal property. Given a module \\(N\\) and a family of module homomorphisms\n\n\\[f_i:M_i\\longrightarrow N,\\]\n\nthere is a unique homomorphism\n\n\\[f:\\bigoplus_i M_i\\longrightarrow N\\]\n\nsuch that \\(f\\circ\\iota_i=f_i\\) for every canonical inclusion \\(\\iota_i\\). Explicitly,\n\n\\[f((m_i))=\\sum_i f_i(m_i),\\]\n\nwhich is well-defined because only finitely many terms are nonzero. In the language of category theory, this makes the algebraic direct sum the coproduct in the category of \\(R\\)-modules. The direct product has the opposite mapping property: maps into it are specified by maps into each component. (math.stanford.edu)"
    },
    {
      "heading": "Matrices and representations",
      "text": "For matrices \\(A\\) and \\(B\\), their direct sum is the block matrix\n\n\\[A\\oplus B= \\begin{pmatrix} A&0\\\\ 0&B \\end{pmatrix}.\\]\n\nIf they represent linear operators on \\(V\\) and \\(W\\), respectively, this matrix represents the componentwise operator\n\n\\[(A\\oplus B)(v,w)=(Av,Bw).\\]\n\nA common block-diagonal form therefore expresses independent action on the summands. (ocw.mit.edu)\n\nIn representation theory, two representations \\(\\rho_V\\) and \\(\\rho_W\\) of the same group combine as\n\n\\[(\\rho_V\\oplus\\rho_W)(g)(v,w) = \\bigl(\\rho_V(g)v,\\rho_W(g)w\\bigr).\\]\n\nDecomposing a representation into a direct sum requires complementary invariant subspaces, not merely an arbitrary decomposition of its underlying vector space. Matrix descriptions of such a decomposition use one basis in which every representing matrix has the same block structure. (sites.ualberta.ca)"
    },
    {
      "heading": "Hilbert-space direct sums",
      "text": "In functional analysis, “direct sum” can designate a completed construction rather than the finite-support algebraic one. For a sequence of Hilbert spaces \\(H_n\\), the Hilbert direct sum is\n\n\\[\\bigoplus_{n=1}^{\\infty}H_n = \\left\\{(x_n):x_n\\in H_n,\\ \\sum_{n=1}^{\\infty}\\|x_n\\|^2<\\infty\\right\\},\\]\n\nwith inner product\n\n\\[\\langle x,y\\rangle = \\sum_{n=1}^{\\infty}\\langle x_n,y_n\\rangle_{H_n}.\\]\n\nIt is the completion of the algebraic direct sum in the associated norm. Taking every \\(H_n=\\mathbb R\\) or \\(\\mathbb C\\) gives the sequence space \\(\\ell^2\\). Infinite square-summable sequences are allowed, unlike in the algebraic direct sum. (web.math.princeton.edu)\n\nA closed subspace \\(U\\) of a Hilbert space has an orthogonal decomposition \\(H=U\\oplus U^\\perp\\). The closedness condition matters: algebraic decompositions concern finite sums and uniqueness, whereas Hilbert-space decompositions additionally involve convergence and completeness. (web.math.princeton.edu)"
    }
  ],
  "links": [
    "vector-space",
    "module-mathematics",
    "linear-subspace",
    "field-mathematics",
    "cartesian-product",
    "isomorphism",
    "basis-linear-algebra",
    "inner-product",
    "orthogonal-complement",
    "linear-map",
    "kernel-linear-map",
    "orthogonal-projection",
    "ring-mathematics",
    "universal-property",
    "homomorphism",
    "category-theory",
    "matrix",
    "representation-theory",
    "functional-analysis",
    "hilbert-space",
    "lp-space"
  ],
  "sources": [
    {
      "title": "Math 210A. Homework 1",
      "url": "https://math.stanford.edu/~conrad/210APage/homework/hmwk1.pdf"
    },
    {
      "title": "MATH 210A, FALL 2017: Homework 1 Solutions",
      "url": "https://math.stanford.edu/~church/teaching/210A-F17/math210A-F17-hw1-sols.pdf"
    },
    {
      "title": "Math 210A: Modern Algebra, Homework 1",
      "url": "https://math.stanford.edu/~church/teaching/210A-F17/math210A-F17-hw1.pdf"
    },
    {
      "title": "SCLA Direct Sums",
      "url": "https://linear.pugetsound.edu/scla/html/section-direct-sums.html"
    },
    {
      "title": "Linear Algebra, Part 3: Direct Sums (Mathematica)",
      "url": "https://www.cfm.brown.edu/people/dobrush/cs52/Mathematica/Part3/direct.html"
    },
    {
      "title": "Lecture 12: Direct Sums and Projections",
      "url": "https://math.umd.edu/~millson/teaching/MATH405spring2020/MATH405slides/Lecture12directsums.pdf"
    },
    {
      "title": "RES.18-012 (Spring 2022) Full Lecture Notes: Algebra II Student Notes",
      "url": "https://ocw.mit.edu/courses/res-18-012-algebra-ii-student-notes-spring-2022/mit18_702s22_full_lec.pdf"
    },
    {
      "title": "Properties of representations",
      "url": "https://sites.ualberta.ca/~vbouchar/MAPH464/section-properties-representation.html"
    },
    {
      "title": "Functional Analysis Princeton University MAT520 Lecture Notes",
      "url": "https://web.math.princeton.edu/~js129/PDFs/teaching/MAT520_fall_2024/MAT520_Lecture_Notes.pdf"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}