Suppose are subspaces of . Every element of the sums of subspaces can be written in the form

where each element .

The sum is called the direct sum if each element on can be written in only one way as a sum , where each .

If is a direct sum, then denotes , with the notation serving as an indication that this is a direct sum.

Sums of subspaces are analogous to unions of subsets. Similarly, direct sums of subspaces are analogous to disjoint unions of subsets. No two subspaces of a vector space can be disjoint, because both contain . So disjointness is replaced, at least in the case of two subspaces, with the requirement that the intersection equal .

Basic Examples

Example: Direct sum of two subspaces

Suppose is the subspace of of vectors whose last coordinate equals , and is the subspace of of vectors whose first two coordinates equal :

Then, .

Example: A non-direct sum

Suppose

Then because every vector can be written as

where the first vector on the right side is in , the second vector is in , and the third vector is in .

However, is not a direct sum of , because the vector can be written in more than one way as a sum , with each . Specifically, we have:

and

where the first vector is in , the second vector is in , and the third vector is in .

Thus, the sum is not a direct sum.