This set practises three lessons: column space and nullspace (Lecture 6), solving Ax = 0 with pivot variables and special solutions (Lecture 7) and solving Ax = b with the reduced form R (Lecture 8). Independence, bases and dimension come in Lecture 9 and belong to Problem Set 4, so this set counts special solutions and free variables but does not yet speak of dimensions.
MIT's 18.06 problem sets assign exercises from a textbook that is not openly licensed, so this set is made of our own problems on the same lectures, in MIT's lecture order. No MIT or textbook problem is used: every matrix and every number below is ours, and so are the hints and the solutions. The formulas come from the lessons and from the lecture transcripts they cite.
How to answer#
Work each problem on paper first. Then type or choose your result in the answer box and press Check.
A number box wants a decimal number, not a fraction: write , not . Every number box accepts any value within of the exact one; most answers here are whole numbers. A matrix or a vector cannot be typed: a box asks for one of its entries, or you choose from a list. Entries of a matrix are numbered by row, then column, starting from 1 (so is in the first row, second column), and the components of are as in the lectures.
A formula box takes plain typing, for example (q + 1)/2 - 4*b2, and accepts every correct way of writing the answer. Type as b1 and as b2.
Some parts ask you to show something. They have no answer box: write your argument, then open the solution and mark yourself. MIT gives no points for these problems: the points here (100 in all) and their split between the parts are ours. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.
What you need from the lessons#
Subspaces (Lecture 6). A subspace is closed under linear combinations, so it always contains the zero vector:
In words
v, w in the subspace which gives c v plus d w in the subspace, for all numbers c, d
The intersection of two subspaces is a subspace; their union usually is not (pp. 3–6 of the transcript). The column space of an matrix holds all combinations of its columns and lies in ; the nullspace holds all solutions of and lies in (pp. 7–8, 15–16). The key fact:
In words
capital A x equals b has a solution is equivalent to b is in capital C ( capital A )
Solving Ax = 0 (Lecture 7). Elimination does not change the nullspace. On a rectangular matrix it skips a column with no pivot and ends in an echelon matrix . The rank is the number of pivots. Columns with a pivot are pivot columns; the others are free, and their variables can be given any values (pp. 2–5):
In words
r pivot variables, n minus r free variables
A special solution sets one free variable to 1, the others to 0, and solves for the pivot variables; the nullspace is all combinations of the special solutions (pp. 5–8). Eliminating upwards and dividing by the pivots gives the reduced row echelon form . With the pivot columns put first,
In words
capital R equals capital I F; 0 0, x pivot equals minus F x free, capital N equals minus F; capital I
so the columns of are the special solutions.
Solving Ax = b (Lecture 8). Eliminate on the augmented matrix . A zero row of turns into a condition on : if a combination of the rows of gives the zero row, the same combination of the entries of must give 0 (pp. 2–4). A particular solution sets every free variable to 0 and solves for the pivot variables (pp. 5–6). Then
In words
capital A x sub p equals b, capital A x sub n equals 0 which gives capital A the quantity x sub p plus x sub n, equals b, x equals x sub p plus ( any vector in capital N ( capital A ))
The rank obeys and (pp. 10–11), and it decides how many solutions there can be:
- (square and invertible, ): exactly one solution for every ;
- (full column rank): no free variables, so 0 or 1 solution;
- (full row rank): no zero rows, so infinitely many solutions for every ;
- and : 0 or infinitely many solutions, depending on (pp. 11–19).
Problem 1#
Which sets are subspaces?
All the sets in this problem lie in , and a vector there is written .
(a)6 points
Decide for each set whether it is a subspace of .
- : all with .
- : all with .
- : all with .
- : all whose three components are all at least .
- : all with and .
Hint
First ask whether the zero vector is in the set. If it is, try to break the rule with two vectors of the set whose sum, or a multiple, falls outside.
Hint
means or , so is made of two planes: test a sum of one vector from each. For a set described by inequalities, test multiples as well as sums.
Solution
The idea. A subspace must contain zero and keep every combination inside. Equations of the form "combination of components " always give subspaces; anything else needs a check.
The two subspaces
is the nullspace of the matrix , and a nullspace is always a subspace (Lecture 6 transcript, p. 20). is the intersection of the two planes and , each a subspace, and an intersection of subspaces is a subspace (pp. 5–6). It is the line of multiples of .
The three that fail
contains and , but not their sum , since : it is the union of the planes and , and a union of two planes is not a subspace. does not contain the zero vector, since . contains zero and is closed under addition, but is in it and is not.
Check
, and are all described by equations, but only the right-hand side keeps zero in the set: is a plane parallel to the subspace , shifted away from the origin, like the solutions of with in the lecture (p. 22).
(b)4 points
Let be the plane of part (a), the line of all multiples of , and the line of all multiples of . What is the intersection of with , and of with ?
Hint
A line through the origin either lies in the plane or meets it only at the origin. Put the direction vector into the equation of the plane.
Solution
The idea. A multiple lies in when times the left side of the equation of , taken at , is zero.
The two lines
For : , so every multiple of it lies in , and the intersection is the whole line . For : , so is in only when , that is : the intersection is the zero vector alone.
Check
Both intersections are subspaces, as they must be (Lecture 6 transcript, pp. 4–6): a line through the origin and the zero subspace. "Two points" cannot be the intersection of two subspaces, since with a nonzero vector the intersection would contain all its multiples.
(c)4 points
Show that the union of and (all vectors that are in or in or in both) is not a subspace, by finding a vector of and a vector of whose sum is in neither.
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
Take the direction vector of , and any nonzero vector of that is not on . Then test the sum against both sets.
Solution
The idea. A union is closed under multiples but, as Strang shows for a plane and a line, usually not under addition (Lecture 6 transcript, pp. 3–4).
A sum that escapes
is in , since , and is in . Their sum is . It is not in : . It is not in either: a multiple with first component has and second component , not . So the union is not closed under addition and is not a subspace.
Check
Any choice works as long as is in but not on (and ): if were in , then would be in too, which it is not by part (b); if were on , then would be on .
Problem 2#
Column space and nullspace by eye
Take the matrix , whose third column is a combination of the first two.
(a)5 points
Find the vector in whose first component is . Then describe and .
Hint
Find numbers and with column 3 (column 1) (column 2): the second row gives at once. Then move column 3 to the other side.
Hint
Columns 1 and 2 are not multiples of each other. What does that tell you about any combination of the three columns that gives zero?
Solution
The idea. A dependence among the columns is a vector in the nullspace: is times column 1 plus times column 2 plus times column 3.
The dependence
The second row says column 3 (column 1) (column 2) needs ; the first row then gives , so . Check on all four rows: , which is column 3. So column 1 minus 2 times column 2 minus column 3 is zero:
In words
capital A 1; minus 2; minus 1 equals 1 minus 4 plus 3; 0 minus 2 plus 2; 2 minus 2 plus 0; 1 plus 2 minus 3 equals 0; 0; 0; 0
The two subspaces
Any in gives (column 1) (column 2) (column 1 column 2) , that is (column 1) (column 2) . Columns 1 and 2 are not multiples of each other, so and : . So is the line of multiples of in . Column 3 adds nothing to the combinations of columns 1 and 2, so is the plane of combinations of and in , like the example of the lecture (Lecture 6 transcript, pp. 13–15).
Check
The nullspace has three components and lives in , the column space has four and lives in : and (p. 16). Two vectors cannot fill .
(b)4 points
Which of these four vectors is in ?
Hint
Write (column 1) (column 2). The second row gives , the first row then gives , and the last two rows test the result.
Solution
The idea. is solvable exactly when is in (Lecture 6 transcript, pp. 12–13), and by part (a) only columns 1 and 2 are needed.
Test each vector
With , row 2 says and row 1 says ; then rows 3 and 4 must agree.
- : , , row 3 gives . Not in .
- : , , row 3 gives . Not in .
- : , , row 3 gives (right) but row 4 gives . Not in .
- : , , row 3 gives and row 4 gives . In : it is 2 times column 1 plus column 2.
Check
. The vector shows why every row must be tested: it passes three of the four.
(c)7 points
Find all solutions of , and give the one whose third component is . Do the solutions form a subspace?
Hint
Find one solution first: write as a combination of columns 1 and 2, as in part (b). What can you add to it without changing ?
Hint
Add a multiple of the nullspace vector of part (a), and choose so that the third component comes out right.
Solution
The idea. One solution plus anything in the nullspace is again a solution, because (Lecture 6 transcript, pp. 21–22; Lecture 8 makes it the rule).
All solutions
As in part (b), is column 1 plus column 2 (, , and rows 3 and 4 agree), so is a solution, and from part (a) the nullspace is the line of multiples of :
In words
x equals 1; 1; 0 plus c 1; minus 2; minus 1
The third component is , so needs : .
Not a subspace
The solutions form a line in , but it misses the origin: . A subspace must contain zero, so this is not one (Lecture 6 transcript, p. 22).
Check
, and .
Problem 3#
Special solutions of a 3 by 5 matrix
Take and solve , with .
(a)6 points
Reduce to an echelon matrix by elimination. Give the second pivot (no row exchanges) and the rank, and say which variables are free.
Hint
Clear column 1 below the first pivot. Then look at column 2 in rows 2 and 3: if there is no pivot there, move on to column 3, as in the lecture.
Solution
The idea. Elimination on a rectangular matrix: when a column has no pivot, go on to the next column.
Eliminate
Subtract 3 times row 1 from row 2 and 2 times row 1 from row 3. Both new rows start with two zeros: and . Column 2 has no pivot, so move to column 3: the second pivot is . Adding the new row 2 to row 3 gives a zero row:
In words
U equals 1 2 1 1 2; 0 0 2 4 minus 2; 0 0 0 0 0
Rank and free variables
There are two pivots, so . They sit in columns 1 and 3, so and are pivot variables and , , are free: of them (Lecture 7 transcript, pp. 4, 9).
Check
The zero row says row 3 of is a combination of rows 1 and 2. Indeed (row 1) (row 2) , which is row 3. Column 2 is twice column 1, which is why it has no pivot.
(b)7 points
Find the three special solutions. For the one with (and ), and for the one with (and ), give the pivot variables and .
Hint
Write out the two equations of . Put in the values of the free variables, solve the second equation for , then the first for .
Solution
The idea. One free variable 1, the others 0, then back substitution: one special solution for each free variable.
The equations
In words
x one plus 2 x two plus x three plus x four plus 2 x five equals 0, 2 x three plus 4 x four minus 2 x five equals 0
Back substitution
- : the second equation gives , the first . Special solution .
- : , so ; then , so . Special solution .
- : , so ; then , so . Special solution .
The nullspace is all their combinations (Lecture 7 transcript, pp. 7–8).
Check
Put each one into the original , row by row. For : , , . For : , , .
(c)3 points
Go on from to the reduced row echelon form . Show that the free columns of , with their signs switched, are the pivot entries of the special solutions of part (b).
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
Two steps: divide row 2 of by its pivot, then subtract a multiple of the new row 2 from row 1 to clear the entry above that pivot.
Solution
The idea. In the pivot columns hold the identity, so gives each pivot variable directly in terms of the free ones.
The reduced form
Halve row 2: . Subtract it from row 1: .
In words
capital R equals 1 2 0 minus 1 3; 0 0 1 2 minus 1; 0 0 0 0 0
The free part and the special solutions
The pivot columns 1 and 3 hold the identity. The free columns 2, 4 and 5 hold . By (Lecture 7 transcript, pp. 12–14), the pivot entries of the three special solutions are the columns of : , and . These are the values found in part (b).
Check
With the variables reordered as , the nullspace matrix has the three special solutions as its columns, and in the pivot rows. MATLAB's rref(A) would print the same (Lecture 7 transcript, p. 10).
(d)4 points
Without any particular matrix: what is the smallest possible number of special solutions for a matrix, and for a matrix?
Hint
A row holds at most one pivot, and so does a column. How large can be, and what does that leave for ?
Solution
The idea. There are special solutions, and the rank is at most the number of rows and at most the number of columns (Lecture 8 transcript, pp. 10–11).
The wide matrix
, : , so there are at least free variables and 3 special solutions. Four equations in seven unknowns always leave nonzero solutions of .
The tall matrix
, : , and is possible, for example when the top four rows are the identity and the rest are zero. Then there are free variables and no special solutions: the nullspace is the zero vector alone.
Check
The example of Lecture 7, a matrix, had to have at least special solution; it had 2, because its rank was 2, not 3 (Lecture 7 transcript, pp. 4, 9).
Problem 4#
The complete solution of Ax = b
Take and a right-hand side .
(a)6 points
Eliminate on the augmented matrix . For which is solvable? Give as a formula in and .
Hint
Do to the last column exactly what you do to the rows: after the first step, the right side of row 2 is no longer alone.
Hint
The last row of becomes zero. Its right side, which is a combination of , and , must then be zero too.
Solution
The idea. A zero row in the reduced turns into a condition on (Lecture 8 transcript, pp. 2–3).
Eliminate
Row 2 minus 2 times row 1, and row 3 plus row 1, give with right side , and with right side . Then row 3 minus 3 times row 2 is the zero row, with right side :
In words
1 minus 1 2 0 b one; 0 0 1 1 b two minus 2 b one; 0 0 0 0 b three minus 3 b two plus 7 b one
The condition
The last equation reads . So is solvable exactly when ; for any other there is no solution.
Check
Each column of must pass the test, since a column is times a column of the identity. Column 1: , its third entry. Column 4: . Column 3: .
(b)5 points
Take , which passes the test of part (a). Find the particular solution , with every free variable set to .
Hint
The pivots are in columns 1 and 3, so the free variables are and . Use the right sides after elimination, and solve the second row before the first.
Solution
The idea. Free variables zero, then back substitution for the pivot variables (Lecture 8 transcript, pp. 5–6).
Solve
The right sides after elimination are and . With , row 2 says , and row 1 says , so :
In words
x sub p equals minus 1; 0; 1; 0
Check
As Strang urges, check in the original equations: , , . And passes the test: .
(c)6 points
Write the complete solution of . Give the solution with and , and say what kind of set the solutions form.
Hint
First find the two special solutions of (from the elimination of part (a) with zero right sides). Then add any combination of them to .
Hint
In plus times the first special solution plus times the second, the free variables and are just and , because has zeros there and each special solution has a single 1 there.
Solution
The idea. Complete solution one particular solution all of the nullspace (Lecture 8 transcript, pp. 6–8).
The special solutions
With zero right sides the rows are and . For , : and , so . For , : and , so .
The complete solution
In words
x equals minus 1; 0; 1; 0 plus c one 1; 1; 0; 0 plus c two 2; 0; minus 1; 1
and mean and : .
The picture
Two free constants give a flat plane in , the nullspace plane shifted to pass through . It does not contain zero, since , so it is not a subspace (Lecture 8 transcript, pp. 9–10).
Check
.
(d)3 points
Find a combination of the three rows of that gives the zero row, and show that the condition of part (a) says exactly that the same combination of , , is zero.
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
The elimination of part (a) built the zero row out of the rows of . Keep track of how many of each original row went into it.
Solution
The idea. This is Strang's second form of the solvability condition (Lecture 8 transcript, p. 4).
The combination
The zero row was (row 3 row 1) (row 2 row 1) (row 1) (row 2) (row 3). Check: . So the combination is 7, and 1 times rows 1, 2 and 3 (or any multiple of it).
The same combination of b
The same steps act on the right side and give , which must be zero: this is of part (a). The reason it must vanish: if , then is the same combination of the rows of applied to , and that combination is the zero row.
Check
For : . For : , so that has no solution.
Problem 5#
Rank and the number of solutions
For a number , take the square matrix .
(a)4 points
Eliminate. Give the third pivot as a formula in , and the value of for which has rank 2.
Hint
After column 1 is cleared, row 3 still has a 1 in column 2: one more subtraction is needed before you read off the third pivot.
Solution
The idea. The rank is the number of pivots; a pivot that is zero, with nothing below it to exchange, is lost.
Eliminate
Row 2 minus row 1 gives ; row 3 minus 3 times row 1 gives . Then row 3 minus row 2 gives :
In words
U equals 1 1 2; 0 1 minus 3; 0 0 q minus 3
The rank
For there are three pivots: rank 3, is invertible. For the third row of is zero: rank 2.
Check
At the third row of is , twice row 1 plus row 2, which is why elimination turns it into zero.
(b)6 points
Decide how many solutions has for with , for with , and for with . For the last, also give .
Hint
For , carry along in the elimination of part (a) and find the condition the zero row puts on .
Hint
For the rank is 3 with . Solve by back substitution, where is after the same elimination steps.
Solution
The idea. With and there are 0 or infinitely many solutions, depending on ; with there is exactly one (Lecture 8 transcript, pp. 17–19).
The right side goes along as , then , then , and the zero row needs this to be . For : , solvable, and with one free variable there are infinitely many solutions. For : , no solution.
The pivots are , , : rank 3, so exactly one solution. The right side becomes . Back substitution: gives ; gives ; gives .
Check
For : . For , : a particular solution is , column 1 itself, since column 1 is .
(c)6 points
Now take the matrix and its transpose , a matrix. Give the rank of , and choose what is true of (for in ) and of (for in ).
Hint
One elimination step on shows its rank. For , are its two columns multiples of each other?
Solution
The idea. Full row rank () means a solution for every right side; full column rank () means no free variables and at most one solution (Lecture 8 transcript, pp. 11–17).
B
Row 2 minus 2 times row 1 is : two pivots, in columns 1 and 2, so . There is no zero row, so no condition on , and free variables: infinitely many solutions for every .
The transpose
has the columns and , which are not multiples of each other, so elimination finds two pivots: . No free variables, so the nullspace is zero and a solution, if there is one, is unique. But four equations in two unknowns leave two zero rows and two conditions on : for most there is no solution. So 0 or 1.
Check
with , the sum of the two columns of , is solved by ; with the third row forces , the first then , and the second row fails (). Like the tall and wide examples of the lecture (pp. 13–17).
Problem 6#
A matrix from its solutions
(a)6 points
A matrix is in reduced row echelon form, and the special solutions of are and . Find : give its entries , and .
Hint
The free variables are the ones where a special solution has its single 1. So you know which columns of are pivot columns, and what those columns hold.
Hint
Each row of times each special solution must give zero. Write out the four products.
Solution
The idea. The nullspace matrix is , so can be read off the special solutions backwards (Lecture 7 transcript, pp. 12–14).
Pivot and free columns
The special solutions have their 1 in components 2 and 4, so and are free and columns 1 and 3 are the pivot columns, holding and :
In words
capital R equals 1 r one two 0 r one four; 0 r two two 1 r two four
In echelon form, row 2 has only zeros before its pivot, so .
The free entries
The pivot entries of the special solutions are and ; they are the columns of . So , and , , :
In words
capital R equals 1 3 0 minus 2; 0 0 1 4
Check
and .
(b)8 points
A matrix is not given, but the complete solution of is known to be , for all numbers , and nothing else. Find the rank of , find the first component of , and decide whether is solvable for every in .
Hint
The nullspace is what is added to the particular solution. How many special solutions, so how many free variables, does that mean?
Hint
Write as a multiple of plus a multiple of : the third component fixes the second multiple.
Solution
The idea. The complete solution shows the nullspace directly, and is linear: of a combination of and a nullspace vector is the same combination of and .
The rank
The nullspace is the line of multiples of : one special solution, so one free variable, and (Lecture 7 transcript, p. 9).
A(3, 3, 1)
: the third component gives the second coefficient , the first then gives , and the second component checks, . So
In words
capital A 3; 3; 1 equals 2 capital A 1; 2; 0 plus capital A 1; minus 1; 1 equals 2 2; minus 1; 4 plus 0 equals 4; minus 2; 8
The first component is .
Not every b
, so elimination leaves a zero row and a condition on : some have no solution. Here and , the "0 or infinitely many" case, and this is one with infinitely many (Lecture 8 transcript, pp. 18–19).
Check
Such a matrix exists. Take the columns , and . Then , so is in the nullspace; ; and , are not multiples of each other, so the rank is 2. Directly, .