How to Calculate a Determinant by First-Row Cofactor Expansion
At a glance
- 1. Check the matrix
Confirm the matrix is square and identify its first-row entries.
- 2. Find each minor
For each first-row entry, delete its row and column and calculate the remaining determinant.
- 3. Apply the signs
Use alternating signs: plus, minus, plus, and continue.
- 4. Add the terms
Multiply each entry by its signed minor, then sum the results.
Try it: Matrix calculator
Cofactor expansion computes a determinant by reducing it to smaller determinants. Expanding along the first row means pairing each entry in that row with the determinant of the matrix left after deleting its row and column, then applying an alternating sign.
No matrix entries were provided with this question, so there is no particular determinant to evaluate. The formula and worked example below show how to do the calculation once you have the matrix.
The first-row expansion formula
For an matrix , let be the minor formed by deleting row 1 and column . The cofactor expansion along the first row is
The factor supplies the sign. Across the first row, the signs alternate:
A minor is a smaller matrix, while its determinant is a number. The cofactor for entry is the signed number . Thus, each term in the expansion is the original entry multiplied by its cofactor.
For a matrix, this gives the familiar formula
The middle term has a minus sign because its entry is in column 2. For any matrix, use .
Worked example
Calculate the determinant of
by expanding along its first row. Its first-row entries are , , and , with signs , , and . Delete row 1 and the corresponding column to find each minor:
The determinant is . Notice that the second minor has determinant . The expansion already places a minus sign before that term, so its contribution is .
A step-by-step method
- Check that the matrix is square. A determinant is defined for square matrices.
- Copy the first-row entries in order. For an matrix, these are .
- Find each minor determinant. For the entry in column , cross out the first row and column , then calculate the determinant of what remains.
- Apply the alternating sign. Use plus for column 1, minus for column 2, plus for column 3, and so on.
- Multiply and add. Multiply each original entry by its signed minor determinant, then sum all the terms.
For a matrix, each first-row minor is a matrix. You can calculate those smaller determinants with another cofactor expansion, or use a more efficient method if the matrices become large.
Common mistakes
- Forgetting the alternating signs. The expansion is not a sum of all positive entry-times-minor terms. The first-row signs are .
- Deleting the wrong column. The minor paired with an entry in column is made by deleting column , as well as the first row.
- Using a minor instead of its determinant. The minor is a matrix; the expansion uses the determinant of that smaller matrix.
- Losing a negative sign inside a minor. Calculate each smaller determinant carefully before applying the outer sign. A negative minor combined with an outer minus sign produces a positive term.
- Expanding along a row that makes the work longer. You may expand along any row or column, not just the first. Choose one with zeros when possible; terms for zero entries vanish. The determinant is unchanged by which row or column you choose, provided each entry gets the correct cofactor sign.
If you supply the matrix entries, the same steps give its specific determinant.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.