Skip to content

The determinant as area

See a matrix scale every area by one factor, read a minus sign as a flip and zero as flattening, and multiply area factors.

Helps to know firstA gallery of linear maps

Helps to know first
This topic

First, the picture

How much bigger does a matrix make the plane? Watch the unit square grow into a parallelogram while a meter fills with its area.

What the determinant measures

The unit square, the unit circle and a letter F, carried by one matrix.

The unit square has area 1, and the unit circle has area π.

signed area
1
ellipse area
3.142
0.00 / 8.00 s
Describe this picture

A panel with a faint grid, the shaded unit square, a unit circle and a small letter F. After a second’s rest, over 5 s the grid moves to the place the matrix A=[2−111]\mathbf{A}=\begin{bmatrix}2&-1\\1&1\end{bmatrix} sends it, turning a little as it stretches. The unit square becomes the parallelogram on the columns (2,1)(2,1) and (−1,1)(-1,1), and an area meter in the corner of the panel fills to its area, 3. The circle becomes an ellipse of area 3π=9.4253\pi=9.425; readouts give both areas. No frame flattens or flips on the way. When the clip has finished, the tip of the second column can be dragged, or moved with the arrow keys in steps of half a unit, while the first stays at (2,1)(2,1); the meter shows the signed area. At (−1,1)(-1,1) it reads 3. Dragged to (2,0)(2,0), it reads −2-2, the letter F appears mirrored, and the meter’s bar turns to the negative side. Dragged onto the line of the first column, for example to (4,2)(4,2), it reads 0 and the grid lies flat on a line.

How much bigger

The unit square has area 1. Under A\mathbf{A} it becomes the parallelogram with sides (2,1)(2,1) and (−1,1)(-1,1), the columns of the matrix, as in A matrix moves the plane. What is its area?

Count it. Its corners are (0,0)(0,0), (2,1)(2,1), (1,2)(1,2) and (−1,1)(-1,1). Draw the smallest upright rectangle around it: from −1-1 to 22 across and 00 to 22 up, area 3⋅2=63\cdot2=6. The rectangle’s four corners hold four right triangles outside the parallelogram, with areas 11, 0.50.5, 11 and 0.50.5. So the parallelogram’s area is 6−3=36-3=3.

The matrix makes the unit square 3 times bigger. That factor is the determinant of A\mathbf{A}, written det⁡A\det\mathbf{A}. Here det⁡A=3\det\mathbf{A}=3.

Every shape, the same factor

Not only the square grows by 3. Every small square of the grid becomes a copy of the same parallelogram, because a matrix moves every grid square alike. So every shape, built from many small squares, grows by the same factor. The circle of area π\pi becomes an ellipse of area 3π=9.4253\pi=9.425. A triangle with corners (0,0)(0,0), (1,0)(1,0) and (0,1)(0,1), area 12\tfrac12, becomes the triangle on (0,0)(0,0), (2,1)(2,1) and (−1,1)(-1,1), area 1.51.5.

So det⁡A\det\mathbf{A} is one number that tells you how the matrix changes every area at once.

Sign and zero

After the clip, drag the second column. While it sits above the line of the first column, so that turning from a1\mathbf{a}_1 to a2\mathbf{a}_2 goes anticlockwise, the meter is positive. Drag it across the line of the first column, to (2,0)(2,0). The parallelogram now turns the other way, the letter F is mirrored, and the meter reads −2-2.

A negative determinant means the map flips the plane, like seeing it in a mirror. The size of the number is still the area factor; the sign tells you about the flip. Two different matrices can both scale area by 2, and the sign tells which one also mirrors.

Now drag the column onto the line of the first one, to (4,2)(4,2). The parallelogram is flat, the meter reads 0, and the whole plane lands on one line. A zero determinant means the map flattens the plane. Then no inverse can exist, as The inverse matrix showed: two points that land together cannot both be sent back.

The rules

Doing one map after another multiplies the area factors. First a shear, which slides the grid sideways without changing any area, then A\mathbf{A}.

Areas multiply

A shear, then A: the area meter after each.

The unit square, and its area: 1.

signed area
1
0.00 / 10.40 s
Describe this picture

The unit square and the area meter. First the shear Ashear=[1101]\mathbf{A}_\text{shear}=\begin{bmatrix}1&1\\0&1\end{bmatrix} slides the square into a slanted parallelogram, and the meter stays at 1. Then A\mathbf{A} acts on top, and the result is the parallelogram on (2,1)(2,1) and (1,2)(1,2), with the meter at 3. A caption names each step. The picture has no control.

In symbols, with the shear first and A\mathbf{A} second, the product is AAshear=[2112]\mathbf{A}\mathbf{A}_\text{shear}=\begin{bmatrix}2&1\\1&2\end{bmatrix}, and det⁡(AAshear)=3=3⋅1\det(\mathbf{A}\mathbf{A}_\text{shear})=3=3\cdot1. In general,

det⁡(AB)=det⁡A det⁡B.\det(\mathbf{A}\mathbf{B})=\det\mathbf{A}\,\det\mathbf{B}.

Three more rules follow.

  • The inverse. A−1\mathbf{A}^{-1} undoes the growth, so det⁡A−1=1/det⁡A\det\mathbf{A}^{-1}=1/\det\mathbf{A}. For our A\mathbf{A}, 13\tfrac13.
  • The transpose. det⁡A⊤=det⁡A\det\mathbf{A}^\top=\det\mathbf{A}. For our A\mathbf{A}, A⊤=[21−11]\mathbf{A}^\top=\begin{bmatrix}2&1\\-1&1\end{bmatrix} also has determinant 3.
  • A multiple. 2A2\mathbf{A} doubles both columns, so the area grows by 2⋅2=42\cdot2=4: det⁡(2A)=12\det(2\mathbf{A})=12. For an n×nn\times n matrix, det⁡(c A)=cndet⁡A\det(c\,\mathbf{A})=c^n\det\mathbf{A}.

Swapping the two columns turns the parallelogram the other way: [−1211]\begin{bmatrix}-1&2\\1&1\end{bmatrix} has determinant −3-3.

The formula

For a 2×22\times2 matrix, the signed area of the parallelogram on the columns (a11,a21)(a_{11},a_{21}) and (a12,a22)(a_{12},a_{22}) is

det⁡A=a11a22−a12a21.\det\mathbf{A}=a_{11}a_{22}-a_{12}a_{21}.

It is the number that appeared in the inverse formula of The inverse matrix. For our A\mathbf{A}: 2⋅1−(−1)⋅1=32\cdot1-(-1)\cdot1=3. With a1=(2,1)\mathbf{a}_1=(2,1) fixed and a2=(x,y)\mathbf{a}_2=(x,y), it is 2y−x2y-x, the number the meter shows while you drag.

In three dimensions, the determinant is the signed volume of the box on the three columns. The columns (1,1,0)(1,1,0), (1,0,1)(1,0,1) and (0,1,1)(0,1,1) make a box of volume 2, turned inside out, so the determinant is −2-2. Computing determinants shows how to get it.

Worked example

  1. The matrix of the page. det⁡[2−111]=3\det\begin{bmatrix}2&-1\\1&1\end{bmatrix}=3; the half-unit triangle becomes a triangle of area 1.51.5.
  2. A product. det⁡(AAshear)=det⁡[2112]=4−1=3=3⋅1\det(\mathbf{A}\mathbf{A}_\text{shear})=\det\begin{bmatrix}2&1\\1&2\end{bmatrix}=4-1=3=3\cdot1.
  3. Other maps. Scaling by 1.5 in every direction: 2.252.25. The reflection [0110]\begin{bmatrix}0&1\\1&0\end{bmatrix}: −1-1. The projection [0.50.50.50.5]\begin{bmatrix}0.5&0.5\\0.5&0.5\end{bmatrix}: 0.25−0.25=00.25-0.25=0. Any rotation or shear: 11.
  4. A stretch. det⁡[3002]=6\det\begin{bmatrix}3&0\\0&2\end{bmatrix}=6.
  5. A flat one. det⁡[1224]=0\det\begin{bmatrix}1&2\\2&4\end{bmatrix}=0: the columns lie on one line.
  6. Rules. If det⁡A=3\det\mathbf{A}=3 and det⁡B=−2\det\mathbf{B}=-2, then det⁡(AB)=−6\det(\mathbf{A}\mathbf{B})=-6.
  7. Predict. As a2\mathbf{a}_2 crosses the line of a1\mathbf{a}_1, the sign changes: the plane flips.

Where you’ll meet this

A graphics engine checks the sign of each object’s matrix. A negative determinant means the object has been mirrored, so its triangles now wind the other way round, and the engine must flip them to draw their front faces.

When a change of variables stretches a region, every area is multiplied by a determinant. Polar coordinates stretch a small patch by the distance rr from the centre, so at r=2r=2 areas are doubled. A probability density moved by a map must shrink by the same factor to keep its total at 1.

In signal processing · the DFT keeps volume

The DFT as a matrix writes the DFT of NN samples as an N×NN\times N matrix. Scaled by 1/N1/\sqrt N, it keeps every length, so its determinant has size 1. The two-point DFT [111−1]\begin{bmatrix}1&1\\1&-1\end{bmatrix} has determinant −2-2: it doubles area and flips; scaled by 1/21/\sqrt2, its determinant is −1-1.

Where this leads · stretched densities

Transforming random variables in the probability and statistics course stretches a density by the slope of a map, the one-dimensional determinant.

Reference card

QuantityFormulaNotes
Meaningdet⁡A\det\mathbf{A} = area of the image of the unit squareevery area scales by it
2×22\times2det⁡A=a11a22−a12a21\det\mathbf{A}=a_{11}a_{22}-a_{12}a_{21}signed area on the columns
Signnegative: the plane is flippedzero: flattened, no inverse
Productdet⁡(AB)=det⁡Adet⁡B\det(\mathbf{A}\mathbf{B})=\det\mathbf{A}\det\mathbf{B}areas multiply
Inversedet⁡A−1=1/det⁡A\det\mathbf{A}^{-1}=1/\det\mathbf{A}
Transposedet⁡A⊤=det⁡A\det\mathbf{A}^\top=\det\mathbf{A}
Multipledet⁡(cA)=cndet⁡A\det(c\mathbf{A})=c^n\det\mathbf{A}n×nn\times n
Three dimensionssigned volume of the box on the columns

Keep reading with a free account.

By creating an account you accept the terms of use.

Sign in

Already have an account? Use the service you signed up with.

Or keep reading: get new lessons by email

Are you 13 or over?

Accounts and email updates are for people aged 13 or over. We keep only your answer, never your date of birth.

End of the lesson

Where to go next.

Phasorium

Account

Sign inKeep your place on any device

Subjects

Site

Look