Let's say that we have a line $Ax + By + C_1 =0$ in a $xy$-plane.
We have some equations that can be used with this line, e.g.: $$d=\frac{\lvert C_1 - C_2 \rvert}{\sqrt{A^2+B^2}} \qquad\text{Distance between two parallel lines in the plane.}$$ $$d=\frac{\lvert Ax_1 + By_1+C_1 \rvert}{\sqrt{A^2+B^2}} \,\,\,\quad\text{Distance between line and a point $(x_1,y_1)$ in the plane.}$$
The $Ax + By + C_1$ can be represented in many ways. For instance, the following bullets represent the same one:
- $2x - 4y + 15$
- $4x - 8y + 30$
- $x-2y+\frac{15}{2}$
- $-2x + 4y - 15$
- $-x + 2y - \frac{15}{2}$
Is there a difference in which type of expression do I use (e.g. from the list) when I use the equations I showed for $d$ or other things? I have heard that I should work with the line when $B > 0$.
For formula 1, to get the distance between two parallel lines, you need both of the lines expressed with the same A and B (this will be possible, if they are parallel).
For the second formula, you can use any of the versions of the line. Two different equations that represent the same line must be proportional. If $Ax+By+Cz=0$ is version 1, any other version would be $\alpha Ax+\alpha By+\alpha Cz=0$. And then the distance to a point $(x_{1},y_{1})$ is:
$$d=\frac{|\alpha Ax_{1}+\alpha By_{1}+\alpha C_{1}|}{\sqrt{(\alpha A)^{2}+(\alpha B)^{2}}}=\frac{|\alpha||Ax_{1}+ By_{1}+ C_{1}|}{\sqrt{\alpha^{2}}\sqrt{A^{2}+B^{2}}}=\frac{|Ax_{1}+ By_{1}+ C_{1}|}{\sqrt{A^{2}+B^{2}}}$$
So you "recuperate" the original formula.