Elimination on the augmented matrix [A b] decides whether Ax = b has a solution and finds all of them. For the matrix of Lecture 7, whose third row is the sum of the first two, the zero row of U turns into the condition b₃ − b₂ − b₁ = 0: if a combination of the rows gives the zero row, the same combination of the entries of b must give 0, which is the same as saying b is in the column space. A particular solution comes from setting the free variables to 0 and solving for the pivot variables: for b = (1, 5, 6), x_p = (−2, 0, 3/2, 0). The complete solution is x_p plus anything in the nullspace, because A(x_p + x_n) = b + 0; here it is a two-dimensional flat surface in R⁴ that misses the origin. The rank r of an m × n matrix satisfies r ≤ m and r ≤ n. With full column rank (r = n) there are no free variables and 0 or 1 solutions; with full row rank (r = m) every b has a solution, with n − m free variables; when r = m = n the matrix is invertible and R = I; and when r is less than both, there are 0 or infinitely many solutions. The rank tells the number of solutions.
This is the lecture where linear equations are solved completely: decide whether Ax=b has a solution, and if so, find them all (transcript, p. 1). It continues solving Ax = 0 with the same matrix.
The matrix of the last lecture has rows (1,2,2,2), (2,4,6,8) and (3,6,8,10); the third row is the sum of the first two (transcript, p. 1). So the third left-hand side is the sum of the first two, and b3 must be b1+b2: with b1=1 and b2=5, only b3=6 works, and (1,5,17) would have no solution (p. 1). Elimination discovers this. Work on the augmented matrix[Ab], doing to b what is done to the rows (p. 2):
Elimination on [A b] (last column: the right-hand side)
The last equation says 0=b3−b2−b1, the condition for solvability (pp. 2–3). For b=(1,5,6) the right side becomes (1,3,0), and the last equation is 0=0 (p. 3).
There is no free constant in front of xp: A(3xp)=3b, not b. The nullspace part is a whole subspace (p. 8). (Strang recalls the special solutions on the spot and slightly misquotes the first equation while checking them; the values above are the ones from Lecture 7.)
The picture (pp. 9–10). x has four components, so the picture lives in R4. The nullspace is a two-dimensional subspace (two free constants), and the solutions are that flat surface shifted to pass through xp: flat like a subspace, but not containing zero, so not a subspace (pp. 9–10).
Now any m×nmatrix of rankr, the number of pivots (transcript, p. 10). There can be no more pivots than rows, and none than columns, since a row or column holds at most one pivot (pp. 10–11):
Bounds on the rank
r≤m,r≤n
In words
r is less than or equal to m, r is less than or equal to n
Full column rank, r=n (pp. 11–15). A pivot in every column, no free variables, so N(A) is only the zero vector, and x=xp is the unique solution if it exists: 0 or 1 solutions (pp. 11–12). Many applications are like this (p. 12). The example is tall and thin (p. 13):
Full column rank
A=12653111,R=10000100
In words
capital A equals 1 3; 2 1; 6 1; 5 1, capital R equals 1 0; 0 1; 0 0; 0 0
Four equations in two unknowns usually have no solution. But b=(4,3,7,6), the sum of the two columns, has exactly one: x=(1,1) (pp. 14–15).
Full row rank, r=m (pp. 15–17). A pivot in every row, so elimination produces no zero rows and puts no condition on b: Ax=b is solvable for everyb (p. 15). There are n−r=n−mfree variables (p. 16). The example is the transpose of the last one, with rows (1,2,6,5) and (3,1,1,1): rank 2, pivots in columns 1 and 2, and R has the identity in those columns and a free part F beside it, with no zero rows (pp. 16–17).
Full rank, r=m=n (pp. 17–18). The matrix is square and invertible, like (1321); its reduced form is R=I, its nullspace is only zero, every b is allowed, and the solution is unique (pp. 17–18).
The four cases
r=m=nr=n<mr=m<nr<m,r<nR=IR=(I0)R=(IF)R=(I0F0)1 solution0 or 1 solution∞ solutions0 or ∞ solutions
In words
c c c r equals m equals n capital R equals capital I 1 solution; r equals n less than m capital R equals capital I; 0 0 or 1 solution; r equals m less than n capital R equals capital I F infinity solutions; r less than m, r less than n capital R equals capital I F; 0 0 0 or infinity solutions
When r=m<n, the I and F may be interleaved if the pivot columns do not come first (p. 19). (Strang first labels the row with R=(I0) and 0 or 1 solution as r=m<n, then corrects it to r=n<m; for r=m<n he first says one or infinitely many, then settles on infinitely many, since there is always a nullspace, pp. 18–19.) The rank tells everything about the number of solutions; only the actual entries need the matrix itself (p. 20).
Worked example
A complete solution of your own
For B=121363012278 (the example of the last page): (a) find the condition on b for Bx=b to be solvable; (b) solve Bx=(1,4,5) completely.
(a) The condition
Eliminating: row 2 becomes (0,0,1,3) with right side b2−2b1; row 3 becomes (0,0,2,6) with right side b3−b1, and then a zero row with right side b3−b1−2(b2−2b1)=b3−2b2+3b1. So Bx=b is solvable exactly when b3=2b2−3b1. Indeed row 3 of B is 2(row 2)−3(row 1).
(b) Particular solution
b=(1,4,5) passes: 2⋅4−3=5. The right side becomes (1,2,0). With x2=x4=0: x1=1 and x3=2, so xp=(1,0,2,0). Check: Bxp=(1,2+2,1+4)=(1,4,5).
(b) Complete solution
Add the special solutions found before: x=(1,0,2,0)+c1(−3,1,0,0)+c2(−2,0,−3,1). The rank 2 is less than both m=3 and n=4, the "0 or infinitely many" case; this b gives infinitely many.
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 matrix with an extra column, the right-hand side b, added to it, so that elimination works on the equations and b together. Explained in Elimination with matrices.
A set of vectors inside a larger space that is a space itself: sums and multiples of its vectors stay inside it. Explained in Transposes, permutations and vector spaces.
Of a square matrix or operator: having an inverse that undoes it; for a matrix this happens exactly when its determinant is not zero. Explained in The geometry of linear equations.
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 written record of exactly what was said in a recorded lecture, word for word.
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).