ConceptComplete

Basis and Dimension

A basis is a linearly independent spanning set -- the most efficient way to describe a vector space. The dimension counts the number of vectors in any basis.


Definition

Definition1.8Basis

A subset β={v1,v2,…,vn}\beta = \{v_1, v_2, \ldots, v_n\} of a vector space VV is a basis for VV if:

  1. β\beta is linearly independent, and
  2. span(β)=V\text{span}(\beta) = V.

Equivalently, β\beta is a basis if and only if every vector v∈Vv \in V can be written uniquely as

v=a1v1+a2v2+⋯+anvnv = a_1 v_1 + a_2 v_2 + \cdots + a_n v_n

for some scalars a1,…,an∈Fa_1, \ldots, a_n \in F. The scalars aia_i are called the coordinates of vv with respect to β\beta.

RemarkUniqueness of coordinates

The uniqueness of the representation v=∑aiviv = \sum a_i v_i is equivalent to linear independence. If there were two representations v=∑aivi=∑biviv = \sum a_i v_i = \sum b_i v_i, then ∑(ai−bi)vi=0\sum (a_i - b_i) v_i = 0, and independence forces ai=bia_i = b_i for all ii.


Examples of bases

ExampleStandard basis for F^n

The standard basis for FnF^n is {e1,e2,…,en}\{e_1, e_2, \ldots, e_n\} where eie_i has 11 in position ii and 00 elsewhere. Every (a1,…,an)=a1e1+⋯+anen(a_1, \ldots, a_n) = a_1 e_1 + \cdots + a_n e_n uniquely.

ExampleNon-standard basis for R^2

{(1,1),(1,−1)}\{(1, 1), (1, -1)\} is a basis for R2\mathbb{R}^2. To express (a,b)(a, b):

(a,b)=a+b2(1,1)+a−b2(1,−1).(a, b) = \frac{a+b}{2}(1, 1) + \frac{a-b}{2}(1, -1).

The change-of-coordinates formula gives unique coefficients.

ExampleStandard basis for P_n(F)

{1,x,x2,…,xn}\{1, x, x^2, \ldots, x^n\} is the standard basis for Pn(F)P_n(F). Every polynomial of degree at most nn is a0+a1x+⋯+anxna_0 + a_1 x + \cdots + a_n x^n uniquely. So dim⁡Pn(F)=n+1\dim P_n(F) = n + 1.

ExampleStandard basis for M_{m x n}(F)

The matrices EijE_{ij} (with 11 in position (i,j)(i,j) and 00 elsewhere) form the standard basis for Mm×n(F)M_{m \times n}(F). There are mnmn such matrices, so dim⁡Mm×n(F)=mn\dim M_{m \times n}(F) = mn.

ExampleBasis for symmetric 2 x 2 matrices

Sym2(R)\text{Sym}_2(\mathbb{R}) has basis

{(1000),  (0110),  (0001)},\left\{\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix},\; \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix},\; \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}\right\},

so dim⁡Sym2(R)=3\dim \text{Sym}_2(\mathbb{R}) = 3. In general, dim⁡Symn(F)=n(n+1)/2\dim \text{Sym}_n(F) = n(n+1)/2.

ExampleBasis for trace-zero matrices

The subspace W={A∈M2×2(F)∣tr(A)=0}W = \{A \in M_{2 \times 2}(F) \mid \text{tr}(A) = 0\} has basis

{(100−1),  (0100),  (0010)},\left\{\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix},\; \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix},\; \begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix}\right\},

so dim⁡W=3=4−1=dim⁡M2×2(F)−1\dim W = 3 = 4 - 1 = \dim M_{2 \times 2}(F) - 1.

ExampleBasis for a solution space

The solution space of x+2y−z=0x + 2y - z = 0 in R3\mathbb{R}^3 has parametrization (x,y,z)=s(−2,1,0)+t(1,0,1)(x, y, z) = s(-2, 1, 0) + t(1, 0, 1) and thus basis {(−2,1,0),(1,0,1)}\{(-2, 1, 0), (1, 0, 1)\} with dimension 2.

ExampleBasis for C over R

{1,i}\{1, i\} is a basis for C\mathbb{C} as a vector space over R\mathbb{R}, so dim⁡RC=2\dim_{\mathbb{R}} \mathbb{C} = 2. But {1}\{1\} is a basis for C\mathbb{C} over C\mathbb{C}, so dim⁡CC=1\dim_{\mathbb{C}} \mathbb{C} = 1.

ExampleLagrange interpolation basis

For distinct points c0,c1,…,cn∈Fc_0, c_1, \ldots, c_n \in F (with ∣F∣>n|F| > n), the Lagrange polynomials

Li(x)=∏j≠ix−cjci−cjL_i(x) = \prod_{j \neq i} \frac{x - c_j}{c_i - c_j}

form a basis for Pn(F)P_n(F). They satisfy Li(cj)=δijL_i(c_j) = \delta_{ij}, so the coordinates of p(x)p(x) with respect to this basis are simply p(c0),p(c1),…,p(cn)p(c_0), p(c_1), \ldots, p(c_n).

ExampleBernstein basis

The Bernstein polynomials Bi,n(x)=(ni)xi(1−x)n−iB_{i,n}(x) = \binom{n}{i} x^i (1-x)^{n-i} for i=0,1,…,ni = 0, 1, \ldots, n form another basis for Pn(R)P_n(\mathbb{R}). They are used extensively in computer-aided geometric design (Bezier curves).

ExampleInfinite-dimensional spaces

P(F)P(F) has basis {1,x,x2,x3,…}\{1, x, x^2, x^3, \ldots\} (infinite but countable). C[0,1]C[0,1] is infinite-dimensional: for any nn, the functions 1,x,x2,…,xn1, x, x^2, \ldots, x^n are linearly independent, so dim⁡C[0,1]≥n\dim C[0,1] \geq n for all nn.

ExampleCoordinate vectors

With respect to the basis β={(1,1),(1,−1)}\beta = \{(1, 1), (1, -1)\} of R2\mathbb{R}^2, the vector v=(5,3)v = (5, 3) has coordinate vector [v]β=(4,1)[v]_\beta = (4, 1) because v=4(1,1)+1(1,−1)v = 4(1, 1) + 1(1, -1).


Dimension

Definition1.9Dimension

A vector space VV is finite-dimensional if it has a finite spanning set. The dimension of a finite-dimensional vector space VV, denoted dim⁡V\dim V (or dim⁡FV\dim_F V), is the number of vectors in any basis for VV.

A vector space that is not finite-dimensional is infinite-dimensional.

Theorem1.6Every basis has the same size

If VV is a finite-dimensional vector space, then any two bases for VV have the same number of elements. Thus the dimension is well-defined.

This theorem is a consequence of the Replacement Theorem.

Theorem1.7Basis existence and extension

Let VV be a finite-dimensional vector space.

  1. Every spanning set contains a basis (by removing redundant vectors).
  2. Every linearly independent set can be extended to a basis (by adding vectors).
  3. If W⊆VW \subseteq V is a subspace, then dim⁡W≤dim⁡V\dim W \leq \dim V, with equality iff W=VW = V.

Dimension tables

Vector spaceStandard basisDimension
FnF^ne1,…,ene_1, \ldots, e_nnn
Pn(F)P_n(F)1,x,…,xn1, x, \ldots, x^nn+1n + 1
Mm×n(F)M_{m \times n}(F)EijE_{ij}mnmn
Symn(F)\text{Sym}_n(F)Eii,  Eij+EjiE_{ii},\; E_{ij}+E_{ji}n(n+1)/2n(n+1)/2
Skewn(F)\text{Skew}_n(F)Eij−EjiE_{ij}-E_{ji} (i < j)n(n−1)/2n(n-1)/2
Un(F)U_n(F) (upper triangular)EijE_{ij} (i≤ji \leq j)n(n+1)/2n(n+1)/2
Dn(F)D_n(F) (diagonal)EiiE_{ii}nn
RemarkLooking ahead

The concept of basis gives rise to coordinate systems, which connect abstract vector spaces to the concrete space FnF^n. This connection is formalized through the notion of isomorphism: every nn-dimensional vector space over FF is isomorphic to FnF^n.