Position of a Point Relative to a Line
Two points lie on the same side of ax + by + c = 0 if the expressions ax₁ + by₁ + c and ax₂ + by₂ + c have the same sign, and on opposite sides if signs differ.
Derivation
For the line , define .
On the line: . On one side: . On the other: .
Why signs agree for points on the same side
Take two points and on the same side of . The segment does not cross , so does not change sign along it. Since is continuous and nonzero on the segment, it maintains one sign throughout — so and have the same sign.
Conversely, if and are on opposite sides, the segment crosses where , so changes sign — and have opposite signs.
Practical test
To check if and are on the same side of :
Compute and .
- Same sign same side.
- Opposite sign opposite sides (the segment crosses the line).
This is also the basis of the sign analysis in angle bisector problems.