Two parallel lines can be taken in the form
and y=mx+c1....(i) y=mx+c2....(ii)
Line (i) will intersect X-axis at the point A(−mc1,0).
Distance between two lines is equal to the length of the perpendicular from point A to line (ii). Therefore, distance between the lines (i) and (ii) is d=1+m2∣(−m)(−mc1)+(−c2)∣ d=1+m2∣c1−c2∣
Thus, the distanced between two parallel lines y=mx+c1 and y=mx+c2 is given by d=1+m2∣c1−c2∣.