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.
Describe this picture
The plane with its usual square grid and a point at . Two arrows, and , 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 and one of , tip to tail, reach the point, and a readout gives its coordinates on the new grid: . One control, once the clip has finished: drag the tip of , or move it with the arrow keys in steps of 0.1. As it nears the line of 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, and . The point means 5 steps of the first and 4 of the second. Nothing forces those two arrows. With and the same point is
so on the slanted grid its address is : 2 steps of , 1 of . The point did not move. Only the grid changed, and the address changed with it.
Now drag toward the line of and watch the readout. With the address of is . With it is . 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 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, . A combination with weights is . If one vector is a mix of the others, move it to the other side and you get a combination equal to with weights that are not all zero. So the vectors are independent exactly when has only the solution . In the words of the null space page:
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 , and 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.
- is a basis of the plane, the standard basis. So is .
- In the standard basis is , where has a 1 in place and 0 elsewhere.
- The plane of Vector spaces and subspaces has the basis , .
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 had two, and . Subtract: . The basis is independent, so , and the two addresses are the same. The numbers in are the coordinates of 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).
Describe this picture
The plane with both grids drawn faintly, the square one and the one of and . Four points light up in turn, , , and . Each is reached two ways, by a dashed path along the axes and by a step of followed by a step of , and two readouts give its coordinates in the standard basis and in the basis . For they read and . 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 .
Here is why, in . Put vectors in a matrix with rows. Each row holds at most one pivot, so there are at most pivots.
- If , some column has no pivot, so there is a free variable and the vectors are dependent.
- If , there are at most pivots, fewer than rows, so elimination leaves a zero row and some targets can’t be reached: the vectors don’t span.
So a basis of has exactly vectors, and . The same counting gives the dimensions of the subspaces of a matrix. The pivot columns of are a basis of its column space, so , the rank. The null space has dimension , as on the page about the null space.
Worked example
1. Dependent. , with weights , 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 , , and the point :
Work from the bottom: , then gives , then gives . The coordinates are .
3. A basis of a plane. Any point of is . For the point the coordinates are : .
4. The slanted grid. : coordinates .
5. Counting. Five vectors in can’t be independent. A matrix of rank 4 has a null space of dimension .
In signal processing · a basis of waves
Four samples can be written in another basis made of waves: , , and . Sample of these, counting from , is , , and . A single impulse has coordinates in this basis. Check sample 0: ; samples 1 to 3 give , and . 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 is entry .
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
| Quantity | Formula | Notes |
|---|---|---|
| Independent | only for | ; a pivot in every column |
| Basis | independent and spanning | many bases for one space |
| Standard basis | has a 1 in place | |
| Coordinates | unique for a basis; belong to the basis | |
| Dimension | = the size of any basis | |
| Too many | more than vectors in | always dependent |
| Too few | fewer than vectors in | never span |
| Subspaces of | , | is the rank |