This set practises two lessons: independence, basis and dimension (Lecture 9) and the four fundamental subspaces (Lecture 10). Problems 1 to 3 belong to Lecture 9, Problems 4 to 6 to Lecture 10. Spaces of matrices, which close Lecture 10 and open Lecture 11, and the question of which subspaces are perpendicular to which, belong to Problem Set 5.
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. The transcripts have no printed page numbers, so "p." means the page of the transcript PDF.
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; the answers here are whole numbers. A matrix, a vector or a subspace cannot be typed: a box asks for one of its entries or components, or for a dimension, or you choose from a list. Entries of a matrix are numbered by row, then column, starting from 1, and the components of a vector are .
A formula box takes plain typing, for example (k + 2)/(k - 3), and accepts every correct way of writing the answer.
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#
Independence (Lecture 9). Vectors are independent when the only combination that gives the zero vector is the one with all coefficients zero:
In words
c one v one plus c two v two plus and so on plus c sub n v n equals 0 only when c one equals c two equals and so on equals c sub n equals 0
A set that contains the zero vector is dependent (p. 5). Put the vectors in the columns of a matrix ; then a combination is , and
In words
independent is equivalent to capital N ( capital A ) equals 0 is equivalent to r equals n (no free variables)
An matrix with has a free variable, so more than vectors in are always dependent (pp. 2, 6).
Span, basis, dimension (Lecture 9). Vectors span a space when the space consists of all their combinations (p. 9). A basis is a set of vectors that is independent and spans the space (p. 10). vectors are a basis of exactly when the matrix with these columns is invertible (p. 14). Every basis of a space has the same number of vectors, the dimension of the space (p. 16), and when the dimension is known, that many independent vectors are automatically a basis (p. 21). For a matrix of rank with columns:
In words
dim capital C ( capital A ) equals r, dim capital N ( capital A ) equals n minus r
with the pivot columns of as a basis of and the special solutions as a basis of (pp. 19, 23).
The four subspaces (Lecture 10). For an matrix of rank , the row space and the nullspace lie in ; the column space and the left nullspace lie in (p. 5). Their dimensions are
In words
dim capital C ( capital A ) equals r, dim capital C ( capital A ^ capital T ) equals r, dim capital N ( capital A ) equals n minus r, dim capital N ( capital A ^ capital T ) equals m minus r
Row operations keep the row space, so the first rows of the reduced form are a basis of the row space (pp. 12–15). The left nullspace holds the with , that is : the combinations of the rows that give the zero row (p. 16). Gauss–Jordan on records the row operations in a matrix :
In words
capital A capital I goes to capital R E, E capital A equals capital R
and the rows of that produce the zero rows of are a basis of (pp. 20–21).
Problem 1#
Independent or dependent?
(a)6 points
Decide for each set of vectors whether it is independent.
- Set 1: and in .
- Set 2: , and in .
- Set 3: , , and in .
- Set 4: , and in .
- Set 5: , and in .
Hint
Two of the sets can be decided without any arithmetic: look for the zero vector, and count the vectors against the number of components.
Hint
For the others, try to write one vector as a combination of the others, or put the vectors in the columns of a matrix and count its pivots.
Solution
The idea. Look first for the quick reasons (a zero vector, too many vectors); otherwise find a combination that gives zero, or show by the pivots that none exists.
The quick ones
Set 2 contains the zero vector: is a combination with a coefficient that is not zero, so the set is dependent (Lecture 9 transcript, p. 5). Set 3 has four vectors in : as the columns of a matrix they leave at least one free variable, so they are dependent (pp. 2, 6).
The other three
Set 1: is not a multiple of (the first components would need the factor 3, the second the factor ), so the two are independent. Set 4: twice the first vector minus the second is , the third vector: a combination with coefficients 2, -1 and -1 gives zero, and the set is dependent. Set 5: in the first component gives , the last , and then the second gives : independent.
Check
Set 4 hides its dependence well: no vector is a multiple of another and none is zero. The matrix with these columns has rank 2, not 3, which is the test of the lecture (pp. 7–8).
(b)6 points
Take the four vectors of
In words
v one equals 1; 0; 2, v two equals 0; 1; 1, v three equals 1; 1; 0, v four equals 1; 4; minus 3
There is exactly one choice of numbers with . Find it, and give and .
Hint
Put the four vectors in the columns of a matrix and eliminate. The numbers you want are a vector in its nullspace whose last component is 1.
Hint
After elimination, solve from the bottom row up, with the last unknown set to 1.
Solution
The idea. A combination of the columns that gives zero is a vector in the nullspace of the matrix with these columns (Lecture 9 transcript, pp. 7–8). Four columns in leave at least one free variable (p. 6).
Eliminate
Subtract 2 times row 1 from row 3; then subtract row 2 from the new row 3:
In words
1 0 1 1; 0 1 1 4; 2 1 0 minus 3 goes to 1 0 1 1; 0 1 1 4; 0 1 minus 2 minus 5 goes to 1 0 1 1; 0 1 1 4; 0 0 minus 3 minus 9
The pivots are in columns 1, 2 and 3, so are independent and column 4 is the one free column. The nullspace is a line, and setting its last component to 1 picks one vector of it.
Back substitution
With the coefficient of equal to 1, the last row says , so . The second row says , so . The first row says , so .
Check
. So : the fourth vector adds nothing to the span of the first three.
(c)4 points
Let be independent, and let be a vector that is not a combination of . Show that are independent.
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
Start from a combination . What would say about ?
Solution
The idea. A nonzero coefficient of would let us solve for ; once it is zero, the independence of the 's does the rest.
The coefficient of w
Suppose . If , divide by :
In words
w equals minus c one over d, times v one minus and so on minus c sub k over d, times v sub k
That writes as a combination of the 's, which it is not. So .
The other coefficients
With the combination is , and the 's are independent, so every . Only the zero combination of gives zero: they are independent.
Check
This is the step behind Strang's search for a third vector of a basis of : any vector not in the plane of the first two may be added (Lecture 9 transcript, p. 13). The condition is needed: in part (b), is a combination of the independent , and the four together are dependent.
Problem 2#
A span, a basis of it, and a basis of R⁴
Take the four vectors of
In words
w one equals 1; 0; 2; 1, w two equals 2; 1; 3; 0, w three equals 0; 1; minus 1; minus 2, w four equals 1; 1; 1; 1
and let be the space they span.
(a)4 points
Find the dimension of .
Hint
Is one of the vectors a combination of two others? Compare with and .
Hint
After removing one vector, test the remaining three for independence by elimination.
Solution
The idea. The dimension is the number of vectors in a basis, so remove the vectors that add nothing and check that the rest are independent.
One vector adds nothing
. So every combination of all four is already a combination of , and these three span .
The other three are independent
Put in the columns of a matrix and eliminate: subtract 2 times row 1 from row 3 and row 1 from row 4, then add the new row 2 to row 3 and 2 times row 2 to row 4:
In words
1 2 1; 0 1 1; 2 3 1; 1 0 1 goes to 1 2 1; 0 1 1; 0 minus 1 minus 1; 0 minus 2 0 goes to 1 2 1; 0 1 1; 0 0 0; 0 0 2
Exchanging the last two rows gives three pivots: rank 3, no free variable, so are independent. They are a basis of , and .
Check
Four vectors of could have spanned all of , but the dependence costs one dimension. The dimension is at most 4 (the vectors lie in ) and at least 2 ( and are not multiples of each other).
(b)4 points
Which of these sets of vectors is a basis of ?
Hint
A basis of needs exactly vectors, and they must be independent. Use the dependence you found in part (a).
Solution
The idea. With the dimension known, the right number of vectors that span is a basis, and so is the right number of independent vectors (Lecture 9 transcript, p. 21).
Test each set
All four are dependent, since , and four is one too many. are dependent by the same equation. Two vectors are too few for a space of dimension 3. That leaves : since , every combination of is a combination of , so these three span . Three vectors that span a space of dimension 3 are a basis.
Check
First, . Then directly: in , the first component gives and the fourth , so and ; the second, , becomes . So all three coefficients are zero: independent.
(c)5 points
The vector is in , and are also a basis of . Write and give and .
Hint
Write out the four components. The first two equations are short; use the other two to finish and to check.
Solution
The idea. In a basis every vector of the space has exactly one set of coefficients, so four equations in three unknowns have one solution here.
Solve
In words
c one plus c four equals 3, c three plus c four equals 0, 2 c one minus c three plus c four equals 6, c one minus 2 c three plus c four equals 5
From the first two, and . The third becomes , which holds for every . The fourth becomes , so , and then and .
Check
. The coefficients are unique, because are independent: in the first two components give , and the fourth, , becomes . If two sets of coefficients gave , their difference would be such a combination, so it is the zero combination.
(d)5 points
Which one of these vectors, added to the basis of from part (c), gives a basis of ?
Hint
A vector that is already in would make the four dependent. By Problem 1(c), a vector outside keeps them independent.
Hint
Look for one equation, a combination of the components equal to zero, that all of satisfy. Try one with left out.
Solution
The idea. Describe by one equation; then a vector lies outside exactly when it breaks that equation.
An equation for S
Every satisfies : for , ; for , ; for , ; for , . So all their combinations satisfy it too, and lies inside the space of solutions of this one equation. is the nullspace of the matrix , of rank 1, so . The basis of is three independent vectors in , so it is a basis of as well (Lecture 9 transcript, p. 21): .
Test the candidates
In words
(1, 0, 0, 0): 2, (1, 1, 1, 0): 2 minus 1 minus 1 equals 0, (0, 0, 0, 1): 0, (1, 2, 0, 0): 2 minus 2 equals 0
Only breaks the equation, so only it lies outside . By Problem 1(c), are independent, and four independent vectors in are a basis.
Check
The other three really are in ; for example , so . The lecture's own test, that the matrix with the four vectors as columns must be invertible, gives the same answer by elimination (Lecture 9 transcript, p. 14).
Problem 3#
When are three vectors a basis of R³?
For a number , take
In words
v one equals 1; 1; 0, v two equals 1; a; 1, v three equals 0; 2; a
and let be the matrix with columns .
(a)5 points
Eliminate on in the usual way, with no row exchanges and without rescaling any row: subtract a multiple of row 1 from row 2, then a multiple of the new row 2 from row 3. For , find the third pivot as a formula in .
Hint
Write out row by row first: its rows are made of the first, second and third components of the three vectors.
Hint
After the first step the second pivot is . The multiplier for row 3 is the entry to be removed divided by that pivot.
Solution
The idea. Elimination on the matrix whose columns are the vectors decides independence: three pivots, three independent columns (Lecture 9 transcript, pp. 7–8).
The matrix
The rows of hold the first, second and third components of :
In words
capital A equals 1 1 0; 1 a 2; 0 1 a goes to 1 1 0; 0 a minus 1 2; 0 1 a
The second step
For the second pivot is not zero. Subtract times row 2 from row 3: the 1 below the pivot disappears, and the last entry becomes
In words
a minus 1 over the quantity a minus 1, times 2 equals a minus 2 over the quantity a minus 1, equals the quantity a squared minus a minus 2, all over the quantity a minus 1
Check
At : . Directly, the matrix after the first step has rows and ; half of the first taken from the second leaves .
(b)3 points
Part (a) left out . What is true of for ?
Hint
Do the first elimination step with and look at the rows that are left.
Solution
The idea. A zero in a pivot position is not yet a missing pivot: a row exchange may bring a nonzero entry up, as in elimination on a square matrix.
Elimination at
After the first step the rows are , and . The zero in the second pivot position is fixed by exchanging rows 2 and 3, and the pivots are . Three pivots: the vectors , , are independent, and the matrix with these columns is invertible, so they are a basis of (Lecture 9 transcript, p. 14).
Check
At , and differ in the third component, so they are not equal. Three independent vectors in span all of it, not just a plane (Lecture 9 transcript, p. 21).
(c)4 points
For two values of the vectors are not a basis of . Find both.
Hint
Write the third pivot of part (a) as one fraction and factor its top. Part (b) has settled .
Solution
The idea. Three vectors in are a basis exactly when the matrix with these columns is invertible, that is when it has three pivots (Lecture 9 transcript, p. 14).
Where the pivot vanishes
The third pivot is zero for and . For those two values the rank is 2 and the vectors are dependent. For every other there are three pivots, and gives a basis by part (b). So the only two failures are and .
Check
For : . For : . Both are dependences, as they must be.
(d)4 points
Show that in a space of dimension , any independent vectors span the space, and any vectors that span the space are independent. So in either case they are a basis.
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
For the first claim, suppose they do not span: then some vector of the space is not a combination of them. Use Problem 1(c).
Hint
For the second, suppose they are dependent: then one of them is a combination of the others and can be removed without changing the span.
Solution
The idea. Both claims come from the fact that every basis has exactly vectors (Lecture 9 transcript, p. 16): a set that is too small cannot span, a set that is too large cannot be independent. Quoting the fact that vectors in a space of dimension are dependent, as the lecture does (p. 21), earns the full 4 points; the first step below also proves it.
Independent and n of them
Let be independent. If they did not span the space, some vector of the space would not be a combination of them, and by Problem 1(c) the vectors would be independent. That is impossible: write each of these vectors in a basis of vectors, and put the coefficients of each into a column. The matrix of coefficients has more columns than rows, so a nonzero vector lies in its nullspace (Lecture 9 transcript, p. 2), and the same combination of the vectors gives zero. So span, and they are a basis. Strang gives the short form of this argument for the column space of his example (Lecture 9 transcript, p. 21).
Spanning and n of them
Let span the space. If they were dependent, one of them would be a combination of the others, and removing it would leave vectors with the same span. Keep removing vectors in this way until the rest are independent: that gives a basis with fewer than vectors, again impossible. So are independent, and they are a basis.
Check
In : by part (c) the three vectors with are dependent, and indeed they do not span ( adds nothing to the plane of and ). Both halves fail together, as the argument says they must.
Problem 4#
The four subspaces of one matrix
Take the matrix
In words
capital A equals 1 2 minus 1 1; 3 7 minus 2 5; minus 1 0 3 3
(a)6 points
Find the dimensions of the four fundamental subspaces of .
Hint
Eliminate to find the rank . Here and .
Solution
The idea. The rank gives all four dimensions: , , and (Lecture 10 transcript, pp. 7–10).
The rank
Subtract 3 times row 1 from row 2 and add row 1 to row 3: the new rows 2 and 3 are and . The second is twice the first, so subtracting 2 times row 2 from row 3 leaves a zero row:
In words
capital A goes to 1 2 minus 1 1; 0 1 1 2; 0 2 2 4 goes to capital U equals 1 2 minus 1 1; 0 1 1 2; 0 0 0 0
Two pivots, in columns 1 and 2: .
The four dimensions
, (two free variables, and ) and .
Check
In : . In : (Lecture 10 transcript, p. 21).
(b)5 points
Continue to the reduced form and use it for a basis of the row space. The row space contains exactly one vector of the form : give and . Then decide whether column 1 of lies in the column space of .
Hint
Clear the entry above the second pivot. The nonzero rows of are a basis of the row space, and their first two components are a 1 and a 0, or a 0 and a 1.
Hint
A combination of the two rows of with first components needs one of each row.
Solution
The idea. Row operations keep the row space, so the nonzero rows of are a basis of the row space of ; they do not keep the column space (Lecture 10 transcript, pp. 12–15).
The reduced form
Subtract 2 times row 2 of from row 1:
In words
capital R equals 1 0 minus 3 minus 3; 0 1 1 2; 0 0 0 0
So and are a basis of .
The vector (1, 1, s, t)
A vector of the row space is . First components force , so the vector is : and .
The column space changed
Every column of has third component , and so does every combination of them. Column 1 of is , with third component : it is in but not in . As in the lecture's example, elimination changed the column space (Lecture 10 transcript, p. 12).
Check
should also be a combination of the rows of itself. Row 2 of minus 2 times row 1 is , and , where is row 2 minus 3 times row 1. Both steps use only rows of .
(c)4 points
Which of these is a basis of the column space ?
Hint
The pivot columns tell you which columns to take, but take them from the right matrix.
Solution
The idea. The pivot columns of the original are a basis of (Lecture 10 transcript, p. 7).
The pivot columns
The pivots of are in columns 1 and 2, so columns 1 and 2 of , and , are independent and span : a basis, two vectors for dimension 2.
Why not the others
Columns of lie in , which by part (b) is a different plane: they all end in , while contains . The rows of have four components and lie in , not in where lives.
Check
Column 4 of is , which says column 4 of is times column 1 plus 2 times column 2: , which is column 4 of . So the pivot columns of do produce the other columns.
(d)7 points
Run Gauss–Jordan on , doing to the same row operations as in parts (a) and (b), to reach . The row of that produces the zero row of is a basis of . Scale it so that its third component is ; then give its first two components and , and say where lies.
Hint
Only the operations that change row 3 matter for the last row of . Follow row 3 of through them, one at a time.
Hint
One of those operations uses row 2 after row 2 has itself been changed: use the changed row 2 of at that moment.
Solution
The idea. records every row operation, , and the last row of is the zero row: so the last row of is a combination of the rows of that gives zero (Lecture 10 transcript, pp. 17–21).
Follow the identity
On : row 2 minus 3 times row 1 gives ; row 3 plus row 1 gives ; then row 3 minus 2 times the new row 2 gives . Finally row 1 minus 2 times row 2 gives . So
In words
E equals 7 minus 2 0; minus 3 1 0; 7 minus 2 1, E capital A equals capital R
and : and .
Where it lies
has components, one for each row of , so lies in . Its dimension is (part (a)): it is the line of all multiples of .
Check
. The first row of also checks: , row 1 of .
Problem 5#
Counting dimensions
(a)4 points
A matrix has rank 4. Find the dimensions of its nullspace and of its left nullspace.
Hint
Decide first which of the numbers 6 and 9 is and which is .
Solution
The idea. means rows and columns: here and .
Count
, the number of free variables, and (Lecture 10 transcript, pp. 9–10).
Check
and lie in : . and lie in : .
(b)4 points
is an matrix of rank , and is a vector of . The matrix is with added as one more column. Find when is in , and when is not in , as formulas in , and .
Hint
First find the rank of in each case: does the new column add a pivot? Then count columns of , and rows of .
Solution
The idea. A new column adds a pivot exactly when it is not a combination of the old columns, that is when is not in .
b in C(A)
Then , so has rank and columns:
In words
dim capital N ( capital B ) equals the quantity n plus 1, all minus r
The extra dimension is the solution , where .
b not in C(A)
Then is independent of the columns of (Problem 1(c) applied to a basis of ), has rank , and it still has rows:
In words
dim capital N ( capital B ^ capital T ) equals m minus the quantity r plus 1, equals m minus r minus 1
Check
Take , so and . With , in , holds and : dimension . With , not in , has rank 2 and is only zero: dimension . With the matrix and , not in , the third row of is zero, so is the line of multiples of : dimension .
(c)6 points
Is there a matrix with each property?
- A matrix with and .
- A matrix whose column space is equal to its nullspace.
- A matrix with and .
- A matrix whose column space is equal to its nullspace.
Hint
Each condition fixes the rank. See whether the conditions agree on one rank, and whether that rank is possible for the size.
Hint
For a square matrix, equal column space and nullspace need .
Solution
The idea. The four dimensions are , , and (Lecture 10 transcript, pp. 7–10), so any two conditions on them must give the same rank.
Properties 1 and 3
Property 1: gives , and then , not 1. Impossible. Property 3: gives , and then , as asked; rank 3 is possible for a matrix (it is at most 4). For example, the matrix with of size 3 in its upper left corner and zeros elsewhere. Possible.
Properties 2 and 4
For an matrix both spaces lie in , and equal spaces have equal dimensions: , so . For that is impossible, since would be . For it needs , and the matrix works: its column space is the line of multiples of , and so is its nullspace, since is zero exactly when .
Check
For the example of property 3, the special solutions are the last three columns of the identity: three of them, . Its left nullspace is the multiples of : .
Problem 6#
What row operations keep
Let be an matrix and an invertible matrix, and put . Every sequence of row operations gives such a ; the reduced form is for the of Gauss–Jordan.
(a)7 points
Take and its reduced form . The left nullspace contains a vector and a vector : give and . Then compare with .
Hint
is in when , the combination of the rows of with the coefficients , is the zero row.
Hint
For , do the same with the rows of . Then test whether a vector of one space lies in the other.
Solution
The idea. asks for a combination of the rows that gives the zero row (Lecture 10 transcript, p. 16).
The left nullspace of A
Every row of is a multiple of : rows 1, 2, 3 are , and times it. So , which is zero exactly when . With that gives , so ; with it gives , so . The two vectors and are a basis of , which has dimension .
The left nullspace of R
, which is zero exactly when : is the plane of the vectors . It is a plane in too, but a different one: is in and not in , and is in but not in , since .
Check
and . Row operations kept the dimension of the left nullspace, , but moved it to another plane.
(b)7 points
Show that has the same nullspace and the same row space as .
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
For the nullspace: if , what is ? And if , multiply by .
Hint
For the row space: each row of is a combination of the rows of . Use for the other direction.
Solution
The idea. Because can be undone, each of and is a row-combination of the other.
The nullspace
If then . If then . So and have the same solutions: .
The row space
Each row of is a combination of the rows of , with the entries of the same row of as its coefficients. So every row of , and every combination of rows of , is in the row space of : lies inside . In the same way puts every row of in the row space of . Each space lies inside the other, so they are equal:
In words
capital C ((E capital A )^ capital T ) equals capital C ( capital A ^ capital T ) for every invertible E
This is why elimination may be used to find both spaces (Lecture 10 transcript, pp. 12–15).
Check
In part (a), : both and have as row space the multiples of , and as nullspace the multiples of , since every row of either matrix has the form and . The column spaces are the multiples of and of : the column space is not kept, and by part (a) neither is the left nullspace. Their dimensions are kept, and , since has the same rank as .