STEMviz
Mathematics · Linear and Abstract Algebra

Subspaces, Linear Combinations and the Linear Span

Develops the three-condition subspace test, proves span is always the smallest subspace containing a set, and characterises direct sums via trivial intersection.

Subspaces, Linear Combinations and the Linear Span

A vector space is usually too large to study all at once; the objects of real interest are its internal copies — subspaces — and the operations that build them out of a handful of vectors: linear combinations and span. This chapter develops the single most-used test in linear algebra (the subspace criterion) and proves the two structural facts every later chapter quietly relies on: span is always a subspace, and it is the smallest one containing the given vectors.

Have to hand: Chapter 1's vector space axioms and the proof style that goes with them (name every axiom used).

1. The Subspace Criterion

Definition (subspace). Let VV be a vector space over F\mathbb{F}. A subset U⊆VU \subseteq V is a subspace of VV if UU is itself a vector space over F\mathbb{F} under the addition and scalar multiplication inherited from VV.

Checking all eight vector space axioms directly would be wasteful — associativity, commutativity and the distributive laws are automatically inherited from VV, since they are identities that already hold for every vector in VV, hence in particular for vectors in UU. Only three things can actually fail for a subset, which gives a three-condition test.

Proposition (subspace test). U⊆VU \subseteq V is a subspace if and only if:

  1. 0∈U0 \in U (non-emptiness, anchored at the zero vector);
  2. u1,u2∈U  ⟹  u1+u2∈Uu_1, u_2 \in U \implies u_1 + u_2 \in U (closure under addition);
  3. a∈F,u∈U  ⟹  a⋅u∈Ua \in \mathbb{F}, u \in U \implies a\cdot u \in U (closure under scalar multiplication).

Proof. (⇒\Rightarrow) If UU is a subspace it is a vector space, hence has a zero vector; this zero vector must coincide with 0V0_V because the zero vector of UU satisfies u+0U=uu + 0_U = u for u∈U⊆Vu \in U \subseteq V, and 0V0_V is the unique element of VV with this property (Chapter 1), so 0U=0V∈U0_U = 0_V \in U. Conditions 2 and 3 are immediate since UU is closed under its own operations by definition of being a vector space.

(⇐\Leftarrow) Suppose conditions 1–3 hold. Associativity, commutativity of ++, and the four scalar-multiplication axioms (axioms 2–5 of Chapter 1) hold for all elements of VV, hence restrict to hold for all elements of UU — these are universally quantified identities, inherited for free. Condition 1 gives the additive identity inside UU. For additive inverses: given u∈Uu \in U, condition 3 with a=−1a = -1 gives (−1)⋅u∈U(-1)\cdot u \in U, and Chapter 1 proved (−1)⋅u=−u(-1)\cdot u = -u; so −u∈U-u \in U. Conditions 2 and 3 are exactly closure. Hence UU satisfies every vector space axiom and is a vector space in its own right — a subspace. ■\blacksquare

In practice, conditions 2 and 3 are usually combined and checked together as a single step: a1u1+a2u2∈Ua_1 u_1 + a_2 u_2 \in U for all a1,a2∈Fa_1, a_2 \in \mathbb{F}, u1,u2∈Uu_1, u_2 \in U. This is logically equivalent to conditions 2+3 (take a1=a2=1a_1=a_2=1 for condition 2, u2=0u_2=0 for condition 3) and is faster to verify.

Worked example. Let U={(x,y,z)∈R3:x+2y−z=0}U = \{(x,y,z) \in \mathbb{R}^3 : x + 2y - z = 0\}. Check: 0=(0,0,0)0=(0,0,0) satisfies 0+0−0=00+0-0=0, so 0∈U0\in U. If (x1,y1,z1),(x2,y2,z2)∈U(x_1,y_1,z_1),(x_2,y_2,z_2)\in U and a,b∈Ra,b\in\mathbb{R}, then the combination a(x1,y1,z1)+b(x2,y2,z2)=(ax1+bx2,ay1+by2,az1+bz2)a(x_1,y_1,z_1)+b(x_2,y_2,z_2)=(ax_1+bx_2, ay_1+by_2, az_1+bz_2) satisfies (ax1+bx2)+2(ay1+by2)−(az1+bz2)=a(x1+2y1−z1)+b(x2+2y2−z2)=a⋅0+b⋅0=0(ax_1+bx_2)+2(ay_1+by_2)-(az_1+bz_2) = a(x_1+2y_1-z_1)+b(x_2+2y_2-z_2) = a\cdot0+b\cdot0=0, using that both points satisfy the defining equation. So UU is a subspace — this is the general pattern: the solution set of a homogeneous linear equation (or system) is always a subspace, because the left-hand side is a linear expression in the coordinates.

2. Non-Subspace Examples and Why They Fail

  • W={(x,y)∈R2:x2=y}W = \{(x,y)\in\mathbb{R}^2 : x^2=y\} fails: although 0∈W0\in W, we have (1,1)∈W(1,1)\in W but 2⋅(1,1)=(2,2)∉W2\cdot(1,1)=(2,2)\notin W since 22=4≠22^2=4\ne2. Closure under scalar multiplication fails because the defining equation is not linear.
  • W={(x,y):x+y=1}W=\{(x,y) : x+y=1\} fails condition 1 immediately: 0+0=0≠10+0=0\ne1, so 0∉W0\notin W. Any affine (shifted) set that does not pass through the origin is never a subspace.
  • W={(x,y)∈R2:x≥0}W = \{(x,y)\in\mathbb{R}^2 : x\ge0\} fails condition 3: (1,0)∈W(1,0)\in W but (−1)⋅(1,0)=(−1,0)∉W(-1)\cdot(1,0)=(-1,0)\notin W (Chapter 1, Exercise).

Key distinction. A subset can satisfy closure under addition without satisfying closure under scalar multiplication, or vice versa — the three conditions are logically independent and all three must be checked. A common shortcut, checking only condition 1, catches none of the genuinely interesting failures.

3. Linear Combinations and Span

Definition. A linear combination of vectors v1,…,vn∈Vv_1,\dots,v_n \in V is any vector of the form a1v1+⋯+anvna_1v_1 + \cdots + a_nv_n with a1,…,an∈Fa_1,\dots,a_n \in \mathbb{F}.

Definition (span). The span of a subset S⊆VS \subseteq V, written span⁡(S)\operatorname{span}(S), is the set of all linear combinations of finitely many vectors of SS. By convention span⁡(∅)={0}\operatorname{span}(\varnothing) = \{0\}.

Theorem. For any S⊆VS \subseteq V, span⁡(S)\operatorname{span}(S) is a subspace of VV, and it is the smallest subspace of VV containing SS (i.e. if UU is any subspace with S⊆US \subseteq U, then span⁡(S)⊆U\operatorname{span}(S) \subseteq U).

Proof. Subspace. 0∈span⁡(S)0 \in \operatorname{span}(S) (empty combination, or 0=0⋅s0 = 0\cdot s for any s∈Ss \in S if S≠∅S \ne \varnothing). If u=∑i=1maiviu = \sum_{i=1}^m a_i v_i and w=∑j=1kbjwjw = \sum_{j=1}^k b_j w_j are two linear combinations of vectors of SS, then for c,d∈Fc,d \in \mathbb{F}, cu+dw=∑i(cai)vi+∑j(dbj)wjcu + dw = \sum_i (ca_i)v_i + \sum_j (db_j)w_j is again a (finite) linear combination of vectors of SS — this uses axioms 3, 4, 5 of Chapter 1 to redistribute the scalars — so span⁡(S)\operatorname{span}(S) is closed under the combined operation of condition 2+3 above, hence a subspace.

Smallest. Let UU be any subspace with S⊆US \subseteq U. Every vector s∈Ss \in S lies in UU. By the subspace criterion, UU is closed under linear combinations, so for v1,…,vn∈S⊆Uv_1,\dots,v_n \in S \subseteq U, a1v1+⋯+anvn∈Ua_1v_1+\cdots+a_nv_n \in U. Hence every element of span⁡(S)\operatorname{span}(S) lies in UU, i.e. span⁡(S)⊆U\operatorname{span}(S) \subseteq U. ■\blacksquare

This theorem is the precise sense in which "span is the subspace generated by SS": it is simultaneously a subspace containing SS, and smaller than (contained in) every other such subspace.

Worked example. Let S={(1,0,0),(0,1,0)}S = \{(1,0,0),(0,1,0)\} in R3\mathbb{R}^3. Then span⁡(S)={a(1,0,0)+b(0,1,0):a,b∈R}={(a,b,0):a,b∈R}\operatorname{span}(S) = \{a(1,0,0)+b(0,1,0) : a,b\in\mathbb{R}\} = \{(a,b,0) : a,b\in\mathbb{R}\}, the xyxy-plane. Checking the smallest-subspace property directly: any subspace UU containing (1,0,0)(1,0,0) and (0,1,0)(0,1,0) must, by closure, contain a(1,0,0)+b(0,1,0)=(a,b,0)a(1,0,0)+b(0,1,0) = (a,b,0) for every a,ba,b, so U⊇{(a,b,0)}U \supseteq \{(a,b,0)\} necessarily — the xyxy-plane cannot be avoided once those two generators are required to be in UU.

4. Sums of Subspaces

Definition. If U1,…,UkU_1, \dots, U_k are subspaces of VV, their sum is U1+⋯+Uk:={u1+⋯+uk:ui∈Ui}U_1 + \cdots + U_k := \{u_1+\cdots+u_k : u_i \in U_i\}.

Proposition. U1+⋯+UkU_1+\cdots+U_k is a subspace of VV, and in fact U1+⋯+Uk=span⁡(U1∪⋯∪Uk)U_1+\cdots+U_k = \operatorname{span}(U_1\cup\cdots\cup U_k).

Proof sketch. Closure under the combined linear-combination operation follows entrywise exactly as for span. For the equality: every element of U1+⋯+UkU_1+\cdots+U_k is manifestly a linear combination of elements of U1∪⋯∪UkU_1\cup\cdots\cup U_k (namely 1⋅u1+⋯+1⋅uk1\cdot u_1+\cdots+1\cdot u_k), so U1+⋯+Uk⊆span⁡(U1∪⋯∪Uk)U_1+\cdots+U_k \subseteq \operatorname{span}(U_1\cup\cdots\cup U_k). Conversely, any linear combination of elements drawn from the UiU_i can be regrouped, using closure of each UiU_i under scalar multiplication and addition, into a sum of one element from each UiU_i, giving the reverse inclusion. ■\blacksquare

5. Direct Sums

Definition. VV is the direct sum of subspaces U1,…,UkU_1,\dots,U_k, written V=U1⊕⋯⊕UkV = U_1 \oplus \cdots \oplus U_k, if V=U1+⋯+UkV = U_1+\cdots+U_k and every v∈Vv \in V can be written as u1+⋯+uku_1+\cdots+u_k (ui∈Uiu_i \in U_i) in exactly one way.

For two subspaces, uniqueness of decomposition reduces to a single clean test.

Theorem. V=U1⊕U2V = U_1 \oplus U_2 if and only if V=U1+U2V = U_1+U_2 and U1∩U2={0}U_1 \cap U_2 = \{0\}.

Proof. (⇒\Rightarrow) Suppose v∈U1∩U2v \in U_1\cap U_2 with v≠0v \ne 0. Then v=v+0v = v + 0 (with v∈U1,0∈U2v\in U_1,0\in U_2) and v=0+vv = 0+v (with 0∈U1,v∈U20\in U_1, v\in U_2) are two different decompositions of vv as u1+u2u_1+u_2 (different because v≠0v \ne 0 means the pairs (v,0)(v,0) and (0,v)(0,v) are distinct), contradicting uniqueness. So U1∩U2={0}U_1\cap U_2=\{0\}.

(⇐\Leftarrow) Suppose U1∩U2={0}U_1\cap U_2=\{0\} and v=u1+u2=u1′+u2′v = u_1+u_2 = u_1'+u_2' are two decompositions. Then u1−u1′=u2′−u2u_1-u_1' = u_2'-u_2. The left side lies in U1U_1 (subspace, closed under subtraction: u1+(−1)u1′u_1+(-1)u_1'), the right side in U2U_2; since they're equal, this common vector lies in U1∩U2={0}U_1\cap U_2=\{0\}, forcing u1=u1′u_1=u_1' and u2=u2′u_2=u_2'. ■\blacksquare

A frequent confusion: for two subspaces, U1∩U2={0}U_1\cap U_2=\{0\} must genuinely be checked as an intersection of subspaces — it is not enough that the subspaces merely look different. For three or more subspaces, pairwise trivial intersection is not sufficient for a direct sum (a standard counterexample: three distinct lines through the origin in R2\mathbb{R}^2 pairwise intersect only at 00, but their sum is all of R2\mathbb{R}^2 and decompositions are not unique).

Common Exam Pitfalls

  • Checking only 0∈U0 \in U and declaring UU a subspace. All three conditions are independent; a set can contain 00 and still fail closure (e.g. {(x,y):xy=0}\{(x,y):xy=0\}, the union of the two axes, contains 00 but (1,0)+(0,1)=(1,1)(1,0)+(0,1)=(1,1) is not in the set).
  • Testing a nonlinear defining equation and expecting a subspace. Only homogeneous linear equations (and intersections of such) define subspaces; anything with squares, products of variables, or a nonzero constant term fails.
  • Confusing span with union. span⁡({u,w})\operatorname{span}(\{u,w\}) contains far more than {u,w}\{u,w\} itself — all linear combinations, generically an entire plane through the origin, not just the two original vectors.
  • Treating "sum" and "direct sum" as synonyms. U1+U2U_1+U_2 always makes sense and is always a subspace; it is a direct sum only when U1∩U2={0}U_1\cap U_2=\{0\}, which must be separately verified.
  • Assuming pairwise trivial intersection suffices for k≥3k\ge3 direct summands. The correct general criterion (developed further via dimension in Chapter 3) requires more than pairwise disjointness of intersections.
  • Forgetting the "smallest subspace" half of the span theorem. Many students can show span⁡(S)\operatorname{span}(S) is a subspace but forget that proving it is the smallest one containing SS is an equally essential, separate half of the theorem.

Summary

  • Subspace criterion: U⊆VU\subseteq V is a subspace iff 0∈U0\in U, UU is closed under addition, and UU is closed under scalar multiplication; the remaining axioms (associativity and commutativity of ++, and axioms 2–5 of Chapter 1) are automatically inherited from VV.
  • Linear (not affine, not polynomial) homogeneous equations define subspaces; a nonzero constant term or a nonlinear term breaks this.
  • Span: span⁡(S)\operatorname{span}(S) is the set of all finite linear combinations of elements of SS; it is always a subspace, and it is the smallest subspace containing SS — both halves require proof.
  • Sum of subspaces: U1+⋯+Uk={u1+⋯+uk}=span⁡(U1∪⋯∪Uk)U_1+\cdots+U_k=\{u_1+\cdots+u_k\}=\operatorname{span}(U_1\cup\cdots\cup U_k), always a subspace.
  • Direct sum: V=U1⊕U2V=U_1\oplus U_2 iff V=U1+U2V=U_1+U_2 and U1∩U2={0}U_1\cap U_2=\{0\}; for k≥3k\ge3 summands, pairwise trivial intersection is not by itself sufficient.