You are on page 1of 20

Amazing Applications of Determinants

Expository Paper

Keri Witherell

In partial fulfillment of the requirements for the Master of Arts Teaching with a
Specialization in the Teaching of Middle Level Mathematics in the Department of
Mathematics.

Jim Lewis, Advisor

July 2010
Witherell 2

This paper is about determinants. Determinants are real numbers and we can use them to
analyze a concept, such as finding area, volume, or the equation of a line. We often use numbers
in order to obtain information about something. For instance, in the medical field, doctors
measure all kinds of quantities to analyze if we are healthy or not. How much can a number tell
us?
We can arrive at a number or a solution many different ways. More than one method
works to solve a problem, for instance a problem on area. One can find the area of a
parallelogram by multiplying the base and the height together. In this paper, we explore and
investigate determinants, and some of their applications. We show how to find the area of a
parallelogram and the equation of a line through two distinct points using matrices and
determinants. Those are several examples in which information is gained by a single number, the
"determinant" of a square matrix.

Determinants preceded matrices, although matrices are taught prior to determinants in


the algebra classroom. Determinants occurred independently of matrices in the solution of many
problems. The notion of determinants has been around as long ago as 1683, when Seki, a self
taught child prodigy from the descendents of a samurai Japanese warrior family, computed what
we know now as determinants. Seki was able to find determinants of 2 2, 3 3, 4 4 and
5 5 matrices and applied them to solving equations.

One of the first uses of the word determinant appeared in 1748 in Maclaurin's document
Treatise on Algebra. The actual word "determinant" was not created until 1801, when it was
used by Gauss. Gauss introduced this word, but not for what we use it today, but for the
discriminant of a quartic, (a quartic is a polynomial of degree four; for example, x4). Recall that
a discriminant is an expression which gives information about the nature of the roots of
polynomials. In 1812, Cauchy made the first use of determinants in the current sense; in fact,
Cauchy was responsible for developing much of the early theory of determinants.

The determinant of a square matrix is a real number associated to the matrix. As we shall
see, the value of this number tells us whether a matrix is invertible or not, and can be used to
determine the solution of a system of n linear equations in n unknown (Cramer's rule).
Consider a 2 x2 matrix A given by
a11 a12
A = ,
a21 a22
where aij represents the entry in the i-th row and j-th column. The determinant of A is a number
defined by:

a11 a12
det( A) a11a22 a21a12 .
a21 a22
a11 a12
Note that is just a notation for the determinant of A .
a21 a22
Witherell 3

One way to visualize this process is to think of the determinant as the number obtained by
subtracting the product of the elements in the “negative diagonal” (that is, a21a12 ) from the
product of the elements in the “positive diagonal” (that is, a11a22 ).

As we have seen before, we usually denote the entries of a matrix with letters and subscripts. It is
interesting to note that Leibniz used subscripts to note coefficients and unknowns in a system of
equations; for example, in aij , i denotes the equation in which it occurs, and j denotes the
unknown of which aij is the coefficient.

Consider the 2 x 2 matrix A :

2 3
A .
5 7
Then
2 3
det A
5 7
(2 7) (5 ( 3))
29

The determinant of a 3x3 matrix can be computed in two different ways. The first
method is similar to the method used for computing the determinant of a 2 x2 matrix.
Consider a 3x3 matrix A given by

a11 a12 a13


A a21 a22 a23 .
a31 a32 a33
Then det(A) is:

(a11a22a33 + a12a23a31 + a13a21a32) – (a11a23a32 + a12a21a33 + a13a22a31).

For a 3x3 matrix, one may think of the answer as the sum of the product of the numbers on each
of three "positive diagonals" subtracted from the sum of the product of the numbers on each of
three "negative diagonals". To visualize these "diagonals" it helps to repeat the first and second
column as follows:

a11 a12 a13 a11 a12


det( A) a21 a22 a23 a21 a22
a31 a32 a33 a31 a32

The three “positive” diagonals start with the first three entries on the first row and go
down to the right. The three “negative” diagonals start with the last three entries on the first row
and go down to the left. Generations of future engineers have used this memorization devise to
Witherell 4

compute determinants of 3x3 matrices. They are often quite disappointed when no comparable
visual image is available for determinants of 4 x4 matrices.

For example, consider the matrix A given by

1 6 4
A 2 7 3 .
8 9 5
Then
1 6 4 16
det( A) 2 7 3 27
8 9 5 89
- - - + + +.

(1 7 5) (6 3 8) (4 2 9)
(4 7 8) (1 3 9) (6 2 5)
60

Alternatively, the determinant of a 3x3 matrix can be defined recursively; that is, it can
be defined in terms of determinants of 2 x2 matrices. Let A be a 3x3 matrix given by:

a11 a12 a13


A a21 a22 a23
a31 a32 a33

Let A ij denote the matrix obtained from A by deleting the i th row and the j th column. We
give here the definition of the determinant of A using the expansion along the first row:

det (A) = a11 det(A11 ) - a12 det(A12 ) + a13 det(A13 )

a22 a23 a21 a23 a21 a22


a11 a12 a13
a32 a33 a31 a33 a31 a32

For example, let A be the matrix from the previous example,

1 6 4
A= 2 7 3
8 9 5

Expanding along the first row, we have


Witherell 5

det (A) = a11 det(A11 ) - a12 det(A12 ) + a13 det(A13 )

1 6 4 1 6 4 1 6 4
1 2 7 3 6 2 7 3 4 2 7 3
8 9 5 8 9 5 8 9 5

7 3 2 3 2 7
1 6 4
9 5 8 5 8 9

= 1 [(7 5 -(9 3)] - 6 [(2 5)-(8 3)] + 4 [(2 9)-(8 7)]


= -60

We see that the determinant of a 3x3 matrix is a certain linear combination of three determinants
of 2 x2 matrices. Similarly, the determinant of a 4 x4 matrix is a certain linear combination of
four determinants of 3x3 matrices. More generally, the determinant of an nxn matrix is a linear
combination of n determinants of ( n 1) x ( n 1) matrices. The recursive definition of
determinants allows us to say that the determinant of an nxn matrix is equal to a sum of many
determinants of 2 x2 matrices. This method leads to the general definition of determinant of an
nxn matrix. Let A = ( aij ) be an nxn matrix, where n 2 .
Then
det (A) = a11 det(A11 ) - a12det (A12 ) + ...+ (-1) 1+n a1n det(A1n )

This is called the cofactor expansion along the first row. We can obtain the same result
by expanding along any row or even any column of the matrix A . This is summarized in the
following Laplace Expansion Theorem.

The Laplace Expansion Theorem: The determinant of an nxn matrix A = ( aij ), where n 2 ,
can be computed by using a cofactor expansion along the i th row:

det (A) = ai1Ci1 + ai2Ci2+...+ainCin


n
aij Cij ,
j 1

or a cofactor expansion along the j th column:

det (A) = a1jC1j + a2jC2j+...+anjCnj


n
aij Cij
i 1

where
Witherell 6

Cij = (-1) i+j det (Aij)

is the (i, j) cofactor of A .


This expansion theorem refers to the cofactor expansion along the i th row. The term
Cij = (-1) i+j det (Aij) involves a plus or minus sign which allows for expansion along any row or
column when using summation. A quick way to determine if the sign is positive or negative is to
remember that the signs represent a checkerboard pattern:

For example, let A be the following 4 x4 matrix.

13 3 4 5
0 1 2 1
A .
0 1 5 7
1 0 7 9

We want to expand along a row or column that has the most number of zeros. Since the first
column has two zeros, we can expand along the first column, and we obtain:

det( A) a11 det( A11 ) (a41 ) det( A41 )


1 2 1 3 4 5
13 det 1 5 7 ( 1) det 1 2 1
0 7 9 1 5 7
13 ( 7) 30
121

Now that we know how to compute the determinant of nxn matrix, let's investigate some
properties of determinants. First, we introduce a few definitions. An nxn matrix A = (aij) is
diagonal if aij = 0 whenever i j ; in other words, a diagonal matrix is a matrix that has all zero
elements except along the diagonal. For example,

a11 0 0 0
0 a22 0 0
A=
0 0 a33 0
0 0 0 a44
Witherell 7

Expanding along the first row, we see that the determinant is the product of the elements on the
diagonal. Note that the identity matrix In of size n is a special case of a diagonal matrix where all
the diagonal elements are ones (and the remaining elements are all zeros). Thus det (In) = 1.

1 0 0 0
0 1 0 0
I4 = det (I 4 ) = 1
0 0 1 0
0 0 0 1

An nxn matrix A = (aij) is upper triangular if a ij = 0 for i > j (that is, all entries below the
diagonal are zero) and lower triangular if a ij = 0 for i < j (that is, all entries above the diagonal
are zero). We say a matrix is triangular if the elements in the matrix that lie above the diagonal
or lie below the diagonal are zero; that is, if the matrix is either upper or lower triangular. For
example, the following matrices A and B represent 3x3 triangular matrices; A is upper
triangular, and B is lower triangular.

3 2 1 1 0 0
A 0 2 1 B 6 2 0
0 0 5 1 4 3

A diagonal matrix is considered both upper and lower triangular


Using the same ideas as in our previous example,
3 2 1
A 0 2 1
0 0 5
2 1
3
0 5
3 2 5

Using cofactor expansion along the first column, we have a "positive diagonal" of 2 5 and a
“negative diagonal” of 0 1 resulting in the product 3 2 5 . More generally for any triangular
matrix the determinant is the product of the elements on the diagonal. Thus we have:

Property 1: If A (aij ) is triangular, then det (A) is the product a11a22...ann of the entries on the
main diagonal.

Property 2: The determinant changes sign when two rows are exchanged.

For example let A be a 2 x2 matrix,


a11 a12
A ,
a21 a22
Witherell 8

with
det( A) a11a22 a12a21

and let B be the matrix obtained by allowing permutations of the two rows of A:

a21 a22
B
a11 a12
.
Then
det( B) (a21a12 a22a11 ) (a11a22 a12a21 ) det( A).

Property 3: If two rows (or columns) of a matrix are identical, then the determinant is zero.

Consider the 3x3 matrix A:

a11 a12 a13


A a21 a22 a23 .
a11 a12 a13

Using the previous property (2), we know that the determinant changes sign when rows are
exchanged. But it also has to stay the same, because the matrix stays the same. The only number
that can do this is zero, so det( A) 0 .

Property 4: If a matrix contains a row (or column) of zeros, then the determinant is equal to
zero.

This is clear if we use the cofactor expansion along the zero row (or column).

The next property is about determinants of products of matrices. We first study how to
multiply two matrices. We can multiply two matrices A and B if, and only if, the number of
columns in the first matrix A equals the number of rows in the second matrix B .
For example if
a11 a12 a13 b11 b12 b13
A a21 a22 a23 , and B b21 b22 b23
a31 a32 a33 b31 b32 b33

are two matrices, their product is a third matrix,


Witherell 9

c11 c12 c13


C c21 c22 c23
c31 c32 c33

where
cij ai1b1 j ai 2b2 j ai 3b3 j .

A concrete example is shown below. Let

2 1
1 2 3 4
A 5 2 and B .
1 3 2 5
4 1

Then A is a 3 x 2 matrix and B is a 2 x 4 matrix, and we can compute the product AB, which is
a 3 x 4 matrix.
Let's explain how one gets the (2, 3) entry, c23 : the entry c23 involves the second row of
3
A , and the third column of B , namely 5 2 and . Then c23 = 5 3 2( 2) 11. Similarly,
2
we can find the new elements of the first row of the product C= AB= (cij ) by taking the
"product" of the first row of A with each of the columns of B . The second row of C is
computed by taking the "product" of the second row of A with each of the columns of B .
Lastly, the third row of C is computed by taking the "product" of the third row of A with each of
the columns of B. We leave the details to the reader:

1 1 4 13
C = AB = 3 4 11 30 .
5 11 14 11

More generally, if A is an mxk matrix and B is a kxn matrix, then their product is a mxn
matrix C, where
k
cij ait btj .
t 1

For example a 5 x7 matrix multiplied by a 7 x6 matrix yields a 5 x6 matrix.


As an aside, we can also define how to multiply an nxm matrix A by a real number t.
Any matrix, multiplied by a real number t, is a new matrix in which each entry is multiplied by t.
Witherell 10

For example, if

4 3
A= 1 ,
1
2

then
4 3 2 4 2 ( 3)
8 6
2A 1 1
1 2 21 1 2
2 2

Property 5: Given nxn matrices A and B, the determinant of the product AB is the product of
the determinants:
det( AB) det( A) det(B)

There is further discussion on this property in [2].


In the example given above, we can not compute the determinants of the matrices since the
matrices are not square matrices. However, if we use

2 1 1 2
A' = and B' = ,
5 2 1 3
then
1 1
C' =
3 4

and the determinant of C' is given by

det(C ') 1 ( 1) ( 1). det( A')det(B ').

We say a matrix A is "invertible" if there is a matrix B such that BA = I and AB = I. We call B =


A 1 the "inverse matrix" of A.

Property 6: The determinant of the inverse matrix A 1 of a matrix A is the reciprocal of the
determinant of A .

Since AA-1= I, by property (5) we have:

det(A)det(A-1)=det(AA-1)=det(I) = 1.
Witherell 11

Thus
1
det( A 1 ) ,
det( A)

Property 7: If the determinant of A is zero, then A is not invertible.

By the previous discussion, if a matrix A is invertible, then

(det A 1 )(det A) det I 1

And so, if det( A) 0, then

0 det( A 1 ) 1

This is impossible, because any number multiplied by zero is zero. Thus if a matrix is invertible,
then its determinant is not zero.

Using the knowledge about determinants, we will continue the investigation of


applications of determinants into the world of geometry. Consider a parallelogram with three
vertices at (0,0), (a,b), and (c,d).
Witherell 12

Consider the matrix


a b
A .
c d
Then
det(A) = ad-bc .

Let's go back to the basics and compute the area of the parallelogram shown in the illustration
above.

Let's find the area of the rectangle R with vertices at (0,0), (a+c, b+d), and (0, b+d) :

A(R) = (b+d)(a +c)

= ab +bc + ad +cd

Now we find the area of the small rectangles R1 and R2 .

Area( R1 ) bc Area( R2 )

Next we find the area of the four triangles:


1
Area(T1 ) ab Area(T3 )
2
1
Area(T2 ) ab Area(T4 )
2
Thus,
Area (Parallelogram) Area(R) 2 Area( R1 ) 2 Area(T1 ) 2 Area(T2 )
1 1
(ab bc ad cd ) 2bc 2 ab 2 cd
2 2
ad bc

a b
Hence, we see that the determinant of the matrix A = , whose columns contain the
c d
coordinates of two of the parallelogram vertices, gives the area of the corresponding
parallelogram in the plane. Since we are working with the distance between points, we use the
absolute value of the difference to represent the area of the figure.

In general, the absolute value of the determinant of an appropriate 3x3 matrix can give the
volume of a parallelepiped (a slanted box).
Witherell 13

Volume = det[u v w]T

If u a11 a12 a13 , v a21 a22 a23 ,and w a31 a32 a33 equal the row elements of a
matrix, then the volume of the slanted box determined by u, v, and w (see picture) is the absolute
u
value of the determinant of the matrix A v . A three dimensional version of a two
w
dimensional statement can be investigated further, but a discussion of finding the volume
involves more mathematical tools than what we have available at this time. The key point is that
determinants are closely related to area and volume formulas.

Determinants can also be used to produce equations of lines and of planes. Consider two
distinct points (x1,y1) and (x2,y2). We know that we can determine the equation of the line
through those two points by finding the slope:
y2 y1
m
x2 x1

For example, if the two points on the line are (3,1) and (5,7), then the slope of the line is:

(7 1) 6
m= 3,
(5 3) 2

and the point slope equation of the line between the two points is:

(y-7)=3(x-5) y 3x 8

But we can also generate the equation of the line by setting the determinant of a 3x3 matrix A
equal to zero. Where A is given by:

x y 1
A= 3 1 1
5 7 1
Witherell 14

Let's investigate why det ( A) 0 gives the equation of the line through the two points (3,1) and
(5,7) . There is a unique line passing through these two points, and its equation has the form:

Ax + By +C = 0.

The determinant of the matrix A is:

det (A) = 2y - 6x +16

If we set det ( A) 0, then the equation of the line is

2y = 6x + 16
y = 3x + 8

In middle school, slope intercept form is taught most often, however, we also use the
point slope formula in the classroom. Since there exists a unique line passing through the distinct
points (x1, y1) and (x2, y2), both points satisfy the equations,

( y2 y1 )
slope intercept: y x b,
( x2 x1 )
( y2 y1 )
point slope: y y1 ( x x1 ),
( x2 x1 )

and

standard form: Ax + By +C = 0.

( y2 y1 )
Most common for the algebra one classroom is the slope intercept form y x b , also
( x2 x1 )
written as y mx b . Simplifying and moving everything to one side, we obtain the standard
form equation

(x 2 -x1 )y - (y2 -y1 )x- (x 2 -x1 )b = 0 .

Notice that x is first and y is second in the standard form Ax + By +C = 0. Thus we can
simplify the equation above to obtain

(y1 -y2 )x - (x1 -x 2 )y+(x1 -x 2 )b = 0 .

( y2 y1 )
The goal is to use the point slope form y y1 ( x x1 ), and write this in the standard
( x2 x1 )
form, as we did before. We obtain
Witherell 15

(y2 -y1 )x - (x2 -x1 )y-x1 (y2 -y1 )+y1 (x 2 -x1 )= 0.

Expanding the term

-x1 (y2 -y1 )+y1 (x 2 -x1 ),

we have:

-x1y2 +x1y1 +y1x 2 -y1x1 = -x1y2 +y1x 2 .

Thus the equation in the standard form is

(y2 -y1 )x - (x 2 -x1 )y - (x1y2 -x 2 y1 ) = 0

Note in the language of determinants the left hand side is the determinant of matrix A, where

x y 1
A x1 y1 1
x2 y2 1

In fact, by expanding along the first row of A, we see that

y1 1 x1 1 x1 x2
det( A) x y
y2 1 x2 1 y1 y2

( y1 y2 ) x ( x1 x2 ) y ( x1 y2 x2 y1 )

Thus we see that the equation of the line can be written as

det( A) 0 .

Mathematics processes that look different such as finding an equation of a line using
slope intercept and finding an equation of a line using language of determinants both produce the
same line. The connection is the matrix that can be built whose determinant represents the
standard form of an equation. As middle level math teachers, we can represent concepts we are
already teaching and incorporating into our classroom through the use of determinant
vocabulary.
Witherell 16

For example, consider the two points (3, 1) and (5,7). We write A(x,y) to emphasize that
the matrix is a function of x and y. Then the matrix described above is

x y 1
A( x, y ) 3 1 1 .
5 7 1

Then the equation of the line through (3,1) and (5,7) is:

det (A(x, y)) = 0 2y - 6x +16 = 0.

We say three points (x1, y1), (x2, y2), (x3, y3), are collinear if they lie on the same line. If
det(A(x,y))=0 is the equation of the line through the distinct points (x1, y1), (x2, y2) as described
above, then (x3, y3) lies on the same line if and only if it satisfies the equation of the line, that is
det(A(x3, y3))=0.
Consider the matrix

We can substitute the values of (x3, y3) for x and y . If the values of (x3, y3) continue to give a
zero determinant, then the point (x3, y3) is collinear with the other two points.

For example, are the three points (5,7), (3,1) and (-1,-1) collinear? The points (5,7), (3,1) and
(-1,-1) are collinear if and only if

Since det( A( 1, 1)) 20 0, (-1,-1) does not lie on the line through the points (3,1) and (5,7).
We can also give the following intuitive explanation: If the points in the plane are collinear, then
the parallelogram formed using any two of them, as on page 11, has zero area. Note that
expanding along the third column of the matrix A gives that the determinant is det(A13)-
det(A23)+det(A33). This is a sum of the areas of these parallelograms, so if the points are
collinear, the determinant must be zero."
Witherell 17

If we graph the points C ( 1, 1), A (3,1), and D (5,7), then we also see geometrically that
the points are not collinear. The graph is shown below.

If we graph the points, B (4, 4) then we see geometrically that the points are collinear. Since
det( A(4, 4)) 0, then (4,4) lies on the same line as points (3,1) and (5,7).

Just as we worked out for points in a plane, comparable facts are true for the planes in
space. Given three points, setting the determinant of a particular matrix to zero generates the
equation of a plane. In the capstone course, we were introduced to the idea that the graph of
linear equations in three unknowns is a plane. The technique we used to make lines in a plane
can be used to represent a plane in space.

Only one plane can pass through three non collinear points. Note that just like we can
have an infinite number of lines that meet at one point, we can have an infinite number of planes
that meet at one line. The equation of a plane is:

ax + by + cz = d

If we know the coordinates of three points (x1,y1, z1), (x2,y2, z2), (x3, y3, z3) that lie on the plane,
then we have three equations in the three unknowns a, b, c, namely

a1 x b1 y c1 z d1
a2 x b2 y c2 z d2
a3 x b3 y c3 z d3

Let A( x, y, z) be the coefficient matrix of the system above,


Witherell 18

We are claiming that the previous methods of finding an equation of a line can be extended to
finding the equation of a planes. So the equation of a plane through three distinct points is

det( A( x, y, z)) 0

This is an outlandish amount of work, 24 products. The amount of mathematics and computation
needed to find the equation of a plane using determinants is beyond the scope of this paper.
However, it can be further investigated with more time and mathematics. We can apply this
method to the following example.

Consider the plane going through the points (1, 1,3),(0,1,7), and (4,0, 1).
Then matrix A is

x y z 1
1 1 3 1
A( x, y, z ) ,
0 1 7 1
4 0 1 1

and the equation of the plane is given by:


x y z 1
1 1 3 1
det A( x, y, z ) 0
0 1 7 1
4 0 1 1
.

Simplified, the equation of the plane through the three points is

12x 8y 7z 41 0.

As a middle level educator, I see that finding determinants is beneficial and a practical
application. The applications of computing determinants of 2 x2 and 3x3 matrices, finding the
area of a parallelogram and an equation of a line are obtainable at the middle level. One example
of why determinants do not make practical sense in middle level education is that the larger nxn
matrices are more difficult and time consuming the application becomes. For instance if we have
an nxn matrix, we have n! products to compute in order to find the determinant. Even the fastest
computers cannot calculate the determinant of a large matrix using cofactor expansion. Consider
a 20 X 20 matrix; to compute its determinant would require 20! operations that is about 2.4 x1018
Witherell 19

operations. If a computer were able to perform a trillion operations per second, it would take 2.4
X 106 seconds, over six months, to finish the calculations.

The Math in the Middle program has shown again and again that there is more than one
way or method to solve a problem. Concepts that appear to be separate of one another may in
fact have connections. Examples have demonstrated that information can be gained by a single
number, the determinant of a square matrix. For example, as we showed in the case of an
equation of a line, using the determinant of a 3x3 matrix gives an alternative way of
representing knowledge we already had. We also showed how to find the area of a parallelogram
using prior knowledge (multiplying the base and height together), and then using new knowledge
to find the area with (determinants). In spite of everything an amazing amount of information is
packed into a determinant.
Witherell 20

Bibliography

[1] Leon, S.J.(1994). Linear algebra with applications, New Jersey: Prentice Hall.

[2] Poole,D. (2006). Linear algebra a modern introduction, second edition, Belmont: Thompson
Higher Education.

[3] Strang, G. (1988). Linear algebra and its applications, third edition, New York: Harcourt
Brace Jovanovich Inc.

[4] Williams, G. (1984). Linear algebra with applications, Boston: Allan and Bacon, Inc.

Web Sources
[5] http://www.intmath.com/Matrices-determinants/1_Determinants.php Retrieved on June 23
2010 at 9:30 p.m.

[6] http://www.maths.surrey.ac.uk/explore/emmaspages/option1.html#Det Retrieved on June 23


2010 at 10:00 p.m.

[7] http://www.intmath.com/Matrices-determinants/1_Determinants.php Retrieved on June 23


2010 at 11:45 p.m.

[8] http://www.college-cram.com/study/algebra/matrix-algebra/determinant-of-a-2x2-matrix/
Retrieved on July 6 2010 at 11:30 p.m.

[9] http://www.mathwarehouse.com/algebra/matrix/multiply- matrix.php Retrieved on July 8


2010 at 10:30 p.m.

[10] http://www.answers.com/topic/determinant Retrieved on July 18 2010 at 11:30 p.m.

[11] http://aix1.uottawa.ca/~jkhoury/geometry.htm Retrieved on July 20 2010 at 11:30 p.m.

You might also like