Skip to content

What is a basis, and what is dimension?

5 min read

Short answer

A basis of a vector space is a list of vectors that is both linearly independent and spanning: nothing is redundant and everything is reachable. Every vector then has exactly one set of coordinates in that basis. The dimension is the number of vectors in a basis, and every basis of the same space has the same number.

Diagrame1e2b1b2(2, 3)
The same plane has many bases. In {e1, e2} the point is (2, 3); in {b1, b2} the same point has different coordinates (2.5 and 0.5).

Two conditions, one idea

Spanning says you have enough vectors; independence says you have no extras. A basis is the exact amount. Three vectors in R2\mathbb R^2 cannot be independent; one vector in R2\mathbb R^2 cannot span. So R2\mathbb R^2 has dimension 2, R3\mathbb R^3 has dimension 3, and the polynomials of degree at most 3 have dimension 4 (basis 1,x,x2,x31,x,x^2,x^3).

Finding a basis for a subspace

Describe the subspace with free parameters, then pull out one vector per parameter. The vectors you get are independent by construction and span the set, so they are a basis, and the number of free parameters is the dimension.

Worked example

Find a basis and the dimension of W={(x,y,z):x+y+z=0}W=\{(x,y,z):x+y+z=0\}.

Solve for x=−y−zx=-y-z with y,zy,z free: (x,y,z)=(−y−z, y, z)=y(−1,1,0)+z(−1,0,1).(x,y,z)=(-y-z,\ y,\ z)=y(-1,1,0)+z(-1,0,1). So {(−1,1,0),(−1,0,1)}\{(-1,1,0),(-1,0,1)\} spans WW. They are not multiples of each other, so they are independent. Basis found, and dim⁡W=2\dim W=2, matching the idea that WW is a plane.

Try it yourself

What is the dimension of the space of 2×22\times2 symmetric matrices?

Show the answer
  1. A symmetric matrix has the form (abbc)=a(1000)+b(0110)+c(0001)\begin{pmatrix}a&b\\b&c\end{pmatrix}=a\begin{pmatrix}1&0\\0&0\end{pmatrix}+b\begin{pmatrix}0&1\\1&0\end{pmatrix}+c\begin{pmatrix}0&0\\0&1\end{pmatrix}, three free parameters and three independent matrices.

Keep going with practice

Bases, coordinates and dimension are covered in Vidi's Linear Algebra & Probability course with interactive examples.