Evaluating a determinant · Mathematics Class 11–12 | StemPy Lab
Course 8.2·Lesson 1 of 3
Evaluating a determinant
A determinant is a single number that belongs to a square matrix. For a 2×2 matrix it is ad−bc. For larger matrices it is found by expanding along a row or a column, using minors and cofactors with the sign pattern +−+. Any row or column gives the same value, so choose the one with the most zeros. A triangular matrix has the product of its diagonal entries as its determinant.
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
find the determinant of a 2×2 matrix and understand it as an area;
find the minor and the cofactor of any entry;
expand a 3×3 determinant along any row or column;
pick the row or column that makes the work shortest.
A number from a square matrix
Every square matrix has a determinant, a single number. We write it detA or ∣A∣, with straight bars. The bars do not mean a positive number here. A determinant can be negative. A matrix that is not square has no determinant.
For a 2×2 matrix the rule is
acbd=ad−bc.
Multiply along the main diagonal, then subtract the product along the other diagonal. For example $
3254
= 12 - 10 = 2$.
The determinant as an area
Take the two columns of the matrix as arrows from the origin. They are the sides of a parallelogram. The absolute value of the determinant is the area of that parallelogram. The sign tells the turning direction: it is positive when the second arrow is anticlockwise from the first.
A parallelogram on a grid, drawn from the origin with two sides given by the arrows (3, 1) in blue and (1, 2) in red. The fourth corner is at (4, 3). The parallelogram is shaded, and the label inside says area equals 5. A caption says the determinant with columns 3, 1 and 1, 2 is 3 times 2 minus 1 times 1, which is 5.
With columns (3,1) and (1,2), the determinant is 3⋅2−1⋅1=5, and the parallelogram has area 5. If the two arrows lie along one line, there is no parallelogram, the area is 0, and so is the determinant.
Minors and cofactors
For a larger matrix, we reduce the work to smaller determinants.
The minorMij of the entry aij is the determinant left when row i and column j are deleted. The cofactor is the minor with a sign:
Cij=(−1)i+jMij.
The signs form a chessboard pattern, with + in the top left corner:
A shortcut called Sarrus' rule exists for 3×3 determinants, but it does not work for larger ones. The expansion works for every size, so we use it.
Choose the row or column with the most zeros
A zero entry removes a whole term. Look at $
314052201
.Column3containsa0$. Expanding down it:
Two panels. On the left a 3 by 3 grid of signs: the top row is plus, minus, plus, the middle row is minus, plus, minus, and the bottom row is plus, minus, plus, like a chessboard. On the right the matrix with rows 3 0 2, then 1 5 0, then 4 2 1 has its third column circled. The caption says to expand along the column with the most zeros.
For a triangular matrix, expand again and again along the column or row of zeros. The result is the product of the diagonal entries. For example $
157024003
= 1 \cdot 2 \cdot 3 = 6$.
A worked example
Evaluate $
2310451−26
$ along its first row.
The entries.a11=2, a12=0, a13=1.
The cofactors. $C_{11} = +
45−26
= 24 + 10 = 34.C_{13} = +
3145
= 15 - 4 = 11.Thetermfora_{12}is0,soC_{12}$ is not needed.
The sum.2⋅34+0+1⋅11=79.
Practise with new numbers
Try it in Python
The program finds a determinant by expanding along the first row. It calls itself on the smaller matrices that remain, and it checks the answer against numpy.
Common mistakes
Forgetting the sign pattern. The middle term of the first-row expansion carries a minus sign.
Adding the products in a 2×2 determinant. It is ad−bc.
Mixing up minor and cofactor. The cofactor is the minor with the sign (−1)i+j.
Multiplying a row of A by the cofactors of a different row. That gives 0, not ∣A∣.
Thinking ∣A∣ is always positive. It can be negative or zero.
Remember these
$
acbd
= ad - bc$. It is the area of the parallelogram on the columns, with a sign.
Cij=(−1)i+jMij, and ∣A∣ is the sum of (entry times cofactor) along any row or column.
Expand along the row or column with the most zeros.
The determinant of a triangular matrix is the product of the diagonal.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find $
4275
$.
Find the minor M23 and the cofactor C23 of $
201136457
$.
2116
= 11,andC_{23} = (-1)⁵ \cdot 11 = -11$.
Find $
2436
$. What do you notice about the rows?
Find $
314025006
$.
Which row or column would you expand $
514237002
$ along, and what is its value?
5123
= 2 \cdot 13 = 26$.
References
NCERT, Mathematics Textbook for Class XII, Part I, Chapter 4 (Determinants), the sections on the determinant, minors and cofactors.
OpenStax, Precalculus 2e, Section 9.8 (Solving Systems with Cramer's Rule), which evaluates 2×2 and 3×3 determinants.
Enroll free in Determinants
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.