Linear Algebra, Live
Strang §5.1 · What the determinant measures

The determinant: how much a matrix stretches area

Slide 2's mirror kept every size but turned the plane over, and its determinant was −1. Now we look at that number on its own. Think of a photocopier set to 200%: every length doubles, so every shape on the page, big or small, gets 4 times the area. A matrix works the same way. It multiplies every area by one fixed number, its determinant, det A. You can read that number off the unit square, because the square lands on the slanted box made by the two columns. A minus sign means the plane was also flipped over, like a page turned face down. Zero means everything was squashed flat onto a line, and then nothing can undo the move.

Lesson 6 · slide 3Determinant
det A = ad − bc for A = abcd    area of image = |det A| × area
Key ideas
  1. det A is the factor by which A multiplies every area (2D) or volume (3D).
  2. det A < 0: the matrix also flips space, like a mirror.
  3. det A = 0: space is squashed onto a line, a plane, or even a single point. Then A has no inverse.
  4. For 2 by 2, det A = ad − bc. Larger matrices follow from three rules (slide 4).

One stretch factor for every shape

A matrix may turn and slant shapes, but it multiplies every area by the same number. Take A = 3002. It makes every width 3 times bigger and every height 2 times bigger:

the unit square (area 1)  →  a 3 by 2 rectangle, area 6
a 2 by 2 square (area 4)  →  a 6 by 4 rectangle, area 24 = 6 × 4
det A = 3·2 − 0·0 = 6 ✓   every area is multiplied by 6

Read it off the unit square

A sends 10 to column 1 and 01 to column 2 (slide 1). So the unit square lands on the parallelogram (a slanted box) whose two sides are the columns. Its area is the stretch factor. Take A = 3112, with columns 31 and 12:

The unit square becomes the parallelogram with sides 31 and 12. Its area is 5, so every area in the plane becomes 5 times bigger.

Why 5? Cut it out of cardboard. The parallelogram fits in a 4 by 3 box, area 12. Cut off the corners: two triangles of 3·1/2, two triangles of 1·2/2, and two small 1 by 1 squares.

12 − 2·(1.5) − 2·(1) − 2·(1) = 12 − 3 − 2 − 2 = 5
ad − bc = 3·2 − 1·1 = 6 − 1 = 5 ✓

The same cutting works for any columns ac and bd: the box is (a + b)(c + d), and taking off the corners leaves exactly ad − bc. So the number from lesson 3, the test for an inverse, is an area.

The sign: was the plane flipped?

Turn from column 1 to column 2 the short way. Counterclockwise, like 10 to 01? Then det A > 0. Clockwise? Then the plane was turned over, and det A < 0. Swap the two columns of the last matrix:

1321   det = 1·1 − 3·2 = −5
Same parallelogram, same area 5, but the square is now face down
10 goes to 12 and 01 goes to 31. The short turn from column 1 to column 2 is now clockwise: the square is flipped. det = −5.

The mirror from slide 2, −1001, has det = −1: same area, flipped.

Zero: squashed flat

If both columns lie on one line, the parallelogram is flat, with area 0. Take A = 2110.5: column 1 is 21 and column 2 is 10.5, half of column 1.

det A = 2·0.5 − 1·1 = 1 − 1 = 0
A1−2 = 1·21 − 2·10.5 = 00
Both columns lie on one line, so the whole plane is squashed onto that line. The square becomes a flat segment with area 0.

Both 1−2 and 00 land on 00: 1−2 is in the nullspace (lesson 4). Many inputs give the same output, so nothing can undo A. The key fact: A is invertible exactly when det A ≠ 0. For 2 by 2 you saw this in lesson 3. It is true for every size, and slide 5 shows why.

Keep reading with the full course

Finish lesson 6 and you will be able to: see a matrix as a move of the plane, and build one from where two arrows land.

Still locked here:

  • The rest of this explanation
  • 4 more examples with step-by-step solutions
  • Five extra members-only problems with worked solutions

$20 once, lifetime access. Lessons 1 to 3 stay free.

Examples

Example 1 · A stretch

A = 2003.

Show solutionHide solution
det A = 2·3 − 0·0 = 6
The square becomes a 2 by 3 rectangle: area 6 ✓
Exercise Change M so that the unit square becomes a parallelogram of area 3, without flipping it. Hint: try a diagonal matrix. Edit the code and press Run.
slide_3.py Loading Python…
1
Output · Ctrl+Enter runs
Press Run to execute this slide's code. Ctrl+Enter works too.

Questions and comments

Stuck on something, or found a mistake? Ask here and I'll answer. You sign in with GitHub.

The full course

From Ax = b to PCA, by running it

Lessons 1 to 3 are free. Finish all eight and you will be able to:

You get: all 8 lessons with Python labs · every worked example and solution · 5 extra problems per lesson · your progress tracked · answers to your questions · every future update.

$20 once · lifetime access
Continue to checkout →

Already a member? Log in to the course