Three points (x₁,y₁), (x₂,y₂), (x₃,y₃) are collinear if and only if the slopes of any two pairs are equal.
Derivation
Three points A(x1,y1), B(x2,y2), C(x3,y3) are collinear if and only if they all lie on one line — equivalently, the slope from A to B equals the slope from A to C :
x2−x1y2−y1=x3−x1y3−y1
Cross-multiplying:
(y2−y1)(x3−x1)=(y3−y1)(x2−x1)
Expanding and rearranging:
x1(y2−y3)+x2(y3−y1)+x3(y1−y2)=0
This is exactly the expansion of the determinant:
x1x2x3y1y2y3111=0
The determinant form is symmetric in all three points and is preferred when no natural "base" point exists.
Key Idea
Vector form. In vector language, $A$, $B$, $C$ are collinear if and only if $\overrightarrow{AB}$ and $\overrightarrow{AC}$ are parallel — i.e. their cross product vanishes:
>
> $$
> \overrightarrow{AB} \times \overrightarrow{AC} = 0
> $$
>
> With $\overrightarrow{AB} = (x_2-x_1,\, y_2-y_1)$ and $\overrightarrow{AC} = (x_3-x_1,\, y_3-y_1)$, the cross product (z-component) is:
>
> $$
> (x_2-x_1)(y_3-y_1) - (x_3-x_1)(y_2-y_1) = 0
> $$
>
> This is exactly the determinant condition above expanded. The determinant **is** the cross product.