Login
📚 Differential Equations for Engineers
Chapters ▾
⇩ Download ▾

A.6 Determinant

For square matrices we define a useful quantity called the determinant. Define the determinant of a 1×1 matrix as the value of its only entry

det([a])=defa.

For a 2×2 matrix, define

det([abcd])=defadbc.

Before defining the determinant for larger matrices, we note the meaning of the determinant. An n×n matrix gives a mapping of the n-dimensional euclidean space n to itself. So a 2×2 matrix A is a mapping of the plane to itself. The determinant of A is the factor by which the area of objects changes. If we take the unit square (square of side 1) in the plane, then A takes the square to a parallelogram of area |det(A)|. The sign of det(A) denotes a change of orientation (negative if the axes get flipped). For example, let

A=[1111].

Then det(A)=1+1=2. Let us see where A sends the unit square—the square with vertices (0,0), (1,0), (0,1), and (1,1). The point (0,0) gets sent to (0,0).

[1111][10]=[11],[1111][01]=[11],[1111][11]=[20].

The image of the square is another square with vertices (0,0), (1,1), (1,1), and (2,0). The image square has a side of length 2, and it is therefore of area 2. See Figure 1.

Function graph showing the parametric curve (t, 0) for t in [0, 1], the parametric curve (1, t) for t in [0, 1], the parametric curve (1-t, 1) for t in [0, 1], the parametric curve (0, 1-t) for t in [0, 1], the parametric curve (t, -t) for t in [0, 1], the parametric curve (1+t, -1+d*t) for t in [0, 1], the parametric curve (2-t, (d-1)+t) for t in [0, 1] and the parametric curve (1-t, d-d*t) for t in [0, 1]. Adjustable parameter: Lower-right entry d (d) = 1. Viewing window: x from -3.75 to 5.75, y from -3.44 to 2.44.
A = [1 1; −1 d] applied to the unit square (dashed blue) — at the default d = 1 this is the section's own example, det A = 2, and the image parallelogram (orange) has area |det A| = |d + 1|. Drag d down through −1 to collapse the parallelogram onto a single segment (area 0, the two columns identical, so A is not invertible), then keep going to see the orientation flip that the sign of det A records.
Image, which is rotated and enlarged, of the unit square via the mapping A
Figure 1: Image of the unit square via the mapping A.

In general, the image of a square is going to be a parallelogram. In high school geometry, you may have seen a formula for computing the area of a with vertices (0,0), (a,c), (b,d) and (a+b,c+d). The area is

|det([abcd])|=|adbc|.

The vertical lines above mean absolute value. The matrix [abcd] carries the unit square to the given parallelogram.

A translucent 3D parallelepiped spanned by the three column vectors (1,0,0), (a,1,0) and (0.4,0.3,1.2), drawn as six faces. Dragging the shear slider a from -1.5 to 1.5 makes the solid lean sideways like a stack of cards, but its volume stays exactly 1.2 - the absolute value of the determinant, unchanged by adding a multiple of one column to another.Explore in 3D (opens in a new tab)
The parallelepiped spanned by the columns u = (1, 0, 0), v = (a, 1, 0), w = (0.4, 0.3, 1.2). Drag the shear slider a: the solid leans, but its volume - the determinant, here 1.2 - never changes, because adding a multiple of one column to another leaves the determinant alone. The 3D sibling of the unit-square figure above.

There are a number of ways to define the determinant for an n×n matrix. Let us use the so-called cofactor expansion. We define Aij as the matrix A with the ith row and the jth column deleted. For example, if

IfA=[123456789],thenA12=[4679]andA23=[1278].

We now define the determinant recursively

det(A)=defj=1n(1)1+ja1jdet(A1j),

or in other words

+a1ndet(A1n)if n is odd,a1ndet(A1n)if n even.

For a 3×3 matrix, we get det(A)=a11det(A11)a12det(A12)+a13det(A13). For example,

det([123456789])=1·det([5689])2·det([4679])+3·det([4578])=1(5·96·8)2(4·96·7)+3(4·85·7)=0.

It turns out that we did not have to necessarily use the first row. That is for any i,

det(A)=j=1n(1)i+jaijdet(Aij).

It is sometimes useful to use a row other than the first. In the following example it is more convenient to expand along the second row. Notice that for the second row we are starting with a negative sign.

det([123050789])=0·det([2389])+5·det([1379])0·det([1278])=0+5(1·93·7)+0=60.

Let us check if it is really the same as expanding along the first row,

det([123050789])=1·det([5089])2·det([0079])+3·det([0578])=1(5·90·8)2(0·90·7)+3(0·85·7)=60.

In computing the determinant, we alternately add and subtract the determinants of the submatrices Aij multiplied by aij for a fixed i and all j. The numbers (1)i+jdet(Aij) are called cofactors of the matrix. And that is why this method of computing the determinant is called the cofactor expansion.

Similarly we do not need to expand along a row, we can expand along a column. For any j,

det(A)=i=1n(1)i+jaijdet(Aij).

A related fact is that

det(A)=det(AT).

A matrix is upper triangular if all elements below the main diagonal are 0. For example,

[123056009]

is upper triangular. Similarly a lower triangular matrix is one where everything above the diagonal is zero. For example,

[100450789].

The determinant for triangular matrices is very simple to compute. Consider the lower triangular matrix. If we expand along the first row, we find that the determinant is 1 times the determinant of the lower triangular matrix [5089]. So the deteriminant is just the product of the diagonal entries:

det([100450789])=1·5·9=45.

Similarly for upper triangular matrices

det([123056009])=1·5·9=45.

In general, if A is triangular, then

det(A)=a11a22ann.

If A is diagonal, then it is also triangular (upper and lower), so same formula applies. For example,

det([200030005])=2·3·5=30.

In particular, the identity matrix I is diagonal, and the diagonal entries are all 1. Thus,

det(I)=1.

The determinant is telling you how geometric objects scale. If B doubles the sizes of geometric objects and A triples them, then AB (which applies B to an object and then it applies A) should make size go up by a factor of 6. This is true in general:

This property is one of the most useful, and it is employed often to actually compute determinants. A particularly interesting consequence is to note what it means for the existence of inverses. Take A and B to be inverses, that is AB=I. Then

det(A)det(B)=det(AB)=det(I)=1.

Neither det(A) nor det(B) can be zero. This fact is an extremely useful property of the determinant, and one which is used often in this book:

In fact, det(A1)det(A)=1 says that

det(A1)=1det(A).

So we know what the determinant of A1 is without computing A1.

Let us return to the formula for the inverse of a 2×2 matrix:

[abcd]1=1adbc[dbca].

Notice the determinant of the matrix [abcd] in the denominator of the fraction. The formula only works if the determinant is nonzero, otherwise we are dividing by zero.

A common notation for the determinant is a pair of vertical lines:

|abcd|=det([abcd]).

Personally, I find this notation confusing as vertical lines usually mean a positive quantity, while determinants can be negative. Also think about how to write the absolute value of a determinant. This notation is not used in this book.

Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.