Determinants and volume
Two vectors in the plane mark out a parallelogram. Three vectors in 3D mark out a slanted box. The determinant of the matrix whose columns are those vectors is a single number that gives the area or volume of that shape.
This chapter is about computing that number, what its sign means, and what happens when it is zero. Later chapters will use the determinant as the standard way to measure a lattice.
By the end of this chapter, you should know how to compute the determinant of a 2x2 matrix by hand, what measures geometrically, and why a zero determinant means the columns of are linearly dependent.
A parallelogram from two vectors
Take two vectors:
These two vectors, together with the origin, mark out a parallelogram. The four corners are:
How large is that parallelogram? Well, the determinant is how we compute it.
The 2x2 determinant
Put and as the columns of a matrix:
For any 2x2 matrix:
the determinant is defined as:
For our example:
The number is the signed area of the parallelogram with sides and . We will see what "signed" means in a moment. For now, the unsigned area is .
Why this formula gives the area
You do not need to derive the formula to use it, but it is worth seeing why it works in one case. If the two vectors are along the horizontal axis and along the vertical axis, the parallelogram is a rectangle with sides and . Its area is . The formula gives:
When the vectors tilt away from the axes, the term corrects for the shear. The result is still the area of the parallelogram they span.
Sign and orientation
The determinant can be negative. For:
the determinant is . The parallelogram still has area . The negative sign records the order of the two vectors: in one rotational order gives a positive determinant, and the opposite order gives a negative determinant.
This sign is called the orientation. For measuring how much space the columns enclose, the orientation does not matter, and we take the absolute value . The sign matters only when the order of the columns carries meaning.
Three vectors and a parallelepiped
The same idea works in 3D. Three vectors in 3D mark out a slanted box called a parallelepiped. The determinant of the 3x3 matrix whose columns are those vectors gives the signed volume of that box. The formula is longer, but the meaning is the same:
The same pattern continues in higher dimensions: for an matrix , the determinant gives the signed -dimensional volume of the shape spanned by its columns. We will rarely compute determinants by hand beyond 2x2, but the geometric meaning is the exact same.
When the determinant is zero
In chapter 4 we said that columns of a matrix are linearly dependent when one column can be written as a linear combination of the others. Geometrically, that means the parallelogram (or parallelepiped) flattens onto a line or plane, and its volume is zero.
The determinant detects this exactly:
Read the symbol as "if and only if": each side implies the other.
For example:
The columns are and . The second is twice the first, so they are linearly dependent. The determinant confirms it:
Linear independence and non-zero determinant are the same condition. So, whenever we need to check that a set of vectors really describes a full -dimensional shape, computing the determinant is the test.
Different parallelograms, same area
Replace with to get a new pair:
The new matrix is:
with . Same absolute value as before.
At first this can feel wrong. The new vector is longer than ( versus ), so the new parallelogram should be bigger but it's not. The reason is that the area of a parallelogram is base times perpendicular height, not the product of the two side lengths.
Take as the base. The endpoint of is and the endpoint of is . Both of these points sit on the same line parallel to . Adding to shifted the endpoint along that line, but did not change its perpendicular distance from the base. Same base, same height, same area.
The two pairs of vectors mark out different parallelograms, but the area is the same. More generally, adding a multiple of one column of a matrix to another column never changes , so many different matrices share the same value.
What to remember
- The determinant of a square matrix is a single number.
- For a 2x2 matrix , the determinant is .
- is the volume of the parallelepiped spanned by the columns of (area in 2D, volume in 3D, -volume in D).
- The sign of records the orientation of the columns. For measuring size, we take the absolute value.
- if and only if the columns of are linearly dependent.
- Adding a multiple of one column of to another column does not change .