One number for a whole matrix#
Every square matrix carries one special number, its determinant. That single number tells you whether the matrix can be inverted, and it also measures how the matrix stretches areas. Here you will learn to evaluate 2 × 2 2 \times 2 2 × 2 and 3 × 3 3 \times 3 3 × 3 determinants, use them to find the area of a triangle and to test collinearity, and meet minors and cofactors, which we will need for inverses in the next lesson.
Determinants#
∣ a b c d ∣ = a d − b c \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc a c b d = a d − b c
For a 3 × 3 3 \times 3 3 × 3 matrix, expand along the first row, like this:
∣ a 1 a 2 a 3 b 1 b 2 b 3 c 1 c 2 c 3 ∣ = a 1 ∣ b 2 b 3 c 2 c 3 ∣ − a 2 ∣ b 1 b 3 c 1 c 3 ∣ + a 3 ∣ b 1 b 2 c 1 c 2 ∣ . \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}. a 1 b 1 c 1 a 2 b 2 c 2 a 3 b 3 c 3 = a 1 b 2 c 2 b 3 c 3 − a 2 b 1 c 1 b 3 c 3 + a 3 b 1 c 1 b 2 c 2 .
In fact you may expand along any row or column, using the sign pattern + − + − + − + − + \begin{smallmatrix} + & - & + \\ - & + & - \\ + & - & + \end{smallmatrix} + − + − + − + − + . A teacher's tip: always pick the row or column with the most zeros. It saves both time and mistakes.
Example 1. ∣ 3 − 2 5 4 ∣ = 12 + 10 = 22 \begin{vmatrix} 3 & -2 \\ 5 & 4 \end{vmatrix} = 12 + 10 = 22 3 5 − 2 4 = 12 + 10 = 22 .
Example 2. ∣ 2 0 1 3 − 1 4 1 2 0 ∣ = 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 2 3 1 0 − 1 2 1 4 0 = 2 ( 0 − 8 ) − 0 + 1 ( 6 + 1 ) = − 9 .
Example 3. ∣ 0 5 0 2 7 3 4 1 6 ∣ \begin{vmatrix} 0 & 5 & 0 \\ 2 & 7 & 3 \\ 4 & 1 & 6 \end{vmatrix} 0 2 4 5 7 1 0 3 6 along row 1 1 1 , where two entries are zero: − 5 ( 12 − 12 ) = 0 -5(12 - 12) = 0 − 5 ( 12 − 12 ) = 0 .
Facts worth remembering. ∣ A T ∣ = ∣ A ∣ \lvert A^T \rvert = \lvert A \rvert ∣ A T ∣ = ∣ A ∣ . Swapping two rows changes the sign. Two equal rows give 0 0 0 . For A A A of order n n n , ∣ k A ∣ = k n ∣ A ∣ \lvert kA \rvert = k^n\lvert A \rvert ∣ k A ∣ = k n ∣ A ∣ . And ∣ A B ∣ = ∣ A ∣ ∣ B ∣ \lvert AB \rvert = \lvert A \rvert\lvert B \rvert ∣ A B ∣ = ∣ A ∣ ∣ B ∣ .
Area of a triangle#
Δ = 1 2 ∣ ∣ x 1 y 1 1 x 2 y 2 1 x 3 y 3 1 ∣ ∣ . \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. Δ = 2 1 x 1 x 2 x 3 y 1 y 2 y 3 1 1 1 .
If the three points lie on one line, there is no triangle at all, so the points are collinear exactly when the determinant is 0 0 0 .
Example 4. ( 1 , 2 ) (1, 2) ( 1 , 2 ) , ( 4 , 6 ) (4, 6) ( 4 , 6 ) , ( − 2 , 3 ) (-2, 3) ( − 2 , 3 ) . The determinant is 1 ( 6 − 3 ) − 2 ( 4 + 2 ) + 1 ( 12 + 12 ) = 3 − 12 + 24 = 15 1(6 - 3) - 2(4 + 2) + 1(12 + 12) = 3 - 12 + 24 = 15 1 ( 6 − 3 ) − 2 ( 4 + 2 ) + 1 ( 12 + 12 ) = 3 − 12 + 24 = 15 , so the area is 7.5 7.5 7.5 .
The triangle of Example 4, with area 7.5.
Example 5. For the line through ( 2 , 3 ) (2, 3) ( 2 , 3 ) and ( 5 , 9 ) (5, 9) ( 5 , 9 ) , a general point must be collinear with both: ∣ x y 1 2 3 1 5 9 1 ∣ = 0 \begin{vmatrix} x & y & 1 \\ 2 & 3 & 1 \\ 5 & 9 & 1 \end{vmatrix} = 0 x 2 5 y 3 9 1 1 1 = 0 gives − 6 x + 3 y + 3 = 0 -6x + 3y + 3 = 0 − 6 x + 3 y + 3 = 0 , i.e. y = 2 x − 1 y = 2x - 1 y = 2 x − 1 .
Any point (x, y) on the line is collinear with (2, 3) and (5, 9).
Example 6. Find k k k if the triangle ( k , 0 ) (k, 0) ( k , 0 ) , ( 3 , 0 ) (3, 0) ( 3 , 0 ) , ( 0 , 4 ) (0, 4) ( 0 , 4 ) has area 10 10 10 . Then 1 2 ∣ 4 ( 3 − k ) ∣ = 10 \displaystyle \tfrac{1}{2}\lvert 4(3 - k) \rvert = 10 2 1 ∣ 4 ( 3 − k )∣ = 10 gives k = − 2 k = -2 k = − 2 or 8 8 8 .
Both k = -2 and k = 8 give a base of 5 and an area of 10.
Minors and cofactors#
The minor M i j M_{ij} M ij is the determinant left after deleting row i i i and column j j j . The cofactor attaches a sign to it: A i j = ( − 1 ) i + j M i j A_{ij} = (-1)^{i+j}M_{ij} A ij = ( − 1 ) i + j M ij . Multiply the entries of any row by their own cofactors and add: you get the determinant. Multiply them by the cofactors of another row instead, and the sum is always 0 0 0 .
Example 7. For ∣ 1 4 − 3 2 ∣ \begin{vmatrix} 1 & 4 \\ -3 & 2 \end{vmatrix} 1 − 3 4 2 : M 11 = 2 M_{11} = 2 M 11 = 2 , M 12 = − 3 M_{12} = -3 M 12 = − 3 , A 12 = 3 A_{12} = 3 A 12 = 3 , A 21 = − 4 A_{21} = -4 A 21 = − 4 , A 22 = 1 A_{22} = 1 A 22 = 1 .
Try these yourself#
Evaluate ∣ 7 3 − 2 5 ∣ \begin{vmatrix} 7 & 3 \\ -2 & 5 \end{vmatrix} 7 − 2 3 5 ; ∣ cos θ sin θ − sin θ cos θ ∣ \begin{vmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{vmatrix} cos θ − sin θ sin θ cos θ .
Evaluate ∣ 1 − 1 2 3 0 1 − 2 4 5 ∣ \begin{vmatrix} 1 & -1 & 2 \\ 3 & 0 & 1 \\ -2 & 4 & 5 \end{vmatrix} 1 3 − 2 − 1 0 4 2 1 5 along the second row.
Find x x x if ∣ x 4 3 x ∣ = ∣ 2 3 − 1 5 ∣ \begin{vmatrix} x & 4 \\ 3 & x \end{vmatrix} = \begin{vmatrix} 2 & 3 \\ -1 & 5 \end{vmatrix} x 3 4 x = 2 − 1 3 5 .
If A A A is 3 × 3 3 \times 3 3 × 3 with ∣ A ∣ = 4 \lvert A \rvert = 4 ∣ A ∣ = 4 , find ∣ 2 A ∣ \lvert 2A \rvert ∣ 2 A ∣ and ∣ A T ∣ \lvert A^T \rvert ∣ A T ∣ .
Find the area of the triangle ( − 2 , − 1 ) (-2, -1) ( − 2 , − 1 ) , ( 3 , 4 ) (3, 4) ( 3 , 4 ) , ( 5 , − 2 ) (5, -2) ( 5 , − 2 ) .
Show that ( 1 , − 1 ) (1, -1) ( 1 , − 1 ) , ( 3 , 5 ) (3, 5) ( 3 , 5 ) , ( − 1 , − 7 ) (-1, -7) ( − 1 , − 7 ) are collinear.
Use determinants to find the line through ( − 1 , 4 ) (-1, 4) ( − 1 , 4 ) and ( 3 , − 2 ) (3, -2) ( 3 , − 2 ) .
Find the minors and cofactors of the second row of ∣ 2 − 1 0 1 3 5 4 0 − 2 ∣ \begin{vmatrix} 2 & -1 & 0 \\ 1 & 3 & 5 \\ 4 & 0 & -2 \end{vmatrix} 2 1 4 − 1 3 0 0 5 − 2 and evaluate the determinant with them.
Show without expanding that ∣ 1 a b + c 1 b c + a 1 c a + b ∣ = 0 \begin{vmatrix} 1 & a & b + c \\ 1 & b & c + a \\ 1 & c & a + b \end{vmatrix} = 0 1 1 1 a b c b + c c + a a + b = 0 (add column 2 2 2 to column 3 3 3 ).
Find k k k if the area of the triangle ( 1 , k ) (1, k) ( 1 , k ) , ( 4 , 0 ) (4, 0) ( 4 , 0 ) , ( 0 , 2 ) (0, 2) ( 0 , 2 ) is 5 5 5 .
Answers to check against#
Show answers
41 41 41 ; 1 1 1 .
− 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 ( − 1 ⋅ 5 − 2 ⋅ 4 ) + 0 − 1 ( 1 ⋅ 4 − ( − 1 ) ( − 2 )) = 39 − 2 = 37 .
x 2 − 12 = 13 x^2 - 12 = 13 x 2 − 12 = 13 : x = ± 5 x = \pm 5 x = ± 5 .
32 32 32 ; 4 4 4 .
1 2 ∣ − 2 ( 6 ) + 1 ( 3 − 5 ) + 1 ( − 6 − 20 ) ∣ = 1 2 ∣ − 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 2 1 ∣ − 2 ( 6 ) + 1 ( 3 − 5 ) + 1 ( − 6 − 20 )∣ = 2 1 ∣ − 12 − 2 − 26 ∣ = 20 .
1 ( 5 + 7 ) − ( − 1 ) ( 3 + 1 ) + 1 ( − 21 + 5 ) = 12 + 4 − 16 = 0 1(5 + 7) - (-1)(3 + 1) + 1(-21 + 5) = 12 + 4 - 16 = 0 1 ( 5 + 7 ) − ( − 1 ) ( 3 + 1 ) + 1 ( − 21 + 5 ) = 12 + 4 − 16 = 0 .
3 x + 2 y − 5 = 0 3x + 2y - 5 = 0 3 x + 2 y − 5 = 0 .
M 21 = 2 M_{21} = 2 M 21 = 2 , M 22 = − 4 M_{22} = -4 M 22 = − 4 , M 23 = 4 M_{23} = 4 M 23 = 4 ; A 21 = − 2 A_{21} = -2 A 21 = − 2 , A 22 = − 4 A_{22} = -4 A 22 = − 4 , A 23 = − 4 A_{23} = -4 A 23 = − 4 ; 1 ( − 2 ) + 3 ( − 4 ) + 5 ( − 4 ) = − 34 1(-2) + 3(-4) + 5(-4) = -34 1 ( − 2 ) + 3 ( − 4 ) + 5 ( − 4 ) = − 34 .
Column 3 3 3 becomes a + b + c a + b + c a + b + c in every row, so it is proportional to column 1 1 1 .
1 2 ∣ 1 ( 0 − 2 ) − k ( 4 − 0 ) + 1 ( 8 ) ∣ = 5 \displaystyle \tfrac{1}{2}\lvert 1(0 - 2) - k(4 - 0) + 1(8) \rvert = 5 2 1 ∣ 1 ( 0 − 2 ) − k ( 4 − 0 ) + 1 ( 8 )∣ = 5 : ∣ 6 − 4 k ∣ = 10 \lvert 6 - 4k \rvert = 10 ∣ 6 − 4 k ∣ = 10 , k = − 1 k = -1 k = − 1 or 4 4 4 .