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.

Condition for Direct Sums

The definition of direct sum requires every vector in the sum to have a unique representation as an appropriate sum. The next result shows that when deciding whether a sum of subspaces is a direct sum, we only need to consider whether can be uniquely written as an appropriate sum.

Condition for Direct Sums

Suppose are subspaces of . Then, is a direct sum if and only if the only way to write as a sum , where each , is by taking each equal to .

Proof.

First, we show necessity: assuming that is a direct sum, the only unique way to write the zero vector is if each .

Suppose is a direct sum. All of the subspaces are subspaces of , which means all of these subspaces share the same additive identity . Clearly, adding all of these additive identities , where each , is equal to . Then, the definition of direct sum implies that this is the only way to write , since this must unique.

Thus, the definition of direct sum implies that the only way to write as a sum , where each , is by taking each equal to .

Second, we show sufficiency: assuming that the only way to express the zero vectors is by having all , this implies that is a direct sum.

Suppose that the only way to write as a sum , where , is by taking each equal to .

To show that is a direct sum, let some . We can write

for some . To show that this representation is unique, suppose we also have

where . Subtracting these two equations, we have:

Because , the equation above implies that each equals . This shows that any two representations of the same vector must be equal, so every vector actually only has one unique representation.

Direct Sum of Two Subspaces

The next result gives a simple condition for testing whether a sum of two subspaces is a direct sum.

Direct sum of two subspaces

Suppose and are subspaces of . Then

The symbol means “if and only if ”; this symbol could also be read to mean “is equivalent to”.

Proof.

First, we show that if we assume is a direct sum, we must have .

Suppose is a direct sum. Suppose some element is in both and , or . Then, we can write the zero vector as , where and . Since is a direct sum, the only way for us express as a sum of vectors from and is if both vectors are . Thus, we have . Thus, , completing the proof in one direction.

Now we want to prove the other direction; assuming that , we want to show that is a direct sum.

Suppose , and

To complete the proof, we only need to show that , which we showed above for the condition for direct sums. The equation above implies that . Since we are dealing with subspaces that are closed under scalar multiplication, means that as well, which in turn means . Since our beginning assumption was , we must have , which by the equation above implies that , completing the proof.

The result above deals only with the case of two subspaces. When asking about a possible direct sum with more than two subspaces, it is not enough to test that each pair of the subspaces intersect only at . To see this, consider the the non-direct sum example above. In that non-example of a direct sum, we have .