How To Find Cofactor Of A Matrix
You're staring at a 3x3 matrix on a whiteboard, marker in hand, and the professor just said the word "cofactor.In practice, maybe you wrote it down. In real terms, " Maybe you nodded. But if you're honest with yourself, the whole "minor plus a sign" thing feels a little slippery every time you try to do it on your own.
Here's the good news: finding the cofactor of a matrix isn't magic. On the flip side, it's a recipe. And once you see the pattern — really see it — you'll stop guessing the signs and start knocking out determinants and inverses like they're nothing.
Let's walk through it together. No fluff, just the steps that actually stick.
What Is a Cofactor
A cofactor is a signed number attached to a specific entry in a square matrix. Still, that's it. It takes the minor* — the determinant of the smaller matrix you get by deleting a row and a column — and slaps a plus or minus sign on it based on position.
The formula looks like this:
$C_{ij} = (-1)^{i+j} \cdot M_{ij}$
$M_{ij}$ is the minor. Move one step right or down, it flips. " Top-left is positive. The $(-1)^{i+j}$ part is just a fancy way of saying "checkerboard pattern.Simple.
But here's where people trip up: a minor is just* a determinant. If you forget the sign, you haven't found the cofactor. Which means they are not the same thing. Worth adding: a cofactor is that determinant with a sign attached*. Now, you've found the minor. And that difference breaks everything downstream — inverses, adjugates, Cramer's rule, all of it.
The Checkerboard You Already Know
Write this down once and tape it to your monitor if you have to:
$ \begin{bmatrix}
- & - & + & - & \dots \
- & + & - & + & \dots \
- & - & + & - & \dots \
- & + & - & + & \dots \ \vdots & \vdots & \vdots & \vdots & \ddots \end{bmatrix} $
Row 1, Column 1: positive. Plus, row 1, Column 2: negative. And row 2, Column 1: negative. Row 2, Column 2: positive. The exponent $i+j$ handles this automatically. Even sum = plus. Odd sum = minus. That's the whole trick.
Why Cofactors Matter
You don't learn cofactors to pass a quiz on cofactors. You learn them because they are the engine under the hood of almost everything useful in matrix algebra.
Determinants via Laplace expansion. You can compute the determinant of any square matrix by picking a row or column, multiplying each entry by its cofactor, and summing. That's the definition of a determinant for $n \times n$ matrices. No cofactors, no determinant.
The adjugate (classical adjoint). The adjugate is the transpose of the cofactor matrix. Every single entry in that matrix is a cofactor. If you want the inverse of a matrix — and you almost always do — you need the adjugate. Which means you need every cofactor. All of them. Correctly signed.
Cramer's Rule. Solving linear systems with determinants? Each variable's numerator is a determinant where you swap a column. Computing those determinants? Cofactor expansion.
Eigenvalues and characteristic polynomials. The characteristic polynomial is $\det(A - \lambda I)$. Expanding that determinant for anything larger than $2 \times 2$? You guessed it. Cofactors.
So yeah. This isn't a side topic. It's the connective tissue.
How to Find the Cofactor of a Matrix
Let's do this step by step with a concrete example. Plus, no abstract variables. Real numbers.
Take this matrix:
$ A = \begin{bmatrix} 2 & -1 & 3 \ 0 & 4 & 1 \ 5 & 2 & -2 \end{bmatrix} $
We'll find the cofactor $C_{23}$ — row 2, column 3. The entry there is $1$.
Step 1: Pick Your Target Element
Identify the row $i$ and column $j$. Here, $i=2$, $j=3$. The value $a_{23} = 1$ doesn't matter for the cofactor itself — the cofactor is a property of the position*, not the value. But you'll multiply them together later if you're expanding a determinant.
Step 2: Cross Out the Row and Column
Delete row 2. Delete column 3. What's left?
$ \begin{bmatrix} 2 & -1 \ 5 & 2 \end{bmatrix} $
That 2x2 matrix is the submatrix* for position (2,3). Its determinant is the minor $M_{23}$.
Want to learn more? We recommend an unstable nucleus results from too many or too few and describe the fluid mosaic structure of cell membranes for further reading.
Step 3: Compute the Minor
For a 2x2 matrix $\begin{bmatrix} a & b \ c & d \end{bmatrix}$, the determinant is $ad - bc$.
So $M_{23} = (2)(2) - (-1)(5) = 4 - (-5) = 9$.
Don't rush this arithmetic. A sign error here cascades.
Step 4: Apply the Sign Pattern
Now the sign. $i+j = 2+3 = 5$. Odd. So the sign is negative.
$C_{23} = (-1)^5 \cdot M_{23} = -1 \cdot 9 = -9$.
That's it. The cofactor of the entry in row 2, column 3 is $-9$.
Doing the Whole Matrix: The Cofactor Matrix
Usually you don't need just one. You need the cofactor matrix* — every position replaced by its cofactor. Let's finish matrix $A$ for practice.
Row 1:
- $C_{11}$: Minor from $\begin{bmatrix} 4 & 1 \ 2 & -2 \end{bmatrix}$ is $(4)(-2) - (1)(2)
= -8 - 2 = -10$. Sign: $(-1)^{1+1} = +1$. So $C_{11} = -10$.
-
$C_{12}$: Minor from $\begin{bmatrix} 0 & 1 \ 5 & -2 \end{bmatrix}$ is $(0)(-2) - (1)(5) = 0 - 5 = -5$. Sign: $(-1)^{1+2} = -1$. So $C_{12} = (-1)(-5) = 5$.
-
$C_{13}$: Minor from $\begin{bmatrix} 0 & 4 \ 5 & 2 \end{bmatrix}$ is $(0)(2) - (4)(5) = 0 - 20 = -20$. Sign: $(-1)^{1+3} = +1$. So $C_{13} = -20$.
Row 2:
-
$C_{21}$: Minor from $\begin{bmatrix} -1 & 3 \ 2 & -2 \end{bmatrix}$ is $(-1)(-2) - (3)(2) = 2 - 6 = -4$. Sign: $(-1)^{2+1} = -1$. So $C_{21} = (-1)(-4) = 4$.
-
$C_{22}$: Minor from $\begin{bmatrix} 2 & 3 \ 5 & -2 \end{bmatrix}$ is $(2)(-2) - (3)(5) = -4 - 15 = -19$. Sign: $(-1)^{2+2} = +1$. So $C_{22} = -19$.
-
$C_{23}$: Already computed as $-9$.
Row 3:
-
$C_{31}$: Minor from $\begin{bmatrix} -1 & 3 \ 4 & 1 \end{bmatrix}$ is $(-1)(1) - (3)(4) = -1 - 12 = -13$. Sign: $(-1)^{3+1} = +1$. So $C_{31} = -13$.
-
$C_{32}$: Minor from $\begin{bmatrix} 2 & 3 \ 0 & 1 \end{bmatrix}$ is $(2)(1) - (3)(0) = 2 - 0 = 2$. Sign: $(-1)^{3+2} = -1$. So $C_{32} = (-1)(2) = -2$.
-
$C_{33}$: Minor from $\begin{bmatrix} 2 & -1 \ 0 & 4 \end{bmatrix}$ is $(2)(4) - (-1)(0) = 8 - 0 = 8$. Sign: $(-1)^{3+3} = +1$. So $C_{33} = 8$.
The cofactor matrix is:
$ C = \begin{bmatrix} -10 & 5 & -20 \ 4 & -19 & -9 \ -13 & -2 & 8 \end{bmatrix} $
Key Takeaways
- The cofactor is a signed minor: $C_{ij} = (-1)^{i+j} M_{ij}$
- The sign pattern alternates like a checkerboard: $ \begin{bmatrix}
- & - & + \
- & + & - \
- & - & + \end{bmatrix} $
- Cofactors are essential for determinants (expansion), inverses (adjugate), and eigenvalues (characteristic polynomial)
- Always double-check signs — they're the most common source of errors
Conclusion
Cofactors aren't just a computational trick — they're fundamental building blocks in linear algebra. So whether you're calculating determinants, finding matrix inverses, solving systems of equations with Cramer's Rule, or computing eigenvalues, cofactors are at the heart of it all. Mastering them isn't optional; it's essential for anyone serious about linear algebra.
Latest Posts
Straight Off the Draft
-
Sour Taste Physical Or Chemical Property
Aug 08, 2026
-
What Is 1 5 Divided By 2 As A Fraction
Aug 08, 2026
-
Most Hormones Are Composed Of Either Or Steroids
Aug 08, 2026
-
An Objects Tendency To Resist A Change In Motion
Aug 08, 2026
-
Chapter 2 Basic Chemistry Answer Key
Aug 08, 2026
Related Posts
Neighboring Articles
-
Which Is A Non Membrane Bound Organelle
Aug 01, 2026
-
How To Solve For Limiting Reagent
Aug 01, 2026
-
How Many Electrons In The F Orbital
Aug 01, 2026
-
Length Of Segment Of Circle Formula
Aug 01, 2026
-
What Type Of Tissue Is Avascular
Aug 01, 2026