Euler Hall — free maths guides

Count the dimension as the number of vectors in a basis

Read the dimension off the pivot count of the matrix whose columns are the vectors. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The definition, and the two counts that are not the answer

Dimension ofVV = the number of vectors in a basis ofVV.

Two numbers that are not the dimension, and are confused with it constantly:

| Number | Why it is not the dimension | |---|---| | the number of vectors you were handed | a spanning list may contain redundant vectors | | the ambientnn inRn\mathbb{R}^n |VV may be much smaller than the space it lives in |

The number that is the dimension: the count of pivots when you reduce the matrix whose columns are your vectors. Each pivot is one independent direction, and each independent direction is one basis vector.

Why the pivot count is the dimension

LetAA have the vectors as columns. Its column space is exactly the spanVV, and the pivot columns ofAA are a basis ofC(A)C(A): they are independent (each contributes a pivot) and they span (every free column is a combination of the pivots). A basis ofVV therefore has one vector per pivot. So

dim⁡V=number of pivots=rank⁡A.\dim V = \text{number of pivots} = \operatorname{rank} A.

Same statement, three spellings. The dimension of a span is the rank of the matrix you built from its vectors — which is why "rank" and "dimension" are the same number viewed from different sides: rank belongs to the matrix, dimension belongs to the space.

Dimension of a solution set

LetA=[12010013]A=\begin{bmatrix}1&2&0&1\\0&0&1&3\end{bmatrix}. The solutions ofAx=0A\mathbf{x}=\mathbf{0} form a subspace ofR4\mathbb{R}^4. Find its dimension.

Step 1 — how many columns? Four. Son=4n=4.

Step 2 — how many pivots? The matrix is already reduced: column 1 has a pivot, column 2 does not, column 3 does, column 4 does not. Two pivots, sor=2r=2.

Step 3 — subtract. The dimension isn−r=4−2=2n - r = 4 - 2 = 2. There are two free variables,x2x_2 andx4x_4.

Step 4 — sanity check. Each free variable produces exactly one special solution, so two free variables means two basis vectors, which means dimension 2. Consistent.

The two special solutions are(−2,1,0,0)(-2,1,0,0) and(−1,0,−3,1)(-1,0,-3,1), and they are indeed independent. You did not need them to answer the question.

The sentence a marker wants: AA is2×42\times4 with two pivots, so there are two free variables and the nullspace has dimension4−2=24-2=2."

By the end you can
  • Read the dimension off the pivot count of the matrix whose columns are the vectors
  • Compute the dimension of a solution set as columns minus pivots
  • Distinguish the dimension of a span from the number of vectors that span it
Test yourself

VV is spanned by(1,0,1)(1,0,1),(0,1,1)(0,1,1),(1,1,2)(1,1,2) and(2,1,3)(2,1,3) inR3\mathbb{R}^3.

(a) What isdim⁡V\dim V? (b) How many of the four vectors are redundant? (c) IsVV all ofR3\mathbb{R}^3?

Work it before opening the answer.

Answers

(a) Put them in the columns of a3×43\times4 matrix. Notice that(1,1,2)=(1,0,1)+(0,1,1)(1,1,2) = (1,0,1)+(0,1,1) and(2,1,3)=2(1,0,1)+(0,1,1)(2,1,3) = 2(1,0,1)+(0,1,1). Columns 3 and 4 are free, so the pivot count is 2 anddim⁡V=2\dim V = 2.

(b)4−2=24 - 2 = 2 vectors are redundant.

(c) No.dim⁡V=2<3\dim V = 2 < 3, soVV is a plane, not the whole space. (It is the planex+y−z=0x + y - z = 0; each vector satisfies it.)

What was being tested: whether you reduced rather than counted, and whether you compared the answer with the ambient dimension rather than assuming it.

Work out where to start — free, no accountAnswer six real questions — free, no account