Skip to content
VidiMaster it, module by module
Module 1/Vector Spaces & Subspaces

Basis

A basis is the smallest set of vectors that still describes an entire space: linearly independent (no redundancy) and spanning (nothing left out). This lesson shows how to recognize a basis, why every basis of Rn\mathbb{R}^n has exactly nn vectors, and how to test a given set fast.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

True or False: the set {(1,2), (2,4)}\{(1,2),\,(2,4)\} is a basis of R2\mathbb{R}^2.

Compute the determinant of the matrix whose columns are (1,1)(1,1) and (1,−1)(1,-1). (A nonzero value confirms these two vectors form a basis of R2\mathbb{R}^2.)

What you’ll be able to do

  • State the definition of a basis as a set that is both linearly independent and spanning.
  • Write down the standard basis of Rn\mathbb{R}^n and explain why it qualifies.
  • Determine how many vectors any basis of Rn\mathbb{R}^n must contain.
  • Decide whether a given set of vectors is a basis of R2\mathbb{R}^2 or R3\mathbb{R}^3.
  • Use the determinant / invertibility criterion to confirm a basis quickly.

In your course

· MATH2015 · Linear Algebra & Probability
§2.4 Bases, Dimension, and Coordinates
  • Definition 2.6Basis: spanning + linearly independent
  • Theorem 2.3Basis as an optimal spanning set
    If VV is nn-dimensional: (a) any set of more than nn vectors is linearly dependent; (b) no set of fewer than nn vectors spans VV; (c) nn vectors form a basis iff they span VV; (d) nn vectors form a basis iff they are linearly independent.
  • Proposition 2.2Basis ⟺ unique representation
1

Intuition: a basis is a coordinate system

Think of a basis as a minimal set of building blocks for a space. In the plane R2\mathbb{R}^2, the two arrows (1,0)(1,0) (pointing right) and (0,1)(0,1) (pointing up) let you reach any point: the point (3,−2)(3,-2) is just 33 steps right and 22 steps down, i.e. (3,−2)=3 (1,0)+(−2) (0,1).(3,-2) = 3\,(1,0) + (-2)\,(0,1). Two properties make this work, and a basis is exactly the set that has both:

  • Nothing is wasted (independence). None of the building blocks is redundant — you cannot build one of them out of the others. If you tried to use (1,0)(1,0) and (2,0)(2,0), the second adds no new direction, so you could never leave the xx-axis.
  • Nothing is missing (spanning). The building blocks are enough to reach every vector in the space. Using only (1,0)(1,0) you can reach the xx-axis but never (0,1)(0,1).

When both hold, every vector has exactly one recipe in terms of the basis. Those unique numbers (3,−2)(3,-2) above are the coordinates of the vector. A basis is what turns an abstract space into a grid you can do arithmetic on.

2

The formal definition

Let VV be a vector space (for us, usually V=RnV=\mathbb{R}^n). A set of vectors B={v1,v2,…,vk}B = \{v_1, v_2, \dots, v_k\} in VV is a basis of VV if:

  1. BB is linearly independent: the only scalars c1,…,ckc_1,\dots,c_k with c1v1+c2v2+⋯+ckvk=0c_1 v_1 + c_2 v_2 + \cdots + c_k v_k = \mathbf{0} are c1=c2=⋯=ck=0c_1 = c_2 = \cdots = c_k = 0. (Here 0\mathbf{0} is the zero vector and the cic_i are real numbers.)
  2. BB spans VV: every vector w∈Vw \in V can be written as some combination w=c1v1+c2v2+⋯+ckvk.w = c_1 v_1 + c_2 v_2 + \cdots + c_k v_k.

Put together, these guarantee the key payoff: unique representation. Every w∈Vw \in V equals c1v1+⋯+ckvkc_1 v_1 + \cdots + c_k v_k for one and only one choice of scalars. Spanning gives at least one way; independence forbids a second way. A quick consequence: the zero vector can never belong to a basis, since any set containing 0\mathbf{0} is automatically dependent (take 1⋅0=01\cdot\mathbf{0}=\mathbf 0).

3

Bases of $\mathbb{R}^n$ and the magic number $n$

The most familiar basis of Rn\mathbb{R}^n is the standard basis {e1,e2,…,en}\{e_1, e_2, \dots, e_n\}, where eie_i is the vector with a 11 in position ii and 00 everywhere else. For R3\mathbb{R}^3: e1=[100],e2=[010],e3=[001].e_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix},\quad e_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix},\quad e_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}. These are clearly independent and clearly span, so they form a basis.

The deep fact is that the count never changes: every basis of Rn\mathbb{R}^n has exactly nn vectors. This number nn is the dimension of the space. Two useful shortcuts follow for Rn\mathbb{R}^n:

  • Fewer than nn vectors can never span Rn\mathbb{R}^n (too few to reach everything).
  • More than nn vectors are always dependent (too many to avoid redundancy).

So only a set of exactly nn vectors has any chance of being a basis of Rn\mathbb{R}^n. And when you have exactly nn of them, the two conditions collapse into one: for nn vectors in Rn\mathbb{R}^n, linearly independent   ⟺  \iff spanning. Checking either one is enough.

4

How to check if a set is a basis

Given a candidate set in Rn\mathbb{R}^n, run this checklist:

Step 1 — Count. How many vectors? If it is not exactly nn, stop: it is not a basis (too few to span, or too many to be independent).

Step 2 — Test the nn vectors. Place the nn vectors as the columns of an n×nn\times n matrix AA. Then the set is a basis of Rn\mathbb{R}^n if and only if AA is invertible, which you can detect by det⁡(A)≠0.\det(A) \neq 0. A nonzero determinant means the columns are independent (and therefore spanning), so they form a basis. A zero determinant means they are dependent, so they do not.

Example of the quick test. Is {(2,1),(4,2)}\{(2,1),(4,2)\} a basis of R2\mathbb{R}^2? Form A=[2412]A=\begin{bmatrix} 2 & 4 \\ 1 & 2 \end{bmatrix}. Then det⁡(A)=2⋅2−4⋅1=0\det(A) = 2\cdot 2 - 4\cdot 1 = 0, so it is not a basis — indeed (4,2)=2(2,1)(4,2) = 2(2,1). This determinant test is the workhorse for every basis question in Rn\mathbb{R}^n.

Definition of a Basis

A set B={v1,…,vk}B=\{v_1,\dots,v_k\} in a vector space VV is a basis of VV if (1) BB is linearly independent and (2) BB spans VV. Equivalently, BB is a basis iff every vector in VV can be written as a linear combination of the viv_i in exactly one way.

Intuition. A basis is a set of building blocks with no redundancy (independence) and no gaps (spanning). The combination of both is precisely what makes every vector's coordinates unique.
Invariance of Dimension

If VV has a finite basis, then every basis of VV has the same number of vectors. For V=RnV=\mathbb{R}^n, that number is nn, and nn is called the dimension of the space.

Intuition. You cannot describe the same space with a different number of independent building blocks — too few leave gaps, too many create redundancy. The count is a fixed fingerprint of the space, nn for Rn\mathbb{R}^n.
Invertible Matrix Characterization of a Basis

Let v1,…,vn∈Rnv_1,\dots,v_n \in \mathbb{R}^n and let AA be the n×nn\times n matrix with these vectors as its columns. Then {v1,…,vn}\{v_1,\dots,v_n\} is a basis of Rn\mathbb{R}^n if and only if AA is invertible, i.e. det⁡(A)≠0\det(A)\neq 0.

Intuition. Invertibility packages 'independent' and 'spanning' into one computable check. A nonzero determinant certifies the columns point in genuinely different directions and together fill out all of Rn\mathbb{R}^n.

Worked examples

Example 1

Determine whether {(1,2), (3,5)}\{(1,2),\,(3,5)\} is a basis of R2\mathbb{R}^2.

  1. 1

    Step 1 — Count the vectors. We have 22 vectors in R2\mathbb{R}^2, so n=2n=2 and the count matches. A set of exactly nn vectors in Rn\mathbb{R}^n can be a basis, so it is worth testing further. (Had we been given 11 or 33 vectors, we could stop immediately.)

  2. 2

    Step 2 — Build the matrix. Place the two vectors as the columns of a 2×22\times 2 matrix: A=[1325].A = \begin{bmatrix} 1 & 3 \\ 2 & 5 \end{bmatrix}. The first column is (1,2)(1,2) and the second is (3,5)(3,5).

  3. 3

    Step 3 — Compute the determinant. For a 2×22\times2 matrix [abcd]\begin{bmatrix} a & b \\ c & d \end{bmatrix}, the determinant is ad−bcad-bc. Here det⁡(A)=(1)(5)−(3)(2)=5−6=−1.\det(A) = (1)(5) - (3)(2) = 5 - 6 = -1.

  4. 4

    Step 4 — Interpret. Since det⁡(A)=−1≠0\det(A) = -1 \neq 0, the matrix is invertible, so by the Invertible Matrix Characterization the columns are linearly independent. Because we have exactly n=2n=2 independent vectors in R2\mathbb{R}^2, they automatically span R2\mathbb{R}^2 as well.

  5. 5

    Step 5 — Conclude. Both basis conditions hold, so {(1,2),(3,5)}\{(1,2),(3,5)\} is a basis of R2\mathbb{R}^2.

Answer. Yes — det⁡[1325]=−1≠0\det\begin{bmatrix}1&3\\2&5\end{bmatrix} = -1 \neq 0, so the set is a basis of R2\mathbb{R}^2.
Example 2

Is {(1,1,0), (0,1,1), (1,0,1)}\{(1,1,0),\,(0,1,1),\,(1,0,1)\} a basis of R3\mathbb{R}^3?