Skip to content

Basis and dimension

Define a basis as an independent spanning set, define dimension as the number of vectors in a basis, and read bases for the column space and null space off the reduced row echelon form.

It opens on

A plane needs two arrows to reach every point. Could one arrow ever be enough, could three ever be needed, and how do you pick exactly the right ones out of the four columns of a matrix?

Why it matters

A basis is the smallest complete description of a space of vectors, so it is how data are compressed, coordinates are chosen and the size of a solution set is counted.

Good to know first

  • Linear independence: c₁v₁ + … + cₖvₖ = 0 only for c = 0
  • span: all combinations
  • reduced row echelon form, pivot and free columns, and the null space as special solutions

Step by step

  1. What a basis is

    Define a basis by two requirements, spanning and independence, and see in the plane why one vector is too few and three too many.

    The arrow b₁ = (2, 1) is independent, but its span is only the line through it, so it is not a basis of the plane: too few.

    A common mix-up

    A space has only one basis.

    In fact: Any two independent vectors form a basis of the plane; (1, 0), (0, 1) is just the most familiar.

  2. Dimension of a plane in space

    Define dimension as the number of vectors in a basis, check that it does not depend on the basis, and find a basis of a plane in ℝ³ from spanning vectors.

    ℝⁿ has the standard basis e₁, …, eₙ, so dim ℝⁿ = n; a line through 0 has dimension 1 and a plane through 0 has dimension 2.

    A common mix-up

    The dimension of the plane in ℝ³ is 3 because it sits in ℝ³.

    In fact: Dimension counts independent directions inside the plane, which is 2.

  3. Bases from the echelon form

    Read a basis of C(A) from the pivot columns of A and a basis of N(A) from the special solutions, and check that the dimensions add up to n.

    Row reduce A = [[1, 2, 1, 2], [0, 0, 1, 1], [1, 2, 0, 1]]: row 3 minus row 1 plus row 2 is zero, and R = [[1, 2, 0, 1], [0, 0, 1, 1], [0, 0, 0, 0]].

    A common mix-up

    Take the pivot columns of the reduced matrix R as the basis of the column space.

    In fact: Take the pivot columns of the original A; R's columns are in a different space.

Try it

Do (1, 2) and (3, 4) form a basis of ℝ²?Answer

Yes; they are independent, since 1·4 − 2·3 = −2 ≠ 0

Hint: Neither is a multiple of the other

Is {(1, 0, 0), (0, 1, 0)} a basis of ℝ³?Answer

No; it is independent but spans only the xy-plane

Hint: Can it reach (0, 0, 1)?

Give a basis of the null space of the 1 × 3 matrix [1, 1, 1].Answer

(−1, 1, 0) and (−1, 0, 1)

Hint: Free variables y and z, with x = −y − z

For a basis, is the pair of weights (1, 2) for w the only one?Answer

Yes; two different weight lists would subtract to a nontrivial combination equal to 0, against independence.

Which of the four columns can be dropped without shrinking the span?Answer

a₂ = 2a₁ and a₄ = a₁ + a₃; a₁ and a₃ must stay.

Basis and dimension

30 minutes every month. No card.