Skip to content

Mathematics · Ch 7 — Matrices and Determinants

Area of a Triangle

7.3.6

Area of a Triangle

For a triangle with vertices (x1,y1),(x2,y2),(x3,y3)(x_1,y_1),(x_2,y_2),(x_3,y_3), the familiar shoelace area formula

Area=12[x1(y2−y3)+x2(y3−y1)+x3(y1−y2)]\text{Area}=\tfrac12\big[x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)\big]

can be written compactly as the absolute value of a determinant:

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

The modulus (absolute value) is essential: the raw determinant can come out negative depending on the order (clockwise or anticlockwise) in which the vertices are listed, while area itself is always non-negative — the sign of the determinant is a labelling artefact, not a geometric fact.

Collinearity test. Three points are collinear (lie on a single straight line) exactly when the 'triangle' they would form has zero area:

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

This single determinant condition is often far quicker than comparing slopes pairwise, and — via the row operations of Property 7.3.2(8) — it frequently simplifies to almost nothing before it even needs expanding. …