Vectors & SpacesTopic #5 of 30

Basis and Dimension

Linear independence, spanning sets, basis vectors, and dimension of vector spaces.

Overview

A basis provides a way to uniquely represent every vector in a vector space. The dimension of a space is the number of vectors in any basis.

Linear Independence

Vectors v1,v2,,vk\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k are linearly independent if:

c1v1+c2v2++ckvk=0    c1=c2==ck=0c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k = \mathbf{0} \implies c_1 = c_2 = \cdots = c_k = 0

Otherwise, they are linearly dependent.

Testing Linear Independence

Set up the equation c1v1+c2v2++ckvk=0c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k = \mathbf{0} and solve:

  • If only trivial solution (all ci=0c_i = 0): linearly independent
  • If non-trivial solution exists: linearly dependent

Span

The span of vectors v1,v2,,vk\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k is:

span{v1,v2,,vk}={c1v1+c2v2++ckvk:ciF}\text{span}\{\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k\} = \{c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k : c_i \in F\}

This is the set of all linear combinations of the vectors.

Basis

A basis for a vector space VV is a set B={v1,v2,,vn}B = \{\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_n\} that is:

  1. Linearly independent
  2. Spans VV

Properties of a Basis

  • Every vector in VV can be written uniquely as a linear combination of basis vectors
  • Removing any vector makes BB no longer span VV
  • Adding any vector makes BB linearly dependent

Standard Bases

R2\mathbb{R}^2 Standard Basis

e1=[10],e2=[01]\mathbf{e}_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix}, \quad \mathbf{e}_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix}

R3\mathbb{R}^3 Standard Basis

e1=[100],e2=[010],e3=[001]\mathbf{e}_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}, \quad \mathbf{e}_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}, \quad \mathbf{e}_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}

Rn\mathbb{R}^n Standard Basis

ei\mathbf{e}_i has 1 in position ii and 0 elsewhere.

Dimension

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

SpaceDimension
Rn\mathbb{R}^nnn
PnP_n (polynomials degree n\leq n)n+1n + 1
Mm×nM_{m \times n} (m×nm \times n matrices)m×nm \times n
{0}\{\mathbf{0}\} (zero space)0

Key Theorems

Uniqueness of Dimension

All bases for a vector space VV have the same number of vectors.

Spanning Set Theorem

If SS spans VV and dim(V)=n\dim(V) = n, then:

  • SS has at least nn vectors
  • Any nn linearly independent vectors in SS form a basis

Independence Theorem

If SS is linearly independent in VV and dim(V)=n\dim(V) = n, then:

  • SS has at most nn vectors
  • SS can be extended to a basis

Finding a Basis

For Column Space

  1. Write matrix with columns as the vectors
  2. Row reduce to echelon form
  3. The original columns corresponding to pivot columns form a basis

For Null Space

  1. Solve Ax=0A\mathbf{x} = \mathbf{0}
  2. Write solution in parametric form
  3. The vectors multiplied by free variables form a basis

Examples

Example 1: Verify Basis for R2\mathbb{R}^2

B={[11],[11]}B = \left\{\begin{bmatrix} 1 \\ 1 \end{bmatrix}, \begin{bmatrix} 1 \\ -1 \end{bmatrix}\right\}

  1. Linear Independence: c1[11]+c2[11]=0c_1\begin{bmatrix} 1 \\ 1 \end{bmatrix} + c_2\begin{bmatrix} 1 \\ -1 \end{bmatrix} = \mathbf{0}

    • c1+c2=0c_1 + c_2 = 0
    • c1c2=0c_1 - c_2 = 0
    • Only solution: c1=c2=0c_1 = c_2 = 0
  2. Spans R2\mathbb{R}^2: Any [ab]=c1[11]+c2[11]\begin{bmatrix} a \\ b \end{bmatrix} = c_1\begin{bmatrix} 1 \\ 1 \end{bmatrix} + c_2\begin{bmatrix} 1 \\ -1 \end{bmatrix}

    • c1=(a+b)/2c_1 = (a+b)/2
    • c2=(ab)/2c_2 = (a-b)/2

BB is a basis, dim(R2)=2\dim(\mathbb{R}^2) = 2.

Example 2: Dimension of Subspace

W={(x,y,z):x+y+z=0}W = \{(x, y, z) : x + y + z = 0\}

Basis: {(1,1,0),(1,0,1)}\{(-1, 1, 0), (-1, 0, 1)\}

dim(W)=2\dim(W) = 2