Prove the fact that if a point in the X-Y plane $(x_1,y_1)$ lies between two parallel lines $ax+by+r=0$ and $ax+by+s=0$ then:
$(ax_1+by_1+r)(ax_1+by_1+s)<0$
I tried to assert the above by using the approach that proves the position of points with respect to a certain line. However, I couldn't draw out any conclusive results. Any help is appreciated.
The distance from $(x_1,y_1)$ to the first line is:
$$d_1 = \frac{|ax_1 + by_1 + r|}{\sqrt{a^2 + b^2}}$$
and that to the second line is:
$$d_2 = \frac{|ax_1 + by_1 + s|}{\sqrt{a^2 + b^2}}$$
Since $(x_1,y_1)$ lies between the two lines, we must have that $d_1 + d_2$ is the same as the distance $d$ between the two lines, which is given by
$$d = \frac{|r-s|}{\sqrt{a^2 + b^2}}$$
This implies that $|ax_1 + by_1 + r| + |ax_1 + by_1 + s| = |r-s|$, which obviously only happens if $ax_1 + by_1 + r$ and $ax_1 + by_1 + s$ have opposite signs: if both are non-negative, we get $ax_1 + by_1 + s = 0$, meaning that $(x_1,y_1)$ lies on second line, a contradiction, and if both are non-positive, we get $ax_1 + by_1 + r = 0$, meaning that $(x_1, y_1)$ lies on the first line, a contradiction.