Matrix multiplication can be seen in several ways, all giving the same answer. The (i, j) entry of AB is row i of A times column j of B, a sum over k of a_ik b_kj, which needs A to be m × n and B n × p, giving m × p. Each column of AB is A times a column of B, so a combination of the columns of A; each row of AB is a row of A times B, a combination of the rows of B. AB is also the sum of (column k of A)(row k of B), and each such column times row is a full matrix whose rows all lie on one line. Matrices can also be multiplied by blocks. A square matrix A is invertible if some A⁻¹ gives A⁻¹A = I = AA⁻¹. It is not invertible if Ax = 0 for some nonzero x, as for [1 3; 2 6] with x = (3, −1). Gauss–Jordan finds A⁻¹ by eliminating on [A I] until the left half is I; the right half is then A⁻¹, because EA = I means E = A⁻¹.
Matrices have been multiplied already; this lecture states the rules, in several ways that all give the same answer and are all important, and then turns to inverses (transcript, p. 1). It continues elimination with matrices.
In AB=C, the entry c34 in row 3, column 4 comes from row 3 of A and column 4 of B: a dot product (transcript, pp. 1–2), which in index notation is (pp. 2–3)
Entry of a product
c34=a31b14+a32b24+⋯=k=1∑na3kbk4
In words
c sub 34 equals a sub 31 b sub 14 plus a sub 32 b sub 24 plus and so on equals the sum from k equals 1 to n of a sub 3k b sub k4
Columns (pp. 4–6). Think of B as p columns side by side. A times column j of B is column j of C, so every column of AB is a combination of the columns of A, with the coefficients taken from B (pp. 5–6).
Rows (p. 6). Likewise, row i of A times B is row i of C: every row of AB is a combination of the rows of B (p. 6).
Columns times rows (pp. 7–9). A row times a column is a number; a column times a row is a full matrix (p. 7). For example (pp. 7–8)
a very special matrix: its columns are multiples of (2,3,4), its rows multiples of (1,6) (p. 8). Its row space, the combinations of its rows, is just the line through (1,6), and its column space the line through (2,3,4): a minimal matrix (pp. 9–10). The fourth way to multiply is then (p. 8)
Sum of columns times rows
AB=k=1∑n(column k of A)(row k of B)
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 )
Blocks (pp. 10–11). Cut A and B into blocks that match, for example four 10×10 blocks each of a 20×20matrix. The blocks multiply like entries, block rows times block columns (p. 11):
capital A one capital A two; capital A three capital A four capital B one capital B two; capital B three capital B sub 4 equals capital A one capital B one plus capital A two capital B three and so on; and so on and so on
A singularmatrix (pp. 12–16). Take A=(1236). Its determinant is 0, but Strang gives other reasons, all of them important (pp. 13–14). The columns of any product AB are combinations of the columns of A, which lie on one line, so (1,0), the first column of I, cannot be reached (p. 14). The reason Strang likes best (pp. 14–16):
Three of column 1 minus one of column 2 is the zero column. If A−1 existed, multiplying Ax=0 by it would give x=0; but x is not 0 (pp. 15–16). A square matrix with Ax=0 for some nonzero x has no inverse (p. 16).
Take the invertibleA=(1237): its columns point in different directions (transcript, p. 17). Finding A−1 is solving systems: A times column j of A−1 is column j of I (p. 18). Here, two systems with right-hand sides (1,0) and (0,1) (pp. 18–19). Jordan's idea is to solve them together: augment A by both columns, that is by I, and eliminate (pp. 19–20). Subtract 2 times row 1 from row 2; then, going upwards, which Gauss would not do, subtract 3 times row 2 from row 1 (pp. 21–22):
Gauss–Jordan
(12371001)→(10311−201)→(10017−2−31)
In words
( c c c c 1 3 1 0; 2 7 0 1 ) goes to ( c c c c 1 3 1 0; 0 1 minus 2 1 ) goes to ( c c c c 1 0 7 minus 3; 0 1 minus 2 1 )
The left half is now I, and the right half is A−1=(7−2−31); check: 7−6=1, 21−21=0, −2+2=0, −6+7=1 (p. 22).
Why it works (pp. 23–24). All the elimination steps together are one matrixE, the product of the elimination matrices (dividing a row by its pivot is a multiplication by a diagonalmatrix, so it belongs to E too). It turned A into I, so EA=I, which says E=A−1; and on the right it turned I into EI=A−1 (p. 24):
Why Gauss–Jordan gives the inverse
E[AI]=[EAE]=[IA−1]
In words
E ( capital A capital I ) equals ( E capital A E ) equals ( capital I capital A to the power minus 1 )
(a) For A=(1021) and B=(3114), compute AB by entries and as a sum of columns times rows. (b) Invert (2153) by Gauss–Jordan. (c) Show that (2346) is not invertible.
(a) Two ways
By entries: AB=(3+211+84)=(5194). As a sum: (10)(31)+(21)(14)=(3010)+(2184), the same.
(b) Gauss–Jordan
From (21531001), subtract 21 of row 1 from row 2: (0,21) on the left and (−21,1) on the right. Subtract 10 times the new row 2 from row 1: (2,0) and (6,−10). Divide the rows by the pivots 2 and 21: A−1=(3−1−52). Check: 2⋅3+5⋅(−1)=1.
(c) A singular matrix
x=(2,−1) gives 2(23)−(46)=0, so there is no inverse.
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.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
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.
Of a square matrix: having no inverse, because its determinant is zero and some nonzero vector is sent to zero. Explained in The geometry of linear equations.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
A matrix that carries out one step of elimination, subtracting a multiple of one row from another, when it multiplies a matrix. Explained in Elimination with matrices.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
A method that continues elimination upwards as well as downwards until the matrix becomes the identity, which finds the inverse. Explained in The four fundamental subspaces.
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).