Skip to content

Mathematics and Statistics · Ch 6 — Determinants

Area of a Triangle and Collinearity Using Determinants

6

Area of a Triangle and Collinearity Using Determinants

Determinants also give a compact formula for the area of a triangle with known vertices, and — as an immediate consequence — a test for whether three points lie on one straight line.

Area of a triangle. For a triangle with vertices (x1,y1)(x_1,y_1), (x2,y2)(x_2,y_2), (x3,y3)(x_3,y_3), Area=12∣x1y11x2y21x3y31∣.\text{Area} = \frac{1}{2}\begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix}. Because an area must be positive, but the determinant may come out negative depending on the order the vertices are listed, the formula is applied by taking the absolute value: Area=12∣∣x1y11x2y21x3y31∣∣.\text{Area} = \frac{1}{2}\left|\begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix}\right|.

Condition for collinearity. If the three points all lie on one straight line, the "triangle" they form is flattened and has zero area. So three points are collinear exactly when ∣x1y11x2y21x3y31∣=0.\begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} = 0. This determinant test is usually quicker than comparing the slopes of the pairs of points, especially once a student is comfortable using a row operation to create zeros before expanding. …

Definition 1Area by determinant

Half the absolute value of the 3x3 determinant formed from the three vertices' coordinates with a column of 1s gives the area of a trian …

Definition 2Collinear points

Three or more points lying on one and the same straight line; for three points this is equivalent to the triangle they would form having zero area, i.e. the coord …