Dimension of a Sum of Subspaces Explained with Worked Examples

For subspaces and of a vector space, . It is the same inclusion–exclusion idea as counting the elements of two overlapping sets.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Dimension of a sum of subspaces means

Adding the dimensions counts the overlap twice, so you subtract the dimension of the intersection once. Two planes through the origin in 3D that are different meet in a line, so , and together they span the whole space.

The formula follows from the rank–nullity theorem applied to the map that adds a vector of to a vector of . Describing a subspace by a basis makes the dimensions easy to count.

The same pattern appears in counting with the inclusion–exclusion principle for two sets, and in geometry: the lines and planes in plane equations are subspaces (or translated subspaces).

What is it used for?

The dimension of the sum of two subspaces counts how many independent directions they give together, without counting shared directions twice.

How to use dimension of a sum of subspaces

  1. Find the dimensions of and .
  2. Find the dimension of their intersection.
  3. Compute .
  4. Check that the result is not more than the dimension of the whole space.

Graph

Two planes through the origin, seen edge-on, meet along a lineshared line (dimension 1)-4-3-2-101234-3-2-10123Two planes through the origin, seen edge-on, meet along a linexyplane Uplane WGraph with x from -4 to 4 and y from -3 to 3. Shows the curve plane U; the curve plane W; point shared line (dimension 1) at (0, 0).

Dimensions 2 and 2 with an overlap of 1 give 2 + 2 − 1 = 3.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: two planes in 3D

Two different planes through the origin in have dimension 2 each. Find the dimension of their intersection.

Worked example
Answer
1 (a line)1\ \text{(a line)}
  1. Their sum is the whole space
  2. Rearrange

Example 2: axes planes

Let and . Find .

Worked example
Answer
33
  1. Intersection is the span of (0, 1, 0)
  2. Formula

Example 3: two 3D subspaces in 4D

Two subspaces of each have dimension 3 and together span the space. Find the dimension of the intersection.

Worked example
Answer
22
  1. Rearrange

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

dim U = 3, dim W = 3, dim(U ∩ W) = 2

dim(U + W)

4.

dim U = 2, dim W = 2, U ∩ W = {0}

dim(U + W)

4.

two planes in ℝ³ meeting in a line

dim(U + W)

3.

dim(U + W) = 5, dim U = 3, dim W = 3

dim(U ∩ W)

1.

Word problems

dim(U + W) = dim U + dim W − dim(U ∩ W), like inclusion–exclusion for sets.

Overlapping

3 + 3 − 2.

  1. 4
  2. Check: ✓4

Independent

Intersection is {0}.

  1. 2 + 2 − 0
  2. Check: ✓4

Two planes Higher

Meet in a line (dimension 1).

  1. 2 + 2 − 1
  2. Check: all of ℝ³ ✓3

Intersection Higher

Rearrange.

  1. 3 + 3 − 5
  2. Check: ✓1

Common mistakes

dim(U + W) = dim U + dim W always

always ✗

subtract the intersection ✓

Overlap.

Intersection dimension subtracted twice

twice ✗

once ✓

Inclusion–exclusion.

Sum is a union

union ✗

span of both ✓

Subspace.

dim larger than the ambient space

possible ✗

bounded by the space ✓

Check.

Exam tips

  1. dim(U + W) = dimU + dimW − dim(U ∩ W).
  2. Intersection {0}: direct sum.
  3. Bounded by the ambient dimension.
  4. Rearrange to find the intersection.
  5. Draw lines and planes.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. dim(U + W): 4, 3, intersection 1 Foundation

6

2. dim(U ∩ W): dims 3, 3, sum 4 Foundation

2

3. dim(U + W): 2, 1, intersection 0 Foundation

3

4. dim(U + W): 5, 5, intersection 3 Higher

7

5. dim(U ∩ W): dims 4, 4, sum 6 Higher

2

6. dim(U + W): 1, 1, intersection 1 Higher

1

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Subspace
Closed under addition and scaling.
Sum U + W
All u + w.
Intersection
Common vectors.
Direct sum
Intersection is {0}.
Dimension
Number of basis vectors.
Inclusion–exclusion
Counting rule.

Frequently asked questions

What is dim(U + W)?

dim U + dim W − dim(U ∩ W).

What if U ∩ W = {0}?

Then dim(U + W) = dim U + dim W.

How is it like counting sets?

It is inclusion–exclusion.

What is the dimension of two planes through the origin in ℝ³?

Their sum is ℝ³ if distinct, dimension 3.

Which page covers rank–nullity?

rank–nullity theorem.

Which page covers planes?

Cartesian equation of a plane.

More in Vectors and matrices and the formula sheets.