Lecture 33 · Week 9· 15:38

Determinant as signed volume

Geometric meaning, orientation.

Play: Lecture 33: Determinant as signed volume
Lecture · 15:38 · Open on YouTube · Report a problem with this video
TranscriptThe full text of the lecture. Click any sentence to play the video from there.

Today: area, orientation and the determinant

Welcome back. This week is about one number attached to every square matrix: its determinant. We have met it twice already, without its full story. In lecture sixteen, a two by two matrix with entries a, b, c and d turned out to be invertible exactly when a d minus b c is not zero. And in lecture thirteen, a shear moved the unit square to a slanted parallelogram with the same area. We promised that measuring how a matrix changes area would lead to the determinant.

Today we keep that promise. The number a d minus b c is a signed area. Its absolute value is the area of the parallelogram spanned by the columns, and its sign records orientation. So the plan is this. First area in the plane, then its sign. Then the rules that signed area obeys, and how a matrix scales areas. And finally the same story for volume in space.

The area of a parallelogram

Start with two vectors in R two: v, with entries a and c, and w, with entries b and d. Put them side by side as the columns of a matrix A. The determinant of A is the number a d minus b c. We also write it with vertical bars around the entries, or as the determinant of the columns v and w. The vectors v and w span a parallelogram: all the points s v plus t w, with s and t between zero and one.

Here is the theorem. For v and w in R two, the area of this parallelogram is the absolute value of the determinant. The proof is short, but the rest of the lecture is built on it, so take it slowly. If v is zero, the parallelogram is flat. Its area is zero, and so is the determinant, since a and c are zero. So let v be nonzero. Turn v a quarter turn counterclockwise, and call the result v perp. Its entries are minus c and a. It has the same length as v, and it is perpendicular to v, since their dot product is minus a c plus c a, which is zero.

These two vectors are nonzero and perpendicular, so neither is a multiple of the other. Indeed, if v perp were k times v, then the dot product with v would give zero equals k times the length of v squared. So k would be zero, and v perp would be zero, which it is not. So v and v perp form a basis of R two, and w is x times v, plus y times v perp, for some numbers x and y. Take v as the base. The height of the parallelogram is the length of the part y v perp, which is the absolute value of y, times the length of v. To find y, take the dot product of w with v perp. Since v dot v perp is zero, this is y times v perp dot v perp, which is y times the length of v squared.

On the other hand, w dot v perp is b times minus c, plus d times a. That is a d minus b c, the determinant. So the determinant equals y times the length of v squared. Now base times height is the length of v, times the absolute value of y, times the length of v. That is the absolute value of the determinant, which proves the theorem. For example, with v equal to (three, one), and w equal to (one, two), the determinant is three times two, minus one times one, which is five. So this parallelogram has area five.

The sign: orientation

The proof gave us more than the area. The determinant is y times the length of v squared, so it has the same sign as y. And y is positive exactly when w lies on the same side of the line through v as v perp. Since v perp is v turned counterclockwise, this means: the determinant is positive when w lies on the counterclockwise side of v, negative when it lies on the clockwise side, and zero when w lies on the line through v. Watch the sign as w goes around.

So the determinant is a signed area. Its absolute value is the area, and its sign gives the orientation of the ordered pair v, w: positive or negative. The standard basis is the model of positive orientation. From e one, e two lies a counterclockwise quarter turn away, and the determinant of the identity matrix is one times one, minus zero times zero, which is one. Order matters. Swap the two vectors, so that w comes first. Now the determinant is one times one, minus three times two, which is minus five. Same parallelogram, same area five, opposite orientation.

And when w is a multiple of v, for example v equal to (two, one), and w equal to (four, two), the determinant is two times two, minus four times one, which is zero. The two vectors lie on one line, and the parallelogram is flat.

The rules of signed area

Signed area follows four simple rules. They are worth knowing well, because next lecture they become the starting point for determinants of every size. First, the determinant is linear in each column. In the second column, for example, the determinant of v and w plus w prime is the determinant of v and w, plus the determinant of v and w prime. And the determinant of v and k times w is k times the determinant of v and w. The picture explains it. With v as the base, the signed area is the length of v times the signed height of the second vector, and signed heights add up, and scale with the vector.

Second, if both columns are the same vector, the determinant is zero: the parallelogram is flat. Third, swapping the two columns changes the sign, as we just saw. And fourth, the identity matrix has determinant one: the unit square has area one, and positive orientation. Why do these rules hold? Each of the two products, a d and b c, takes exactly one entry from each column. So, with one column held fixed, the determinant is a linear expression in the entries of the other column. That is the first rule.

With two equal columns, b is a and d is c, so the determinant is a c minus a c, which is zero. And for the identity it is one, as we computed. The third rule follows from the first two. Put v plus w in both columns. The determinant is zero, by the second rule. Expand both columns by the first rule. Four terms appear: v with v, v with w, w with v, and w with w. The first and the last are zero, so the determinant of v and w, plus the determinant of w and v, is zero.

A useful consequence: adding a multiple of one column to the other does not change the determinant. The determinant of v and w plus k v is the determinant of v and w, plus k times the determinant of v and v, which is zero. This is the shear of lecture thirteen. Sliding the top edge along v keeps the base and the height, so the area stays the same.

A matrix scales areas

Now let a two by two matrix A act on the plane. It sends two vectors v and w to A v and A w. How are the two signed areas related? Here is the theorem. The determinant of A v and A w is the determinant of A, times the determinant of v and w. The proof uses the rules, so take it slowly. Call the columns of A, a one and a two. By lecture twelve, A v is v one times a one, plus v two times a two, and A w is w one times a one, plus w two times a two.

Expand both columns by the first rule. Four terms appear. The two terms with a repeated column are zero, by the second rule. What remains is v one w two times the determinant of a one and a two, plus v two w one times the determinant of a two and a one. By the swap rule, that last determinant is minus the determinant of A. So the result is v one w two, minus v two w one, times the determinant of A. And v one w two minus v two w one is the determinant of v and w, which proves the theorem.

What does this mean for area? The map sends each point s v plus t w to s A v plus t A w. So it maps the parallelogram spanned by v and w onto the parallelogram spanned by A v and A w, and the area is multiplied by the absolute value of the determinant of A. In particular, the unit square goes to the parallelogram spanned by the columns of A. Here A has the rows (two, one), and (one, two), with determinant four minus one, which is three. So the square of area one becomes a parallelogram of area three. In fact every region is scaled by the same factor. Fill a region with small squares: each one becomes a parallelogram, with its area multiplied by three. Calculus makes this approximation precise.

The sign says whether the map keeps orientation. If the determinant is positive, counterclockwise pairs stay counterclockwise. If it is negative, the plane is flipped over. Let's check the maps of lecture thirteen. A rotation by an angle theta has determinant cosine theta times cosine theta, minus minus sine theta times sine theta. That is cosine squared plus sine squared, which is one: a rotation keeps area and orientation. The reflection across the line y equals x swaps the two coordinates. Its determinant is zero times zero, minus one times one, which is minus one: it keeps area, but flips orientation.

A shear has determinant one times one, minus k times zero, which is one, as we saw. And the projection onto the line y equals x has determinant one half times one half, minus one half times one half, which is zero: it squashes the whole plane onto a line. This fits lecture sixteen. A matrix whose determinant is zero squashes the plane, so its map cannot be undone, and the matrix is not invertible.

Volume in space

Now three vectors in R three: u, v and w. They span a slanted box, called a parallelepiped: all the points r u plus s v plus t w, with r, s and t between zero and one. Put them as the columns of a three by three matrix. Its determinant is a sum of six products. Each product takes one entry from each row and one from each column, three with a plus sign and three with a minus sign. Next lecture explains where the signs come from. For now, here is a way to see the formula: the determinant is u cross v, dotted with w.

Indeed, the first entry of u cross v is u two v three, minus u three v two, and it is multiplied by w one. Do the same for the second and third entries. The six terms are exactly the six products of the definition. Here is the theorem. The volume of the box is the absolute value of the determinant. The proof follows the plan of the proof in the plane. If u and v are parallel, the box is flat, and u cross v is zero by lecture five, so both sides are zero. Otherwise, the base is the parallelogram spanned by u and v, and by lecture five, its area is the length of u cross v.

The vector u cross v is nonzero and perpendicular to u and to v. So u, v and u cross v form a basis of R three: dotting a combination that is zero with u cross v kills its third weight, and then the other two are zero, since u and v are not parallel. So w is x u plus y v, plus z times u cross v. The height of the box over its base is the length of the last part: the absolute value of z, times the length of u cross v. Dot w with u cross v. The parts along u and v give zero, so we get z times the length of u cross v squared. And this dot product is the determinant.

So base times height is the length of u cross v, times the absolute value of z, times the length of u cross v. That is the absolute value of the determinant. The sign again records orientation. The determinant is positive when w lies on the side of the base plane that u cross v points to. Such a list is called right handed, after the right hand rule of lecture five. The standard basis e one, e two, e three is right handed, with determinant one. For example, take u equal to (one, zero, zero), v equal to (one, two, zero), and w equal to (one, one, three). Then u cross v is (zero, zero, two), and its dot product with w is two times three, which is six. So the box has volume six, and the list is right handed.

The four rules in space

The three by three determinant obeys the same four rules as the two by two one. It is linear in each column, because each of the six products takes exactly one entry from each column. It is zero when two columns are equal. For example, if u equals v, the six products cancel in pairs. The other two cases cancel in pairs too. Over the real numbers, this says that u cross u is zero, and that u cross v is perpendicular to u and to v. Swapping two columns changes the sign, by the same expansion as in the plane, with the third column held fixed. And the identity matrix has determinant one, since only the product of the diagonal entries is nonzero.

So in the plane and in space, signed area and signed volume are linear in each column, zero when two columns are equal, and one for the identity. For n vectors in R n we can no longer draw the box. But we can ask for a signed volume with the same rules. Next lecture defines the determinant of every n by n matrix, using permutations, and shows that it has these rules. And in lecture thirty six we prove that the determinant of a product is the product of the determinants. Then today's theorem in the plane holds in every size: a matrix multiplies signed volumes by its determinant.

Summary

To sum up. In the plane, the determinant of two vectors is the signed area of their parallelogram, and in space, the determinant of three vectors is the signed volume of their box. Its sign records orientation, it follows four simple rules, and a matrix multiplies signed areas by its determinant. Before the next lecture, read section seven point one of the course book, try the problems on sheet nine about area and orientation, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we define the determinant of every square matrix. See you there.

Check yourself

3 questions, from warm-up to stretch

Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.

  1. Question 1 of 3 Warm-up

    Let and . Find and the area of the parallelogram spanned by and . Where does lie, seen from ?

    Seen from , lies
    Hint 1 of 2

    Put and as the columns: (Definition 7.1.1), and the area is its absolute value (Theorem 7.1.2).

    Hint 2 of 2

    Here , (the column ) and , (the column ). The sign tells the side (Proposition 7.1.3).

    Worked solution
    1. With and as the columns, (Definition 7.1.1).
    2. The area of the parallelogram is (Theorem 7.1.2).
    3. The determinant is positive, so lies counterclockwise from (Proposition 7.1.3): the pair is positively oriented (Definition 7.1.4).
  2. Question 2 of 3 Core

    Let , and . Find and the area of the parallelogram spanned by and . Does keep orientation?

    Keeps orientation:
    Hint 1 of 2

    By Theorem 7.1.8, : find the two determinants and multiply.

    Hint 2 of 2

    , and .

    Worked solution
    1. .
    2. , so the parallelogram of and has area .
    3. By Theorem 7.1.8, , so the image has area . Since , keeps orientation.
    4. Check directly: and , and .
  3. Question 3 of 3 Stretch

    Let , and . Find and the volume of the box they span. Is right-handed or left-handed?

    The list is
    Hint 1 of 2

    By Proposition 7.1.12, , and the volume is its absolute value (Theorem 7.1.13).

    Hint 2 of 2

    . Its second entry is .

    Worked solution
    1. .
    2. (Proposition 7.1.12).
    3. The box has volume (Theorem 7.1.13), and since the determinant is positive the list is right-handed (Definition 7.1.14).
    4. Check with the six products of Definition 7.1.11: .

Found a mistake, or something not working on this page? Report it and we'll fix it. See what we've corrected.