A matrix carries one plane onto another. Watch which part of each point arrives, and which part vanishes.
Where a matrix sends everything
A = [1 2; 3 6]: the input plane, and the output plane.
Where things start, and where they land. Each plane is split by two lines at a right angle.
Describe this picture
Two planes side by side (one above the other on a phone) for the matrix . The input plane shows two lines through the origin at a right angle, marked: the row line, in the direction , and the null line, in the direction . The output plane shows the column line, direction , and the left null line, direction , also at a right angle. The input point is drawn as its two parts, tip to tail: along the row line and along the null line. Then 25 grid points travel from the input plane to the output plane, each to times itself, and all of them land on the column line; lands on , marked with an arrow along the column line: the part along the row line lands on the column line, and the part along the null line vanishes. Readouts give the two parts and the landing point. One control, once the clip has finished: drag the input point, or move it with the arrow keys in steps of half a unit.
Two planes
The matrix at the top of the page is
Its second column is twice the first, so every output is a multiple of : . The whole input plane lands on one line. Its rank is 1.
So two things happen to an input. Some of it arrives on the line of , and some of it is lost. This page sorts out exactly which part is which. The answer uses four subspaces, two on each side of the matrix.
Column space and null space
You have met two of them. The column space , from Vector spaces and subspaces, is every output: here the line of , on the output side. The null space , from The null space, is every input sent to zero: here the line of , on the input side, since .
For an matrix of rank , the column space has dimension and lives in . The null space has dimension and lives in .
Row space and left null space
The other two come from the rows. The row space is the span of the rows. The rows of , the transpose from Transposes and permutations, are the columns of and the other way round, so the row space is the column space of the transpose, . Here the rows are and , and , so the row space is the line of , on the input side.
The left null space is the null space of the transpose, : the vectors with . Transpose both sides and this says : the entries of are weights that combine the rows of into zero. Here , so the left null space is the line of , on the output side. The name comes from standing on the left of .
Watch out
The row space is not the column space. Here the rows point along and the columns along : two different lines, in two different planes. The row space lives with the inputs, and the column space with the outputs.
Right angles
Look at the input plane in the picture. The row line and the null line cross at a right angle. That always happens, and the reason is one line long. says that every row of , dotted with , gives 0. By Length and the dot product, that makes perpendicular to every row, and so to every combination of rows. In symbols, with for “perpendicular to”:
The same argument on the transpose puts the other pair at a right angle, on the output side:
Here and .
The trip across
Now follow one input. Every point of the input plane splits into a part on the row line and a part on the null line, which I write . The point is
The matrix sends the null part to zero and the row part onto the column line:
Drag the input point in the picture and watch its two parts. Slide it along the null line and the image does not move at all. Slide it along the row line and the image runs along the column line. Two different points of the row line never land on the same output, so the matrix carries the row space onto the column space one to one. Everything that is lost is the null part.
Dimensions add up
The row space has the same dimension as the column space: . Elimination only mixes rows, so it never changes their span, and the rows with pivots in the reduced form are a basis of the row space. There are of them. So for an matrix of rank :
| Subspace | Symbol | Lives in | Dimension |
|---|---|---|---|
| column space | , outputs | ||
| left null space | , outputs | ||
| row space | , inputs | ||
| null space | , inputs |
On each side the two dimensions add up to the whole space: for the inputs and for the outputs. For the matrix at the top, and , so every one of the four is a line.
Worked example
1. The matrix of the null space page. has , , . Row space: dimension 2. Null space: , the two special solutions. Column space: 2, so all of . Left null space: , only , since the two rows are independent.
2. A matrix. has , , . Row space: 2, all of . Null space: 0. Column space: 2, the plane . Left null space: , the line of , since
It is perpendicular to both columns: and .
3. Counting. A matrix of rank 2 has a row space of dimension 2. A matrix of rank 3 has a left null space of dimension .
Predict before you drag: where does land? At , the same place as .
Where you’ll meet this
Checking measurements. Suppose three sensors report , and , and the physics says , as for above. Every possible clean reading lies in , so it is perpendicular to the left null vector : . A reading that fails this check holds an error. Left null vectors are the checks that consistent data must pass.
The best answer when there is none. When has no solution, the closest output leaves an error that is perpendicular to the column space, so the error lies in the left null space. That is the idea behind least squares, the method that fits a line to scattered data.
Rank-one images. A rank-one matrix of pixel values is one column times one row: every row of the image is a multiple of the same row. Such an image is a plaid: horizontal bands times vertical bands, and a photo can be built up as a sum of a few rank-one pieces.
Reference card
| Quantity | Formula | Notes |
|---|---|---|
| Column space | , dimension | outputs, in |
| Null space | , dimension | inputs sent to , in |
| Row space | , dimension | span of the rows, in |
| Left null space | , dimension | , in |
| Inputs | ||
| Outputs | ||
| The trip | , | the row space maps one to one onto the column space |