Home › Linear Functions › Lesson 2

Vector Spaces, Bases and Dimension

Lesson 2 of 12

Key idea of this section

Every spanning set of V contains a basis; every independent set extends to one
Steinitz exchange:  |independent set| ≤ |spanning set|
Hence all bases have the same size, dim V

Vector spaces and subspaces

A vector space over F is a set V with an addition and a scalar multiplication satisfying the familiar eight axioms (associativity and commutativity of addition, a zero vector, additive inverses, and the distributive and unital laws for scalars). A subset U ⊆ V is a subspace if it contains 0 and is closed under addition and scalar multiplication. Examples include ℝⁿ; the space Pₙ of real polynomials of degree at most n; the space Mm×n of m × n matrices; the space C[0, 1] of continuous functions; and the solution set of any homogeneous linear system or homogeneous linear differential equation. The solution set of an inhomogeneous system Ax = b with b ≠ 0 is not a subspace but an affine subspace: a translate x₀ + ker A of a subspace, as we shall see in Lesson 6.

Span, independence, basis

The span of a set S ⊆ V is the set of all finite linear combinations of elements of S; it is the smallest subspace containing S. A set S is linearly independent if the only finite linear combination of distinct elements of S equal to 0 is the trivial one. A basis is an independent spanning set. Equivalently, B is a basis exactly when every v ∈ V can be written as a linear combination of elements of B in exactly one way; the coefficients are the coordinates of v with respect to B.

Lemma 2.1 (Steinitz exchange lemma)

Suppose u₁, …, uₖ are linearly independent in V and w₁, …, wₘ span V. Then k ≤ m, and after renumbering the wⱼ, the list u₁, …, uₖ, wₖ₊₁, …, wₘ also spans V.

Proof. Induct on k; the case k = 0 is trivial. Assume the statement for k − 1, so (after renumbering) u₁, …, uₖ₋₁, wₖ, …, wₘ spans V, and k − 1 ≤ m. Write uₖ = a₁u₁ + ⋯ + aₖ₋₁uₖ₋₁ + bₖwₖ + ⋯ + bₘwₘ. If all the bⱼ were zero (including the case where there are no w's left, that is k − 1 = m), uₖ would be a combination of u₁, …, uₖ₋₁, contradicting independence. Hence k ≤ m and some bⱼ ≠ 0; renumber so that bₖ ≠ 0. Solving for wₖ expresses it as a combination of u₁, …, uₖ, wₖ₊₁, …, wₘ, so this new list spans everything the old list spanned, namely V. ∎

Theorem 2.2 (Dimension)

If V has a finite spanning set, then V has a finite basis, and all bases of V have the same number of elements, called the dimension dim V. Moreover any independent set in V extends to a basis, and any spanning set contains a basis.

Proof. A spanning set can be pruned to a basis: repeatedly discard a vector that is a combination of the others; the process stops at an independent spanning set. If B and B′ are bases, Lemma 2.1 applied in both directions gives |B| ≤ |B′| and |B′| ≤ |B|. If u₁, …, uₖ is independent and w₁, …, wₘ is a basis, the lemma produces a spanning list u₁, …, uₖ, wₖ₊₁, …, wₘ of length m = dim V; a spanning list of length dim V is a basis (otherwise pruning would give a basis that is too short). ∎

Examples of dimension

dim ℝⁿ = n                  dim Pₙ = n + 1     (basis 1, x, …, xⁿ)
dim Mm×n = mn             dim of symmetric n × n matrices = n(n + 1)/2
dim {y : y″ + y = 0} = 2     (basis cos t, sin t)
dim of ℝ over ℚ = the cardinality of the continuum (infinite)

For spaces without a finite spanning set, Zorn's lemma shows that every vector space has a basis and that any two bases have the same cardinality. These infinite-dimensional "algebraic" bases are rarely useful in analysis, where one prefers topological notions such as Schauder bases or orthonormal bases of a Hilbert space, in which infinite convergent sums are allowed.

Exercise

  • (a)
    Find the dimension of U = {p ∈ P₃ : p(1) = 0}.
  • (b)
    Are (1, 2, 3), (4, 5, 6), (7, 8, 9) linearly independent in ℝ³? If not, give an explicit dependence.
  • (c)
    Find the dimension of the space of 3 × 3 symmetric matrices and of 3 × 3 skew-symmetric matrices.
Show solution

Answers: (a) dim U = 3: U is the kernel of the nonzero functional p ↦ p(1) on the 4-dimensional space P₃ (rank–nullity, Lesson 3), and a basis is x − 1, x² − 1, x³ − 1. (b) No: (7, 8, 9) = 2(4, 5, 6) − (1, 2, 3), that is (1, 2, 3) − 2(4, 5, 6) + (7, 8, 9) = 0. (c) Symmetric: 3·4/2 = 6. Skew-symmetric: 3·2/2 = 3. Together 6 + 3 = 9 = dim M₃ₓ₃, reflecting the decomposition A = ½(A + Aᵀ) + ½(A − Aᵀ).

V.3.1