The Determinant of a 2 by 2 Matrix

Consider the matrix equation system

\left(\begin{array}{cc}a&b\\c&d\end{array}\right)\left(\begin{array}{c}x\\y\end{array}\right)=\left(\begin{array}{c}v_{1}\\v_{2}\end{array}\right),

which can be written as the simultaneous equations

a\,x\,+\,b\,y\,=\,v_{1},
c\,x\,+\,d\,y\,=\,v_{2}.

If we multiply the first of these simultaneous equations by c and the second by a, we obtain

a\,c\,x\,+\,b\,c\,y\,=\,c\,v_{1},
a\,c\,x\,+\,a\,d\,y\,=\,a\,v_{2}.

Subtracting the first from the second gives

y\,\left(a\,d\,-\,b\,c\right)\,=\,a\,v_{2}\,-c\,v_{1}

and hence

y\,=\,\frac{a\,v_{2}\,-c\,v_{1}}{a\,d\,-\,b\,c}.

In a similar way, we can eliminate y; leaving out the working, what we get is

x\,=\,\frac{d\,v_{1}\,-\,b\,v_{2}}{a\,d\,-\,b\,c}.

Notice that the quantity

a\,d\,-\,b\,c

appears in both expressions. This is a very important quantity, which is crucial to the solution process; notice, for example, that if it is zero, the elimination fails. (See the page on Gaussian elimination for a fuller discussion of what this means.)

The quantity a\,d\,-\,b\,c is known as the determinant of the matrix

\left(\begin{array}{cc}a&b\\c&d\end{array}\right),

written

\text{det}\left(\begin{array}{cc}a&b\\c&d\end{array}\right)

or

\left|\begin{array}{cc}a&b\\c&d\end{array}\right|.

As you may know, a 2 by 2 matrix can be thought of as representing a transformation of the plane, as in Figure 1. If a shape is transformed by such a matrix, its area is always scaled up by a factor equal to the determinant. (A negative determinant implies that the transformation includes a reflection.)

HTMLFiles/determinants1.png

Figure 1: a unit square transformed by the matrix \left(\begin{array}{cc}a&b\\c&d\end{array}\right) has its area scaled up by a\,d\,-\,b\,c.

Matrices with determinant zero, then, have the effect of flattening all shapes down on to a single line.

Created with the ExportAsWebPage package in Wolfram Mathematica 7.0