Ma · Mathematics

How Do You Find the Dimensions of Subspace Sums and Intersections?

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify the operations

    For subspaces U and V, distinguish their sum, intersection, and union; these do not have the same properties.

  2. 2. Find the intersection

    Determine the vectors that belong to both subspaces and find a basis for that intersection.

  3. 3. Apply the formula

    Subtract the intersection dimension from the sum of the two individual dimensions.

  4. 4. Check special cases

    If the intersection is only the zero vector, the sum is direct; a union is usually not a subspace.

When people ask about the “operations” on subspaces, they usually mean the sum, intersection, and sometimes the union of two subspaces. The key dimension rule concerns the sum and intersection: it counts the dimensions of both subspaces, then subtracts the dimension they share.

Assume throughout that the vector spaces are finite-dimensional. The union needs separate treatment because it is usually not a subspace at all.

The dimension formula

For subspaces UU and VV of a finite-dimensional vector space, their sum is

U+V={u+v:u∈U, v∈V}.U+V=\{u+v : u\in U,\ v\in V\}.

It is the smallest subspace containing both UU and VV, and it is also the span of U∪VU\cup V. Their intersection U∩VU\cap V consists of vectors that lie in both. The dimensions satisfy

dim⁡(U+V)=dim⁡U+dim⁡V−dim⁡(U∩V).\dim(U+V)=\dim U+\dim V-\dim(U\cap V).

The subtraction matters because a direction in the intersection is counted once in dim⁡U\dim U and again in dim⁡V\dim V. Subtracting dim⁡(U∩V)\dim(U\cap V) removes the duplicate count.

A worked example in R3\mathbb{R}^3

Let

U=span⁡{(1,0,0),(0,1,0)},V=span⁡{(0,1,0),(0,0,1)}.U=\operatorname{span}\{(1,0,0),(0,1,0)\}, \qquad V=\operatorname{span}\{(0,1,0),(0,0,1)\}.

Each subspace has dimension 22. Both contain (0,1,0)(0,1,0), and every vector in UU has third coordinate 00, while every vector in VV has first coordinate 00. Thus their intersection is exactly

U∩V=span⁡{(0,1,0)},U\cap V=\operatorname{span}\{(0,1,0)\},

which has dimension 11. Therefore,

dim⁡(U+V)=2+2−1=3.\dim(U+V)=2+2-1=3.

Indeed, the vectors (1,0,0)(1,0,0), (0,1,0)(0,1,0), and (0,0,1)(0,0,1) all lie in U+VU+V and form a basis for R3\mathbb{R}^3. So U+V=R3U+V=\mathbb{R}^3.

Why the formula works

Take a basis for U∩VU\cap V and extend it to a basis for each of UU and VV. Write the shared basis as c1,…,ckc_1,\ldots,c_k; add vectors u1,…,uru_1,\ldots,u_r to complete a basis of UU, and vectors v1,…,vsv_1,\ldots,v_s to complete a basis of VV.

The combined list

c1,…,ck,u1,…,ur,v1,…,vsc_1,\ldots,c_k,u_1,\ldots,u_r,v_1,\ldots,v_s

is a basis for U+VU+V. It spans the sum because it includes bases for both subspaces. It is linearly independent because any combination of the added uu-vectors that equals a combination of the added vv-vectors must lie in U∩VU\cap V; the basis extensions ensure that this can happen only when those added-vector coefficients are zero. Hence

dim⁡(U+V)=k+r+s,\dim(U+V)=k+r+s,

while dim⁡U=k+r\dim U=k+r, dim⁡V=k+s\dim V=k+s, and dim⁡(U∩V)=k\dim(U\cap V)=k. Substitution gives the formula.

Direct sums and useful bounds

The sum is called a direct sum, written U⊕VU\oplus V, when U∩V={0}U\cap V=\{0\}. Since the zero subspace has dimension 00, the formula becomes

dim⁡(U⊕V)=dim⁡U+dim⁡V.\dim(U\oplus V)=\dim U+\dim V.

For example, the xyxy-plane and the zz-axis in R3\mathbb{R}^3 intersect only at the zero vector, so their direct sum is all of R3\mathbb{R}^3 and has dimension 2+1=32+1=3.

The formula also gives bounds on the intersection. Since U+VU+V is a subspace of the ambient space WW,

max⁡(0,dim⁡U+dim⁡V−dim⁡W)≤dim⁡(U∩V)≤min⁡(dim⁡U,dim⁡V).\max(0,\dim U+\dim V-\dim W) \leq \dim(U\cap V) \leq \min(\dim U,\dim V).

For instance, two planes in R3\mathbb{R}^3 must intersect in at least a line: the lower bound is 2+2−3=12+2-3=1.

What about the union?

The union U∪VU\cup V is usually not a subspace. A subspace must be closed under addition, but a vector from UU added to a vector from VV need not belong to either one.

In R2\mathbb{R}^2, let UU be the xx-axis and VV the yy-axis. The vectors (1,0)∈U(1,0)\in U and (0,1)∈V(0,1)\in V have sum (1,1)(1,1), which belongs to neither axis. Thus U∪VU\cup V is not a subspace and does not have a vector-space dimension. For two subspaces, the union is a subspace exactly when one is contained in the other; then the union is simply the larger subspace.

Common mistakes

  • Adding dimensions without subtracting the overlap: this is correct only when U∩V={0}U\cap V=\{0\}.
  • Treating the union as the sum: U∪VU\cup V contains vectors from either subspace; U+VU+V also contains sums of vectors from the two subspaces.
  • Calling a zero intersection “empty”: every pair of subspaces contains the zero vector in its intersection. A trivial intersection means U∩V={0}U\cap V=\{0\}.
  • Using the formula without finite dimensions: the stated arithmetic formula is intended for finite-dimensional subspaces; infinite-dimensional settings require more care with dimension conventions.

References

  1. Linear Algebra Done Right, Sheldon Axler
  2. Linear Algebra, Stephen H. Friedberg, Arnold J. Insel, and Lawrence E. Spence

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.