Every square matrix has a single number attached to it, its determinant, that answers a surprising number of questions at once. Is the matrix invertible? Does the system AX=B have exactly one solution? What is the area of the triangle with these three vertices? In the last lesson you met the 2×2 determinant ad−bc inside the inverse formula. This lesson extends it to 3×3 matrices, lists its most useful properties and puts it to work.
The 2 × 2 determinant
Definition
Determinant of a 2 × 2 matrix
The determinant of A=[acbd] is
detA=acbd=ad−bc.
Vertical bars around the entries mean "determinant of", not absolute value; a determinant can be negative.
A handy picture: multiply down the main diagonal, then subtract the product up the other diagonal. For example,
53−24=5(4)−(−2)(3)=20+6=26.
The 3 × 3 determinant by cofactor expansion
For a 3×3 matrix, the determinant is built out of 2×2 determinants. The minorMij of an entry is the determinant left over when you cross out that entry's row and column. The cofactor is the minor with a sign attached: Cij=(−1)i+jMij. The signs follow a checkerboard pattern:
+−+−+−+−+
Cofactor expansion
To find the determinant of a 3×3 matrix, choose any row or column. Multiply each entry in it by its cofactor, and add. Expanding along the first row,
As a check, expand down the first column, which has a zero: 2(−10)−0+5−1431=−20+5(−1−12)=−20−65=−85. ✓
Common mistake
The most common error in cofactor expansion is dropping a sign. The middle term of a first-row expansion is subtracted, and when that entry is itself negative, as with the −1 above, the two negatives make a plus. Write the checkerboard signs down before you start.
Properties that save work
You rarely need to expand a large determinant from scratch. These facts, stated for an n×n matrix A, cover most situations:
Property
Effect
Triangular matrix (all zeros above or below the diagonal)
detA is the product of the diagonal entries
Swap two rows
the determinant changes sign
Multiply one row by k
the determinant is multiplied by k
Add a multiple of one row to another
the determinant does not change
A row of zeros, or two equal rows
detA=0
Scale the whole matrix
det(kA)=kndetA
Products
det(AB)=detA⋅detB
The scaling rule surprises many students: 2A doubles every row, so for a 3×3 matrix the determinant is multiplied by 2⋅2⋅2=8, not by 2.
Most important of all:
Determinants and invertibility
A square matrix A is invertible if and only ifdetA=0. Equivalently, the system AX=B has exactly one solution for every B exactly when detA=0. When A is invertible, det(A−1)=detA1.
Area with determinants
The absolute value of a 2×2 determinant is an area. If a parallelogram has sides given by the vectors ⟨a,c⟩ and ⟨b,d⟩, its area is ∣ad−bc∣. A triangle with the same two sides is half of that parallelogram.
To find the area of a triangle with vertices P1(x1,y1), P2(x2,y2) and P3(x3,y3), form the two side vectors from P1 and take half the absolute determinant:
Area=21x2−x1x3−x1y2−y1y3−y1.
Worked example: Area of a triangle
Find the area of the triangle with vertices (1,1), (5,2) and (2,6).
Determinants also give a formula for the solution of a square system with detA=0. For the system ax+by=e, cx+dy=f, let
D=acbd,Dx=efbd,Dy=acef.
Dx replaces the x-column with the constants, and Dy replaces the y-column. Then x=DDx and y=DDy. The same pattern works for three equations with 3×3 determinants.