On this page
If you have ever expanded a 3×3 determinant term by term, you know how easy it is to drop a sign. Sylvester's determinant identity gives a shortcut whenever a matrix is "identity plus a product": swap the order of the product and take a much smaller determinant instead.
What does Sylvester's determinant identity say?
If A is an m×n matrix and B is an n×m matrix, then det(I_m + AB) = det(I_n + BA), where I_k is the k×k identity matrix (Weinstein–Aronszajn identity, Wikipedia, the page that "Sylvester's determinant theorem" redirects to).
AB is m×m, so the left side is an m×m determinant.
BA is n×n, so the right side is an n×n determinant.
A and B need not be square. With m = 3 and n = 1, a 3×3 determinant becomes a single number.
How do you prove det(I + AB) = det(I + BA)?
Build one (m+n)×(m+n) block matrix M, with I_m and −A in the top row and B and I_n in the bottom row, and factor it two ways.
M = [I_m, 0; B, I_n] times [I_m, −A; 0, I_n + BA]. The bottom-right block multiplies out to B(−A) + I_n + BA = I_n, so the product is M.
M = [I_m + AB, −A; 0, I_n] times [I_m, 0; B, I_n]. The top-left block is (I_m + AB) − AB = I_m, so again the product is M.
A block-triangular matrix has determinant equal to the product of the determinants of its diagonal blocks. So the first factorisation gives det M = det(I_n + BA), and the second gives det M = det(I_m + AB).
Both equal det M, so they equal each other. The Wikipedia proof uses the same block matrix with +A and the block-determinant formula, then replaces A with −A.
Why is det(I + uvᵀ) = 1 + vᵀu?
Take n = 1. Let A = u, a column of length m, and B = vᵀ, a row of length m. Then AB = uvᵀ is an m×m matrix of rank at most one, while BA = vᵀu is a single number. The identity becomes det(I + uvᵀ) = 1 + vᵀu.
This is the A = I case of the matrix determinant lemma, det(A + uvᵀ) = (1 + vᵀA⁻¹u) det(A) for an invertible square matrix A.
Worked example: a 3×3 determinant in one line
Let u = (1, 2, 3)ᵀ and v = (2, 1, 1)ᵀ.
The rows of I + uvᵀ are (3, 1, 1), (4, 3, 2) and (6, 3, 4).
The long way, along the first row: 3(12 − 6) − 1(16 − 12) + 1(12 − 18) = 18 − 4 − 6 = 8.
The short way: vᵀu = 2 + 2 + 3 = 7, so 1 + vᵀu = 8, with no signs to track.
For a case with n = 2, take A with rows (1, 2), (0, 1), (1, 0) and B with rows (1, 0, 1), (2, 1, 0). Then BA has rows (2, 2), (2, 5), so det(I_2 + BA) = 3 × 6 − 2 × 2 = 14. The long way, AB has rows (5, 2, 1), (2, 1, 0), (1, 0, 1), and det(I_3 + AB) = 6(4) − 2(4) + 1(−2) = 14.
Why do AB and BA share non-zero eigenvalues?
For any λ ≠ 0, apply the identity with A replaced by −A/λ: det(λI_m − AB) = λ^m det(I_m − AB/λ) = λ^m det(I_n − BA/λ) = λ^(m−n) det(λI_n − BA). The two characteristic polynomials differ only by a power of λ, so their non-zero roots agree, with the same multiplicities. The Wikipedia article gives an equivalent form and the same conclusion.
Check it on the n = 2 example. BA has trace 7 and determinant 6, so its eigenvalues are 1 and 6. AB has characteristic polynomial λ³ − 7λ² + 6λ, so its eigenvalues are 6, 1 and 0: the extra 0 comes from the factor λ^(m−n) = λ. For uvᵀ above, the eigenvalues are 7, 0 and 0, and 7 is vᵀu.
If eigenvalues still feel abstract, start with what the eigenvalues of a 2×2 matrix mean. The Fermi Concept Library gives every mathematics concept its own lesson and its place in the map.
A checklist before you use the identity
Spot the shape: an identity plus a product of two matrices.
Check the sizes: A is m×n and B is n×m, so both AB and BA exist.
Move to the smaller side: compute I + BA if n is less than m.
Keep the identity in: det(AB) and det(BA) can differ. Above, det(AB) = 0 while det(BA) = 6.
For more determinant shortcuts, see Class 12 matrices and determinants formulas with examples. To practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



