Some inputs a matrix sends to zero. Watch a whole line of points in space fall into the origin and light up.
The inputs a matrix erases
A = [1 0 1; 0 1 1; 1 1 2] moves every point of space. Which points land on 0?
A loose cloud of points in space.
Describe this picture
A slowly turning view of 3-D space. A loose cloud of points fades in, then a line through the origin in the direction , with thirteen points marked on it. The matrix then moves every point straight toward : the cloud squashes flat, and the marked points of the line slide together until all of them sit on the origin, which lights up. The plane the outputs lie on, where the third entry is the sum of the first two, then fades in. A readout follows where the point is, ending at . There is no control.
What a matrix erases
The matrix at the top of the page has a quiet habit. Its third row is the sum of the first two, so every output has its third entry equal to the sum of the first two. All of space lands on one plane, and something has to be lost on the way.
What is lost is a direction. Try the input :
Every multiple of it goes to zero too, since . That is the line that falls into the origin in the picture. Two inputs that differ by a point of this line give the same output, so from the output alone you can’t tell them apart.
The null space
The set of every input that a matrix sends to zero is its null space:
It is a subspace, as in Vector spaces and subspaces. If and , then , and . The zero vector is always in it.
Watch out
The null space and the column space live on opposite sides of the matrix. For an matrix, the null space is made of inputs, vectors with entries. The column space is made of outputs, with entries. In the picture, the line that vanishes is on the input side, and the flat plane everything lands on is the column space, on the output side.
Finding it: reduced row echelon form
To find the null space, solve . Elimination, from Elimination, does the work. Subtracting a multiple of one equation from another never changes the solutions, and the right-hand side stays all zeros, so I only need to track the matrix.
Take a wider example, with two equations and four unknowns:
Clear below the first pivot: row 2 row 2 row 1 gives . The second column now has 0 where a pivot would go, so the next pivot is the 1 in column 3. Then go one step further than elimination usually goes: clear above that pivot too, with row 1 row 1 row 2, which gives . The result is
This is the reduced row echelon form of , written . Its rules are simple:
- each row’s first nonzero entry is a 1, its pivot;
- each pivot sits to the right of the pivot above it;
- every other entry in a pivot’s column is 0;
- any all-zero rows sit at the bottom.
Columns 1 and 3 hold pivots: they are the pivot columns. Columns 2 and 4 have none: they are the free columns, and , are the free variables. The number of pivots is the rank of the matrix, written . Here .
Special solutions
Read back as equations:
Each equation has one pivot variable, and the free variables may be anything. So choose the free variables, and the pivot variables follow: and .
The simplest choices set one free variable to 1 and the others to 0. Each gives one special solution:
- , : then , , so .
- , : then , , so .
Any other choice of and is a mix of these two, so
where and run over all numbers.
Special solutions
Reduce A, find its free columns, and build one solution of Ax = 0 for each.
A = [1 2 1 3; 2 4 3 8] as cells.
Describe this picture
The matrix as a grid of cells. Row 2 lights up and changes to , row 2 minus 2 times row 1; then row 1 changes to , row 1 minus row 2, and the grid is labelled . The pivot cells, in columns 1 and 3, are outlined and marked “pivot”; columns 2 and 4 are shaded and marked “free”. Then each special solution is built as a column beside the grid: first its free entries, a 1 and a 0, then its pivot entries, taken from the free column with their signs changed. They read and . There is no control.
Watch where the pivot entries of each special solution come from. They are the free column of with its signs changed: column 2 is and gives , ; column 4 is and gives , .
Dimension
A line through the origin has one free direction, and a plane has two. The number of free directions of a subspace is its dimension, written . Independence, basis and dimension makes this exact; here the count is easy.
Each free variable gives one special solution, and none of them is a mix of the others: each has a 1 where the others have 0. So the null space has one direction per free column. There are columns, and of them hold pivots, so
For the example, : the null space is a plane inside . For the matrix at the top, the reduced form is , with rank 2 and one free column, so its null space is the line of , and .
In signal processing · aliasing
Sampling is a linear map: it takes a signal to its samples , with , and the samples of a sum are the sums of the samples. At kHz, a 1 kHz cosine and a 9 kHz cosine give the same samples, because for every whole number . So their difference is sent to all zeros: it lies in the null space of sampling. Sampling and aliasing, in the signal processing course, is the study of that null space. Samples count from , while matrix entries count from 1.
Worked example
1. The matrix. Reduce to : pivots in columns 1 and 3, free variables and . The special solutions are and . Check them on the original matrix:
Four columns, rank 2, two free variables: .
2. The matrix. Row 1 plus row 2 gives row 3, so elimination leaves a zero row and rank 2. The free variable is , and .
3. A matrix. reduces to . The free variable is ; setting it to 1 gives , so the null space is all multiples of .
4. Counting. A matrix of rank 3 has free variables, so its null space has dimension 2. A square matrix with a pivot in every column, the opposite of the singular case in Elimination, has no free variables, so its null space is alone.
Predict before you watch again: how many points of the line through land at the origin? All of them.
Where you’ll meet this
Aliasing. The tones that sampling can’t tell apart differ by a signal in its null space, as the callout above shows.
Currents round a loop. In a circuit, a current that flows round a closed loop adds nothing at any node. Such loop currents form a null space, and Graphs and networks finds them.
Balancing a reaction. Burning propane: molecules of and of give of and of . Counting each kind of atom on both sides gives three equations with zero on the right: carbon , hydrogen , oxygen . The null space is the line of : one propane and five oxygen give three carbon dioxide and four water.
Reference card
| Quantity | Formula | Notes |
|---|---|---|
| Null space | inputs sent to zero; a subspace of | |
| Reduced form | pivots are 1, zeros above and below each pivot | |
| Rank | the number of pivots | |
| Free variables | one per column without a pivot | of them |
| Special solution | one free variable 1, the others 0 | pivot entries from that free column, signs changed |
| Dimension | one direction per free column | |
| No free columns | a pivot in every column |