Linear AlgebraLinear Systems6 of 8
Linear Systems · 6

The Null Space

When a matrix transforms space, some input vectors can get flattened all the way down to the origin, and we want a way to find every vector that gets crushed to zero.

1

What the Null Space Is

The Null Space of a matrix AA is the collection of all input vectors xx that the matrix crushes to the zero vector:

Ax\displaystyle Ax =0\displaystyle = 0
Both columns on one line
[24]\htmlClass{lc-green}{\begin{bmatrix} 2 \\ 4 \end{bmatrix}}
[12]\htmlClass{lc-pink}{\begin{bmatrix} 1 \\ 2 \end{bmatrix}}
The plane flattened onto that line
Null Space(collapsesto [00] ⁣)\begin{array}{l} \htmlClass{lc-orange}{\text{Null Space}} \\ \htmlClass{lc-orange}{\text{(collapses}} \\ \htmlClass{lc-orange}{\text{to}\,}\begin{bmatrix} 0 \\ 0 \end{bmatrix}\htmlClass{lc-orange}{\!\text{)}} \end{array}

To find the Null Space of a 2×22 \times 2 matrix, we look for the inputs [xy]\begin{bmatrix} \colA{x} \\ \colB{y} \end{bmatrix} that give

[2142][xy]=[00]\displaystyle \begin{bmatrix} \colA{2} & \colB{1} \\ \colA{4} & \colB{2} \end{bmatrix}\begin{bmatrix} \colA{x} \\ \colB{y} \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}
What the Null Space Is
Ax=0Ax = 0
Text solution
Write the matrix equation as a mixture of columnsThe entries x\colA{x} and y\colB{y} tell us how much of Column 1 and Column 2 we are adding together to reach zero:
x[24]+y[12]=[00]\displaystyle \colA{x\begin{bmatrix} 2 \\ 4 \end{bmatrix}} + \colB{y\begin{bmatrix} 1 \\ 2 \end{bmatrix}} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}
Cancel the columnsBecause Column 1 is twice Column 2, taking 1\colA{1} of Column 1 and −2\colB{-2} of Column 2 makes them cancel out completely:
1[24]−2[12]=[00]  ⟹  [xy]=[1−2]\displaystyle \begin{aligned} & \colA{1\begin{bmatrix} 2 \\ 4 \end{bmatrix}} - \colB{2\begin{bmatrix} 1 \\ 2 \end{bmatrix}} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \\ \implies & \begin{bmatrix} \colA{x} \\ \colB{y} \end{bmatrix} = \nullsp{\begin{bmatrix} \colA{1} \\ \colB{-2} \end{bmatrix}} \end{aligned}
Include all multiplesMultiplying a recipe that gives zero by any number cc still gives zero, so every multiple of [1−2]\nullsp{\begin{bmatrix} \colA{1} \\ \colB{-2} \end{bmatrix}} also cancels the columns:
Null Space=c[1−2]\displaystyle \nullsp{\text{Null Space}} = c\nullsp{\begin{bmatrix} \colA{1} \\ \colB{-2} \end{bmatrix}}

So every vector along the line c[1−2]c\nullsp{\begin{bmatrix} \colA{1} \\ \colB{-2} \end{bmatrix}} through the origin gets crushed to [00]\begin{bmatrix} 0 \\ 0 \end{bmatrix} by the matrix.

Whenever the input [xy]\begin{bmatrix} \colA{x} \\ \colB{y} \end{bmatrix} lies on the line c[1−2]c\nullsp{\begin{bmatrix} \colA{1} \\ \colB{-2} \end{bmatrix}}, the scaled columns x[24]\colA{x\begin{bmatrix} 2 \\ 4 \end{bmatrix}} and y[12]\colB{y\begin{bmatrix} 1 \\ 2 \end{bmatrix}} point in opposite directions with equal length and cancel to [00]\begin{bmatrix} 0 \\ 0 \end{bmatrix}.

Every input on this line scales the two columns to equal lengths in opposite directions, so they cancel to zero.
2

Row Reduction Reveals Column Relationships

In a 2×22 \times 2 matrix, we can spot right away when one column is a multiple of the other. In a 3×33 \times 3 matrix, a column can be a mixture of the other two, so we cannot tell just by looking how the columns cancel in

[1252512137][xyz]=[000]\displaystyle \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{2} & \colB{5} & \colC{12} \\ \colA{1} & \colB{3} & \colC{7} \end{bmatrix}\begin{bmatrix} \colA{x} \\ \colB{y} \\ \colC{z} \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
No redundant columns
1 redundant column
2 redundant columns
Row Reduction Reveals Column Relationships
x ⁣[121]+y ⁣[253]+z ⁣[5127]=[000]\displaystyle \small \colA{x\!\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}} + \colB{y\!\begin{bmatrix} 2 \\ 5 \\ 3 \end{bmatrix}} + \colC{z\!\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
x, y, z\displaystyle \colA{x},\ \colB{y},\ \colC{z} =  ?\displaystyle = \;?
Text solution
Clear below the first pivotSubtract multiples of Row 1 from Row 2 and Row 3 so the top-left pivot 1\colA{1} is the only nonzero entry in Column 1:
[1252512137]→R2←R2−2R1R3←R3−R1[125012012]\displaystyle \begin{aligned} & \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{2} & \colB{5} & \colC{12} \\ \colA{1} & \colB{3} & \colC{7} \end{bmatrix} \\ &\xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{0} & \colB{1} & \colC{2} \\ \colA{0} & \colB{1} & \colC{2} \end{bmatrix} \end{aligned}
Clear below and above the second pivotUse the middle pivot 1\colB{1} in Row 2 to clear the 1\colB{1} below it and the 2\colB{2} above it, reaching reduced echelon form:
[125012012]→R3←R3−R2[125012000]→R1←R1−2R2[100100⏟pivot columns120⏟free column]\displaystyle \begin{aligned} & \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{0} & \colB{1} & \colC{2} \\ \colA{0} & \colB{1} & \colC{2} \end{bmatrix} \\ &\xrightarrow{R_3 \leftarrow R_3 - R_2} \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{0} & \colB{1} & \colC{2} \\ \colA{0} & \colB{0} & \colC{0} \end{bmatrix} \\ &\xrightarrow{R_1 \leftarrow R_1 - 2R_2} \\ & \left[\begin{array}{cc|c} \underbrace{\begin{matrix} \colA{1} & \colB{0} \\ \colA{0} & \colB{1} \\ \colA{0} & \colB{0} \end{matrix}}_{\text{pivot columns}} & & \underbrace{\begin{matrix} \colC{1} \\ \colC{2} \\ \colC{0} \end{matrix}}_{\colC{\text{free column}}} \end{array}\right] \end{aligned}
Read the column recipe and flip the signs to cancelBecause row operations never change how the columns relate, the reduced free column [120]\colC{\begin{bmatrix} 1 \\ 2 \\ 0 \end{bmatrix}} tells us that Column 3=1(Column 1)\colC{\text{Column } 3} = \colA{1}(\colA{\text{Column } 1}) +2(Column 2){}+ \colB{2}(\colB{\text{Column } 2}) in the original matrix too; taking z=1\colC{z = 1} of Column 3 requires x=−1\colA{x = -1} and y=−2\colB{y = -2} to cancel it:
Null Space=c[−1−21]\displaystyle \nullsp{\text{Null Space}} = c\nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}}

So the matrix flattens 3D space onto the plane of its first two columns and crushes the entire line c[−1−21]c\nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}} into [000]\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}.

Practical note: Once your matrix is in reduced echelon form, you do not need to write out x+z=0\colA{x} + \colC{z} = 0 and y+2z=0\colB{y} + 2\colC{z} = 0. Setting the free variable to 11 and flipping the signs of the numbers in that reduced free column gives the pivot entries right away.

3

When Every Column Has a Pivot

In the matrix above, the bottom row turned into all zeros and left Column 3 without a pivot. Now see what happens to the Null Space when we change the bottom-right entry from 7\colC{7} to 8\colC{8}:

[1252512138][xyz]=[000]\displaystyle \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{2} & \colB{5} & \colC{12} \\ \colA{1} & \colB{3} & \colC{8} \end{bmatrix}\begin{bmatrix} \colA{x} \\ \colB{y} \\ \colC{z} \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
When Every Column Has a Pivot
[1252512137  8]\displaystyle \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{2} & \colB{5} & \colC{12} \\ \colA{1} & \colB{3} & \colC{\cancel{7}\;8} \end{bmatrix}
Null Space\displaystyle \nullsp{\text{Null Space}} =  ?\displaystyle = \;?
Text solution
Clear below the first and second pivotsSubtracting multiples of Row 1 and then subtracting Row 2 from Row 3 leaves a nonzero pivot 1\colC{1} at the bottom of Column 3:
[1252512138]→R2←R2−2R1R3←R3−R1[125012013]→R3←R3−R2[125012001]\displaystyle \begin{aligned} & \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{2} & \colB{5} & \colC{12} \\ \colA{1} & \colB{3} & \colC{8} \end{bmatrix} \\ &\xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{0} & \colB{1} & \colC{2} \\ \colA{0} & \colB{1} & \colC{3} \end{bmatrix} \\ &\xrightarrow{R_3 \leftarrow R_3 - R_2} \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{0} & \colB{1} & \colC{2} \\ \colA{0} & \colB{0} & \colC{1} \end{bmatrix} \end{aligned}
Clear above the pivotsClearing the entries above the third and second pivots turns the matrix into three unit columns:
[125012001]→R2←R2−2R3R1←R1−5R3[120010001]→R1←R1−2R2[100010001]\displaystyle \begin{aligned} & \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{0} & \colB{1} & \colC{2} \\ \colA{0} & \colB{0} & \colC{1} \end{bmatrix} \\ &\xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_3 \\ R_1 \leftarrow R_1 - 5R_3}} \begin{bmatrix} \colA{1} & \colB{2} & \colC{0} \\ \colA{0} & \colB{1} & \colC{0} \\ \colA{0} & \colB{0} & \colC{1} \end{bmatrix} \\ &\xrightarrow{R_1 \leftarrow R_1 - 2R_2} \begin{bmatrix} \colA{1} & \colB{0} & \colC{0} \\ \colA{0} & \colB{1} & \colC{0} \\ \colA{0} & \colB{0} & \colC{1} \end{bmatrix} \end{aligned}
Write the Null SpaceBecause every column has a pivot and there are no free columns, none of the columns can be built from the others, so only taking 00 of each column gives zero:
Null Space={[000]}\displaystyle \nullsp{\text{Null Space}} = \nullsp{\left\{\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}\right\}}

So when all three columns are independent, 3D space is not flattened at all, and only [000]\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} itself lands at the origin. (Notice the braces { }\nullsp{\left\{\,\right\}} rather than a multiplier cc: the Null Space here is that single point, not a line.)

As long as Column 3 points outside the plane of Column 1 and Column 2, every column gets a pivot and only [000]\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} collapses to zero; the moment Column 3 drops into their plane, the third pivot disappears and an entire line of inputs collapses to zero.

All three columns keep their pivots and only the origin goes to zero, unless Column 3 drops into the plane of Columns 1 and 2, where the third pivot disappears and a whole line of inputs collapses to zero.
4

More Than One Free Column

Now suppose a reduced matrix has four columns and only the first two have pivots, leaving two free columns at the end:

[103−201410000][x1x2x3x4]=[000]\displaystyle \begin{bmatrix} \colA{1} & \colB{0} & \colC{3} & \colC{-2} \\ \colA{0} & \colB{1} & \colC{4} & \colC{1} \\ \colA{0} & \colB{0} & \colC{0} & \colC{0} \end{bmatrix}\begin{bmatrix} \colA{x_1} \\ \colB{x_2} \\ \colC{x_3} \\ \colC{x_4} \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
More Than One Free Column
100\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-green}{1} \\ \htmlClass{lc-green}{0} \\ \htmlClass{lc-green}{0} \end{matrix}
010\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-pink}{0} \\ \htmlClass{lc-pink}{1} \\ \htmlClass{lc-pink}{0} \end{matrix}
340\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-violet}{3} \\ \htmlClass{lc-violet}{4} \\ \htmlClass{lc-violet}{0} \end{matrix}
−210\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-violet}{-2} \\ \htmlClass{lc-violet}{1} \\ \htmlClass{lc-violet}{0} \end{matrix}
x1x2x3x4\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-green}{x_1} \\ \htmlClass{lc-pink}{x_2} \\ \htmlClass{lc-violet}{x_3} \\ \htmlClass{lc-violet}{x_4} \end{matrix}
=[000]= \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
pivot\htmlClass{lc-green}{\text{pivot}}
pivot\htmlClass{lc-pink}{\text{pivot}}
free\htmlClass{lc-violet}{\text{free}}
free\htmlClass{lc-violet}{\text{free}}
x1x2x3x4\def\arraystretch{1.29}\begin{matrix} \htmlClass{lc-green}{x_1} \\ \htmlClass{lc-pink}{x_2} \\ \htmlClass{lc-violet}{x_3} \\ \htmlClass{lc-violet}{x_4} \end{matrix}
x1x2x3x4\def\arraystretch{1.29}\begin{matrix} \htmlClass{lc-green}{x_1} \\ \htmlClass{lc-pink}{x_2} \\ \htmlClass{lc-violet}{x_3} \\ \htmlClass{lc-violet}{x_4} \end{matrix}
Text solution
Cancel the first free column (Column 3)Set x3=1\colC{x_3 = 1} and x4=0\colC{x_4 = 0} to take 1\colC{1} of Column 3 and 0\colC{0} of Column 4; since Column 3=3(Column 1)\colC{\text{Column } 3} = \colA{3}(\colA{\text{Column } 1}) +4(Column 2){}+ \colB{4}(\colB{\text{Column } 2}), flip those signs in the pivot slots:
[x1x2x3x4]=[−3−410]\displaystyle \begin{bmatrix} \colA{x_1} \\ \colB{x_2} \\ \colC{x_3} \\ \colC{x_4} \end{bmatrix} = \nullsp{\begin{bmatrix} \colA{-3} \\ \colB{-4} \\ \colC{1} \\ \colC{0} \end{bmatrix}}
Cancel the second free column (Column 4)Set x3=0\colC{x_3 = 0} and x4=1\colC{x_4 = 1} to take 1\colC{1} of Column 4 and 0\colC{0} of Column 3; since Column 4=−2(Column 1)\colC{\text{Column } 4} = \colA{-2}(\colA{\text{Column } 1}) +1(Column 2){}+ \colB{1}(\colB{\text{Column } 2}), flip those signs in the pivot slots:
[x1x2x3x4]=[2−101]\displaystyle \begin{bmatrix} \colA{x_1} \\ \colB{x_2} \\ \colC{x_3} \\ \colC{x_4} \end{bmatrix} = \nullsp{\begin{bmatrix} \colA{2} \\ \colB{-1} \\ \colC{0} \\ \colC{1} \end{bmatrix}}
Combine both cancellation recipesBecause each recipe crushes to zero on its own, any combination of the two also crushes to zero:
Null Space=c1[−3−410]+c2[2−101]\displaystyle \nullsp{\text{Null Space}} = c_1\nullsp{\begin{bmatrix} \colA{-3} \\ \colB{-4} \\ \colC{1} \\ \colC{0} \end{bmatrix}} + c_2\nullsp{\begin{bmatrix} \colA{2} \\ \colB{-1} \\ \colC{0} \\ \colC{1} \end{bmatrix}}

So two redundant columns give two independent cancellation recipes, forming a 2D plane of inputs in 4D space that all collapse to [000]\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}.

5

Free Columns Between Pivot Columns

In the previous examples, the pivot columns came first and the free columns were grouped at the right end. Now look at a reduced matrix where a free column sits right between two pivot columns:

[1302001−40000][x1x2x3x4]=[000]\displaystyle \begin{bmatrix} \colA{1} & \colC{3} & \colB{0} & \colC{2} \\ \colA{0} & \colC{0} & \colB{1} & \colC{-4} \\ \colA{0} & \colC{0} & \colB{0} & \colC{0} \end{bmatrix}\begin{bmatrix} \colA{x_1} \\ \colC{x_2} \\ \colB{x_3} \\ \colC{x_4} \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
Free Columns Between Pivot Columns
100\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-green}{1} \\ \htmlClass{lc-green}{0} \\ \htmlClass{lc-green}{0} \end{matrix}
300\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-violet}{3} \\ \htmlClass{lc-violet}{0} \\ \htmlClass{lc-violet}{0} \end{matrix}
010\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-pink}{0} \\ \htmlClass{lc-pink}{1} \\ \htmlClass{lc-pink}{0} \end{matrix}
2−40\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-violet}{2} \\ \htmlClass{lc-violet}{-4} \\ \htmlClass{lc-violet}{0} \end{matrix}
x1x2x3x4\def\arraystretch{1.15}\begin{matrix} \htmlClass{lc-green}{x_1} \\ \htmlClass{lc-violet}{x_2} \\ \htmlClass{lc-pink}{x_3} \\ \htmlClass{lc-violet}{x_4} \end{matrix}
=[000]= \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
pivot\htmlClass{lc-green}{\text{pivot}}
free\htmlClass{lc-violet}{\text{free}}
pivot\htmlClass{lc-pink}{\text{pivot}}
free\htmlClass{lc-violet}{\text{free}}
x1x2x3x4\def\arraystretch{1.29}\begin{matrix} \htmlClass{lc-green}{x_1} \\ \htmlClass{lc-violet}{x_2} \\ \htmlClass{lc-pink}{x_3} \\ \htmlClass{lc-violet}{x_4} \end{matrix}
x1x2x3x4\def\arraystretch{1.29}\begin{matrix} \htmlClass{lc-green}{x_1} \\ \htmlClass{lc-violet}{x_2} \\ \htmlClass{lc-pink}{x_3} \\ \htmlClass{lc-violet}{x_4} \end{matrix}
Text solution
Match each column to its slot in the input vectorColumns 1 and 3 contain the pivots while Columns 2 and 4 are the free columns, so slots x2\colC{x_2} and x4\colC{x_4} are the free slots:
[1Col 1(pivot)3Col 2(free)0Col 3(pivot)2Col 4(free)001−40000]⟷[x1 (pivot slot)x2 (free slot)x3 (pivot slot)x4 (free slot)]\displaystyle \begin{gathered} \begin{bmatrix} \colA{\overset{\begin{gathered}\text{Col 1} \\[-3pt] \text{(pivot)}\end{gathered}}{1}} & \colC{\overset{\begin{gathered}\text{Col 2} \\[-3pt] \text{(free)}\end{gathered}}{3}} & \colB{\overset{\begin{gathered}\text{Col 3} \\[-3pt] \text{(pivot)}\end{gathered}}{0}} & \colC{\overset{\begin{gathered}\text{Col 4} \\[-3pt] \text{(free)}\end{gathered}}{2}} \\ \colA{0} & \colC{0} & \colB{1} & \colC{-4} \\ \colA{0} & \colC{0} & \colB{0} & \colC{0} \end{bmatrix} \\ \longleftrightarrow \quad \begin{bmatrix} \colA{x_1 \text{ (pivot slot)}} \\ \colC{x_2 \text{ (free slot)}} \\ \colB{x_3 \text{ (pivot slot)}} \\ \colC{x_4 \text{ (free slot)}} \end{bmatrix} \end{gathered}
Cancel Column 2Place 1\colC{1} in slot 2 and 0\colC{0} in slot 4; since Column 2=3(Column 1)\colC{\text{Column } 2} = \colA{3}(\colA{\text{Column } 1}) +0(Column 3){}+ \colB{0}(\colB{\text{Column } 3}), put −3\colA{-3} in slot 1 and 0\colB{0} in slot 3:
[x1x2x3x4]=[−3100]\displaystyle \begin{bmatrix} \colA{x_1} \\ \colC{x_2} \\ \colB{x_3} \\ \colC{x_4} \end{bmatrix} = \nullsp{\begin{bmatrix} \colA{-3} \\ \colC{1} \\ \colB{0} \\ \colC{0} \end{bmatrix}}
Cancel Column 4Place 0\colC{0} in slot 2 and 1\colC{1} in slot 4; since Column 4=2(Column 1)\colC{\text{Column } 4} = \colA{2}(\colA{\text{Column } 1}) −4(Column 3){}- \colB{4}(\colB{\text{Column } 3}), put −2\colA{-2} in slot 1 and 4\colB{4} in slot 3:
[x1x2x3x4]=[−2041]\displaystyle \begin{bmatrix} \colA{x_1} \\ \colC{x_2} \\ \colB{x_3} \\ \colC{x_4} \end{bmatrix} = \nullsp{\begin{bmatrix} \colA{-2} \\ \colC{0} \\ \colB{4} \\ \colC{1} \end{bmatrix}}
Combine both recipesEvery combination of these two vectors gives the complete Null Space:
Null Space=c1[−3100]+c2[−2041]\displaystyle \nullsp{\text{Null Space}} = c_1\nullsp{\begin{bmatrix} \colA{-3} \\ \colC{1} \\ \colB{0} \\ \colC{0} \end{bmatrix}} + c_2\nullsp{\begin{bmatrix} \colA{-2} \\ \colC{0} \\ \colB{4} \\ \colC{1} \end{bmatrix}}

So each entry in the input vector stays paired with the column in that same position, even when free and pivot columns alternate.

6

The Null Space as the Blind Spot of Ax=bAx = b

Now instead of aiming for zero, suppose we want to find the inputs that hit a nonzero target vector b\target{b}:

[1252512137][xyz]=[5127]\displaystyle \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{2} & \colB{5} & \colC{12} \\ \colA{1} & \colB{3} & \colC{7} \end{bmatrix}\begin{bmatrix} \colA{x} \\ \colB{y} \\ \colC{z} \end{bmatrix} = \target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}}
The Null Space as the Blind Spot of Ax = b
A=[1252512137]\displaystyle A = \begin{bmatrix} \colA{1} & \colB{2} & \colC{5} \\ \colA{2} & \colB{5} & \colC{12} \\ \colA{1} & \colB{3} & \colC{7} \end{bmatrix}
A[???]=[5127]\displaystyle A\begin{bmatrix} \colA{?} \\ \colB{?} \\ \colC{?} \end{bmatrix} = \target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}}
Text solution
Start with one working inputBecause the target [5127]\target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}} is Column 3 of AA, the input [001]\begin{bmatrix} \colA{0} \\ \colB{0} \\ \colC{1} \end{bmatrix} hits it directly:
A[001]=[5127]\displaystyle A\begin{bmatrix} \colA{0} \\ \colB{0} \\ \colC{1} \end{bmatrix} = \target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}}
Add a vector from the Null SpaceWe already found that [−1−21]\nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}} is in the Null Space of AA, so adding it to our working input adds [000]\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} to the output:
A([001]+[−1−21])=A[001]+A[−1−21]=[5127]+[000]=[5127]\displaystyle \begin{aligned} & A\left(\begin{bmatrix} \colA{0} \\ \colB{0} \\ \colC{1} \end{bmatrix} + \nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}}\right) \\ &= A\begin{bmatrix} \colA{0} \\ \colB{0} \\ \colC{1} \end{bmatrix} + A\nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}} \\ &= \target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}} + \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \\ &= \target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}} \end{aligned}

So the new input [−1−22]\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{2} \end{bmatrix}, and any vector of the form [001]+c[−1−21]\begin{bmatrix} \colA{0} \\ \colB{0} \\ \colC{1} \end{bmatrix} + c\nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}}, hits the exact same target [5127]\target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}}.

For every input along the line [001]+c[−1−21]\begin{bmatrix} \colA{0} \\ \colB{0} \\ \colC{1} \end{bmatrix} + c\nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}}, the matrix crushes the added c[−1−21]c\nullsp{\begin{bmatrix} \colA{-1} \\ \colB{-2} \\ \colC{1} \end{bmatrix}} piece to [000]\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} and keeps the output at [5127]\target{\begin{bmatrix} 5 \\ 12 \\ 7 \end{bmatrix}}, while inputs off that line land away from the target.

Adding any vector in the null-space direction keeps the output at the exact same spot, because the matrix sends that added piece to zero.

Key concepts

Finding the Null Space of AA means finding every input recipe xx that makes the columns of AA cancel to zero (Ax=0Ax = 0).

When you can see how the columns relate right away, skip row reduction

In [2142]\begin{bmatrix} \colA{2} & \colB{1} \\ \colA{4} & \colB{2} \end{bmatrix}, Column 1 is already 2(Column 2)2(\colB{\text{Column } 2}), so 1\colA{1} of Column 1 and −2\colB{-2} of Column 2 cancel immediately, giving Null Space=c[1−2]\nullsp{\text{Null Space}} = c\nullsp{\begin{bmatrix} \colA{1} \\ \colB{-2} \end{bmatrix}}. Similarly, if a matrix is already in reduced echelon form, read the column recipes directly off the columns.

When column mixtures are hidden, row reduce to reduced echelon form

Row operations turn the independent pivot columns into unit vectors without changing how the columns relate.

  • Every column has a pivot: No column is redundant, so nothing cancels except taking 00 of each column: Null Space={[000]}\nullsp{\text{Null Space}} = \nullsp{\left\{\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}\right\}}.
  • One or more free columns: Each reduced free column shows how it is built from the pivot columns. Isolate one free column at a time by placing 1\colC{1} in its slot and 0\colC{0} in the other free slots, then flip the signs of its entries into the matching pivot slots. In [1302001−40000]\begin{bmatrix} \colA{1} & \colC{3} & \colB{0} & \colC{2} \\ \colA{0} & \colC{0} & \colB{1} & \colC{-4} \\ \colA{0} & \colC{0} & \colB{0} & \colC{0} \end{bmatrix}, Columns 2 and 4 are free, giving Null Space=c1[−3100]+c2[−2041]\nullsp{\text{Null Space}} = c_1\nullsp{\begin{bmatrix} \colA{-3} \\ \colC{1} \\ \colB{0} \\ \colC{0} \end{bmatrix}} + c_2\nullsp{\begin{bmatrix} \colA{-2} \\ \colC{0} \\ \colB{4} \\ \colC{1} \end{bmatrix}}.
Adding Null Space vectors to solutions of Ax=bAx = \target{b}

The Null Space is the blind spot of AA. Once you have one input xx that hits b\target{b}, adding any vector from the Null Space keeps the output at b\target{b} because AA crushes the added piece to zero.

7

Practice

1

By looking at how the columns of A=[3−61−2]A = \begin{bmatrix} \colA{3} & \colB{-6} \\ \colA{1} & \colB{-2} \end{bmatrix} cancel each other out, find the Null Space of AA.

How many of Column 1 does it take to make Column 2?

Column 2 is −2-2 times Column 1:
[−6−2]=−2[31]\displaystyle \colB{\begin{bmatrix} -6 \\ -2 \end{bmatrix}} = -2\colA{\begin{bmatrix} 3 \\ 1 \end{bmatrix}}
To make the two columns cancel to [00]\begin{bmatrix} 0 \\ 0 \end{bmatrix}, take 2\colA{2} of Column 1 and 1\colB{1} of Column 2 (watch out: writing the multiplier −2-2 directly in slot 1 gives c[−21]c\begin{bmatrix} -2 \\ 1 \end{bmatrix}, which adds up to [−12−4]\begin{bmatrix} -12 \\ -4 \end{bmatrix} instead of canceling, and swapping the slots gives c[12]c\begin{bmatrix} 1 \\ 2 \end{bmatrix}, which adds up to [−9−3]\begin{bmatrix} -9 \\ -3 \end{bmatrix}):
2[31]+1[−6−2]=[00]\displaystyle \colA{2\begin{bmatrix} 3 \\ 1 \end{bmatrix}} + \colB{1\begin{bmatrix} -6 \\ -2 \end{bmatrix}} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}
Null Space=c[21]\displaystyle \nullsp{\text{Null Space}} = c\nullsp{\begin{bmatrix} \colA{2} \\ \colB{1} \end{bmatrix}}
2

Row reduce A=[121255134]A = \begin{bmatrix} 1 & 2 & 1 \\ 2 & 5 & 5 \\ 1 & 3 & 4 \end{bmatrix} to reduced echelon form, state how Column 3 is built out of Column 1 and Column 2, and write the Null Space of AA.

After clearing below the first pivot in Column 1, use the middle pivot in Row 2 to clear both the 11 below it and the 22 above it.

Clear below the first pivot, then clear below and above the second pivot (watch out: if you stop at [121013000]\begin{bmatrix} \colA{1} & \colB{2} & \colC{1} \\ \colA{0} & \colB{1} & \colC{3} \\ \colA{0} & \colB{0} & \colC{0} \end{bmatrix} without clearing the 2\colB{2} above the second pivot, Column 2 is not a unit vector yet, so Column 3 is not yet showing the right recipe and gives c[−1−31]c\begin{bmatrix} -1 \\ -3 \\ 1 \end{bmatrix}):
[121255134]→R2←R2−2R1R3←R3−R1[121013013]→R3←R3−R2R1←R1−2R2[10−5013000]\displaystyle \begin{aligned} \begin{bmatrix} \colA{1} & \colB{2} & \colC{1} \\ \colA{2} & \colB{5} & \colC{5} \\ \colA{1} & \colB{3} & \colC{4} \end{bmatrix} &\xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} \begin{bmatrix} \colA{1} & \colB{2} & \colC{1} \\ \colA{0} & \colB{1} & \colC{3} \\ \colA{0} & \colB{1} & \colC{3} \end{bmatrix} \\ &\xrightarrow{\substack{R_3 \leftarrow R_3 - R_2 \\ R_1 \leftarrow R_1 - 2R_2}} \begin{bmatrix} \colA{1} & \colB{0} & \colC{-5} \\ \colA{0} & \colB{1} & \colC{3} \\ \colA{0} & \colB{0} & \colC{0} \end{bmatrix} \end{aligned}
From the reduced free column, Column 3=−5(Column 1)\colC{\text{Column } 3} = \colA{-5}(\colA{\text{Column } 1}) +3(Column 2){}+ \colB{3}(\colB{\text{Column } 2}). Flip the signs of −5\colA{-5} and 3\colB{3} to cancel 1\colC{1} of Column 3 (forgetting to flip the signs leaves c[−531]c\begin{bmatrix} -5 \\ 3 \\ 1 \end{bmatrix}):
Null Space=c[5−31]\displaystyle \nullsp{\text{Null Space}} = c\nullsp{\begin{bmatrix} \colA{5} \\ \colB{-3} \\ \colC{1} \end{bmatrix}}
3

Find the Null Space of A=[112235124]A = \begin{bmatrix} 1 & 1 & 2 \\ 2 & 3 & 5 \\ 1 & 2 & 4 \end{bmatrix} and explain what your result says about the three columns.

Row reduce AA and check whether the bottom row turns into all zeros or keeps a pivot in Column 3.

Clear below the first pivot and then subtract Row 2 from Row 3 (watch out: in R3←R3−R1R_3 \leftarrow R_3 - R_1, the bottom-right entry is 4−2=24 - 2 = 2, not 11, so Row 3 does not match Row 2 and does not become [000]\begin{bmatrix} 0 & 0 & 0 \end{bmatrix}):
[112235124]→R2←R2−2R1R3←R3−R1[112011012]→R3←R3−R2[112011001]→clear above pivots[100010001]\displaystyle \begin{aligned} \begin{bmatrix} \colA{1} & \colB{1} & \colC{2} \\ \colA{2} & \colB{3} & \colC{5} \\ \colA{1} & \colB{2} & \colC{4} \end{bmatrix} &\xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} \begin{bmatrix} \colA{1} & \colB{1} & \colC{2} \\ \colA{0} & \colB{1} & \colC{1} \\ \colA{0} & \colB{1} & \colC{2} \end{bmatrix} \\ &\xrightarrow{R_3 \leftarrow R_3 - R_2} \begin{bmatrix} \colA{1} & \colB{1} & \colC{2} \\ \colA{0} & \colB{1} & \colC{1} \\ \colA{0} & \colB{0} & \colC{1} \end{bmatrix} \\ &\xrightarrow{\text{clear above pivots}} \begin{bmatrix} \colA{1} & \colB{0} & \colC{0} \\ \colA{0} & \colB{1} & \colC{0} \\ \colA{0} & \colB{0} & \colC{1} \end{bmatrix} \end{aligned}
Because every column gets a pivot, the three columns are independent (none can be built from the others), and
Null Space={[000]}\displaystyle \nullsp{\text{Null Space}} = \nullsp{\left\{\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}\right\}}
4

Find the Null Space of the reduced matrix [10−25013−40000]\begin{bmatrix} 1 & 0 & -2 & 5 \\ 0 & 1 & 3 & -4 \\ 0 & 0 & 0 & 0 \end{bmatrix}.

Columns 3 and 4 have no pivots; isolate them one at a time with (x3,x4)=(1,0)\colC{(x_3, x_4) = (1, 0)} and (0,1)\colC{(0, 1)}.

Set (x3,x4)=(1,0)\colC{(x_3, x_4) = (1, 0)} for Column 3 and (0,1)\colC{(0, 1)} for Column 4, and flip the signs of their entries in the first two pivot slots (watch out: copying the free column entries without flipping their signs gives the wrong answer c1[−2310]+c2[5−401]c_1\begin{bmatrix} -2 \\ 3 \\ 1 \\ 0 \end{bmatrix} + c_2\begin{bmatrix} 5 \\ -4 \\ 0 \\ 1 \end{bmatrix}):
Null Space=c1[2−310]+c2[−5401]\displaystyle \nullsp{\text{Null Space}} = c_1\nullsp{\begin{bmatrix} \colA{2} \\ \colB{-3} \\ \colC{1} \\ \colC{0} \end{bmatrix}} + c_2\nullsp{\begin{bmatrix} \colA{-5} \\ \colB{4} \\ \colC{0} \\ \colC{1} \end{bmatrix}}
5

Find the Null Space of the reduced matrix [1−40300120000]\begin{bmatrix} 1 & -4 & 0 & 3 \\ 0 & 0 & 1 & 2 \\ 0 & 0 & 0 & 0 \end{bmatrix}.

Check which columns have pivots first. Which two slots belong to the free columns?

Columns 1 and 3 are the pivot columns, while Columns 2 and 4 are the free columns. Put (1,0)\colC{(1, 0)} and (0,1)\colC{(0, 1)} into the free slots x2\colC{x_2} and x4\colC{x_4} (watch out: automatically putting (1,0)(1, 0) and (0,1)(0, 1) in the bottom two slots x3\colB{x_3} and x4\colC{x_4} puts the numbers in the wrong column slots and gives c1[4010]+c2[−3−201]c_1\begin{bmatrix} 4 \\ 0 \\ 1 \\ 0 \end{bmatrix} + c_2\begin{bmatrix} -3 \\ -2 \\ 0 \\ 1 \end{bmatrix}), then flip the signs of Column 2 and Column 4 into the pivot slots x1\colA{x_1} and x3\colB{x_3}:
Null Space=c1[4100]+c2[−30−21]\displaystyle \nullsp{\text{Null Space}} = c_1\nullsp{\begin{bmatrix} \colA{4} \\ \colC{1} \\ \colB{0} \\ \colC{0} \end{bmatrix}} + c_2\nullsp{\begin{bmatrix} \colA{-3} \\ \colC{0} \\ \colB{-2} \\ \colC{1} \end{bmatrix}}
6

Suppose A[210]=[495]A\begin{bmatrix} \colA{2} \\ \colB{1} \\ \colC{0} \end{bmatrix} = \target{\begin{bmatrix} 4 \\ 9 \\ 5 \end{bmatrix}} and the Null Space of AA is c[−321]c\nullsp{\begin{bmatrix} \colA{-3} \\ \colB{2} \\ \colC{1} \end{bmatrix}}. Find another input vector [xyz]\begin{bmatrix} \colA{x} \\ \colB{y} \\ \colC{z} \end{bmatrix} with z=4\colC{z = 4} that also gives A[xyz]=[495]A\begin{bmatrix} \colA{x} \\ \colB{y} \\ \colC{z} \end{bmatrix} = \target{\begin{bmatrix} 4 \\ 9 \\ 5 \end{bmatrix}}.

What multiple cc of the Null Space vector [−321]\nullsp{\begin{bmatrix} \colA{-3} \\ \colB{2} \\ \colC{1} \end{bmatrix}} can you add to [210]\begin{bmatrix} \colA{2} \\ \colB{1} \\ \colC{0} \end{bmatrix} so that the third slot becomes z=4\colC{z = 4}?

Choose c=4c = 4 in the Null Space vector 4[−321]=[−1284]4\nullsp{\begin{bmatrix} \colA{-3} \\ \colB{2} \\ \colC{1} \end{bmatrix}} = \nullsp{\begin{bmatrix} \colA{-12} \\ \colB{8} \\ \colC{4} \end{bmatrix}} and add it to the working input [210]\begin{bmatrix} \colA{2} \\ \colB{1} \\ \colC{0} \end{bmatrix} (watch out: stopping at [−1284]\nullsp{\begin{bmatrix} \colA{-12} \\ \colB{8} \\ \colC{4} \end{bmatrix}} without adding [210]\begin{bmatrix} \colA{2} \\ \colB{1} \\ \colC{0} \end{bmatrix} gives an output of [000]\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} instead of [495]\target{\begin{bmatrix} 4 \\ 9 \\ 5 \end{bmatrix}}):
[210]+4[−321]=[210]+[−1284]=[−1094]\displaystyle \begin{aligned} \begin{bmatrix} \colA{2} \\ \colB{1} \\ \colC{0} \end{bmatrix} + 4\nullsp{\begin{bmatrix} \colA{-3} \\ \colB{2} \\ \colC{1} \end{bmatrix}} &= \begin{bmatrix} \colA{2} \\ \colB{1} \\ \colC{0} \end{bmatrix} + \nullsp{\begin{bmatrix} \colA{-12} \\ \colB{8} \\ \colC{4} \end{bmatrix}} \\ &= \begin{bmatrix} -10 \\ 9 \\ 4 \end{bmatrix} \end{aligned}