Skip to content

Mathematics · Ch 4 — Determinants

Area of a Triangle Using Determinants

4

Area of a Triangle Using Determinants

Setting Up the Formula

Given a triangle with vertices (x1,y1),(x2,y2),(x3,y3)(x_1,y_1),(x_2,y_2),(x_3,y_3), elementary coordinate geometry (splitting the triangle into trapezoids against the xx-axis, or using the shoelace method) gives its area as

Area=12∣x1(y2−y3)+x2(y3−y1)+x3(y1−y2)∣.\text{Area}=\frac12\big|x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)\big|.

This same expression can be written far more compactly, and remembered far more easily, as a 3×33\times3 determinant:

Area=12∣x1y11x2y21x3y31∣.\text{Area}=\frac12\begin{vmatrix}x_1&y_1&1\\x_2&y_2&1\\x_3&y_3&1\end{vmatrix}.

Expanding this determinant along the third column (Section 3) reproduces exactly the expression above, confirming the two forms are the same formula.

The Absolute Value Is Essential

Unlike a length or an area computed directly, the determinant itself can come out negative depending on the order in which the three vertices are listed (listing them clockwise versus anticlockwise flips the sign, by Property 2 of Section 2 -- swapping two rows of the determinant corresponds to swapping two vertices). Since an area can never be negative, the formula always takes the absolute value of the determinant before halving it:

Area=12∣∣x1y11x2y21x3y31∣∣.\text{Area}=\frac12\left|\begin{vmatrix}x_1&y_1&1\\x_2&y_2&1\\x_3&y_3&1\end{vmatrix}\right|.

Corollary: A Test for Collinearity

Three points are collinear (all lie on one straight line) exactly when the "triangle" they would form has zero area -- geometrically, the triangle collapses to a line segment. This gives an immediate determinant test for collinearity: the points (x1,y1),(x2,y2),(x3,y3)(x_1,y_1),(x_2,y_2),(x_3,y_3) are collinear if and only if

∣x1y11x2y21x3y31∣=0.\begin{vmatrix}x_1&y_1&1\\x_2&y_2&1\\x_3&y_3&1\end{vmatrix}=0.

This test is often faster than computing and comparing slopes, especially when the coordinates involve unknowns, since it reduces directly to the row-operation techniques of Section 2 (a column becoming proportional to another, for instance, is an instant proof of collinearity without evaluating a single numeric slope).

Using the Formula to Find an Unknown Coordinate …