BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Properties of determinants

The second half of the course turns to square matrices, and the determinant is needed for eigenvalues. Instead of a big formula, the determinant is defined by three properties: det I = 1; exchanging two rows reverses the sign (so a permutation has determinant ±1); and the determinant is linear in each row separately, with the other rows fixed: a factor t in one row comes out, and a sum in one row splits the determinant into two. (It is not true that det(A + B) = det A + det B.) From these follow: two equal rows give 0; subtracting a multiple of one row from another leaves the determinant unchanged, so elimination does not change it; a row of zeros gives 0; a triangular matrix has determinant d₁d₂⋯dₙ, the product of its diagonal; and det A = 0 exactly when A is singular. So the determinant is ± the product of the pivots, the way software computes it; for 2 × 2 the pivots a and d − (c/a)b give ad − bc. Two more properties: det AB = (det A)(det B), so det A⁻¹ = 1/det A and det A² = (det A)², while doubling gives det 2A = 2ⁿ det A (from property 3), like a volume; and det Aᵀ = det A, so every row property holds for columns too.

You need this first

Full reading path (10 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. The geometry of linear equations (18.06)
  7. Elimination with matrices (18.06)
  8. Matrix multiplication and inverse matrices (18.06)
  9. Factorization into A = LU (18.06)
  10. Transposes, permutations and vector spaces (18.06)
On this page · 4 sections
  1. Three properties that define the determinant
  2. Consequences
  3. Products, inverses and transposes
  4. Summary

This is the start of the second half of the course: square matrices, determinants and then eigenvalues, for which the determinant is needed (transcript, p. 1). It continues the elimination of A = LU and the permutation matrices.

Three properties that define the determinant#

Every square matrix has a number, det⁡A\det A or ∣A∣|A|, that packs in as much information as one number can; above all, AA is invertible exactly when det⁡A≠0\det A \ne 0 (transcript, p. 1). Rather than a big formula, start with three properties (pp. 1–4):

Property 1
det⁡I=1\det I = 1
In words

the determinant of capital I equals 1

Property 2: exchanging rows
exchange two rows  ⇒  det⁡ changes sign;det⁡P=±1\text{exchange two rows} \;\Rightarrow\; \det \text{ changes sign}; \qquad \det P = \pm 1
In words

exchange two rows which gives the determinant of changes sign; the determinant of capital P equals plus or minus 1

A permutation matrix comes from II by row exchanges, so its determinant is +1+1 or −1-1 for an even or odd number of exchanges (pp. 2–3). For 2×22 \times 2 matrices the familiar formula det⁡=ad−bc\det = ad - bc will check every property (p. 3). Property 3 is the key (pp. 3–4):

Property 3: linear in each row
∣tatbcd∣=t∣abcd∣,∣a+a′b+b′cd∣=∣abcd∣+∣a′b′cd∣\begin{vmatrix} ta & tb \\ c & d \end{vmatrix} = t\begin{vmatrix} a & b \\ c & d \end{vmatrix}, \qquad \begin{vmatrix} a + a' & b + b' \\ c & d \end{vmatrix} = \begin{vmatrix} a & b \\ c & d \end{vmatrix} + \begin{vmatrix} a' & b' \\ c & d \end{vmatrix}
In words

t a t b; c d equals t a b; c d, a plus a prime b plus b prime; c d equals a b; c d plus a prime b prime; c d

The determinant is a linear function of one row when all the other rows stay the same (p. 4). Strang stresses that this is not det⁡(A+B)=det⁡A+det⁡B\det(A + B) = \det A + \det B, where all rows change at once (pp. 4–5). Linearity holds for every row, not only the first: exchange the row to the top, use property 3, and exchange back (p. 5).

Consequences#

4. Two equal rows give det⁡=0\det = 0 (pp. 5–6). Exchanging the two equal rows leaves the matrix the same, yet property 2 says the sign changes; a number equal to its own negative is 0. This matches the fact that such a matrix has rank below nn (p. 6).

5. Elimination does not change the determinant (pp. 7–8). Subtract ℓ\ell times row ii from row kk. By property 3 the determinant splits into the original one plus −ℓ-\ell times a determinant with two equal rows, which is 0 by property 4 (p. 8):

Property 5 for 2 × 2
∣abc−ℓad−ℓb∣=∣abcd∣−ℓ∣abab∣=∣abcd∣\begin{vmatrix} a & b \\ c - \ell a & d - \ell b \end{vmatrix} = \begin{vmatrix} a & b \\ c & d \end{vmatrix} - \ell\begin{vmatrix} a & b \\ a & b \end{vmatrix} = \begin{vmatrix} a & b \\ c & d \end{vmatrix}
In words

a b; c minus ell a d minus ell b equals a b; c d minus ell a b; a b equals a b; c d

So det⁡A=det⁡U\det A = \det U for the upper triangular UU of elimination (p. 7).

6. A row of zeros gives det⁡=0\det = 0 (pp. 8–10): take t=0t = 0 in property 3. (Strang first multiplies the zero row by 5, then agrees with a student that t=0t = 0 is simpler; he refers to it as rule 3B, but it is the factor rule 3A, pp. 9–10.)

7. Triangular matrices (pp. 10–12). For UU with diagonal d1,…,dnd_1, \dots, d_n and anything above:

Property 7
det⁡U=d1d2⋯dn\det U = d_1 d_2 \cdots d_n
In words

the determinant of U equals d one d two and so on d n

If no dd is zero, elimination upwards removes everything off the diagonal (property 5); factoring each did_i out of its row (property 3) leaves II, whose determinant is 1 (property 1) (pp. 11–12). This is how MATLAB or any reasonable software computes a determinant: eliminate, then multiply the pivots, with a minus sign for an odd number of row exchanges (p. 11).

8. det⁡A=0\det A = 0 exactly when AA is singular (pp. 12–13). A singular matrix reaches a row of zeros (property 6); an invertible one has a full set of nonzero pivots, whose product is not zero (p. 13). The 2×22 \times 2 case from the pivots (p. 14):

Two by two from the pivots
∣abcd∣=∣ab0d−cab∣=a(d−cab)=ad−bc\begin{vmatrix} a & b \\ c & d \end{vmatrix} = \begin{vmatrix} a & b \\ 0 & d - \frac{c}{a}b \end{vmatrix} = a\left(d - \frac{c}{a}b\right) = ad - bc
In words

a b; c d equals a b; 0 d minus c over a, times b equals a the quantity d minus c over a, times b, equals a d minus b c

valid if a≠0a \ne 0; otherwise exchange rows first, and if that fails the matrix is singular (p. 14).

Products, inverses and transposes#

9. The product rule (pp. 15–18), which comes somewhat out of the blue:

Property 9
det⁡AB=(det⁡A)(det⁡B)\det AB = (\det A)(\det B)
In words

the determinant of capital A capital B equals ( the determinant of capital A )( the determinant of capital B )

From A−1A=IA^{-1}A = I (pp. 15–16):

Consequences of property 9
det⁡A−1=1det⁡A,det⁡A2=(det⁡A)2\det A^{-1} = \frac{1}{\det A}, \qquad \det A^2 = (\det A)^2
In words

the determinant of capital A to the power minus 1 equals 1 over the quantity the determinant of capital A, the determinant of capital A squared equals ( the determinant of capital A ) squared

For the diagonal matrix with entries 2 and 3, the inverse has entries 12\frac{1}{2} and 13\frac{1}{3}: determinants 6 and 16\frac{1}{6} (p. 16). Doubling a matrix is a different matter: by property 3, a factor 2 comes out of every row (pp. 17–18):

Doubling the matrix (property 3)
det⁡2A=2ndet⁡A\det 2A = 2^n\det A
In words

the determinant of 2 capital A equals 2 to the power n the determinant of capital A

so 2n2^n, not 2: like doubling the sides of a box, which multiplies its volume by 8 in three dimensions (p. 18). The formula for A−1A^{-1} fails exactly when det⁡A=0\det A = 0, where A−1A^{-1} does not exist (p. 18).

10. The transpose (pp. 18–20):

Property 10
det⁡AT=det⁡A\det A^T = \det A
In words

the determinant of capital A ^ capital T equals the determinant of capital A

So everything said about rows holds for columns: a zero column gives 0, exchanging two columns reverses the sign (pp. 18–19). Proof for the usual case A=LUA = LU: det⁡A=det⁡L det⁡U\det A = \det L\,\det U and det⁡AT=det⁡UTdet⁡LT\det A^T = \det U^T\det L^T by property 9. LL and LTL^T are triangular with ones on the diagonal, so their determinants are 1, and UU and UTU^T have the same diagonal (pp. 19–20).

A hidden fact (pp. 20–21). Property 2 would contradict itself if the same permutation could be reached by seven exchanges and also by ten. It cannot: every permutation is either odd or even, so the determinant is well defined by properties 1 to 3 (pp. 20–21).

Worked example

Determinants by the properties

For A=(213457−221)A = \begin{pmatrix} 2 & 1 & 3 \\ 4 & 5 & 7 \\ -2 & 2 & 1 \end{pmatrix} find det⁡A\det A by elimination, then det⁡2A\det 2A, det⁡A−1\det A^{-1}, det⁡AT\det A^T, and the determinant after exchanging rows 1 and 2.

Elimination

Row 2 minus 2 row 1: (0,3,1)(0, 3, 1). Row 3 plus row 1: (0,3,4)(0, 3, 4). Then row 3 minus row 2: (0,0,3)(0, 0, 3). No exchanges, pivots 2, 3, 3: det⁡A=18\det A = 18. (Check by the 3×33 \times 3 formula: 2(5−14)−(4+14)+3(8+10)=182(5 - 14) - (4 + 14) + 3(8 + 10) = 18.)

The other determinants

det⁡2A=23⋅18=144\det 2A = 2^3 \cdot 18 = 144; det⁡A−1=118\det A^{-1} = \frac{1}{18}; det⁡AT=18\det A^T = 18; one exchange gives −18-18.

Summary#

  • Defined by: det⁡I=1\det I = 1; a row exchange reverses the sign; linear in each row separately.
  • Then: equal rows or a zero row give 0; elimination leaves the determinant unchanged; triangular means product of the diagonal; det⁡A=±\det A = \pm product of the pivots, and det⁡A=0\det A = 0 exactly for singular AA.
  • det⁡AB=det⁡A det⁡B\det AB = \det A\,\det B, det⁡A−1=1/det⁡A\det A^{-1} = 1/\det A, det⁡2A=2ndet⁡A\det 2A = 2^n\det A, det⁡AT=det⁡A\det A^T = \det A.

Symbols on this page

Show the 28 symbols used here
ℓ\ell script l.
A length or distance; ℓ_p is a physical distance and ℓ_c a comoving one. Unit: m (a comoving ℓ_c is in notches, Guth's units). Say it: “ell”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
aa a.
The top left entry of a 2 × 2 matrix. Say it: “a”.
cc c.
The bottom left entry of a 2 × 2 matrix. Say it: “c”.
kk k.
The number of the row it is subtracted from. Say it: “k”.
TT T.
As a superscript: the transpose. Say it: “capital T”.
tt t.
A number multiplying one row (property 3A). Say it: “t”.
dd d.
The bottom right entry of a 2 × 2 matrix. Say it: “d”.
ii i.
The number of the row that is subtracted. Say it: “i”.
nn n.
The size of the matrix (n × n). Say it: “n”.
PP P.
A permutation matrix. Say it: “capital P”.
AA A.
A square matrix. Say it: “capital A”.
BB B.
A second square matrix, in det AB. Say it: “capital B”.
bb b.
The top right entry of a 2 × 2 matrix. Say it: “b”.
LL L.
The lower triangular factor in A = LU, with ones on the diagonal. Say it: “L”.
UU U.
The upper triangular matrix from elimination. Say it: “U”.
II I.
The identity matrix. Say it: “capital I”.
a′a' a prime.
The top left entry of the second matrix in the sum rule. Say it: “a prime”.
b′b' b prime.
The top right entry of the second matrix in the sum rule. Say it: “b prime”.
d1d_{1} d one.
The first diagonal entry (pivot) of U. Say it: “d one”.
d2d_{2} d two.
The second diagonal entry (pivot) of U. Say it: “d two”.
dnd_{n} d n.
The last diagonal entry (pivot) of U. Say it: “d n”.
did_{i} d i.
Any diagonal entry (pivot) of U. Say it: “d i”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 23 words used here

Also used

matrix.
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.
determinant.
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.
eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
elimination.
Solving equations by subtracting multiples of one from another until each unknown can be found in turn. Explained in The geometry of linear equations.
LU.
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.
permutation matrix.
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.
invertible.
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.
row exchange.
Swapping two rows of a matrix, needed in elimination when a zero sits where a pivot should be.
linear.
Of a map, operator or equation: respecting sums and multiples, so that L(au + bv) = aL(u) + bL(v). Explained in The geometry of linear equations.
rank.
The number of independent columns of a matrix, which always equals the number of independent rows. Explained in Similar matrices and the Jordan form.
triangular matrix.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.
diagonal.
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.
pivot.
In elimination, the first nonzero number in a row, used to clear out the entries below it. Explained in Positive definite matrices and minima.
singular.
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.
product rule.
For determinants: the determinant of a product of square matrices is the product of their determinants, det(AB) = det A × det B.
inverse.
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.
dimension.
The number of vectors in any basis of a vector space or subspace. Explained in Independence, basis and dimension.
transpose.
The matrix made by writing the rows of a matrix as columns, flipping it across its main diagonal. Explained in Planes through three points, and matrices.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
permutation.
A rearrangement of a list of things into a new order. Explained in Elimination with matrices.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
valid.
True or correctly applicable under the stated conditions.

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).

Where this leads

In cosmology

31 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. If every entry of a 4×44 \times 4 matrix is doubled, its determinant is multiplied by…
  2. Which statement is false in general?
  3. Subtracting 5 times row 1 from row 3 changes the determinant by…
0 of 3 answered

Flashcards

1 / 3