Determinants attach one number to a square matrix. That number is not just a decoration. Later it tells you whether the matrix is invertible, how row and column operations affect the matrix, and how to solve certain square systems by formula.
The price of that power is that the definition is more delicate than matrix addition or scalar multiplication. A determinant is defined only for square matrices, and it is built recursively from smaller determinants.
Why this section matters
If you only memorize the formula
you will miss the actual structure. The point of this section is to explain where that formula comes from, why the sign pattern alternates, and why expanding along a clever row or column can make a hard computation manageable.
Definition
Submatrix, minor, and cofactor
Let be an matrix.
For fixed i and j, delete row i and column j. The resulting
matrix is written .
The minor of the entry is
The cofactor of the entry is
The factor creates the checkerboard sign pattern
Definition
Determinant by cofactor expansion
If is a matrix, define
If is an matrix with , define its determinant by expanding along the first row:
Equivalently,
The definition is recursive. A determinant is reduced to several determinants, each of those is reduced to determinants, and those finally reduce to determinants.
First examples
Worked example
The familiar 2×2 formula comes from the definition
Let
The first-row cofactors are
So
The usual rule is therefore not a separate theorem. It is the case of the recursive definition.
Worked example
A 3×3 determinant by cofactor expansion
Let
Expand along the first row:
Compute the determinants:
Therefore
Expand where the zeros are
Direct expansion is usually expensive. The whole point of cofactor expansion is that you may choose the row or column that makes the work smallest.
Theorem
Cofactor expansion along any row
For any fixed row i of an matrix ,
Equivalently,
So the definition uses the first row, but the same determinant can be expanded along any row.
Worked example
Choose the row that kills the most work
Let
Expanding along the second row is much better than expanding along the first,
because the entry in the first position is already 0:
Only three determinants appear instead of four. In practice, the best row or column is the one with the most zeros or the simplest entries.
Fast consequences of the definition
Several useful theorems fall out almost immediately once you are allowed to expand along a convenient row or column.
Theorem
A zero row or a zero column forces determinant 0
If a square matrix has an entire row of zeros, then its determinant is 0.
Likewise, if it has an entire column of zeros, then its determinant is 0.
The row statement is immediate: expand along that zero row. The column statement says the same geometry from the column viewpoint and is also a direct consequence of expansion.
Theorem
A row or column with one nonzero entry collapses the problem
Suppose a square matrix has at most one nonzero entry in row k, and that
entry is . Then
The same conclusion holds if column has at most one nonzero entry and it
occurs in row k.
This theorem is the formal version of the beginner's instinct: if one row or column is almost all zeros, exploit it immediately.
Theorem
Triangular matrices are easy
If is upper triangular or lower triangular, then
the product of its diagonal entries.
This is why row reduction is so important later. If you can turn a matrix into triangular form while keeping careful track of how the determinant changes, then the final determinant is easy to read.
Worked example
Triangular determinants read off the diagonal
For
we do not need a full expansion. Since is upper triangular,
The entries above the diagonal matter for the matrix itself, but not for the determinant formula in this triangular case.
Multilinearity and alternating behavior
The determinant is not linear in the whole matrix at once, but it is linear in each individual row when the other rows are held fixed.
Theorem
Multilinearity in one row
Fix all rows of a square matrix except row p. If the new row is
then the determinant splits as
So the determinant is linear in each row separately.
Theorem
Repeated rows force determinant 0
If a square matrix has two identical rows, then its determinant is 0.
This fact is one of the basic reasons determinants measure independence rather than mere size. Repeating one row means the matrix no longer contributes a new direction, so the signed area or signed volume collapses.
Proof
Why repeated rows force the determinant to vanish
Common mistake
Common mistake
A determinant belongs to a square matrix only
It is tempting to ask for the determinant of a or matrix. Do not do that. Determinants are defined only for square matrices, because the recursive minor construction must always delete one row and one column from a square matrix and stay square.
Quick check
Quick check
What is ?
Remember the base case of the recursive definition.
Solution
Answer
Quick check
Why is it wise to expand a determinant along a row with many zeros?
Think about how many minors survive in the expansion sum.
Solution
Answer
Quick check
If a diagonal matrix has diagonal entries 2, , and 5, what is its determinant?
Use the triangular-matrix rule.
Solution
Answer
Exercises
Quick check
Compute from the cofactor definition.
Write the two cofactors in the first row explicitly before multiplying.
Solution
Guided solution
Quick check
Find the determinant of by expanding along the best row or column.
Pick the row or column with the greatest number of zeros.
Solution
Guided solution
Quick check
Explain why a matrix with one zero row cannot be invertible.
Connect the determinant theorem here with the invertibility theorem from the next note.
Solution
Guided solution
Related notes
Read 2.1 Matrix basics to review square matrices and indexing language.
Continue with 7.2 Row operations, products, and invertibility to see how determinants behave under elimination.
Keep 5.1 Invertible matrices nearby, because determinants soon become one more equivalent test for invertibility.