Skip to content

Independence, basis and dimension

Draw a grid of your own with two arrows, read a point’s coordinates on it, and see why every basis of a space has the same size.

Helps to know firstThe null space

Helps to know first
This topic

First, the picture

Two arrows can draw a grid of their own. Watch the plane’s grid change underneath a point that stays still.

A new grid for the same plane

Two arrows that do not lie on one line make a grid of their own.

A point at (5, 4) on the usual square grid.

coordinates on the new grid
–
0.00 / 7.50 s
Describe this picture

The plane with its usual square grid and a point at (5,4)(5,4). Two arrows, v1=(2,1)\mathbf{v}_1=(2,1) and v2=(1,2)\mathbf{v}_2=(1,2), grow from the origin. A second grid of slanted cells, made of steps of the two arrows, fades in while the square grid fades out; the point stays where it is. Then two steps of v1\mathbf{v}_1 and one of v2\mathbf{v}_2, tip to tail, reach the point, and a readout gives its coordinates on the new grid: (2,1)(2,1). One control, once the clip has finished: drag the tip of v2\mathbf{v}_2, or move it with the arrow keys in steps of 0.1. As it nears the line of v1\mathbf{v}_1 the cells squash flat and the coordinates grow large; on the line the grid collapses and the readout says there are none.

A grid of your own

The usual grid is built from two arrows, e1=(1,0)\mathbf{e}_1=(1,0) and e2=(0,1)\mathbf{e}_2=(0,1). The point (5,4)(5,4) means 5 steps of the first and 4 of the second. Nothing forces those two arrows. With v1=(2,1)\mathbf{v}_1=(2,1) and v2=(1,2)\mathbf{v}_2=(1,2) the same point is

(5,4)=2 (2,1)+1 (1,2),(5,4)=2\,(2,1)+1\,(1,2),

so on the slanted grid its address is (2,1)(2,1): 2 steps of v1\mathbf{v}_1, 1 of v2\mathbf{v}_2. The point did not move. Only the grid changed, and the address changed with it.

Now drag v2\mathbf{v}_2 toward the line of v1\mathbf{v}_1 and watch the readout. With v2=(1.5,1)\mathbf{v}_2=(1.5,1) the address of (5,4)(5,4) is (−2,6)(-2,6). With v2=(1.8,1)\mathbf{v}_2=(1.8,1) it is (−11,15)(-11,15). The cells are so thin that it takes huge steps back and forth to reach the point. On the line itself both arrows point the same way, and the grid can’t reach (5,4)(5,4) at all.

Independent

What went wrong on the line is that one arrow became a mix of the other. A set of vectors is independent when no vector in it is a combination of the others. Each one adds a new direction.

There is a cleaner test. Put the vectors side by side as the columns of a matrix, V=[ v1 ⋯ vn ]\mathbf{V}=[\,\mathbf{v}_1\ \cdots\ \mathbf{v}_n\,]. A combination with weights c=(c1,…,cn)\mathbf{c}=(c_1,\dots,c_n) is Vc\mathbf{V}\mathbf{c}. If one vector is a mix of the others, move it to the other side and you get a combination equal to 0\mathbf{0} with weights that are not all zero. So the vectors are independent exactly when Vc=0\mathbf{V}\mathbf{c}=\mathbf{0} has only the solution c=0\mathbf{c}=\mathbf{0}. In the words of the null space page:

independent⟺N(V)={0}.\text{independent}\quad\Longleftrightarrow\quad N(\mathbf{V})=\{\mathbf{0}\}.

By The null space, that means no free columns: a pivot in every column, so the rank equals the number of vectors.

Watch out

“Independent” does not mean “no two are parallel”. That works for two vectors only. The three arrows (1,0,0)(1,0,0), (0,1,0)(0,1,0) and (1,1,0)(1,1,0) are pairwise not parallel, yet the third is the sum of the first two, so the three are dependent. They span only the floor plane.

Basis

A basis of a space is a set of vectors that is independent and spans the space. Spanning means every point can be reached; independent means no arrow is wasted.

  • e1,e2\mathbf{e}_1,\mathbf{e}_2 is a basis of the plane, the standard basis. So is v1,v2\mathbf{v}_1,\mathbf{v}_2.
  • In Rn\mathbb{R}^n the standard basis is e1,…,en\mathbf{e}_1,\dots,\mathbf{e}_n, where eq\mathbf{e}_q has a 1 in place qq and 0 elsewhere.
  • The plane x+y+z=0x+y+z=0 of Vector spaces and subspaces has the basis (1,−1,0)(1,-1,0), (0,1,−1)(0,1,-1).

A subspace has many bases. A basis is a choice of grid, and the grid is yours to choose.

Coordinates are unique

Given a basis, every point has exactly one address. Suppose a point x\mathbf{x} had two, x=Vc\mathbf{x}=\mathbf{V}\mathbf{c} and x=Vd\mathbf{x}=\mathbf{V}\mathbf{d}. Subtract: V(c−d)=0\mathbf{V}(\mathbf{c}-\mathbf{d})=\mathbf{0}. The basis is independent, so c−d=0\mathbf{c}-\mathbf{d}=\mathbf{0}, and the two addresses are the same. The numbers in c\mathbf{c} are the coordinates of x\mathbf{x} in that basis.

Coordinates belong to the basis as much as to the point. In the next picture the same points are counted on two grids at once.

Same plane, different counts

Each point has one address on the square grid and another on the grid of v_1 and v_2.

Both grids at once: the square one, and the one of v_1 = (2, 1) and v_2 = (1, 2).

standard coordinates
–
in the basis v_1, v_2
–
0.00 / 10.00 s
Describe this picture

The plane with both grids drawn faintly, the square one and the one of v1=(2,1)\mathbf{v}_1=(2,1) and v2=(1,2)\mathbf{v}_2=(1,2). Four points light up in turn, (5,4)(5,4), (3,0)(3,0), (0,3)(0,3) and (−1,1)(-1,1). Each is reached two ways, by a dashed path along the axes and by a step of v1\mathbf{v}_1 followed by a step of v2\mathbf{v}_2, and two readouts give its coordinates in the standard basis and in the basis v1,v2\mathbf{v}_1,\mathbf{v}_2. For (5,4)(5,4) they read (5,4)(5,4) and (2,1)(2,1). There is no control.

Watch each point’s two readouts. The point is one place; its two addresses differ because the grids differ.

Dimension

Every basis of the plane has two vectors, and every basis of space has three. That is not a coincidence: every basis of a space has the same number of vectors. That number is the dimension of the space, written dim⁡\dim.

Here is why, in Rn\mathbb{R}^n. Put kk vectors in a matrix with nn rows. Each row holds at most one pivot, so there are at most nn pivots.

  • If k>nk>n, some column has no pivot, so there is a free variable and the vectors are dependent.
  • If k<nk<n, there are at most kk pivots, fewer than nn rows, so elimination leaves a zero row and some targets can’t be reached: the vectors don’t span.

So a basis of Rn\mathbb{R}^n has exactly nn vectors, and dim⁡Rn=n\dim\mathbb{R}^n=n. The same counting gives the dimensions of the subspaces of a matrix. The pivot columns of A\mathbf{A} are a basis of its column space, so dim⁡C(A)=r\dim C(\mathbf{A})=r, the rank. The null space has dimension n−rn-r, as on the page about the null space.

Worked example

1. Dependent. (1,2,3)+(2,3,4)−(3,5,7)=(0,0,0)(1,2,3)+(2,3,4)-(3,5,7)=(0,0,0), with weights 1,1,−11,1,-1, not all zero. The three vectors are dependent, and the matrix with them as columns has rank 2.

2. Coordinates in a basis of space. Take the basis (1,0,0)(1,0,0), (1,1,0)(1,1,0), (1,1,1)(1,1,1) and the point (3,2,1)(3,2,1):

c1(1,0,0)+c2(1,1,0)+c3(1,1,1)=(c1+c2+c3,  c2+c3,  c3)=(3,2,1).\begin{aligned} &c_1(1,0,0)+c_2(1,1,0)+c_3(1,1,1)\\ &\quad=(c_1+c_2+c_3,\;c_2+c_3,\;c_3)\\ &\quad=(3,2,1). \end{aligned}

Work from the bottom: c3=1c_3=1, then c2+1=2c_2+1=2 gives c2=1c_2=1, then c1+2=3c_1+2=3 gives c1=1c_1=1. The coordinates are (1,1,1)(1,1,1).

3. A basis of a plane. Any point (x1,x2,x3)(x_1,x_2,x_3) of x1+x2+x3=0x_1+x_2+x_3=0 is x1(1,−1,0)+(x1+x2)(0,1,−1)x_1(1,-1,0)+(x_1+x_2)(0,1,-1). For the point (2,1,−3)(2,1,-3) the coordinates are (2,3)(2,3): 2(1,−1,0)+3(0,1,−1)=(2,1,−3)2(1,-1,0)+3(0,1,-1)=(2,1,-3).

4. The slanted grid. (5,4)=2(2,1)+1(1,2)(5,4)=2(2,1)+1(1,2): coordinates (2,1)(2,1).

5. Counting. Five vectors in R4\mathbb{R}^4 can’t be independent. A 4×64\times6 matrix of rank 4 has a null space of dimension 6−4=26-4=2.

In signal processing · a basis of waves

Four samples can be written in another basis made of waves: (1,1,1,1)(1,1,1,1), (1,0,−1,0)(1,0,-1,0), (0,1,0,−1)(0,1,0,-1) and (1,−1,1,−1)(1,-1,1,-1). Sample nn of these, counting from n=0n=0, is 11, cos⁡(πn/2)\cos(\pi n/2), sin⁡(πn/2)\sin(\pi n/2) and cos⁡(πn)\cos(\pi n). A single impulse (4,0,0,0)(4,0,0,0) has coordinates (1,2,0,1)(1,2,0,1) in this basis. Check sample 0: 1+2+0+1=41+2+0+1=4; samples 1 to 3 give 1+0+0−1=01+0+0-1=0, 1−2+0+1=01-2+0+1=0 and 1+0+0−1=01+0+0-1=0. This basis is a real-valued form of The DFT, in the signal processing course: its coordinates are the amounts of each frequency. Vector entries count from 1, so sample nn is entry n+1n+1.

Where you’ll meet this

Sinusoids as a basis. Fourier’s idea is a change of basis: write a signal in a basis of sinusoids instead of a basis of single samples. Decomposing signals splits signals into simpler pieces that add back up to them, and a basis is the case where the pieces are fixed and the weights are unique.

Image compression. A JPEG image cuts a photo into blocks of 8 by 8 pixels, 64 numbers each. It writes each block in a basis of 64 cosine patterns instead of 64 single pixels. In that basis most coordinates of a smooth block are small, and those can be stored roughly or dropped.

Reference card

QuantityFormulaNotes
IndependentVc=0\mathbf{V}\mathbf{c}=\mathbf{0} only for c=0\mathbf{c}=\mathbf{0}N(V)={0}N(\mathbf{V})=\{\mathbf{0}\}; a pivot in every column
Basisindependent and spanningmany bases for one space
Standard basise1,…,en\mathbf{e}_1,\dots,\mathbf{e}_neq\mathbf{e}_q has a 1 in place qq
Coordinatesx=Vc\mathbf{x}=\mathbf{V}\mathbf{c}unique for a basis; belong to the basis
Dimensiondim⁡\dim = the size of any basisdim⁡Rn=n\dim\mathbb{R}^n=n
Too manymore than nn vectors in Rn\mathbb{R}^nalways dependent
Too fewfewer than nn vectors in Rn\mathbb{R}^nnever span
Subspaces of A\mathbf{A}dim⁡C(A)=r\dim C(\mathbf{A})=r, dim⁡N(A)=n−r\dim N(\mathbf{A})=n-rrr is the rank

Keep reading with a free account.

By creating an account you accept the terms of use.

Sign in

Already have an account? Use the service you signed up with.

Or keep reading: get new lessons by email

Are you 13 or over?

Accounts and email updates are for people aged 13 or over. We keep only your answer, never your date of birth.

End of the lesson

Where to go next.

Phasorium

Account

Sign inKeep your place on any device

Subjects

Site

Look