Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Basis and dimension

Independent spanning sets, the common size of bases and counting tests.

A basis is a set that both spans and is independent, so every vector has exactly one representation in it. This page proves that all bases of a space have the same size, defines that size as the dimension and uses dimension to recognise bases by counting.

Bases give unique representations

[DEFINITION]

Span

For a subset SS (possibly infinite) in a vector space VV over FF, the span of SS is the set of all finite linear combinations of vectors in SS:

span⁡(S)={λ1v1+⋯+λkvk:k≥0, v1,…,vk∈S, λ1,…,λk∈F}.\operatorname{span}(S) = \left\{ \lambda_1v_1+\cdots+\lambda_kv_k: k\geq 0,\ v_1,\ldots,v_k\in S,\ \lambda_1,\ldots,\lambda_k\in F \right\}.

For a finite set S={v1,…,vn}S=\{v_1,\ldots,v_n\}, this is the same as allowing one coefficient for each listed vector. When k=0k=0, the sum is the empty sum 00.

[DEFINITION]

Linear independence

Let SS be a subset of a vector space over FF. The set SS is linearly independent if every finite list of distinct vectors u1,…,un∈Su_1,\ldots,u_n\in S has the property that, for scalars λ1,…,λn∈F\lambda_1,\ldots,\lambda_n\in F,

λ1u1+⋯+λnun=0\lambda_1u_1+\cdots+\lambda_nu_n=0

implies

λ1=⋯=λn=0.\lambda_1=\cdots=\lambda_n=0.
[DEFINITION]

Basis

A set BB in a vector space VV is a basis for VV if it is linearly independent and spans VV.

Spanning gives a representation for every vector in VV and independence makes it unique, as shown in linear independence. A basis is therefore a generating set with no redundant direction: removing any basis vector destroys spanning.

For an infinite set, span still uses finite linear combinations and independence means that every finite subset is independent. The calculations below use finite bases.

[THEOREM]

Representation in a basis

If B={u1,…,un}B=\{u_1,\ldots,u_n\} is a basis for VV, then every vector v∈Vv\in V has a unique representation

v=λ1u1+⋯+λnun,λ1,…,λn∈F.v=\lambda_1u_1+\cdots+\lambda_nu_n, \qquad \lambda_1,\ldots,\lambda_n\in F.
[PROOF]

Because BB spans VV, at least one representation of vv exists. If

v=λ1u1+⋯+λnun=μ1u1+⋯+μnun,v=\lambda_1u_1+\cdots+\lambda_nu_n =\mu_1u_1+\cdots+\mu_nu_n,

then subtracting the two expressions gives

(λ1−μ1)u1+⋯+(λn−μn)un=0.(\lambda_1-\mu_1)u_1+\cdots+(\lambda_n-\mu_n)u_n=0.

Independence of BB forces every λj−μj\lambda_j-\mu_j to be zero, so the representation is unique.

[EXAMPLE]

A basis of R3\mathbb R^3

Consider

B={(102),(0−11),(−210)}.B=\left\{ \begin{pmatrix}1\\0\\2\end{pmatrix}, \begin{pmatrix}0\\-1\\1\end{pmatrix}, \begin{pmatrix}-2\\1\\0\end{pmatrix} \right\}.

The matrix with these vectors as columns row reduces to I3I_3, so its columns are linearly independent and span R3\mathbb R^3. Thus BB is a basis for R3\mathbb R^3.

[EXAMPLE]

A basis for a generated subspace

Let

S={(12),(−21),(11),(−1−2)}.S=\left\{ \begin{pmatrix}1\\2\end{pmatrix}, \begin{pmatrix}-2\\1\end{pmatrix}, \begin{pmatrix}1\\1\end{pmatrix}, \begin{pmatrix}-1\\-2\end{pmatrix} \right\}.

The first two columns are leading columns when the matrix formed from SS is row reduced. They are independent and the remaining vectors are redundant, so

{(12),(−21)}\left\{ \begin{pmatrix}1\\2\end{pmatrix}, \begin{pmatrix}-2\\1\end{pmatrix} \right\}

is a basis for span⁡(S)\operatorname{span}(S).

[EXAMPLE]

A basis of P1P_1

For p=a0+a1xp=a_0+a_1x, write

p=λ1(1+x)+λ2(x+2).p=\lambda_1(1+x)+\lambda_2(x+2).

Equating coefficients gives

λ1+2λ2=a0,λ1+λ2=a1.\lambda_1+2\lambda_2=a_0, \qquad \lambda_1+\lambda_2=a_1.

The coefficient matrix has determinant −1-1, so this system has a unique solution for every a0,a1a_0,a_1. Therefore {1+x,x+2}\{1+x,x+2\} spans P1P_1 and is linearly independent, so it is a basis.

[routine]

  1. [1]:Basis
  2. [2]:Span
  3. [3]:Linear independence

Why dimension is well defined

A spanning set can never be smaller than an independent set in the same space. This single comparison shows that all bases have the same size.

[THEOREM]

Spanning sets count against independent sets

Let SS and LL be finite subsets of a vector space VV. If span⁡(S)=V\operatorname{span}(S)=V and LL is linearly independent, then

∣S∣≥∣L∣.|S|\geq |L|.
[PROOF]

Because SS spans VV, each vector of LL is a linear combination ℓj=∑iaijsi\ell_j=\sum_i a_{ij}s_i of the vectors in SS. Suppose ∣L∣>∣S∣|L|>|S|. The coefficient matrix A=(aij)A=(a_{ij}) then has more columns than rows, so Ac=0Ac=0 has a non-zero solution c=(cℓ)ℓ∈Lc=(c_\ell)_{\ell\in L}. This relation lifts to ∑jcjℓj=∑i(∑jaijcj)si=0\sum_j c_j\ell_j=\sum_i(\sum_j a_{ij}c_j)s_i=0, that is,

∑ℓ∈Lcℓℓ=0,\sum_{\ell\in L}c_\ell\ell=0,

which contradicts the linear independence of LL. Hence ∣S∣≥∣L∣|S|\geq|L|.

[THEOREM]

All bases have the same size

Any two finite bases of a vector space contain the same number of vectors.

[PROOF]

If B1B_1 and B2B_2 are bases, the counting theorem gives ∣B1∣≥∣B2∣|B_1|\geq|B_2| by taking B1B_1 as the spanning set and B2B_2 as the independent set. Reversing their roles gives ∣B2∣≥∣B1∣|B_2|\geq|B_1|, so the cardinalities are equal.

This result covers every basis of a space with a finite basis B0B_0, because no basis of such a space can be infinite. An infinite basis would contain a finite subset LL with more than ∣B0∣|B_0| vectors. That subset is independent, while B0B_0 spans VV, which contradicts the counting theorem.

[DEFINITION]

Dimension

If a vector space VV has a finite basis, then VV is finite-dimensional and its dimension, denoted dim⁡(V)\dim(V), is the common number of vectors in all bases of VV.

The zero vector space has the empty basis, so dim⁡({0})=0\dim(\{0\})=0. If VV has no finite basis, it is called infinite-dimensional. For example, P(R)P(\mathbb R) is infinite-dimensional: no finite list of polynomials can span polynomials of arbitrarily high degree.

Using dimension to recognise a basis

Once the dimension is known, a set with the right number of vectors needs only one of the two basis checks.

[THEOREM]

Counting with dimension

Let VV be finite-dimensional.

  1. If a set SS of nn vectors spans VV, then n≥dim⁡(V)n\geq\dim(V). If n=dim⁡(V)n=\dim(V), then SS is a basis.
  2. If a set SS of mm vectors is linearly independent in VV, then m≤dim⁡(V)m\leq\dim(V). If m=dim⁡(V)m=\dim(V), then SS is a basis.
[PROOF]

Compare SS with a basis BB of VV in the preceding counting theorem. When SS spans, taking SS as the spanning set and BB as the independent set gives ∣S∣≥∣B∣=dim⁡(V)|S|\ge|B|=\dim(V). If equality holds but SS is dependent, one vector can be removed without changing its span. That would give a spanning set with fewer than dim⁡(V)\dim(V) vectors, a contradiction.

When SS is independent, take BB as the spanning set and SS as the independent set to get ∣S∣≤dim⁡(V)|S|\le\dim(V). If equality holds but SS does not span, adjoining a vector outside its span gives an independent set with more than dim⁡(V)\dim(V) vectors, again a contradiction.

[COROLLARY]

Two properties and the dimension are enough

For a set SS of nn vectors in a finite-dimensional vector space VV, any two of the following imply that SS is a basis for VV:

  • SS is linearly independent;
  • SS spans VV;
  • n=dim⁡(V)n=\dim(V).
[EXAMPLE]

Standard bases and dimensions

The standard basis of R2\mathbb R^2 is

{(10),(01)}.\left\{ \begin{pmatrix}1\\0\end{pmatrix}, \begin{pmatrix}0\\1\end{pmatrix} \right\}.

The standard polynomial basis is {1,x,…,xn}\{1,x,\ldots,x^n\} for Pn(R)P_n(\mathbb R). For M2×2(R)M_{2\times2}(\mathbb R), the standard matrix basis is

{(1000),(0100),(0010),(0001)}.\left\{ \begin{pmatrix}1&0\\0&0\end{pmatrix}, \begin{pmatrix}0&1\\0&0\end{pmatrix}, \begin{pmatrix}0&0\\1&0\end{pmatrix}, \begin{pmatrix}0&0\\0&1\end{pmatrix} \right\}.

More generally, the standard bases give

dim⁡(Rn)=n,dim⁡(Pn(R))=n+1,dim⁡(Mm×n(R))=mn.\dim(\mathbb R^n)=n, \qquad \dim(P_n(\mathbb R))=n+1, \qquad \dim(M_{m\times n}(\mathbb R))=mn.

Each count is the number of free coefficients: a polynomial in Pn(R)P_n(\mathbb R) has n+1n+1 coefficients and an m×nm\times n matrix has one for each of its mnmn entries.

[routine]

  1. [1]:Dimension
[EXAMPLE]

Counting prevents spanning

Two polynomials cannot span P2(R)P_2(\mathbb R), because

2<dim⁡(P2(R))=3.2<\dim(P_2(\mathbb R))=3.

Likewise, three polynomials in P1(R)P_1(\mathbb R) must be linearly dependent, since

3>dim⁡(P1(R))=2.3>\dim(P_1(\mathbb R))=2.

Coordinates and bases constructs bases from data and records the unique coefficients.

On this page