Academy
Formulas/maths/Straight Lines/Collinearity via Determinant

Collinearity via Determinant

Equivalent determinant condition for collinearity of three points.
Derivation

Three points A(x1,y1)A(x_1,y_1), B(x2,y2)B(x_2,y_2), C(x3,y3)C(x_3,y_3) are collinear when slope ABAB equals slope ACAC:

(y2y1)(x3x1)=(y3y1)(x2x1)(y_2-y_1)(x_3-x_1) = (y_3-y_1)(x_2-x_1)

Expanding and collecting:

x1(y2y3)+x2(y3y1)+x3(y1y2)=0x_1(y_2-y_3) + x_2(y_3-y_1) + x_3(y_1-y_2) = 0

This is exactly the cofactor expansion of:

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

The determinant form is preferred because it is symmetric in all three points — no point is singled out as a base — and it directly generalises to the area formula:

Δ=12x1y11x2y21x3y31\Delta = \frac{1}{2}\left|\begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix}\right|

Collinearity is the special case Δ=0\Delta = 0.