4.5.18Linear Algebra (Full)

Dimension — basis cardinality

1,934 words9 min readdifficulty · medium2 backlinks

WHAT are we even claiming?

WHY do we care? Without this theorem, "dimension" would be ambiguous — you couldn't say R3\mathbb{R}^3 is 3-dimensional, because maybe some weird basis has 5 vectors. The theorem guarantees the answer is unique.


HOW we prove it — Derivation from scratch

The whole result rests on one workhorse lemma. Derive it and you've derived everything.

Deriving the Exchange Lemma

Let S={w1,,wn}S = \{w_1,\dots,w_n\} span VV, and let L={v1,,vm}L = \{v_1,\dots,v_m\} be linearly independent. Goal: show mnm \le n.

Idea: swap the vv's into the spanning set one at a time, kicking out a ww each time, keeping a spanning set of size nn throughout. If we never run out of ww's to kick out, then mnm \le n.

Step 1. Since SS spans VV, write v1=a1w1+a2w2++anwn.v_1 = a_1 w_1 + a_2 w_2 + \dots + a_n w_n. Why this step? Spanning means every vector, including v1v_1, is a combination of the ww's.

Step 2. Some ai0a_i \ne 0 (else v1=0v_1 = 0, impossible for an independent set). Reorder so a10a_1 \ne 0. Solve: w1=1a1(v1a2w2anwn).w_1 = \frac{1}{a_1}\Big(v_1 - a_2 w_2 - \dots - a_n w_n\Big). Why this step? This shows w1w_1 is redundant — we can express it using v1v_1 and the other ww's. So {v1,w2,,wn}\{v_1, w_2,\dots,w_n\} still spans VV.

Step 3 (induction). Suppose after kk swaps we have a spanning set {v1,,vk,wk+1,,wn}.\{v_1,\dots,v_k, w_{k+1},\dots,w_n\}. Write vk+1v_{k+1} in terms of it: vk+1=b1v1++bkvkold v’s+ck+1wk+1++cnwnremaining w’s.v_{k+1} = \underbrace{b_1 v_1 + \dots + b_k v_k}_{\text{old }v\text{'s}} + \underbrace{c_{k+1}w_{k+1} + \dots + c_n w_n}_{\text{remaining }w\text{'s}}.

Step 4 (key). Some cj0c_j \ne 0. Why? If all cj=0c_j = 0, then vk+1v_{k+1} would be a combination of v1,,vkv_1,\dots,v_k — contradicting that LL is independent. So a ww must still be present to kick out. This is exactly where independence of LL is used. Reorder, kick out wk+1w_{k+1}, swap in vk+1v_{k+1}. Spanning set of size nn survives.

Step 5 (conclude). Each swap consumes one vv and one ww. We must have at least as many ww's as vv's, i.e. mnm \le n. \blacksquare

From lemma to the Dimension Theorem

Let B1B_1 (size pp) and B2B_2 (size qq) both be bases of VV.

  • B1B_1 is independent, B2B_2 spans \Rightarrow apply lemma: pqp \le q.
  • B2B_2 is independent, B1B_1 spans \Rightarrow apply lemma: qpq \le p.

Therefore p=qp = q. \blacksquare The number is the dimension.

Why this step? A basis is simultaneously independent and spanning, so each one plays both roles in the lemma — giving inequalities in both directions.

Figure — Dimension — basis cardinality

Worked Examples


Steel-man the mistakes


Forecast-then-Verify


Flashcards

What is the dimension of a vector space?
The cardinality (number of vectors) of any basis — well-defined because all bases have equal size.
State the Dimension Theorem (invariance of basis cardinality).
Any two bases of the same finite-dimensional space have the same number of vectors.
What does the Steinitz Exchange Lemma state?
If VV is spanned by nn vectors, every linearly independent set has at most nn vectors (independent ≤ spanning).
In the exchange lemma proof, where is independence of LL used?
To guarantee some coefficient on a remaining ww is nonzero, so a ww can always be swapped out.
Does the spanning set in Steinitz need to be linearly independent?
No — it only needs to span; it may be dependent.
How do you derive the Dimension Theorem from the exchange lemma?
Apply the lemma both ways: B1B_1 indep ≤ B2B_2 spanning gives pqp≤q; reverse roles gives qpq≤p; so p=qp=q.
Why can't 4 vectors form a basis of R3\mathbb{R}^3?
R3\mathbb{R}^3 is spanned by 3 vectors, so any independent set has ≤3; 4 vectors must be dependent, hence not a basis.
dimPn\dim P_n (polynomials of degree ≤ n) =
n+1n+1 (basis {1,x,,xn}\{1,x,\dots,x^n\}).

Recall Feynman: explain to a 12-year-old

Imagine you build a LEGO castle. You can use red bricks or blue bricks, but to build that exact same castle you always need the same number of bricks. The bricks are your basis vectors, the castle is the space. No matter which color (which basis) you pick, the count of bricks is fixed — that count is the dimension. The trick to prove it: take your independent bricks and one-by-one swap them into a pile that already builds the castle; you never run out of room, which proves you can't have more independent bricks than the pile had. Do it both directions and the two counts must match.


Connections

  • Linear Independence — supplies the "some coefficient ≠ 0" step.
  • Spanning Sets — supplies the slots the lemma fills.
  • Basis of a Vector Space — the both-at-once object the theorem measures.
  • Steinitz Exchange Lemma — the engine of this proof.
  • Rank-Nullity Theorem — dimension counting in action for linear maps.
  • Coordinates and Change of Basis — why a fixed dimension lets us use coordinate vectors.

Concept Map

requires

requires

counts vectors of

swaps v's into

uses

proves

apply both ways

guarantees

justifies

states

Basis

Linearly independent

Spanning set

Dimension = basis cardinality

Steinitz Exchange Lemma

indep size <= spanning size

Invariance of basis cardinality

Dimension well-defined

all bases have equal size

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, ek vector space ke andar tum basis kai tarah se chun sakte ho — standard axes, ya tilted axes, koi farak nahi padta. Lekin kamaal ki baat yeh hai ki har basis mein vectors ki count bilkul same hoti hai. Usi fixed number ko hum dimension kehte hain. Jaise R3\mathbb{R}^3 ko represent karne ke liye humesha exactly 3 independent directions chahiye — chahe tum koi bhi 3 directions chuno.

Iska proof ek single lemma pe khada hai — Steinitz Exchange Lemma. Yeh kehta hai: agar space ko nn vectors span karte hain, toh koi bhi linearly independent set mein zyada se zyada nn vectors ho sakte hain. Simple line mein: independent ≤ spanning. Logic yeh hai — apne independent vectors ko ek-ek karke spanning pile mein ghusao, har baar ek purana vector bahar nikaal do. Jab tak tumhare paas independent vectors hain, koi na koi purana vector nikalne ke liye bachega (yahin pe independence use hoti hai). Isse saabit ho jaata hai ki independent vectors, spanning vectors se zyada nahi ho sakte.

Ab dimension theorem is lemma se turant nikal aata hai: do alag-alag bases lo, B1B_1 aur B2B_2. B1B_1 independent hai aur B2B_2 span karta hai, toh B1B2|B_1| \le |B_2|. Roles ulta karo, toh B2B1|B_2| \le |B_1|. Dono milake B1=B2|B_1| = |B_2|. Bas — har basis ka size same, aur wahi dimension hai.

Yeh kyun important hai? Kyunki iske bina "dimension" word ka koi matlab hi na hota. Yeh theorem guarantee deta hai ki dimension ek well-defined unique number hai, jisse coordinates, rank-nullity, change of basis — sab kuch consistent banta hai. Exam mein common trick: "kya 4 vectors R3\mathbb{R}^3 ka basis ban sakte hain?" — turant lemma lagao, answer NO.

Go deeper — visual, from zero

Test yourself — Linear Algebra (Full)

Connections