STEMviz
Mathematics · Linear and Abstract Algebra

Basis, Dimension and Coordinates in a Basis

Defines linear independence and basis, proves the Steinitz exchange lemma, and derives dimension well-definedness and subspace dimension formulas from it.

Basis, Dimension and Coordinates in a Basis

Span (Chapter 2) tells us how to generate a subspace from a set of vectors, but says nothing about efficiency — a spanning set can carry redundant vectors. This chapter isolates the notion of a maximally efficient, non-redundant spanning set — a basis — and proves the single theorem that makes "dimension" a well-defined number rather than a vague intuition: the Steinitz exchange lemma. Everything that follows in this course (rank-nullity, matrix representations, eigenspaces) is stated in terms of dimension, so this chapter's proofs are load-bearing for the rest of the block.

Have to hand: span and the subspace test (Chapter 2), and comfort manipulating finite lists of vectors and linear combinations.

1. Linear Independence

Definition. A list of vectors v1,…,vn∈Vv_1,\dots,v_n \in V is linearly independent if the only solution of a1v1+⋯+anvn=0a_1v_1+\cdots+a_nv_n = 0 (in scalars aia_i) is a1=⋯=an=0a_1=\cdots=a_n=0. A list that is not linearly independent is linearly dependent: some nontrivial combination (not all ai=0a_i=0) equals 00.

Equivalently (and this is the form used constantly in proofs): v1,…,vnv_1,\dots,v_n are linearly dependent if and only if some vkv_k is a linear combination of the others. (Proof: if a1v1+⋯+anvn=0a_1v_1+\cdots+a_nv_n=0 with some ak≠0a_k\ne0, solve for vk=−ak−1∑i≠kaiviv_k = -a_k^{-1}\sum_{i\ne k}a_iv_i, using that ak−1a_k^{-1} exists since F\mathbb{F} is a field. Conversely if vk=∑i≠kciviv_k=\sum_{i\ne k} c_iv_i, then ∑i≠kcivi+(−1)vk=0\sum_{i\ne k}c_iv_i + (-1)v_k = 0 is a nontrivial relation, since the coefficient of vkv_k is −1≠0-1\ne0.)

A single nonzero vector is always linearly independent (if av=0av=0 with v≠0v\ne0, then a=0a=0: if a≠0a\ne0 it would have an inverse a−1a^{-1}, giving v=a−1(av)=a−1⋅0=0v=a^{-1}(av)=a^{-1}\cdot0=0, a contradiction). Any list containing the zero vector is linearly dependent: 1⋅0=01\cdot0=0 is a nontrivial relation (coefficient 1≠01\ne0 on the zero vector).

Worked example. Are (1,1,0),(0,1,1),(1,0,−1)(1,1,0),(0,1,1),(1,0,-1) linearly independent in R3\mathbb{R}^3? Solve a(1,1,0)+b(0,1,1)+c(1,0,−1)=0a(1,1,0)+b(0,1,1)+c(1,0,-1)=0: componentwise, a+c=0a+c=0, a+b=0a+b=0, b−c=0b-c=0. From the first, c=−ac=-a; from the second, b=−ab=-a; substituting into the third, −a−(−a)=0-a-(-a)=0, automatically satisfied. So (a,b,c)=(a,−a,−a)(a,b,c)=(a,-a,-a) for any aa — e.g. a=1a=1 gives the nontrivial relation (1,1,0)−(0,1,1)−(1,0,−1)=0(1,1,0)-(0,1,1)-(1,0,-1)=0 (check: (1−0−1,1−1−0,0−1+1)=(0,0,0)(1-0-1, 1-1-0, 0-1+1)=(0,0,0) ✓). The list is linearly dependent.

2. Basis

Definition. A list v1,…,vnv_1,\dots,v_n of vectors in VV is a basis of VV if it is linearly independent and spans VV.

A basis is simultaneously "just enough" to span (linear independence rules out redundancy) and "enough" to span (the spanning condition). The standard basis e1,…,ene_1,\dots,e_n of Fn\mathbb{F}^n (with eie_i having 11 in position ii and 00 elsewhere) is the model example: independence and spanning are both immediate from writing (a1,…,an)=∑aiei(a_1,\dots,a_n)=\sum a_ie_i uniquely.

Proposition (uniqueness of representation). v1,…,vnv_1,\dots,v_n is a basis of VV if and only if every w∈Vw \in V can be written as w=a1v1+⋯+anvnw = a_1v_1+\cdots+a_nv_n for a unique choice of scalars a1,…,ana_1,\dots,a_n.

Proof. (⇒\Rightarrow) Spanning gives existence of some representation. For uniqueness, suppose w=∑aivi=∑biviw=\sum a_iv_i = \sum b_iv_i. Subtracting, ∑(ai−bi)vi=0\sum (a_i-b_i)v_i = 0; by linear independence, ai−bi=0a_i-b_i=0 for every ii, so ai=bia_i=b_i. (⇐\Leftarrow) Existence of a representation for every ww is exactly the spanning condition. For independence: if ∑aivi=0\sum a_iv_i=0, this is a representation of 00; but 0=∑0⋅vi0=\sum 0\cdot v_i is also a representation of 00, so by uniqueness ai=0a_i=0 for all ii. ■\blacksquare

This is the practical meaning of a basis: it turns every vector into a unique list of numbers (its coordinates), which is what makes matrix computations possible at all (Chapter 5).

3. The Steinitz Exchange Lemma

This is the technical heart of the chapter — the single lemma from which "dimension is well-defined" and "every independent list extends to a basis" both follow.

Theorem (Steinitz Exchange Lemma). Suppose u1,…,umu_1,\dots,u_m is linearly independent in VV and w1,…,wnw_1,\dots,w_n spans VV. Then m≤nm \le n, and (after reordering the wjw_j if necessary) u1,…,um,wm+1,…,wnu_1,\dots,u_m,w_{m+1},\dots,w_n spans VV.

Proof (by induction on k=0,1,…,mk=0,1,\dots,m, showing at each stage that u1,…,uk,wk+1,…,wnu_1,\dots,u_k,w_{k+1},\dots,w_n spans VV, after suitable reordering of the remaining ww's).

Base case k=0k=0: w1,…,wnw_1,\dots,w_n spans VV by hypothesis.

Inductive step: suppose 0≤k<m0\le k<m and that, after reordering the ww's, the list u1,…,uk,wk+1,…,wnu_1,\dots,u_k,w_{k+1},\dots,w_n spans VV (here k≤nk\le n). Since this list spans VV, write uk+1=a1u1+⋯+akuk+bk+1wk+1+⋯+bnwn.u_{k+1} = a_1u_1+\cdots+a_ku_k + b_{k+1}w_{k+1}+\cdots+b_nw_n. If every bj=0b_j=0 here, then uk+1u_{k+1} is a linear combination of u1,…,uku_1,\dots,u_k alone, giving a nontrivial relation among u1,…,uk+1u_1,\dots,u_{k+1} (coefficient −1-1 on uk+1u_{k+1}), contradicting linear independence of u1,…,umu_1,\dots,u_m. This also shows k<nk<n must hold at this point (if k=nk=n there would be no wjw_j left to supply a nonzero bjb_j, forcing the contradiction immediately — this is exactly where m≤nm\le n is captured: the induction cannot proceed past k=nk=n, so it must terminate with k=m≤nk=m\le n). So some bj≠0b_j \ne 0; reorder so bk+1≠0b_{k+1}\ne0. Then wk+1w_{k+1} can be solved for: wk+1=bk+1−1(uk+1−a1u1−⋯−akuk−bk+2wk+2−⋯−bnwn)w_{k+1} = b_{k+1}^{-1}\big(u_{k+1} - a_1u_1-\cdots-a_ku_k - b_{k+2}w_{k+2}-\cdots-b_nw_n\big). Since u1,…,uk,wk+1,…,wnu_1,\dots,u_k,w_{k+1},\dots,w_n spans VV and wk+1w_{k+1} is itself a linear combination of u1,…,uk+1,wk+2,…,wnu_1,\dots,u_{k+1},w_{k+2},\dots,w_n, substituting shows u1,…,uk+1,wk+2,…,wnu_1,\dots,u_{k+1},w_{k+2},\dots,w_n also spans VV. This completes the induction. ■\blacksquare

Corollary (dimension is well-defined). Any two bases of a finite-dimensional vector space VV have the same number of elements.

Proof. Let v1,…,vmv_1,\dots,v_m and w1,…,wnw_1,\dots,w_n both be bases. Since v1,…,vmv_1,\dots,v_m is independent and w1,…,wnw_1,\dots,w_n spans, the exchange lemma gives m≤nm\le n. Symmetrically, since w1,…,wnw_1,\dots,w_n is independent and v1,…,vmv_1,\dots,v_m spans, n≤mn \le m. Hence m=nm=n. ■\blacksquare

Definition. This common number is the dimension of VV, written dim⁡V\dim V. (A vector space with a finite spanning list is called finite-dimensional; otherwise infinite-dimensional — P(F)\mathcal{P}(\mathbb{F}) and F(S,F)\mathcal{F}(S,\mathbb{F}) for infinite SS are the standard examples of the latter, and are outside the scope of the exchange-lemma argument above, which assumes a finite spanning list exists.)

4. Existence of a Basis; Extension and Reduction

Theorem (spanning list reduces to a basis). Every finite spanning list of a nonzero vector space VV contains a sub-list that is a basis of VV.

Proof sketch. If the spanning list w1,…,wnw_1,\dots,w_n is already independent, it is a basis. Otherwise some wkw_k is a linear combination of the others (Section 1); removing it leaves a strictly shorter list that still spans VV (any combination using wkw_k can be rewritten using only the others). Repeat; since the list is finite and shrinks each time, the process terminates in an independent spanning list — a basis. ■\blacksquare

Theorem (independent list extends to a basis). Every linearly independent list in a finite-dimensional VV extends to a basis of VV.

Proof sketch. If u1,…,uku_1,\dots,u_k does not already span VV, some v∈Vv \in V is not in span⁡(u1,…,uk)\operatorname{span}(u_1,\dots,u_k); then u1,…,uk,vu_1,\dots,u_k,v is still independent (if a relation involved vv with nonzero coefficient, vv could be solved for in terms of the uiu_i, contradicting v∉span⁡v\notin\operatorname{span}; if not, the relation reduces to one among the uiu_i alone, contradicting their independence). Repeat; the exchange lemma bounds the length of any independent list by dim⁡V\dim V, so the process terminates in a basis. ■\blacksquare

Worked example. Extend u1=(1,1,0)u_1=(1,1,0) to a basis of R3\mathbb{R}^3. Since u1≠0u_1\ne0, it's independent. Is e2=(0,1,0)∈span⁡(u1)e_2=(0,1,0) \in \operatorname{span}(u_1)? No — span⁡(u1)\operatorname{span}(u_1) is the line {(t,t,0)}\{(t,t,0)\}, and (0,1,0)(0,1,0) is not of this form. So u1,e2u_1,e_2 is independent. Is e3=(0,0,1)∈span⁡(u1,e2)={(t,t,0)+s(0,1,0)}={(t,t+s,0)}e_3=(0,0,1)\in\operatorname{span}(u_1,e_2)=\{(t,t,0)+s(0,1,0)\}=\{(t,t+s,0)\}, i.e. all vectors with third coordinate 00? No. So u1,e2,e3u_1,e_2,e_3 is independent, and since dim⁡R3=3\dim\mathbb{R}^3=3 and we have 33 independent vectors, by the exchange lemma applied with the spanning standard basis (m=3=nm=3=n forces the list itself spans, else it could be extended past dimension 33, contradiction) — u1,e2,e3u_1,e_2,e_3 is a basis.

5. Dimension Formulas for Subspaces

Proposition. If UU is a subspace of a finite-dimensional VV, then UU is finite-dimensional and dim⁡U≤dim⁡V\dim U \le \dim V, with equality iff U=VU=V.

Proof sketch. Any independent list in UU is independent in VV, hence has length ≤dim⁡V\le \dim V by the exchange lemma; so UU has a longest independent list, which must span UU (else it could be extended, Section 4), giving a basis of UU of length ≤dim⁡V\le \dim V. If dim⁡U=dim⁡V\dim U = \dim V, a basis of UU is an independent list in VV of length dim⁡V\dim V; by the exchange lemma argument, it must already span VV (an independent list of length dim⁡V\dim V that failed to span could be extended to a longer independent list, exceeding dim⁡V\dim V, a contradiction), so U=VU=V. ■\blacksquare

Proposition (dimension of a direct sum). If V=U1⊕U2V = U_1\oplus U_2 (both finite-dimensional), then dim⁡V=dim⁡U1+dim⁡U2\dim V = \dim U_1+\dim U_2.

Proof sketch. Let u1,…,upu_1,\dots,u_p be a basis of U1U_1 and w1,…,wqw_1,\dots,w_q a basis of U2U_2. The combined list spans V=U1+U2V=U_1+U_2 (any v=x+yv=x+y, x∈U1,y∈U2x\in U_1,y\in U_2, is a combination of the uiu_i and wjw_j). For independence: if ∑aiui+∑bjwj=0\sum a_iu_i + \sum b_jw_j=0, then ∑aiui=−∑bjwj∈U1∩U2={0}\sum a_iu_i = -\sum b_jw_j \in U_1\cap U_2=\{0\}, so ∑aiui=0\sum a_iu_i=0 and ∑bjwj=0\sum b_jw_j=0 separately; independence of each basis forces all ai=bj=0a_i=b_j=0. So the combined list is a basis of VV of length p+qp+q. ■\blacksquare

Common Exam Pitfalls

  • Treating "spans" and "basis" as synonyms. A spanning list need not be independent; a basis is a spanning list that is also independent — both properties must be checked.
  • Checking only spanning, or only independence, when asked to verify a basis. Both halves of the definition are required, and each needs its own argument.
  • Forgetting that dimension is only well-defined because of the exchange lemma. "Two bases of the same space always have the same size" is a theorem, not an obvious fact — citing it without the lemma is incomplete.
  • Assuming any nn vectors in an nn-dimensional space form a basis. This is false: a dependent list of nn vectors is not a basis even though it has the "right" count. What is true (by the exchange lemma and the extension theorem of Section 4) is that a list of exactly dim⁡V\dim V vectors is a basis if and only if it is independent, if and only if it spans — but one of the two properties must still be verified.
  • Misapplying the exchange lemma's inequality direction. It is the independent list's length that is bounded by the spanning list's length (m≤nm \le n), not the other way around.
  • Losing track of uniqueness of coordinates. A vector has a unique representation only relative to a fixed basis; changing the basis changes the coordinates entirely (the subject of Chapter 5).

Summary

  • Linear independence: ∑aivi=0  ⟹  \sum a_iv_i=0 \implies all ai=0a_i=0; equivalently, no vkv_k is a combination of the others.
  • Basis: a linearly independent spanning list; equivalently, a list giving every vector a unique coordinate representation.
  • Steinitz exchange lemma: an independent list of length mm and a spanning list of length nn satisfy m≤nm\le n, and uu's can replace ww's one at a time while preserving spanning.
  • Dimension is well-defined: any two bases of VV have the same length dim⁡V\dim V, a direct corollary of the exchange lemma applied both ways.
  • Every finite spanning list reduces to a basis; every independent list extends to a basis (in finite dimension).
  • dim⁡U≤dim⁡V\dim U \le \dim V for a subspace U⊆VU\subseteq V, with equality iff U=VU=V; and dim⁡(U1⊕U2)=dim⁡U1+dim⁡U2\dim(U_1\oplus U_2)=\dim U_1+\dim U_2.