← Module 02 / Vectors & spaces

Lesson 02.3 · §3.1.2

Which sets keep every linear combination?

Test subspaces and explain when a sum has a unique decomposition.

In this lesson 5 ideas
  1. Why the origin matters
  2. Sum versus direct sum
  3. Count dimensions without double counting
  4. Explore in three dimensions
  5. Transfer

Source scope: §3.1.2. Worked numerical examples, experiments, and practice are teaching supplements unless identified as source results.

Why the origin matters

The line S={(t,2t):t∈R}S=\{(t,2t):t\in\mathbb R\} contains zero. Adding two points adds their parameters, and scaling a point scales its parameter. Neither operation leaves the line. The shifted line y=2x+1y=2x+1 fails immediately: it lacks zero.

A subset SS of a vector space VV is a subspace if 0∈S0\in S, x+y∈Sx+y\in S whenever x,y∈Sx,y\in S, and αx∈S\alpha x\in S whenever x∈Sx\in S, α∈R\alpha\in\mathbb R. Both VV and the trivial space {0}\{0\} are subspaces.

Sum versus direct sum

For subspaces U,W⊆VU,W\subseteq V,

U+W={u+w:u∈U, w∈W}.U+W=\{u+w:u\in U,\ w\in W\}.

This is a subspace: zero is 0+00+0; addition regroups the two UU terms and the two WW terms; scaling distributes into both. If U∩W={0}U\cap W=\{0\}, the sum is a direct sum, written U⊕WU\oplus W.

Every vector in a direct sum has a unique decomposition. To see why, if u+w=u′+w′u+w=u'+w', then u−u′=w′−wu-u'=w'-w lies in both spaces. A zero intersection forces both differences to vanish. Conversely, a nonzero z∈U∩Wz\in U\cap W gives two decompositions z=z+0=0+zz=z+0=0+z, so uniqueness fails. This argument is a teaching expansion of the source statement.

The two coordinate axes give a direct sum of the plane. Two copies of the same axis do not: (2,0)(2,0) can be split as (1,0)+(1,0)(1,0)+(1,0) or (2,0)+(0,0)(2,0)+(0,0).

Count dimensions without double counting

For finite-dimensional subspaces,

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

The source refers to [4], Sheldon Axler, Linear Algebra Done Right, third edition, Springer International Publishing, 2015, for proof. It does not provide that proof here. In a direct sum the intersection has dimension zero, giving dim⁡(U⊕W)=dim⁡U+dim⁡W\dim(U\oplus W)=\dim U+\dim W.

Two distinct planes through zero in R3\mathbb R^3 meet in a line: 2+2−1=32+2-1=3. Their sum is all of space, but their decomposition is not unique.

Explore it yourself

Build a vector from two ingredients

Predict whether changing the second direction can make every point reachable.

Preparing interactive controls…

x₁x₂-4-4-3-3-2-2-1-1011223344uva ub vsum

u = (1.000, 0); v = (1.000, 2.000). a u + b v = (2.000, 2.000). The directions are independent. Unrestricted coefficients reach any point in the plane; the sliders show a bounded sample.

Axes: first and second real coordinates, in unit steps. Endpoints and labels identify each vector.

Explore in three dimensions

Explore it yourself

Two planes, one shared direction

Tilt W away from U. Which vectors still belong to both planes?

Preparing interactive controls…

Teaching supplement · interactive 3D projection · one grid interval = one coordinate unit

U ∩ We₁w₂xyz0

Change the mathematics

U = span{e₁, e₂}; W = span{e₁, (0, 0.819, 0.574)}. Intersection = span{e₁}; dim(U + W) = 2 + 2 − 1 = 3.

The colored patches show bounded portions of infinite planes. When both planes contain the x-axis, a shared nonzero vector gives two decompositions: e₁ = e₁ + 0 = 0 + e₁. The sum is not direct. Shifting W tests the origin requirement instead.

Camera controls · change only the view

Drag the diagram with a mouse, or use these sliders with a keyboard or touch. Projection can make perpendicular directions look oblique; the coordinate readout is unchanged.

Red: input or first direction. Blue: second direction or reference. Green: result. Amber: residual, normal, or third direction. Labels distinguish overlapping objects.

Transfer

Is the first quadrant a subspace?

Test more than addition

No. It contains zero and is closed under addition, but multiplying (1,1)(1,1) by −1-1 leaves it. All three conditions are required.