With row exchanges, elimination gives PA = LU: the permutation P puts the rows in an order where no zero lands in a pivot position. There are n! permutation matrices of size n, and each has PᵀP = I, so P⁻¹ = Pᵀ. The transpose flips a matrix across its main diagonal, (Aᵀ)ᵢⱼ = Aⱼᵢ; a matrix is symmetric when Aᵀ = A, and RᵀR is symmetric for any rectangular R, because (RᵀR)ᵀ = RᵀRᵀᵀ = RᵀR. Then the step to real linear algebra: a vector space is a set of vectors closed under addition and multiplication by numbers, so every linear combination stays inside. Rⁿ, all real column vectors with n components, is the main example; it must contain the zero vector. A quarter of the plane is not a vector space, but a line through the origin is a subspace. The subspaces of R² are R² itself, the lines through the origin and the zero vector alone; in R³ add the planes through the origin. All combinations of the columns of A form a subspace, the column space C(A); two independent columns in R³ fill a plane.
A perfectly good invertiblematrix may still need row exchanges, when a zero turns up in a pivot position (transcript, p. 1). A=LUassumed none (p. 2). MATLAB in fact exchanges rows more often than algebra requires: it avoids small pivots, which are bad for numericalaccuracy (p. 2). Algebra needs an exchange only for a zero, and the general description of elimination is then (p. 2)
where P puts the rows into an order in which no zero lands in a pivot position. This holds for every invertibleA; for almost every one P=I, and it covers the few that need exchanges (p. 3).
A permutation matrix is the identity with its rows reordered, including the do-nothing order I itself (p. 3). There are n!=n(n−1)⋯(2)(1) of size n×n: 24 of size 4, and 5!=120 of size 5 (p. 4). Every one is invertible, and its inverse is its transpose: in PTP the ones meet the ones (pp. 3–4):
Inverse of a permutation
PTP=I,P−1=PT
In words
capital P ^ capital T capital P equals capital I, capital P to the power minus 1 equals capital P ^ capital T
A matrix is symmetric when transposing leaves it unchanged, AT=A: whatever sits above the diagonal is mirrored below it (pp. 5–6). Symmetricmatrices come up in a great many applications, and here is where (pp. 6–9): for any rectangular R, RTR is symmetric. Strang multiplies out the example and reads off 10, 11 and 7 in the first row, then the symmetric 11 and 7 below (p. 7). With R the 3×2matrix above, that 3×3 product is RRT; the rest of it and the 2×2 product RTR are completed here:
A symmetric product (completed here)
RRT=1011711131171117,RTR=(21131319)
In words
capital R capital R ^ capital T equals 10 11 7; 11 13 11; 7 11 17, capital R ^ capital T capital R equals 21 13; 13 19
(On p. 7 Strang names the 3×2 factor RT rather than R, so he calls his product RTR; the names swap between pp. 6 and 7, not the numbers. Both products are symmetric, which is his point.) The 11 in position (1, 2) and the 11 in position (2, 1) come from the same two rows multiplied in either order, so they must agree (p. 7). The proof without numbers uses the rule that transposes of a product come in reverse order, and that transposing twice gives back the matrix (pp. 8–9):
Why RᵀR is symmetric
(RTR)T=RT(RT)T=RTR
In words
( capital R ^ capital T capital R )^ capital T equals capital R ^ capital T ( capital R ^ capital T )^ capital T equals capital R ^ capital T capital R
What do we do with vectors? We add them and multiply them by numbers (scalars); so we form linear combinations (transcript, p. 9). A vector space is a set of vectors in which those operations are always possible without leaving the set, with some decent rules satisfied (p. 10). (The book lists eight rules; in practice it is the staying inside that is in doubt, not the rules, p. 13.)
The first example is R2: all vectors with two real components, such as (3,2), (0,0) and (π,e) (p. 10). They add a component at a time, (3,2)+(π,e)=(3+π,2+e), and the picture is the whole xy-plane (p. 11). The zero vector cannot be removed: multiplying (3,2) by 0, or adding (3,2) and (−3,−2), gives it, so every vector space contains zero (p. 12). LikewiseR3 holds all vectors with three real components; (3,2,0) lives in R3, not R2 (p. 12). In general (p. 13):
The space Rⁿ
Rn=all column vectors with n real components
In words
R to the power n equals all column vectors with n real components
Not a vector space (pp. 13–14). Take the quarter of the plane where both components are nonnegative. Sums stay inside, but multiplying (3,2) by −5 leaves it: it is not closed under multiplication by all real numbers (p. 14).
A subspace is a vector space inside another one (transcript, p. 14). If a subspace of R2 holds one nonzero vector, it holds all its multiples, the whole line, and sums of points on the line stay on it (p. 15). But the line must pass through the origin: a line missing the origin loses the vector when it is multiplied by 0 (pp. 15–16). Every subspace contains the zero vector (p. 16).
Geometrically, the two lines of multiples get filled in between, and C(A) is a plane through the origin in R3 (pp. 19–20). Had the two columns been on one line, C(A) would only have been that line (p. 20). Five vectors in R10 would fill some flat subspace through the origin, of dimension up to five, but not R5, since its vectors have ten components (p. 20). The next lecture asks what this says about Ax=b (p. 21).
Worked example
Row exchanges, symmetry and subspaces
(a) Find P, L and U with PA=LU for A=012214138. (b) Compute RTR for R=120013. (c) Which of these subsets of R3 are subspaces: the vectors with v1+v2+v3=0; those with v1+v2+v3=1; the union of the lines through (1,2,0) and (2,−1,0)?
(a) Exchange, then eliminate
The first pivot position holds 0, so exchange rows 1 and 2: P=010100001, PA=102124318. Multiplier 2 for row 3: (0,2,2); then multiplier 1: (0,0,1). So U=100120311 and L=102011001. Check row 3 of LU: 2(1,1,3)+(0,2,1)+(0,0,1)=(2,4,8).
(b) A symmetric product
The entries are dot products of the columns (1,2,0) and (0,1,3): RTR=(52210), symmetric as it must be.
(c) Test for zero and closure
The first set is a plane through the origin: sums and multiples keep the sum of components 0, so it is a subspace. The second does not contain zero, so it is not. The third contains zero and all multiples, but (1,2,0)+(2,−1,0)=(3,1,0) lies on neither line: not closed under addition, so not a subspace.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
The factorization A = LU of a matrix into a lower triangular L, which records the elimination steps, times the upper triangular U it produces. Explained in Factorization into A = LU.
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.
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.
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.
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 collection of matrices, or other objects, in which the product of any two and the inverse of each are again in the collection. Explained in Factorization into A = LU.
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.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
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.
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).