The determinant gives formulas for things computed so far by elimination. The inverse is A⁻¹ = Cᵀ/det A, where C is the matrix of cofactors; for 2 × 2 that is the familiar (1/(ad − bc)) times the matrix with rows (d, −b) and (−c, a). The reason: ACᵀ = (det A)I. On the diagonal, a row times its own cofactors is the cofactor formula for det A; off the diagonal, a row times the cofactors of another row is the determinant of a matrix with two equal rows, so 0. Applied to Ax = b this gives Cramer's rule: xⱼ = det Bⱼ / det A, where Bⱼ is A with column j replaced by b. It needs n + 1 determinants and is a disastrous way to compute, though the formulas are valuable for algebra. Third, |det A| is the volume of the box (parallelepiped) whose edges are the rows of A; the sign says whether the box is right- or left-handed. The unit cube and any rotated cube (A = Q, with det Q = ±1 from QᵀQ = I) have volume 1, and doubling an edge doubles both the volume and the determinant. In two dimensions the parallelogram with sides (a, b) and (c, d) has area ad − bc, with no square roots, the triangle half of that, and a triangle with any three corners has area ½ times the absolute value of a 3 × 3 determinant with a column of ones.
The entries are cofactors: d is the cofactor of a, and −b is the cofactor of c (the minus because 2+1 is odd), sitting in the position of b: the cofactormatrix is transposed (pp. 1–3). In general (p. 2):
Inverse from cofactors
A−1=detA1CT
In words
capital A to the power minus 1 equals 1 over the quantity the determinant of capital A, times capital C ^ capital T
For 3×3, detA is a sum of products of three entries and each cofactor a product of two, such as ei−fh for the corner entry a of a matrix with rows (a,b,c), (d,e,f), (g,h,i) (pp. 3–4). Gauss–Jordan was the better algorithm; this is the algebra behind it (p. 4).
Why it is right (pp. 4–9). It is enough to check (p. 5)
The identity behind the inverse
ACT=(detA)I
In words
capital A capital C ^ capital T equals ( the determinant of capital A ) capital I
On the diagonal, row i of A times column i of CT (the cofactors of row i) is ai1Ci1+⋯+ainCin, the cofactor formula: detA (pp. 5–6). Off the diagonal, row 1 of A times the cofactors of row 2 must give 0 (p. 7). The reason: it is the cofactor expansion of a matrix in which row 2 has been replaced by a copy of row 1, a matrix with two equal rows, so its determinant is zero (pp. 8–9). For 2×2: the matrix with rows (a,b) and (a,b) has determinanta⋅b+b⋅(−a)=0 (pp. 8–9). The formula also shows how A−1 responds when one entry of A changes: through the determinant and the cofactors (pp. 9–10).
The solution of Ax=b is x=A−1b=CTb/detA (transcript, p. 10). The products of cofactors with the numbers b1,…,bn are themselves a determinant (pp. 11–13):
Cramer's rule
xj=detAdetBj,Bj=A with column j replaced by b
In words
x sub j equals the determinant of capital B j over the quantity the determinant of capital A, capital B j equals capital A with column j replaced by b
Expanding detB1 by cofactors down its first column gives b1C11+b2C21+⋯, exactly the first entry of CTb (p. 12). Is the rule good in practice? It needs n+1determinants, and computing them takes "approximately forever": a disastrous way to go, while elimination produces x in an instant (p. 13). Strang recalls a popular book from his childhood, Mathematics for the Million, that praised Cramer's rule, and jokes that it should have been "for the millionaire" (p. 13). (He names the author as Bell; the book of that title is by Lancelot Hogben.) The formulas are worth having for algebra, not for computation; MATLAB never uses them (p. 14).
Take the rows of a 3×3matrix as three edges from the origin and complete the box, properly a parallelepiped, whose faces are parallelograms (transcript, pp. 14–16):
Determinant and volume
∣detA∣=volume of the box with edges the rows of A
In words
the absolute value of the determinant of capital A equals volume of the box with edges the rows of capital A
The sign of detA says whether the box is right-handed or left-handed; exchanging two edges flips it without changing the volume (p. 16). Since detAT=detA, columns would do as well (p. 17).
Checking it (pp. 16–21). The elegantproof shows that volume has the three properties that define the determinant.
Doubling one edge of a rectangular box doubles the volume (two copies fit together), and doubling a row doubles the determinant: property 3A (pp. 19–20).
Exchanging two rows does not change the box: property 2 up to sign (pp. 20–21).
For the rotated cube the determinant agrees, by properties 9 and 10 (pp. 18–19):
Determinant of an orthogonal matrix
QTQ=I⇒(detQT)(detQ)=(detQ)2=1⇒detQ=±1
In words
Q^ capital T Q equals capital I which gives ( the determinant of Q^ capital T )( the determinant of Q) equals ( the determinant of Q) squared equals 1 which gives the determinant of Q equals plus or minus 1
Property 3B, linearity in a row (for 2×2: the area for the row (a+a′,b+b′) splits into the areas for (a,b) and (a′,b′)), needs a figure; Strang leaves it to the book (pp. 21, 24).
Areas in the plane (pp. 21–24). The parallelogram with sides (a,b) and (c,d), with fourth corner (a+c,b+d), has area ∣ad−bc∣ (p. 22). The usual way, base times height, brings square roots and worse; the determinant needs only the coordinates (p. 22). The triangle with corners (0,0), (a,b), (c,d) is half of it (p. 23). For a triangle with any three corners (p. 24):
Area of a triangle
area=21detx1x2x3y1y2y3111
In words
area equals one half the absolute value of the determinant of x one y one 1; x two y two 1; x three y three 1
Subtracting row 1 from the other rows kills two of the ones and amounts to moving the triangle to start at the origin (p. 24). (Strang writes the determinant and says it is half of a parallelogram; the factor 21 is written into the formula here.) Eigenvalues come next (p. 24).
Worked example
Cofactors, Cramer and area of your own
(a) For A=(3425), find A−1 from cofactors and solve Ax=(8,13) by Cramer's rule. (b) Find the area of the triangle with corners (1,1), (4,2), (2,5).
(a) Inverse
detA=15−8=7. Cofactors: C11=5, C12=−4, C21=−2, C22=3. So A−1=71(5−4−23).
(a) Cramer
x1=det(81325)/7=(40−26)/7=2 and x2=det(34813)/7=(39−32)/7=1. Check: 3⋅2+2=8 and 4⋅2+5=13.
(b) Area
det142125111=1(2−5)−1(4−2)+1(20−4)=11, so the area is 5.5. Check by moving (1,1) to the origin: the sides (3,1) and (1,4) give 21(12−1)=5.5.
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 minor of a matrix with a plus or minus sign attached, following a checkerboard of signs that starts with plus in the top-left corner. 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 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 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.
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 square matrix whose columns are perpendicular unit vectors; it rotates or reflects without changing lengths, and its inverse is its transpose. Explained in Orthogonal matrices and Gram–Schmidt.
The span of some vectors is everything that can be made by combining them; vectors span a space when they fill all of it. Explained in Independence, basis and dimension.
At right angles; more generally, of two vectors or functions, having a dot product, or an integral of their product, of zero. Explained in Introduction to Fourier series.
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).