This set practises three lessons: the geometry of linear equations (Lecture 1), elimination with matrices (Lecture 2) and the first half of matrix multiplication and inverse matrices (Lecture 3): the ways to multiply, and what an inverse is. Computing inverses by Gauss–Jordan elimination belongs to Problem Set 2.
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. A matrix cannot be typed: a box asks for one of its entries, or you choose the matrix from a list. Entries are numbered by row, then column, starting from 1: "the entry in row 2, column 3" is the third number of the second row.
A formula box takes plain typing, for example (2*s - 1)/(s + 4), 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. 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#
The two pictures (Lecture 1). A system of linear equations is . In the row picture each equation is a line (in two dimensions) or a plane (in three), and the solution is where they meet. In the column picture, is a combination of the columns of , with the entries of as the amounts:
In words
2 5; 1 3 1; 2 equals 1 2; 1 plus 2 5; 3 equals 12; 7
If the combinations of the columns fill the whole space, can be solved for every and is invertible. If the columns lie in one plane (for a matrix), only the right-hand sides in that plane can be reached, and is singular (pp. 15–16).
Elimination (Lecture 2). Subtract a multiple of a pivot row from each row below it, to get zeros under the pivot; the result is an upper triangular , and the same steps turn into . Then is solved by back substitution, from the bottom up (pp. 2–9). A zero in a pivot position is cured by a row exchange with a lower row that has a nonzero entry there; when no row below can help, the matrix is not invertible (pp. 5–7). The step "subtract times row 1 from row 2" is a multiplication by the elimination matrix , the identity with in row 2, column 1, and all steps together are (pp. 13–16)
In words
E three two ( E two one capital A ) equals capital U equals ( E three two E two one ) capital A
A row exchange is a multiplication by a permutation matrix : do the exchange to the identity and use the result. On the left, a matrix acts on the rows; on the right, on the columns; and in general (pp. 17–18). The inverse of "subtract times row 1 from row 2" adds it back (p. 20).
Matrix multiplication (Lecture 3). For an matrix and an matrix , the entry in row , column of is row of times column of (pp. 1–4):
In words
( capital A capital B ) sub i j equals the sum from k equals 1 to n of a sub i k b sub k j, (m times n)(n times p) equals m times p
Each column of is a combination of the columns of , and each row of a combination of the rows of (pp. 4–7). is also a sum of columns times rows, and matching blocks multiply like entries (pp. 7–11):
In words
capital A capital B equals the sum from k equals 1 to n of ( column k of capital A )( row k of capital B )
The inverse (Lecture 3). A square matrix is invertible when some matrix gives (p. 12)
In words
capital A to the power minus 1 capital A equals capital I equals capital A capital A to the power minus 1
Problem 1#
Two pictures of a 2 × 2 system
Take the system , .
(a)4 points
Solve the system for and .
Hint
Eliminate: subtract a multiple of the first equation from the second so that drops out. Then substitute back.
Solution
The idea. In the row picture the answer is where the two lines meet; elimination finds that point.
Eliminate and substitute
Subtract of the first equation from the second: , so and . Then gives .
Check
Both equations: and . In the column picture, times the column plus times the column is , which is .
(b)3 points
Keep the same left-hand sides. Which right-hand side has the solution , ?
Hint
Read the system as times column 1 plus times column 2 of the matrix. Here you know the amounts.
Solution
The idea. is a combination of the columns of : here, two of the first column and one of the second.
By columns
In words
2 2; 1 plus 1 3; minus 1 equals 7; 1
Check
By rows, the two dot products are and : the same .
(c)5 points
Now replace the coefficient of in the second equation by a number , so that the matrix becomes . For which is this matrix singular? For that , and the right-hand side of the original system, what does the row picture show?
Hint
The matrix is singular when its two columns lie on one line through the origin: when one column is a multiple of the other.
Hint
For the row picture, compare the two equations: is the second one a multiple of the first, left side and right side?
Solution
The idea. Singular means the columns are parallel. Then the two lines of the row picture have the same slope, and the right-hand side decides whether they coincide.
Parallel columns
The column is a multiple of only if it is times it: . Then every combination of the columns lies on the line through , so most right-hand sides cannot be reached.
The row picture
With the equations are and . Twice the second is : the same left side as the first equation with a different right side. The two lines are parallel and never meet, so there is no solution.
Check
In the column picture: is not a multiple of , so it cannot be reached. A right-hand side such as , on the line through , would give one line drawn twice and infinitely many solutions.
(d)4 points
Keep the right-hand side and the matrix of part (c), with . Solve by elimination and give as a formula in .
Hint
Subtract of row 1 from row 2, on both sides. The second pivot then depends on .
Solution
The idea. One elimination step leaves a triangular system; its second pivot is .
Eliminate
Row 2 minus row 1 gives . So
In words
y equals minus 5 over the quantity a minus three halves, equals minus 10 over the quantity 2 a minus 3
Check
For : , as in part (a). As approaches the second pivot goes to zero and grows without bound: the two lines turn parallel and their crossing point runs away, as part (c) found.
Problem 2#
Columns in three dimensions
Take the matrix with columns , and :
In words
capital A equals 1 2 0; 0 1 1; 1 0 3
(a)5 points
Find the combination of the columns that gives .
Hint
Write out the three equations: the second row has only and , the third only and . Express and through and put them into the first row.
Solution
The idea. The column picture asks for the amounts of each column; the three equations say the same thing row by row.
Solve
The rows are , and . From the last two, and . The first row becomes , so and . Then and .
Check
In words
1 1; 0; 1 plus 2 2; 1; 0 plus 1 0; 1; 3 equals 5; 3; 4
(b)5 points
Now replace the third column by . Show that the new third column is a combination of the first two, and give and .
Hint
The middle component of involves only , the last one only .
Solution
The idea. Match the components one at a time, starting with those that contain only one unknown.
Match components
The middle components give , the last ones . The first component is then , which agrees with the first entry of . So the new third column is times column 1 plus times column 2.
Check
. All three columns now lie in one plane through the origin: the new matrix is singular (Lecture 1 transcript, p. 16).
(c)4 points
With the new third column of part (b), the right-hand side can be reached for only one value of . Find it. How many solutions does then have?
Hint
Every combination of the three columns is a combination of the first two. Which makes a combination of and ?
Hint
For the count: start from one solution and add a combination of the columns that gives the zero vector.
Solution
The idea. The reachable right-hand sides form the plane of the first two columns; inside that plane there are many ways to reach a point, because the third column adds nothing new.
The reachable b
Of the first two columns, only has a middle component, so it is taken times to make the middle . The first component then needs of , and that fixes the last component: . Any other lies off the plane.
How many solutions
One solution is . By part (b), gives , so adding any multiple of to gives another solution: infinitely many.
Check
. With : gives as well.
Problem 3#
Elimination and back substitution
Solve by elimination:
In words
2 x plus y plus z equals 3, 4 x minus y plus 3 z equals 11, minus 2 x plus 5 y plus z equals minus 5
Its matrix is and its right-hand side . The multiplier is the number of times row 1 is subtracted from row 2, and so on.
(a)7 points
Find the three multipliers , , and the second and third pivots. (The first pivot is the in the top left.)
Hint
A multiplier is the entry to be removed divided by the pivot above it. A multiplier can be negative: subtracting a negative multiple of row 1 means adding.
Hint
After the first column is cleared, the second pivot is the new entry in row 2, column 2; uses that new entry, not the old .
Solution
The idea. Clear column 1 below the first pivot, then column 2 below the second pivot.
Column 1
: row 2 minus 2 times row 1 is . : row 3 minus times row 1, that is row 3 plus row 1, is . The second pivot is .
Column 2
: the new row 3 minus times the new row 2 is . The third pivot is :
In words
capital A goes to 2 1 1; 0 minus 3 1; 0 6 2 goes to 2 1 1; 0 minus 3 1; 0 0 4 equals capital U
Check
No pivot is zero, so no row exchange was needed and is invertible. The lesson's rule that the product of the pivots is the determinant gives ; a later set computes determinants directly.
(b)6 points
Apply the same steps to the right-hand side to get , with . Give the last entry of , then solve by back substitution.
Hint
Carry along as a fourth column (the augmented matrix): every row operation of part (a) acts on it too.
Solution
The idea. The right-hand side goes through the same steps; then the triangular system is solved from the bottom up.
The right-hand side
and after column 1; then after column 2. So and
In words
2 x plus y plus z equals 3, minus 3 y plus z equals 5, 4 z equals 8
Back substitution
gives . Then gives . Then gives .
Check
Put into the original equations: , , .
(c)7 points
Two changes to , one at a time. First change the entry in row 3, column 3 (the coefficient of in the third equation) from to a number : for which does elimination break down for good? Then go back to and change the entry in row 2, column 2 from to a number : for which is there a zero in the second pivot position, and what happens then?
Hint
Redo part (a) with the letter in place of the number. Only some of the entries it produces change.
Hint
A zero in a pivot position is harmless if some row below has a nonzero entry in that column.
Solution
The idea. Follow the changed entry through the elimination steps and see which pivot it lands in.
The entry q
The steps of part (a) do not depend on the entry in row 3, column 3; they only add to it. After column 1 it is ; after column 2 it is . That is the third pivot, and nothing lies below it to exchange with: elimination fails for good at , and the matrix is then singular.
The entry s
After column 1, row 2 is , while row 3 is still . So puts a zero in the second pivot position. Row 3 has a there, so exchange rows 2 and 3:
In words
2 1 1; 0 6 2; 0 0 1
This is already upper triangular, with the pivots , , : the changed matrix is invertible.
Check
With the changed matrix sends to : a nonzero with zero output, so that matrix has no inverse (Lecture 3 transcript, p. 16).
Problem 4#
Elimination and permutation matrices
Use the matrix of Problem 3 and the elimination matrices , , of its elimination: each is the identity with in the place of its multiplier, so that .
(a)5 points
Multiply the three into one matrix , with . What is the entry of in row 3, column 1?
Hint
Write the three matrices out first. Then compute , and let act on its rows: on the left, changes row 3 only.
Hint
The entry is not one of the multipliers. Row 3 of records everything that happened to row 3, including the copy of row 1 that came in with row 2.
Solution
The idea. Each elimination matrix is the identity with one changed entry, and a matrix on the left combines rows.
The three matrices
With , , from Problem 3:
In words
E two one equals 1 0 0; minus 2 1 0; 0 0 1, E three one equals 1 0 0; 0 1 0; 1 0 1, E three two equals 1 0 0; 0 1 0; 0 2 1
The product
is the identity with in row 2, column 1 and in row 3, column 1. Then adds 2 times row 2 to row 3: . So
In words
E equals E three two E three one E two one equals 1 0 0; minus 2 1 0; minus 3 2 1
Check
Row 3 of is , the last row of . And applied to gives the last entry , as in Problem 3(b).
(b)4 points
Does the order of two elimination matrices matter? Find the entry in row 3, column 1 of , and of .
Hint
In , the matrix acts on the rows of ; in , the matrix acts on the rows of . Which row does each one change?
Solution
The idea. A matrix on the left changes rows: the result depends on what is already in the rows it uses.
E₃₂E₂₁
adds 2 times row 2 of to row 3 of : . The entry is .
E₂₁E₃₂
subtracts 2 times row 1 of from row 2, and leaves row 3 of alone: row 3 stays . The entry is .
Check
So : the commutative law fails even for these simple matrices (Lecture 2 transcript, p. 18). In the step on row 2 comes first, and its row 1 part is carried into row 3; in the other order row 3 is changed before row 2 has taken anything from row 1.
(c)4 points
Let be the permutation matrix that exchanges rows 2 and 3 of the identity. Find the entry in row 2, column 3 of , and of .
Hint
on the left acts on the rows of ; on the right acts on its columns.
Solution
The idea. On the left exchanges rows, on the right it exchanges columns.
PA
is with rows 2 and 3 exchanged: its row 2 is , and the entry in column 3 is .
AP
is with columns 2 and 3 exchanged: its row 2 is , and the entry in column 3 is .
Check
By the entry rule: row 2 of is , and its dot product with column 3 of , , is . Row 2 of , , with column 3 of , , gives . This is the rule of the lecture: rows on the left, columns on the right (Lecture 2 transcript, pp. 17–18).
(d)3 points
Which matrix undoes , so that it times is the identity?
Hint
Say in words what does to the rows. The inverse step does the opposite.
Solution
The idea. What one step subtracts, the inverse step adds back (Lecture 2 transcript, p. 20).
Undo the step
adds 2 times row 2 to row 3 (it subtracts times row 2). To undo it, subtract 2 times row 2 from row 3: the identity with in row 3, column 2.
Check
Row 3 of the product is times row 2 of plus row 3 of : . Rows 1 and 2 are unchanged, so the product is .
Problem 5#
Four ways to multiply, and blocks
Take
In words
capital A equals 1 2 0; minus 1 1 3, capital B equals 2 1; 0 minus 1; 1 4
(a)4 points
Computed entry by entry, each entry of a product is a sum of products of numbers. How many multiplications of numbers does take, and how many does take?
Hint
Find the shape of each product first, then count the terms in the sum for one entry.
Solution
The idea. An product has entries, each a sum of products.
Count
is and is . is : entries of products each, in all. is : entries of products each, in all.
Check
Both counts are : and . The two products are not even the same size, let alone equal.
(b)4 points
Find the entry in row 2, column 2 of , and the entry in row 3, column 1 of .
Hint
One entry needs one row of the left factor and one column of the right factor.
Solution
The idea. Entry of a product is row of the left factor times column of the right factor.
The two entries
Row 2 of , , times column 2 of , : . Row 3 of , , times column 1 of , : .
Check by rows
Row 3 of is a combination of the rows of , with the amounts in row 3 of : . Its first entry is again.
(c)3 points
Write as a sum of three columns times rows. What is the entry in row 1, column 2 of the second of them, (column 2 of )(row 2 of )?
Hint
A column with two entries times a row with two entries is a matrix: entry is entry of the column times entry of the row.
Solution
The idea. Each term of the sum is a full matrix; adding the three gives .
The three terms
In words
1; minus 1 2 1 plus 2; 1 0 minus 1 plus 0; 3 1 4 equals 2 1; minus 2 minus 1 plus 0 minus 2; 0 minus 1 plus 0 0; 3 12
The second term has in row 1, column 2.
Check
The sum is , which is entry by entry: for example row 1 of times column 2 of is , and the entry in row 2, column 2 is the of part (b).
(d)3 points
Let be a nonzero column with entries and a nonzero row with entries. Show that every row of the matrix is a multiple of , and every column a multiple of . What does this say about the rows of each of the three terms in part (c)?
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
Write out the entry in row , column of . Keep fixed and let run.
Solution
The idea. The entry of in row , column is entry of times entry of .
Rows and columns
Keep fixed: row of is entry of times each entry of in turn, so it is that number times , a multiple of . Keep fixed: column is entry of times , a multiple of . So all rows lie on the line through and all columns on the line through , as for the lecture's column times row (Lecture 3 transcript, pp. 8–9).
The three terms
In part (c) the rows of the first term are multiples of , those of the second multiples of , those of the third multiples of . is a sum of three such matrices, each as simple as a matrix can be without being zero.
Check
The second term has rows and , the amounts and being the entries of column 2 of .
(e)4 points
Blocks. Let and let be the matrix with the blocks , where and are the identity and zero matrices. Find the entry in row 4, column 1 of . Then show that the block matrix satisfies (this last step has no box).
Hint
Multiply block rows by block columns, as if the blocks were numbers, but keep their order in each product. Row 4, column 1 of lies in the lower-left block.
Solution
The idea. Blocks multiply like entries (Lecture 3 transcript, pp. 10–11).
M squared
In words
capital M squared equals capital I 0; capital C capital I capital I 0; capital C capital I equals capital I times capital I plus 0 times capital C capital I times 0 plus 0 times capital I; capital C times capital I plus capital I times capital C capital C times 0 plus capital I times capital I equals capital I 0; 2 capital C capital I
Row 4 of is the second row of its lower blocks, and column 1 the first column of its left blocks: the entry is , the entry of in row 2, column 1.
The inverse
In the same way, has the lower-left block , and the other blocks , , as before. So is the identity, and is too. is the inverse of : what adds to the lower rows, takes away, just as for the elimination matrices of Problem 4.
Check
Entry by entry: row 4 of is and column 1 of is , so the entry is .
Problem 6#
Which matrices have an inverse?
(a)3 points
Take . Find a nonzero with : give .
Hint
Look for a combination of the two columns that gives the zero column. How is column 2 related to column 1?
Solution
The idea. , and column 2 is times column 1.
Solve
is zero for .
Check
.
(b)4 points
Show in two ways that this has no inverse: first with the columns of a product , then with the vector of part (a).
This part has no answer box. Write your argument, then open the solution and mark yourself.
Hint
Every column of is a combination of the columns of . Where do those combinations lie, and where is ?
Hint
If existed, multiply both sides of by it.
Solution
The idea. Both arguments are the ones of the lecture, here for our matrix (Lecture 3 transcript, pp. 13–16).
By columns
Both columns of are multiples of , so every combination of them lies on the line through . Every column of is such a combination. But the first column of , , is not a multiple of . So no gives .
By Ax = 0
If , multiply on the left by :
In words
capital A to the power minus 1 ( capital A x) equals ( capital A to the power minus 1 capital A )x equals capital I x equals x, capital A to the power minus 1 0 equals 0
so . But is not zero. So cannot exist.
Check
Elimination agrees: subtracting times row 1 from row 2 gives the row , a zero in the second pivot position with no row below to exchange with.
(c)5 points
For a number , take . Find the for which has no inverse. For that , find the nonzero with whose third entry is , and give its second entry.
Hint
Eliminate, keeping as a letter. The matrix is not invertible when a pivot turns out zero with nothing below to exchange with.
Hint
For : with the third entry fixed, the second row of gives the second entry, and the first row the first.
Solution
The idea. Elimination shows the pivots; a zero third pivot means the third column is a combination of the first two, and that combination is .
Eliminate
: row 3 minus 2 times row 1 is . : adding 3 times row 2 gives . The third pivot is , zero for .
The vector x
For , solve with the third entry . Row 2 of , , gives , so . Row 1, , gives , so . So .
Check
In words
1 2 1.5; 0 1 1; 2 1 0 1; minus 2; 2 equals 1 minus 4 plus 3; minus 2 plus 2; 2 minus 2 plus 0 equals 0; 0; 0
So for the matrix has no inverse, by the argument of part (b).
(d)4 points
Let now be the permutation matrix . Which matrix is its inverse?
Hint
Say in words what does to the rows of a matrix it multiplies on the left. How many times must you do it to get every row back in its place?
Solution
The idea. A permutation can always be undone by another permutation; here, by doing the same one twice more.
What P does
has row 3 of on top, then row 1, then row 2: the rows move down one place, the last coming round to the top. Doing this three times brings every row back, so , which says . The inverse is .
Check
, and : row 1 of picks row 2 of , ; row 2 picks row 3, ; row 3 picks row 1, . That is . is not its own inverse, because is not .