Math Core

Lesson 4.4 · Vector Spaces

Dimension

A plane has many different bases, but every one of them has exactly two vectors. That number does not depend on which basis you choose, so it measures something intrinsic about the space itself: its dimension. Dimension turns vague phrases like "a line's worth" or "a plane's worth" of solutions into precise numbers.

Every basis has the same size

The whole idea rests on one fact about independence.

Too many vectors are dependent

If a vector space VV has a basis with nn vectors, then any set in VV containing more than nn vectors is linearly dependent. Consequently, every basis of VV has exactly nn vectors.

Here is why. Let B={b1,…,bn}\mathcal{B} = \lbrace \mathbf{b}_1, \dots, \mathbf{b}_n \rbrace be a basis and take vectors u1,…,up\mathbf{u}_1, \dots, \mathbf{u}_p in VV with p>np > n. Each uj\mathbf{u}_j is a combination of the basis vectors, so write uj=a1jb1+⋯+anjbn\mathbf{u}_j = a_{1j}\mathbf{b}_1 + \cdots + a_{nj}\mathbf{b}_n and collect the coefficients into an n×pn \times p matrix M=[aij]M = [a_{ij}]. Because MM has more columns than rows, Mc=0M\mathbf{c} = \mathbf{0} has a nontrivial solution c\mathbf{c}. Then

c1u1+⋯+cpup=∑i=1n(∑j=1paijcj)bi=0,c_1\mathbf{u}_1 + \cdots + c_p\mathbf{u}_p = \sum_{i=1}^{n} \Big( \sum_{j=1}^{p} a_{ij}c_j \Big)\mathbf{b}_i = \mathbf{0},

a nontrivial dependence. For the second claim, if C\mathcal{C} is another basis, it can't have more than nn vectors (it is independent), and by the same argument with the roles swapped B\mathcal{B} can't have more vectors than C\mathcal{C}. So both have nn.

Definition

Dimension

If VV is spanned by a finite set, VV is finite-dimensional, and its dimension, written dim⁡V\dim V, is the number of vectors in any basis of VV. The dimension of the zero space {0}\lbrace \mathbf{0} \rbrace is defined to be 00. If VV is not spanned by any finite set, it is infinite-dimensional.

Counting standard bases gives the dimensions of the familiar spaces:

  • dim⁡Rn=n\dim \mathbb{R}^n = n (the basis e1,…,en\mathbf{e}_1, \dots, \mathbf{e}_n).
  • dim⁡Pn=n+1\dim \mathbb{P}_n = n + 1 (the basis 1,t,…,tn1, t, \dots, t^n has n+1n + 1 vectors).
  • dim⁡Mm×n=mn\dim M_{m \times n} = mn (one matrix with a single 11 in each position).
  • The space of all polynomials is infinite-dimensional: any finite set of polynomials has a maximum degree, so it can't span.

Common mistake

dim⁡Pn\dim \mathbb{P}_n is n+1n + 1, not nn. The constant term counts. For example, P3\mathbb{P}_3 has the basis {1,t,t2,t3}\lbrace 1, t, t^2, t^3 \rbrace, so dim⁡P3=4\dim \mathbb{P}_3 = 4.

Subspaces of R^3

Dimension sorts the subspaces of R3\mathbb{R}^3 cleanly:

  • 0-dimensional: only {0}\lbrace \mathbf{0} \rbrace.
  • 1-dimensional: spanned by one nonzero vector, so lines through the origin.
  • 2-dimensional: spanned by two independent vectors, so planes through the origin.
  • 3-dimensional: three independent vectors in R3\mathbb{R}^3 span all of R3\mathbb{R}^3.

A subspace HH of a finite-dimensional space VV always satisfies dim⁡H≤dim⁡V\dim H \le \dim V, and any independent set in HH can be extended to a basis of HH.

The basis theorem

In general you must check both independence and spanning to confirm a basis. Once you know the dimension, one of them is enough.

The basis theorem

Let VV have dimension p≥1p \ge 1.

  • Any linearly independent set of exactly pp vectors in VV is a basis.
  • Any set of exactly pp vectors that spans VV is a basis.

For instance, you showed in the previous lesson that three polynomials in P2\mathbb{P}_2 were independent. Since dim⁡P2=3\dim \mathbb{P}_2 = 3, they automatically span P2\mathbb{P}_2.

Dimensions of Nul A and Col A

The bases you built in the last lesson make these dimensions easy to count.

Counting with pivots

For an m×nm \times n matrix AA:

  • dim⁡Nul⁡A\dim \operatorname{Nul} A is the number of free variables in Ax=0A\mathbf{x} = \mathbf{0}.
  • dim⁡Col⁡A\dim \operatorname{Col} A is the number of pivot columns of AA.

Since every column is either a pivot column or corresponds to a free variable, these two numbers add up to nn. The next lesson makes this into a theorem.

Worked example: Dimension of a solution set

Find the dimension of H={(x1,x2,x3,x4):x1+x2−x3+2x4=0}H = \lbrace (x_1, x_2, x_3, x_4) : x_1 + x_2 - x_3 + 2x_4 = 0 \rbrace.

HH is Nul⁡A\operatorname{Nul} A for the 1×41 \times 4 matrix A=[11−12]A = \begin{bmatrix} 1 & 1 & -1 & 2 \end{bmatrix}. There is one pivot and three free variables (x2,x3,x4x_2, x_3, x_4), so dim⁡H=3\dim H = 3. Geometrically, HH is a 3-dimensional "hyperplane" in R4\mathbb{R}^4.

Worked example: Dimension of a parametrized subspace

Find the dimension of the subspace HH of R4\mathbb{R}^4 consisting of all vectors

[a+2b+3c2a+4b+6cb+ca+b+2c],a,b,c real.\begin{bmatrix} a + 2b + 3c \\ 2a + 4b + 6c \\ b + c \\ a + b + 2c \end{bmatrix}, \qquad a, b, c \text{ real}.

Split by parameter: H=Span⁡{v1,v2,v3}H = \operatorname{Span}\lbrace \mathbf{v}_1, \mathbf{v}_2, \mathbf{v}_3 \rbrace with

v1=[1201],v2=[2411],v3=[3612].\mathbf{v}_1 = \begin{bmatrix} 1 \\ 2 \\ 0 \\ 1 \end{bmatrix}, \quad \mathbf{v}_2 = \begin{bmatrix} 2 \\ 4 \\ 1 \\ 1 \end{bmatrix}, \quad \mathbf{v}_3 = \begin{bmatrix} 3 \\ 6 \\ 1 \\ 2 \end{bmatrix}.

Three parameters do not guarantee dimension 33. Here v3=v1+v2\mathbf{v}_3 = \mathbf{v}_1 + \mathbf{v}_2, so v3\mathbf{v}_3 can be dropped. The remaining two vectors are independent (neither is a multiple of the other: every multiple of v1\mathbf{v}_1 has third entry 00, and the only multiple of v2\mathbf{v}_2 with third entry 00 is the zero vector). So {v1,v2}\lbrace \mathbf{v}_1, \mathbf{v}_2 \rbrace is a basis and dim⁡H=2\dim H = 2.

Tip

When a subspace is described by parameters, the dimension is at most the number of parameters. It equals that number only if the spanning vectors are independent. Row reducing the matrix [ v1  ⋯  vp ][\,\mathbf{v}_1 \;\cdots\; \mathbf{v}_p\,] and counting pivots settles it.

Practice

Practice 1

What is dim⁡P4\dim \mathbb{P}_4?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

What is the dimension of M2×3M_{2 \times 3}, the space of 2×32 \times 3 matrices?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Find the dimension of the subspace of R4\mathbb{R}^4 defined by x1−x3=0x_1 - x_3 = 0 and x2+x4=0x_2 + x_4 = 0.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Find dim⁡Span⁡{(1,2,−1),(2,4,−2),(0,1,3),(1,3,2)}\dim \operatorname{Span}\lbrace (1, 2, -1), (2, 4, -2), (0, 1, 3), (1, 3, 2) \rbrace.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

AA is a 5×85 \times 8 matrix with 33 pivot columns. What is dim⁡Nul⁡A\dim \operatorname{Nul} A?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

SS is a set of 55 polynomials in P3\mathbb{P}_3. Which statement must be true?

Practice 7

Let H={p∈P3:p(1)=0}H = \lbrace p \in \mathbb{P}_3 : p(1) = 0 \rbrace. Find dim⁡H\dim H.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.