One num­ber for a whole matrix

Every square matrix car­ries one spe­cial num­ber, its deter­mi­nant. That sin­gle num­ber tells you whether the matrix can be inverted, and it also mea­sures how the matrix stretches areas. Here you will learn to eval­u­ate 2×22 \times 2 and 3×33 \times 3 deter­mi­nants, use them to find the area of a tri­an­gle and to test collinear­ity, and meet minors and cofac­tors, which we will need for inverses in the next les­son.

Deter­mi­nants

∣abcd∣=ad−bc\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

For a 3×33 \times 3 matrix, expand along the first row, like this:

∣a1a2a3b1b2b3c1c2c3∣=a1∣b2b3c2c3∣−a2∣b1b3c1c3∣+a3∣b1b2c1c2∣.\begin{vmatrix} a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \\ c_1 & c_2 & c_3 \end{vmatrix} = a_1\begin{vmatrix} b_2 & b_3 \\ c_2 & c_3 \end{vmatrix} - a_2\begin{vmatrix} b_1 & b_3 \\ c_1 & c_3 \end{vmatrix} + a_3\begin{vmatrix} b_1 & b_2 \\ c_1 & c_2 \end{vmatrix}.

In fact you may expand along any row or col­umn, using the sign pat­tern +−+−+−+−+\begin{smallmatrix} + & - & + \\ - & + & - \\ + & - & + \end{smallmatrix}. A teacher's tip: always pick the row or col­umn with the most zeros. It saves both time and mis­takes.

Exam­ple 1. ∣3−254∣=12+10=22\begin{vmatrix} 3 & -2 \\ 5 & 4 \end{vmatrix} = 12 + 10 = 22.

Exam­ple 2. ∣2013−14120∣=2(0−8)−0+1(6+1)=−9\begin{vmatrix} 2 & 0 & 1 \\ 3 & -1 & 4 \\ 1 & 2 & 0 \end{vmatrix} = 2(0 - 8) - 0 + 1(6 + 1) = -9.

Exam­ple 3. ∣050273416∣\begin{vmatrix} 0 & 5 & 0 \\ 2 & 7 & 3 \\ 4 & 1 & 6 \end{vmatrix} along row 11, where two entries are zero: −5(12−12)=0-5(12 - 12) = 0.

Facts worth remem­ber­ing. ∣AT∣=∣A∣\lvert A^T \rvert = \lvert A \rvert. Swap­ping two rows changes the sign. Two equal rows give 00. For AA of order nn, ∣kA∣=kn∣A∣\lvert kA \rvert = k^n\lvert A \rvert. And ∣AB∣=∣A∣∣B∣\lvert AB \rvert = \lvert A \rvert\lvert B \rvert.

Area of a tri­an­gle

Δ=12∣∣x1y11x2y21x3y31∣∣.\displaystyle \Delta = \frac{1}{2}\left\lvert \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} \right\rvert.

If the three points lie on one line, there is no tri­an­gle at all, so the points are collinear exactly when the deter­mi­nant is 00.

Exam­ple 4. (1,2)(1, 2), (4,6)(4, 6), (−2,3)(-2, 3). The deter­mi­nant is 1(6−3)−2(4+2)+1(12+12)=3−12+24=151(6 - 3) - 2(4 + 2) + 1(12 + 12) = 3 - 12 + 24 = 15, so the area is 7.57.5.

Triangle with vertices (1, 2), (4, 6) and (-2, 3) drawn on a coordinate grid and shaded; its area is 7.5, half of the determinant 15.
The tri­an­gle of Exam­ple 4, with area 7.5.

Exam­ple 5. For the line through (2,3)(2, 3) and (5,9)(5, 9), a gen­eral point must be collinear with both: ∣xy1231591∣=0\begin{vmatrix} x & y & 1 \\ 2 & 3 & 1 \\ 5 & 9 & 1 \end{vmatrix} = 0 gives −6x+3y+3=0-6x + 3y + 3 = 0, i.e. y=2x−1y = 2x - 1.

The line y = 2x - 1 through the points (2, 3) and (5, 9), with a general point (x, y) on it, collinear with the two given points.
Any point (x, y) on the line is collinear with (2, 3) and (5, 9).

Exam­ple 6. Find kk if the tri­an­gle (k,0)(k, 0), (3,0)(3, 0), (0,4)(0, 4) has area 1010. Then 12∣4(3−k)∣=10\displaystyle \tfrac{1}{2}\lvert 4(3 - k) \rvert = 10 gives k=−2k = -2 or 88.

Two triangles sharing the vertices (3, 0) and (0, 4): one with third vertex (-2, 0) and one with third vertex (8, 0); each has base 5 on the x-axis, height 4 and area 10.
Both k = -2 and k = 8 give a base of 5 and an area of 10.

Minors and cofac­tors

The minor MijM_{ij} is the deter­mi­nant left after delet­ing row ii and col­umn jj. The cofac­tor attaches a sign to it: Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}. Mul­ti­ply the entries of any row by their own cofac­tors and add: you get the deter­mi­nant. Mul­ti­ply them by the cofac­tors of another row instead, and the sum is always 00.

Exam­ple 7. For ∣14−32∣\begin{vmatrix} 1 & 4 \\ -3 & 2 \end{vmatrix}: M11=2M_{11} = 2, M12=−3M_{12} = -3, A12=3A_{12} = 3, A21=−4A_{21} = -4, A22=1A_{22} = 1.

Try these your­self

  1. Eval­u­ate ∣73−25∣\begin{vmatrix} 7 & 3 \\ -2 & 5 \end{vmatrix}; ∣cos⁡θsin⁡θ−sin⁡θcos⁡θ∣\begin{vmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{vmatrix}.
  2. Eval­u­ate ∣1−12301−245∣\begin{vmatrix} 1 & -1 & 2 \\ 3 & 0 & 1 \\ -2 & 4 & 5 \end{vmatrix} along the sec­ond row.
  3. Find xx if ∣x43x∣=∣23−15∣\begin{vmatrix} x & 4 \\ 3 & x \end{vmatrix} = \begin{vmatrix} 2 & 3 \\ -1 & 5 \end{vmatrix}.
  4. If AA is 3×33 \times 3 with ∣A∣=4\lvert A \rvert = 4, find ∣2A∣\lvert 2A \rvert and ∣AT∣\lvert A^T \rvert.
  5. Find the area of the tri­an­gle (−2,−1)(-2, -1), (3,4)(3, 4), (5,−2)(5, -2).
  6. Show that (1,−1)(1, -1), (3,5)(3, 5), (−1,−7)(-1, -7) are collinear.
  7. Use deter­mi­nants to find the line through (−1,4)(-1, 4) and (3,−2)(3, -2).
  8. Find the minors and cofac­tors of the sec­ond row of ∣2−1013540−2∣\begin{vmatrix} 2 & -1 & 0 \\ 1 & 3 & 5 \\ 4 & 0 & -2 \end{vmatrix} and eval­u­ate the deter­mi­nant with them.
  9. Show with­out expand­ing that ∣1ab+c1bc+a1ca+b∣=0\begin{vmatrix} 1 & a & b + c \\ 1 & b & c + a \\ 1 & c & a + b \end{vmatrix} = 0 (add col­umn 22 to col­umn 33).
  10. Find kk if the area of the tri­an­gle (1,k)(1, k), (4,0)(4, 0), (0,2)(0, 2) is 55.

Answers to check against

Show answers
  1. 4141; 11.
  2. −3(−1⋅5−2⋅4)+0−1(1⋅4−(−1)(−2))=39−2=37-3(-1 \cdot 5 - 2 \cdot 4) + 0 - 1(1 \cdot 4 - (-1)(-2)) = 39 - 2 = 37.
  3. x2−12=13x^2 - 12 = 13: x=±5x = \pm 5.
  4. 3232; 44.
  5. 12∣−2(6)+1(3−5)+1(−6−20)∣=12∣−12−2−26∣=20\displaystyle \tfrac{1}{2}\lvert -2(6) + 1(3 - 5) + 1(-6 - 20) \rvert = \tfrac{1}{2}\lvert -12 - 2 - 26 \rvert = 20.
  6. 1(5+7)−(−1)(3+1)+1(−21+5)=12+4−16=01(5 + 7) - (-1)(3 + 1) + 1(-21 + 5) = 12 + 4 - 16 = 0.
  7. 3x+2y−5=03x + 2y - 5 = 0.
  8. M21=2M_{21} = 2, M22=−4M_{22} = -4, M23=4M_{23} = 4; A21=−2A_{21} = -2, A22=−4A_{22} = -4, A23=−4A_{23} = -4; 1(−2)+3(−4)+5(−4)=−341(-2) + 3(-4) + 5(-4) = -34.
  9. Col­umn 33 becomes a+b+ca + b + c in every row, so it is pro­por­tional to col­umn 11.
  10. 12∣1(0−2)−k(4−0)+1(8)∣=5\displaystyle \tfrac{1}{2}\lvert 1(0 - 2) - k(4 - 0) + 1(8) \rvert = 5: ∣6−4k∣=10\lvert 6 - 4k \rvert = 10, k=−1k = -1 or 44.