The determinant, explained with pictures

A matrix is a plan for changing the plane. It can stretch, shear, rotate or flip it. The determinant tells you what area gets multiplied by when that happens. Press the buttons and watch the plane change.

Short answer. The determinant is one number that tells you what area gets multiplied by when a matrix changes the plane. For a 2×2 matrix it is a×d − b×c. If it is negative, the plane has been flipped. If it is 0, the plane has been squashed flat.

Left column = where î goes, right column = where ĵ goes

Drag the circles at the arrow tips, or change the numbers. The dashed square is one grid square before the change (area 1). The colored shape is that same square after the change.

Definitions

The page below uses 2×2 matrices, but the determinant is defined for every n×n matrix. A=[aij] is an n×n matrix.

2×2 determinant
The determinant of a 2×2 matrix is the number below. It is written detA, or with vertical bars as |A|.

detA=|abcd|=ad−bc

minor and cofactor
For an n×n matrix A (n ≥ 2), delete row i and column j. The determinant Mij of the (n−1)×(n−1) matrix that is left is the (i, j) minor, and Cij below is the (i, j) cofactor.

Cij=(−1)i+jMij

cofactor expansion
The determinant of a 1×1 matrix [a] is a. For n ≥ 2, the determinant of A is defined as the sum of each entry of the first row times its cofactor. Expanding along any row or any column gives the same value. For 3×3, it breaks into three 2×2 determinants, as in the second line.

detA=a11C11+a12C12+⋯+a1nC1n=∑j=1na1jC1j

|a11a12a13a21a22a23a31a32a33|=a11|a22a23a32a33|−a12|a21a23a31a33|+a13|a21a22a31a32|

determinant and area
The area of the parallelogram made by the two columns of a 2×2 matrix A is |detA|. The linear transformation 𝐱↦A𝐱 multiplies the area of every shape S that has an area by |detA|, and it flips the orientation when detA<0. For 3×3, volume takes the place of area.

area(A(S))=|detA|·area(S)

1. A matrix is a plan for changing the plane

The plane has two base arrows: î = (1, 0), one square to the right, and ĵ = (0, 1), one square up. A 2×2 matrix writes down "where to send these two." The left column is where î goes. The right column is where ĵ goes.

When the two arrows move, the whole grid follows. Lines stay straight and the spacing stays even. Slowly move the "Amount changed" slider from 0% to 100%.

2. The determinant is what area gets multiplied by

Before the change, one grid square has area 1. After the change, it becomes the parallelogram made by î and ĵ. The area of that parallelogram is the determinant. This is true for more than that one square. Every shape on the plane has its area multiplied by the same number.

Try pressingDeterminantWhat happens
Double42 times across × 2 times up, so the area is 4 times
Stretch sideways3Only across is 3 times, so the area is 3 times too
Shear1The shape leans, but the base and height stay the same, so the area stays the same
Rotate1It only rotates, so the area stays the same
Flip−1The area stays the same, but the F becomes its mirror image
Squash0The two arrows land on one line, so the area becomes 0

Why a×d − b×c?

If the matrix is a b / c d, then î goes to (a, c) and ĵ goes to (b, d). Work out the area of the parallelogram these two make, and you get a×d − b×c. If b and c are 0 (only stretching), it is a times across × d times up, so a×d. If b or c is not 0, the arrows lean toward each other, and the overlap takes away b×c. To see why it is exactly b×c, step through the pictures in the next section.

3. How the formula is built: a×d − b×c

Start from a rectangle, then add b and c one at a time and watch the area. Only one fact is needed: the area of a parallelogram is base × height. So pushing a shape sideways while its base and height stay the same (a shear) does not change the area. The example matrix is 4 1 / 3 2 (a = 4, b = 1, c = 3, d = 2).

Press "Next" to go one step at a time. The formula on top gains one piece (the orange background marks the new piece), the picture changes by that much, and the reason appears. The green fill is the current parallelogram, the gray dashed outline is the shape to compare with, the orange dashed arrow is the path that moved in this step, and the orange strip is the area that was lost.

The steps above, written only as formulas. The second line pushes î along ĵ down to the floor. That is a shear, so the area stays the same. The last line is the example of this section.

|a00d|=ad,|ab0d|=ad−0

(a,c)−cd(b,d)=(a−bcd,0)

|abcd|=|a−bcdb0d|=(a−bcd)d=ad−bc

|4132|=(4−1·32)·2=2.5·2=5=4·2−1·3

When it turns negative. Lift c further so that b×c is bigger than a×d, and in step ④ the base a − b×c÷d drops below 0. î passes the origin and lies on the floor to the left, and the area comes out negative. That is the flip in the next section. For example, with 4 1 / 10 2 the base is 4 − 5 = −1, so the area is −1 × 2 = −2, the same as a×d − b×c = 8 − 10 = −2.

Here we assume d is not 0. If d is 0, ĵ lies flat on the floor, so you cannot slide î along ĵ down to the floor. The formula still holds then, but we do not prove it here.

4. Negative and 0

Negative. Drag î over to the other side of ĵ. The moment it crosses, the color turns orange and the F flips. If the plane were a sheet of paper, you just turned the paper over. The area is multiplied by the absolute value.

0. Put î and ĵ on one line. The parallelogram goes flat and its area becomes 0. The whole plane has been pressed onto that one line. What is pressed flat cannot be spread out again, because you cannot tell where each point came from. That is why a matrix with determinant 0 has no inverse matrix (a matrix that undoes it).

Try this. ① In "Shear," raise b to 3. The determinant is still 1. ② Set both a and d to −1. The determinant is +1. Flipping twice is the same as turning halfway around. ③ Make the right column twice the left column (for example 1 2 / 0.5 1). The determinant becomes 0.

Where is it used?

For a 3×3 matrix, it is volume instead of area. The meaning is the same.

Common questions

What is a determinant?

It is one number that tells you what area gets multiplied by when a matrix changes the plane. For a 2×2 matrix, you get it from ad − bc.

What does a negative determinant mean?

It means the plane has been flipped over. Left and right swap, like letters seen in a mirror. The area is multiplied by the absolute value of that number.

What does a determinant of 0 mean?

It means the plane has been squashed onto a line or a single point. The area becomes 0 and you cannot undo it. That is why there is no inverse matrix.

What is the determinant of a 3×3 matrix?

It means the same thing, with volume instead of area. It tells you what volume gets multiplied by when a 3×3 matrix changes space.

Words

Word used hereWord used in textbooks
changing the planelinear transformation
base arrows î, ĵbasis vectors
determinantdeterminant. Written det A or |A|
shear (leaning)shear mapping, shear transformation
flippedorientation is reversed
matrix that undoes itinverse matrix
matrix that squashes the plane flatsingular matrix

← Inverse matrixCramer's rule →