Basis and Dimension

Subtopic: Vector Spaces

A basis is a minimal spanning set—a collection of vectors that spans the space without any redundancy. The dimension of a vector space is the number of vectors in any basis. These concepts let us measure the "size" of infinite sets in a meaningful way: R3 R cubed is 3 3-dimensional because you need exactly 3 3 independent vectors to span it.

Introduction

How big is R3 R cubed? It contains infinitely many vectors, but in some sense it's smaller than R4 R to the fourth power. The notion of dimension captures this. You need three independent directions to reach any point in R3 R cubed, but four for R4 R to the fourth power.

A basis gives coordinates: once you fix a basis, every vector has a unique address—its coordinates relative to that basis. Different bases give different coordinate systems, but the number of coordinates (the dimension) stays the same.

Definition

Basis

A basis for a vector space V V is a set of vectors B={v1,v2,…,vn} B equals the set v sub 1 comma v sub 2 comma dot dot dot comma v sub n that is:

  1. Linearly independent: No vector is a combination of the others

  2. Spanning: Every vector in V V is a combination of the basis vectors

Equivalently, a basis is a maximal independent set, or a minimal spanning set.

Dimension

The dimension of a vector space V V, denoted dim⁢(V) dimension times V, is the number of vectors in any basis of V V.

A remarkable theorem guarantees this is well-defined: all bases of a finite-dimensional space have the same number of elements.

Geometric Interpretation

Dimension counts the degrees of freedom needed to specify a point. A line is 1 1-dimensional (one number suffices), a plane is 2 2-dimensional, and ordinary space is 3 3-dimensional.

A basis provides a coordinate system. In R2 R squared, the standard basis {(1,0),(0,1)} the set open paren 1 comma 0 close paren comma open paren 0 comma 1 close paren gives Cartesian coordinates. The basis {(1,1),(1,−1)} the set open paren 1 comma 1 close paren comma open paren 1 comma negative 1 close paren gives a different coordinate system—same plane, different addressing scheme.

Standard Bases

For Rn R to the n-th power, the standard basis is:

e1=(1,0,…,0),e2=(0,1,…,0),…,en=(0,0,…,1) e sub 1 equals open paren 1 comma 0 comma dot dot dot comma 0 close paren comma e sub 2 equals open paren 0 comma 1 comma dot dot dot comma 0 close paren comma dot dot dot comma e sub n equals open paren 0 comma 0 comma dot dot dot comma 1 close paren

Any vector (x1,x2,…,xn)=x1⁢e1+x2⁢e2+⋯+xn⁢en open paren x sub 1 comma x sub 2 comma dot dot dot comma x sub n close paren equals x sub 1 e sub 1 plus x sub 2 e sub 2 plus dot dot dot plus x sub n e sub n. The coordinates are just the components.

For the polynomial space Pn P sub n (polynomials of degree ≤n is less than or equal to n), a standard basis is {1,x,x2,…,xn} the set 1 comma x comma x squared comma dot dot dot comma x to the n-th power. Dimension: n+1 n plus 1.

For the matrix space Mm×n M sub m times n, a standard basis consists of matrices with a single 1 1 and zeros elsewhere. Dimension: m⁢n m n.

Finding a Basis

From a Spanning Set

If S S spans V V but isn't independent, remove redundant vectors:

  1. Put vectors as columns of a matrix

  2. Row reduce to find pivot columns

  3. The original vectors corresponding to pivot columns form a basis

From an Independent Set

If S S is independent but doesn't span V V, extend it:

  1. Find a vector not in span (S) S

  2. Add it to S S (the new set is still independent)

  3. Repeat until you span V V

Worked Example

Find a basis for the subspace W={(x,y,z)∈R3:x+y−z=0} W equals the set of all open paren x comma y comma z close paren in R cubed such that x plus y minus z equals 0.

Solve for one variable: z=x+y z equals x plus y. Vectors in W W have the form:

(x,y,x+y)=x⁡(1,0,1)+y⁡(0,1,1) open paren x comma y comma x plus y close paren equals x of open paren 1 comma 0 comma 1 close paren plus y of open paren 0 comma 1 comma 1 close paren

So W= W equalsspan{(1,0,1),(0,1,1)} the set open paren 1 comma 0 comma 1 close paren comma open paren 0 comma 1 comma 1 close paren .

Are these independent? Set c1⁡(1,0,1)+c2⁡(0,1,1)=(0,0,0) c sub 1 of open paren 1 comma 0 comma 1 close paren plus c sub 2 of open paren 0 comma 1 comma 1 close paren equals open paren 0 comma 0 comma 0 close paren:

c1=0 c sub 1 equals 0, c2=0 c sub 2 equals 0, c1+c2=0 c sub 1 plus c sub 2 equals 0 — only solution is c1=c2=0 c sub 1 equals c sub 2 equals 0. ✓ Independent.

Basis: {(1,0,1),(0,1,1)} the set open paren 1 comma 0 comma 1 close paren comma open paren 0 comma 1 comma 1 close paren. Dimension: 2 2.

W W is a plane (2 2D subspace of R3 R cubed).

Key Theorems

All Bases Have the Same Size

If V has a basis of n vectors, then every basis of V has exactly n vectors. This makes dimension well-defined.

Dimension Bounds

In an n n-dimensional space:

  • Any linearly independent set has at most n n vectors

  • Any spanning set has at least n n vectors

  • Any independent set of n n vectors is automatically a basis

  • Any spanning set of n n vectors is automatically a basis

Subspace Dimension

If W W is a subspace of V V, Then dim(W)≤ W is less than or equal todim(V) V, with equality if and only if W=V W equals V.

Coordinates

Given a basis B={v1,…,vn} B equals the set v sub 1 comma dot dot dot comma v sub n, every vector v∈V v is a member of V has a unique representation:

v=c1⁢v1+c2⁢v2+⋯+cn⁢vn v equals c sub 1 v sub 1 plus c sub 2 v sub 2 plus dot dot dot plus c sub n v sub n

The coefficients (c1,c2,…,cn) open paren c sub 1 comma c sub 2 comma dot dot dot comma c sub n close paren are the coordinates of v v relative to basis B B, written [v]B open bracket v close bracket sub B.

Example: In R2 R squared with basis B={(1,1),(1,−1)} B equals the set open paren 1 comma 1 close paren comma open paren 1 comma negative 1 close paren, the vector (3,1) open paren 3 comma 1 close paren has coordinates [v]B=(2,1) open bracket v close bracket sub B equals open paren 2 comma 1 close paren because (3,1)=2⁢(1,1)+1⁢(1,−1) open paren 3 comma 1 close paren equals 2 times open paren 1 comma 1 close paren plus 1 times open paren 1 comma negative 1 close paren.

Applications

In computer graphics, choosing a basis aligned with an object simplifies transformations. Local coordinates make rotation easier.

In data science, PCA finds an optimal basis where the first few coordinates capture most of the variance, enabling dimensionality reduction.

In quantum mechanics, measuring an observable corresponds to projecting onto its eigenbasis. Different bases reveal different properties.

In signal processing, different bases (Fourier, wavelet) reveal different signal features.

Summary

A basis is a linearly independent spanning set—no redundancy, full coverage. The dimension is the size of any basis (all bases have the same size). Standard bases provide natural coordinates; other bases can simplify specific problems. To find a basis for a subspace, parameterize the subspace and read off spanning vectors, then verify independence. The dimension of a subspace tells you how many free parameters determine it.