TExcelTAD
Home › Linear Algebra & Matrix Theory › Properties of Determinants

Properties of Determinants

The determinant is multiplicative, det⁡(AB)=det⁡A⋅det⁡B\det(AB) = \det A \cdot \det B, and unchanged by transposition. These two facts, together with the row-operation rules, give a toolbox of identities for inverses, powers and similar matrices, and they all have a clear geometric meaning: determinants are volume scale factors, and scale factors multiply.

The list

For n×nn \times n matrices AA and BB and a scalar cc:

Property Note
det⁡(AB)=det⁡A⋅det⁡B\det(AB) = \det A \cdot \det B the key property
det⁡AT=det⁡A\det A^T = \det A so column rules = row rules
det⁡(A−1)=1/det⁡A\det(A^{-1}) = 1 / \det A from det⁡(A)det⁡(A−1)=det⁡I=1\det(A)\det(A^{-1}) = \det I = 1
det⁡(Ak)=(det⁡A)k\det(A^k) = (\det A)^k k=1,2,…k = 1, 2, \ldots, and all integers if AA is invertible
det⁡(cA)=cndet⁡A\det(cA) = c^n \det A nn rows are each scaled by cc
det⁡(P−1AP)=det⁡A\det(P^{-1}AP) = \det A similar matrices have the same determinant
det⁡(A+B)≠det⁡A+det⁡B\det(A + B) \ne \det A + \det B in general: the determinant is not additive
orthogonal QQ (QTQ=IQ^TQ = I) ⇒det⁡Q=±1\Rightarrow \det Q = \pm 1 rotations +1, reflections −1
linear in each row separately with the other rows fixed

Proof of the inverse rule: 1=det⁡I=det⁡(AA−1)=det⁡A⋅det⁡A−11 = \det I = \det(AA^{-1}) = \det A \cdot \det A^{-1}. Proof of the similarity rule: det⁡(P−1AP)=det⁡(P−1)⋅det⁡A⋅det⁡P=det⁡A\det(P^{-1}AP) = \det(P^{-1}) \cdot \det A \cdot \det P = \det A. For orthogonal QQ: 1=det⁡(QTQ)=det⁡QT⋅det⁡Q=(det⁡Q)21 = \det(Q^TQ) = \det Q^T \cdot \det Q = (\det Q)^2.

python · try it yourself
from sympy import Matrix, Rational

A = Matrix([[2, 1, 0], [1, 3, -1], [0, 2, 4]])
B = Matrix([[1, -2, 1], [0, 1, 3], [2, 0, 1]])
P = Matrix([[1, 1, 0], [0, 1, 1], [1, 0, 2]])

print("det A, det B:", A.det(), B.det())
print("det(AB) == det A det B:", (A * B).det() == A.det() * B.det())
print("det(A^T) == det A:", A.T.det() == A.det())
print("det(A^-1) =", A.inv().det(), " 1/det A =", Rational(1, A.det()))
print("det(A^3) == det(A)^3:", (A**3).det() == A.det()**3)
print("det(P^-1 A P) == det A:", (P.inv() * A * P).det() == A.det())
print("det(A+B) =", (A + B).det(), " but det A + det B =", A.det() + B.det())
det A, det B: 24 -13
det(AB) == det A det B: True
det(A^T) == det A: True
det(A^-1) = 1/24  1/det A = 1/24
det(A^3) == det(A)^3: True
det(P^-1 A P) == det A: True
det(A+B) = 43  but det A + det B = 11

Why det⁡(AB)=det⁡A⋅det⁡B\det(AB) = \det A \cdot \det B

Geometric reason. The map x→ABx\mathbf{x} \to AB\mathbf{x} applies BB first, scaling volumes by ∣det⁡B∣\lvert\det B\rvert, then AA, scaling by ∣det⁡A∣\lvert\det A\rvert. Orientation flips also combine: two flips cancel. So the total signed scale factor is det⁡A⋅det⁡B\det A \cdot \det B.

Algebraic proof sketch. For an elementary matrix EE, det⁡(EB)=det⁡E⋅det⁡B\det(EB) = \det E \cdot \det B is exactly the row-operation rules of Determinants and Row Operations (det⁡E\det E is −1-1, cc or 1). If AA is invertible it is a product of elementary matrices E1⋯EkE_1 \cdots E_k (Elementary Matrices), and applying the rule kk times gives det⁡(AB)=det⁡E1⋯det⁡Ek⋅det⁡B=det⁡A⋅det⁡B\det(AB) = \det E_1 \cdots \det E_k \cdot \det B = \det A \cdot \det B. If AA is singular, so is ABAB (its columns lie in col⁡(A)\operatorname{col}(A), which is not all of Rn\mathbb{R}^n), and both sides are 0.

det⁡AT=det⁡A\det A^T = \det A: if A=E1⋯EkA = E_1 \cdots E_k, then AT=EkT⋯E1TA^T = E_k^T \cdots E_1^T, and each EiTE_i^T is an elementary matrix of the same kind with the same determinant. Singular AA has singular ATA^T (same rank).

Linearity in one row

Fix all rows except row ii. Then det is a linear function of row ii:

det⁡[⋮u+v⋮]=det⁡[⋮u⋮]+det⁡[⋮v⋮]det⁡[⋮cu⋮]=c⋅det⁡[⋮u⋮]\begin{aligned} \det \begin{bmatrix} \vdots \\ \mathbf{u} + \mathbf{v} \\ \vdots \end{bmatrix} &= \det \begin{bmatrix} \vdots \\ \mathbf{u} \\ \vdots \end{bmatrix} + \det \begin{bmatrix} \vdots \\ \mathbf{v} \\ \vdots \end{bmatrix} \\[1ex] \det \begin{bmatrix} \vdots \\ c\mathbf{u} \\ \vdots \end{bmatrix} &= c \cdot \det \begin{bmatrix} \vdots \\ \mathbf{u} \\ \vdots \end{bmatrix} \end{aligned}

This is easy to see from cofactor expansion along row ii: det⁡A=∑jaijCij\det A = \sum_j a_{ij}C_{ij}, and the cofactors CijC_{ij} do not involve row ii at all. It does not make det linear in the whole matrix; that is why det⁡(A+B)≠det⁡A+det⁡B\det(A + B) \ne \det A + \det B.

In software

  • Jacobian determinants. For a non-linear map, the local area/volume scale factor is the determinant of its Jacobian matrix. It is the factor in the change-of-variables formula for integrals (Jacobian and Hessian), it tells a texture sampler how much a pixel's footprint is stretched, and in normalizing flows the multiplicativity det⁡(J2J1)=det⁡J2⋅det⁡J1\det(J_2J_1) = \det J_2 \cdot \det J_1 turns the log-density of a stack of layers into a sum of per-layer log-determinants.
  • Physics simulation. In finite-element and cloth/soft-body solvers, each element has a deformation gradient FF; det⁡F\det F is its volume ratio. det⁡F=1\det F = 1 means incompressible (rubber, flesh), and det⁡F<0\det F < 0 means the element has been turned inside out, a numerical failure that robust solvers detect and repair.
  • Transform chains in games. The determinant of a model matrix is the product of those of its parts. One negative scale anywhere in a hierarchy makes the final determinant negative, and the renderer must flip triangle winding (Transform Hierarchies).
python · try it yourself
import numpy as np

def rot(deg):
    t = np.radians(deg)
    return np.array([[np.cos(t), -np.sin(t)], [np.sin(t), np.cos(t)]])

parent = np.diag([2.0, 2.0])            # scale x2: area x4
child = np.diag([-1.0, 1.0]) @ rot(30)  # mirrored and rotated: det -1
world = parent @ child
print("det parent, child:", round(float(np.linalg.det(parent)), 6), round(float(np.linalg.det(child)), 6))
print("det world:", round(float(np.linalg.det(world)), 6), "-> negative: flip the culling mode")
det parent, child: 4.0 -1.0
det world: -4.0 -> negative: flip the culling mode

Exercises

Exercise 1: Use the rules

AA and BB are 3×33 \times 3 with det⁡A=2\det A = 2 and det⁡B=−5\det B = -5. Find det⁡(AB)\det(AB), det⁡(A2B−1)\det(A^2B^{-1}), det⁡(AT)\det(A^T), det⁡(3B)\det(3B) and det⁡(B−1AB)\det(B^{-1}AB).

Answer

−10, −45-\frac{4}{5}, 2, −135, 2.

Solution
det⁡(AB)=2⋅(−5)=−10det⁡(A2B−1)=22⋅1−5=−45det⁡(AT)=2det⁡(3B)=33⋅(−5)=−135det⁡(B−1AB)=det⁡A=2\begin{aligned} \det(AB) &= 2 \cdot (-5) = -10 \\ \det(A^2B^{-1}) &= 2^2 \cdot \frac{1}{-5} = -\frac{4}{5} \\ \det(A^T) &= 2 \\ \det(3B) &= 3^3 \cdot (-5) = -135 \\ \det(B^{-1}AB) &= \det A = 2 \end{aligned}

Exercise 2: No square roots of −I-I

Show there is no real 3×33 \times 3 matrix AA with A2=−IA^2 = -I.

Answer

det⁡(A2)=(det⁡A)2≥0\det(A^2) = (\det A)^2 \ge 0 but det⁡(−I3)=−1\det(-I_3) = -1.

Solution

det⁡(−I3)=(−1)3=−1\det(-I_3) = (-1)^3 = -1. If A2=−IA^2 = -I then (det⁡A)2=−1(\det A)^2 = -1, impossible for a real number det⁡A\det A. (In 2×22 \times 2, det⁡(−I2)=+1\det(-I_2) = +1, and indeed the 90∘90^\circ rotation satisfies A2=−IA^2 = -I.)

Exercise 3: Linearity in a row

Given det⁡[1234]=−2\det \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = -2 and det⁡[1251]=−9\det \begin{bmatrix} 1 & 2 \\ 5 & 1 \end{bmatrix} = -9, find det⁡[1285]\det \begin{bmatrix} 1 & 2 \\ 8 & 5 \end{bmatrix} without expanding.

Answer

−11.

Solution

The second row [8,5]=[3,4]+[5,1][8, 5] = [3, 4] + [5, 1], and row 1 is the same in all three matrices, so by linearity in row 2: det⁡=−2+(−9)=−11\det = -2 + (-9) = -11. Check: 1⋅5−2⋅8=−111 \cdot 5 - 2 \cdot 8 = -11 ✓.

Exercise 4: Orthogonal matrices

Generate a random orthogonal 4×44 \times 4 matrix in NumPy with a QR factorisation of a seeded random matrix and check that det⁡Q=±1\det Q = \pm 1.

Answer

∣det⁡Q∣=1\lvert\det Q\rvert = 1 up to rounding.

Solution

QR factorisation writes any matrix as Q⋅RQ \cdot R with QQ orthogonal, and orthogonal matrices satisfy (det⁡Q)2=det⁡(QTQ)=1(\det Q)^2 = \det(Q^TQ) = 1.

python · try it yourself
import numpy as np
rng = np.random.default_rng(4)
Q, _ = np.linalg.qr(rng.normal(size=(4, 4)))
print(np.allclose(Q.T @ Q, np.eye(4)), round(abs(float(np.linalg.det(Q))), 10))
True 1.0

Test yourself

det⁡A=4\det A = 4 and det⁡B=12\det B = \frac{1}{2} (both n×nn \times n). What is det⁡(AB−1)\det(AB^{-1})?

  1. 2
  2. 18\frac{1}{8}
  3. 4.5
  4. 8

Which identity is FALSE in general?

  1. det⁡(AB)=det⁡(BA)\det(AB) = \det(BA)
  2. det⁡(AT)=det⁡A\det(A^T) = \det A
  3. det⁡(A+B)=det⁡A+det⁡B\det(A + B) = \det A + \det B
  4. det⁡(A−1)=1/det⁡A\det(A^{-1}) = 1/\det A

In a soft-body simulation, an element's deformation gradient has det⁡F=−0.3\det F = -0.3. What happened?

  1. It shrank to 30% volume
  2. It was turned inside out
  3. It is perfectly incompressible
  4. Nothing unusual