girgit.org

Determinants

Area of a triangle using determinants

The big ideaThe area of a triangle with known corners is half the size of a 3 × 3 determinant, and when that determinant is 0 the three points lie on one straight line.

In simple words

Write the three corners of a triangle in a box of numbers, add a column of 1s, and work out the box's number. Half of it, with any minus sign dropped, is the area. If the number comes out zero, the "triangle" is flat: the three points sit on one straight line.

The formula

In Class 10 you met the area of a triangle with vertices \( (x_1, y_1) \), \( (x_2, y_2) \), \( (x_3, y_3) \):

\[ \tfrac{1}{2}\left[x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)\right]. \]

Expand the determinant below along its first column and you get exactly this bracket. So the same area can be written as

\[ \Delta = \frac{1}{2}\begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix}. \]

Three things to remember when you use it:

  1. Area is never negative. If the determinant comes out negative, take its absolute value. (The sign only tells you whether the corners were listed clockwise or anticlockwise.)
  2. If the area is given and you are finding an unknown corner, set the determinant expression equal to both + area and − area. You usually get two answers.
  3. Three collinear points (points on one line) make a triangle of area 0, so the determinant is 0. The reverse is also true: a zero determinant means the points are collinear.

Try it: drag the corners of the worked example's triangle. Watch the sign follow the turning direction, and line the three points up to get 0.

Worked examples

  1. Area. Vertices (1, 2), (4, 6), (7, 1). \[ \frac{1}{2}\begin{vmatrix} 1 & 2 & 1 \\ 4 & 6 & 1 \\ 7 & 1 & 1 \end{vmatrix} = \frac{1}{2}\left[1(6 - 1) - 2(4 - 7) + 1(4 - 42)\right] = \frac{1}{2}(5 + 6 - 38) = -\frac{27}{2}. \] Area = \( \frac{27}{2} \) = 13.5 square units.
  2. Collinear? Points (1, 1), (3, 5), (5, 9). \[ \begin{vmatrix} 1 & 1 & 1 \\ 3 & 5 & 1 \\ 5 & 9 & 1 \end{vmatrix} = 1(5 - 9) - 1(3 - 5) + 1(27 - 25) = -4 + 2 + 2 = 0. \] Zero, so they lie on one line (it is y = 2x − 1).
  3. Unknown corner. The triangle with vertices (k, 0), (2, 0), (0, 3) has area 6. The determinant expression works out to \( \frac{1}{2}(6 - 3k) \). Set it to +6: k = −2. Set it to −6: k = 6. Both work: the base runs from x = 2 to x = k, so it is 4 long either way, and the height is 3.

The equation of a line through two points

Here is a neat use of the collinearity test. Let P(x, y) be any point on the line through A(2, 3) and B(5, 9). Then A, B, P are collinear, so the "triangle" ABP has area 0:

\[ \begin{vmatrix} x & y & 1 \\ 2 & 3 & 1 \\ 5 & 9 & 1 \end{vmatrix} = 0 \;\Rightarrow\; x(3 - 9) - y(2 - 5) + 1(18 - 15) = 0 \;\Rightarrow\; -6x + 3y + 3 = 0. \]

Dividing by 3: \( y = 2x - 1 \). Check: (2, 3) and (5, 9) both satisfy it.

Don't mix these up

  • Don't forget the \( \frac{1}{2} \) in front, and don't forget the absolute value at the end.
  • Given an area, solve for both signs. Given collinearity, set the determinant itself to 0 (the \( \frac{1}{2} \) does not matter).

Try it. Find the area of the triangle with vertices (2, 1), (3, −2), (−1, 4), and the equation of the line through (1, 4) and (3, −2).

Answer
The determinant is −6, so the area is \( \frac{1}{2} \times 6 = 3 \) square units. For the line, \( \begin{vmatrix} x & y & 1 \\ 1 & 4 & 1 \\ 3 & -2 & 1 \end{vmatrix} = 6x + 2y - 14 = 0 \), that is, \( 3x + y = 7 \).

Words to know

Vertices
The corner points of a triangle (one is a vertex).
Collinear points
Points that lie on one straight line.
Absolute value
The size of a number without its sign; used because area cannot be negative.
Square units
The unit of area when lengths are in units.

Are the points (−1, 3), (2, 5), (5, 7) collinear?

  1. Yes
  2. No, they make a triangle of area 1
  3. Can't tell without drawing

For which k are (1, 1), (2, 3), (k, 5) collinear?

  1. 4
  2. 3
  3. 5

The determinant in the area formula comes out as −20. What is the area?

  1. −10
  2. 20
  3. 10