Solving Ax = 0: pivot variables and special solutions
The nullspace is found by elimination, now on rectangular matrices: when a column has no pivot, move on to the next. Elimination does not change the solutions of Ax = 0. For A with rows (1, 2, 2, 2), (2, 4, 6, 8), (3, 6, 8, 10) it gives an echelon (staircase) matrix U with two pivots, so the rank is r = 2. Columns 1 and 3 are pivot columns; x₂ and x₄ are free. Setting one free variable to 1 and the others to 0 and back-substituting gives the special solutions (−2, 1, 0, 0) and (2, 0, −2, 1); the nullspace is all their combinations. An m × n matrix of rank r has n − r free variables, one special solution for each. Going further, with zeros above the pivots and pivots equal to 1, gives the reduced row echelon form R = [I F; 0 0]. Then Rx = 0 says x_pivot = −F x_free, so the nullspace matrix N, whose columns are the special solutions, is [−F; I]. For the transpose of the example, the rank is again 2, and the nullspace is the line through (−1, −1, 1).
By eye, column 2 is twice column 1, and row 1 plus row 2 gives row 3; elimination should discover both (p. 1). Eliminationdoes not change the nullspace: subtracting a multiple of one equation from another keeps the solutions, with zeros on the right all along. It does change the column space (p. 2).
Subtracting 2 and 3 times row 1 clears column 1 and leaves (0,0,2,4) in both lower rows (p. 2). Column 2 now has zeros in and below the pivot position: no row exchange can help, which signals that column 2 depends on the earlier ones. Elimination just moves on to column 3, finds the second pivot 2, and subtracting row 2 from row 3 gives a row of zeros (p. 3):
U is in echelon (staircase) form (p. 3). The row of zeros appeared because row 3 was a combination of rows 1 and 2 (p. 9). The most important number has already appeared (pp. 3–4):
Rank
rank of A=r=number of pivots=2
In words
rank of capital A equals r equals number of pivots equals 2
Pivot variables, free variables, special solutions#
Ux=0 has the same solutions as Ax=0 (transcript, p. 4). Columns 1 and 3 are the pivot columns; columns 2 and 4 are free columns, because x2 and x4 can be given any values, and then x1 and x3 follow by back substitution (p. 4). The equations are (p. 5)
Ux = 0
x1+2x2+2x3+2x4=0,2x3+4x4=0
In words
x one plus 2 x two plus 2 x three plus 2 x four equals 0, 2 x three plus 4 x four equals 0
Choose x2=1, x4=0: then x3=0 and x1=−2 (p. 5). That says −2 times column 1 plus column 2 is zero, as seen at the start (pp. 5–6). Choose x2=0, x4=1: then x3=−2 and x1=2, saying 2 of column 1 minus 2 of column 3 plus column 4 is zero (pp. 6–7). These are the special solutions, special because of the values 0 and 1 given to the free variables (pp. 7–8). The nullspace holds exactly all their combinations (p. 8):
The nullspace
x=c−2100+d20−21
In words
x equals c minus 2; 1; 0; 0 plus d 2; 0; minus 2; 1
There is one special solution per free variable (p. 8). With three equations in four unknowns, solutions other than zero were bound to exist (p. 4). For an m×nmatrix of rankr (pp. 8–9):
One more cleaning step (transcript, pp. 9–10): eliminate upwards to get zeros above the pivots, and divide each pivot row by its pivot to make the pivots 1. Neither changes the solutions (p. 10). Subtracting row 2 from row 1 and halving row 2 (p. 10):
MATLAB produces it with the command rref(A) (p. 10). R shows everything: pivot rows 1 and 2, pivot columns 1 and 3, an identity matrix in the pivot rows and columns, and a zero row for each row that was a combination of others (pp. 10–11). The free columns hold (2,0) and (−2,2), and those numbers reappear in the special solutionswith their signs switched, because back substitution moves them to the other side (pp. 11–12).
Why, in general (pp. 12–14). Put the pivot columns first (a reordering of the variables). Then R has an r×r identity, a free part F with n−r columns, and zero rows below (pp. 12–13):
Strang mentions a MATLAB or teaching-code command that produces this nullspacematrix; it works exactly this way: compute R, then put ones and zeros in the free variables and copy −F into the pivot variables (pp. 13–14).
Take the transpose of the first matrix (transcript, p. 14). Its third column is the sum of the first two, so expect two pivot columns and one free column (p. 15). Elimination clears column 1, leaving a zero row and the rows (0,2,2) and (0,4,4); column 2 has a 0 in the pivot position but a 2 below, so exchange rows and continue; column 3 then has no pivot (pp. 15–16):
The transpose and its U
AT=1222246836810→U=100022003200
In words
capital A ^ capital T equals 1 2 3; 2 4 6; 2 6 8; 2 8 10 goes to U equals 1 2 3; 0 2 2; 0 0 0; 0 0 0
The rank is again 2, which is no accident: a matrix and its transpose have the same number of pivot columns, a great fact Strang states here (p. 16). There is 3−2=1free column (p. 16). Set the free variablex3=1: 2x2+2x3=0 gives x2=−1, and x1+2x2+3x3=0 gives x1=−1 (p. 17). Minus column 1 minus column 2 plus column 3 is zero. The whole nullspace is the line c(−1,−1,1); Strang wants the c in an answer, as a reminder that it is a whole space (pp. 17–18). Going on to R (p. 18):
R for the transpose
R=100001001100=(I0F0),N=(−FI)=−1−11
In words
capital R equals 1 0 1; 0 1 1; 0 0 0; 0 0 0 equals capital I F; 0 0, capital N equals minus F; capital I equals minus 1; minus 1; 1
Row 2 minus 2 row 1 is (0,0,1,3); row 3 minus row 1 is (0,0,2,6), and minus 2 times the new row 2 that is zero. Pivots sit in columns 1 and 3, so the rank is 2. The pivot in column 3 already has a zero above it and equals 1, so R=100300010230, with F=(3023).
(a) Special solutions
Free x2=1, x4=0: x1=−3, x3=0, giving (−3,1,0,0). Free x2=0, x4=1: x3=−3, x1=−2, giving (−2,0,−3,1). The pivot entries are the columns of −F. Check the second with row 3 of B: −2+0−6+8=0.
A column of a matrix that contains a pivot after elimination; the matching columns of the original matrix form a basis for its column space. Explained in Column space and nullspace.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
Not a matter of chance: there is a deeper reason why it happens.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).