The distance between the lines y = mx + c1 and y = mx + c2 is:
-
$\frac{\text{c}_1-\text{c}_2}{\sqrt{\text{m}^2+1}}$
-
$\frac{|\text{c}_1-\text{c}_2|}{\sqrt{1+\text{m}^2}}$
-
$\frac{\text{c}_2-\text{c}_1}{\sqrt{1+\text{m}^2}}$
-
$0$
- $\frac{|\text{c}_1-\text{c}_2|}{\sqrt{1+\text{m}^2}}$
Solution:
Let any point on the line y = mx + c1 be P(x1, y1).
The equation of the other line is: y = mx + c2
⇒ mx - y + c2 = 0
Distance of point P from this line,
$\text{d}=\frac{|\text{mx}_1-\text{y}_1+\text{c}_2|}{\sqrt{\text{m}^2+1}}$Since P line on the first line, we get
⇒ y1 = mx1 + c1
⇒ mx1 - y1 = -c1
$\therefore \text{d}=\frac{|\text{c}_1-\text{c}_2|}{\sqrt{\text{m}^2+1}}$



