A spanning set might contain redundant vectors; an independent set might not reach everything. A basis is a set that does both jobs with nothing wasted. It combines spanning sets for subspaces with independence.
Key idea
Why it works
- The standard basis of $\mathbb{R}^n$: $\mathbf{e}_1, \dots, \mathbf{e}_n$.
- $\{1, t, t^{2}\}$ is a basis of $\mathbb{P}_2$: every polynomial $a + bt + ct^{2}$ is a unique combination.
- Any $n$ independent vectors in $\mathbb{R}^n$ form a basis (by the Invertible Matrix Theorem, they also span).
Worked example: Not a basis
- Three vectors in $\mathbb{R}^3$: they form a basis exactly when the matrix with these columns has 3 pivots (equivalently, nonzero determinant).
- $\det\begin{bmatrix} 1 & 0 & 2 \\ 2 & 1 & 3 \\ 1 & 1 & 1 \end{bmatrix}$ $= 1(1 - 3) - 0 + 2(2 - 1)$ $= -2 + 2$ $= 0$.
- So they are dependent: indeed $\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix} = 2\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} - \begin{bmatrix} 0 \\ 1 \\ 1 \end{bmatrix}$.
Answer: No.
Worked example: A basis for a plane
- Solve for $x$: $x = -y + z$, with $y = s$ and $z = t$ free.
- $(x, y, z)$ $= s(-1, 1, 0) + t(1, 0, 1)$.
- The two vectors span the plane and are not multiples of each other, so they are a basis.
Answer: $\{(-1, 1, 0),\ (1, 0, 1)\}$
Trimming a spanning set. If $H = \operatorname{Span}\{\mathbf{v}_1, \dots, \mathbf{v}_p\}$ and some $\mathbf{v}_k$ is a combination of the others, removing it leaves the span unchanged (anything built with $\mathbf{v}_k$ can be rebuilt without it). Keep removing until the set is independent: what is left is a basis. With a matrix, this is just "keep the pivot columns".
Bases also exist in other vector spaces. In $\mathbb{P}_2$, the set $\{1, t, t^{2}\}$ works, and so does $\{1,\ 1 + t,\ (1 + t)^{2}\}$; the second is handy for describing polynomials near $t = -1$. Choosing a basis is choosing a coordinate system, which is the subject of change of basis.
Common mistake