The inverse of a product reverses the order, (AB)⁻¹ = B⁻¹A⁻¹, like putting socks and shoes back on; likewise (A⁻¹)ᵀ is the inverse of Aᵀ. Elimination without row exchanges takes A to U by elimination matrices, E₃₂E₃₁E₂₁A = U. Moving them to the other side gives A = LU with L = E₂₁⁻¹E₃₁⁻¹E₃₂⁻¹, lower triangular with ones on the diagonal. In that order the multipliers do not interfere: they simply sit in L, so L costs nothing to record, while the forward product E mixes them (a 10 from multipliers 2 and 5). Pulling the pivots out of U gives A = LDU. Elimination on an n × n matrix costs about n² + (n − 1)² + … + 1² ≈ n³/3 operations, and each right-hand side about n². Row exchanges use permutation matrices: there are 6 of size 3 × 3 (n! in general), products and inverses of them are again permutations, and P⁻¹ = Pᵀ.
( capital A capital B ) to the power minus 1 equals capital B to the power minus 1 capital A to the power minus 1, ( capital A capital B )( capital B to the power minus 1 capital A to the power minus 1 ) equals capital A capital I capital A to the power minus 1 equals capital I
using the freedom to move parentheses. Take off shoes, then socks; to undo it, socks go back on first (p. 2). For the transpose, take AA−1=I and transpose both sides: transposes of a product also come in reverse order, and IT=I (pp. 2–3):
Inverse of a transpose
(A−1)TAT=I,(AT)−1=(A−1)T
In words
( capital A to the power minus 1 )^ capital T capital A ^ capital T equals capital I, ( capital A ^ capital T ) to the power minus 1 equals ( capital A to the power minus 1 )^ capital T
The 10 appears because 2 of row 1 went into row 2 and then 5 of that row 2 went into row 3, so row 1 affected row 3 (p. 10). Both E and L are lower triangular with ones on the diagonal, because rows are only subtracted from rows below them (p. 10). In the reverse order nothing interferes (pp. 10–12):
With no row exchanges, the multipliers go directly into L (p. 12). So there is nothing to compute: record the multipliers during elimination, save each new row of U, and A itself can be forgotten (pp. 12–13). This is the new insight that the matrix form brings (p. 13).
Can we solve systems of order a thousand, or a million, in a second, an hour, a week (transcript, p. 13)? Count one operation as a multiply plus a subtract, for a full n×nmatrix with no zeros (pp. 14–15). Clearing the first column changes nearly all n2 entries; the next stage works on an (n−1)×(n−1)matrix, and so on (pp. 16–17):
Operation count
n2+(n−1)2+⋯+22+12≈∫0nx2dx=31n3
In words
n squared plus the quantity n minus 1, all squared plus and so on plus 2 squared plus 1 squared is approximately the integral from 0 to n of x squared d x equals one third n cubed
Not n, not n! (as determinants by their formula would be), but 31n3: the 31accounts for the shrinking matrices, as calculus shows (p. 18). (Strang integrates from 1 to n; from 0 gives exactly 31n3, and the difference is negligible for large n.) Each right-hand side b costs only about n2, so after the expensive split of A into L and U, many right-hand sides are cheap (p. 19).
Row exchanges are needed when a zero appears in a pivot position, and are done by permutation matrices: the rows of the identity rearranged (transcript, pp. 20–21). For 3×3 there are six: the identity, three single exchanges, and two cycles, such as the one moving row 2 to row 1, row 3 to row 2 and row 1 to row 3 (pp. 20–22). They form a group: products and inverses of permutations are again permutations (p. 22). A single exchange is its own inverse, the two cycles are inverses of each other, and in general (p. 23)
Inverse of a permutation
P−1=PT
In words
capital P to the power minus 1 equals capital P ^ capital T
L=12−1012001 and U=300120214. Check row 3 of LU: −1(3,1,2)+2(0,2,1)+(0,0,4)=(−3,3,4). The determinant is the product of the pivots (as in Lecture 2), 3⋅2⋅4=24.
(b) Cost
31(1000)3≈3.3×108 operations. Doubling n multiplies the cost by 23=8, but the cost of each right-hand side only by 4.
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.
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 square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). 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 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 made by reordering the rows of the identity matrix; multiplying by it reorders the rows of another matrix the same way. Explained in Elimination with matrices.
So small that leaving it out makes no noticeable difference to the result.
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).