Equivalent determinant condition for collinearity of three points.
Derivation
Three points A(x1,y1), B(x2,y2), C(x3,y3) are collinear when slope AB equals slope AC:
(y2−y1)(x3−x1)=(y3−y1)(x2−x1)
Expanding and collecting:
x1(y2−y3)+x2(y3−y1)+x3(y1−y2)=0
This is exactly the cofactor expansion of:
x1x2x3y1y2y3111=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: